Achievable logoAchievable logo
3.4.9 Equation for a line
Achievable GRE
3. Quantitative reasoning
3.4. Geometry

Equation for a line

The standard equation for a straight line is:

Let’s break it down:

  • The variable represents the y-intercept, the measurement of where the line crosses the y-axis
  • The variable represents the slope of the line, which indicates how steep/shallow the line is and whether the line travels up/down
  • The and variables represent example coordinates the line passes through

The equation for the line below is .

slope line equation graph of y=2x+1

Slope of a line

You can find the slope of a line by taking any two points on the line, and then finding the difference in their and values. It’s often represented as a fraction, with the difference in as the numerator, and the difference in as the denominator - we call this rise over run or rise/run, since it’s .

In the example above, the difference between the two points in is two units, and the difference is is one unit, so it has a slope of , simplified to just . You can use any two points on the line to calculate the slope - it will always be the same regardless of which points you use.

The slope component in the equation for this line is :

The y-intercept of a line

You can find the y-intercept of a line by looking at where the line passes through the y-axis, i.e., the measurement of when . In our example line above, the line passes through the point , so the y-intercept is .

The y-intercept component in the equation for this line is :

Sometimes the equation for a line is mixed up so that the y value is not alone. Simply rearrange the equation such that the y value is alone on the left side of the equation. Then you can easily figure out the slope and y-intercept.

For example, what if we have the equation ?

Let’s simplify it:

The slope for this line is , and the y-intercept is .

Equation for a line example question

Let’s use this knowledge to solve an example question.

Which of the following pairs of lines intersect in Quadrant I?

A. and
B. and
C. and
D. and
E. and

Think you know the answer?

(spoiler)

Answer: B. and

Choices A and D must be incorrect because the lines in both pairs have the same slope. Having the same slope means that they are parallel to each other, and will never intersect. They’re essentially the same line, just shifted up/down.

Choices B, D, and E include pairs of lines that must eventually cross because they have different slopes. However, only the pair for choice B crosses in Quadrant I. The pairs for answers D and E grow farther apart as they move right from the y-axis, so although they will intersect, the intersections won’t be in Quadrant I.

Try it yourself first, then check this illustration of the correct pair.

You can verify your answer by solving for the intersection of these two lines. The and values must be equal where these lines intersect. This means that you can set the values equal to each other like so, and solve for .

So, the value must be where the lines intersect. We can take this and plug it into either of the equations to solve for the values.

The point where both points intersect is , which indeed is in Quadrant I.

Sign up for free to take 11 quiz questions on this topic