Equation for a line
The standard equation for a straight line is:
Let’s break it down:
- The variable represents the y-intercept, the value of where the line crosses the y-axis.
- The variable represents the slope of the line. It tells you how steep the line is and whether it rises or falls as you move to the right.
- The and variables represent coordinates that the line passes through.
The equation for the line below is .
Slope of a line
You can find the slope of a line by choosing any two points on the line and comparing how changes relative to how changes. Slope is often written as a fraction:
- numerator: the change in
- denominator: the change in
This is called rise over run (rise/run).
In the example above, the change in between the two points is 2 units, and the change in is 1 unit. So the slope is , which simplifies to . You can use any two points on the line to calculate the slope - you’ll always get the same value.
The slope component in the equation for this line is :
The y-intercept of a line
You can find the y-intercept by looking at where the line crosses the y-axis. This happens when , so the y-intercept is the value 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 :
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?
Answer: B. and
Choices A and D must be incorrect because the lines in both pairs have the same slope. Lines with the same slope are parallel, so they never intersect. They’re essentially the same line, just shifted up or down.
Choices B, C, and E include pairs of lines that must eventually cross because they have different slopes. However, only the pair in choice B crosses in Quadrant I. The pairs in choices C and E move farther apart as you go to the right from the y-axis, so although they intersect somewhere, the intersection is not 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 point. At the intersection, both lines have the same value and the same value, so you can set the two expressions for equal to each other and solve for .
So, the value at the intersection is . Now plug into either equation to find .
The lines intersect at , which is in Quadrant I.