The Equation of a Line Through Two Points
Two points decide a line, so two points are all the SAT needs to give you. The method is always the same: slope first, then the intercept, then a quick check. Students who skip the check are the ones who pick the choice with the right slope and the wrong intercept.
Three steps
Find the slope: $m = \dfrac{y_2 - y_1}{x_2 - x_1}$.
Put either point into $y = mx + b$ to find $b$. Then check that the other point works too. If it does not, the slope is wrong.
Three worked examples
Two points
Write the equation of the line through $(2, 5)$ and $(6, 13)$.
- $m = \dfrac{13 - 5}{6 - 2} = 2$.
- $5 = 2(2) + b$, so $b = 1$.
- $y = 2x + 1$. Check: $2(6) + 1 = 13$.
A function given two values
A linear function has $f(2) = 11$ and $f(6) = 3$. What is $f(0)$?
- The points are $(2, 11)$ and $(6, 3)$, so $m = \dfrac{3 - 11}{6 - 2} = -2$.
- From $x = 2$ back to $x = 0$ is $2$ steps left, so $f$ goes up by $4$.
- $f(0) = 15$.
A table
For $x = 1$, $3$, $5$, the values of $y$ are $6$, $12$, $18$. Write the equation.
- $m = \dfrac{12 - 6}{3 - 1} = 3$.
- $6 = 3(1) + b$, so $b = 3$.
- $y = 3x + 3$. The third row checks: $3(5) + 3 = 18$.
What you will see
- Points, a table or a graph. All three give you two points to work with.
- Function notation. $f(2) = 11$ is just the point $(2, 11)$.
- Find an intercept. Once you have the line, set $x = 0$ or $y = 0$.
- A missing coordinate. Use the slope between the known point and the unknown one.
A shortcut worth knowing
You do not always need the whole equation. If a question asks for $f(0)$ or for one more value, count steps. Between $(2, 11)$ and $(6, 3)$ the value drops $8$ over $4$ steps, so it drops $2$ for every step of $1$ in $x$. Going back from $x = 2$ to $x = 0$ is two steps, so the value rises by $4$.
I teach students to use both methods on practice questions, then pick whichever is faster on the test. The equation is safer when the numbers are messy. Counting steps is faster when the points are close together and the slope is a whole number.
Mistakes I see often
- Subtracting in different orders. If $y_2$ is on top first, $x_2$ is on the bottom first.
- Using the slope as the intercept. Find $b$ by substituting a point. It is rarely one of the given numbers.
- Not checking the second point. One substitution catches almost every slope mistake.
- Treating a horizontal line as having no slope. Equal $y$-values give slope $0$. Equal $x$-values give a vertical line.
Practice questions
Check every equation with the second point.
- A$y = 2x + 3$
- B$y = 3x + 2$
- C$y = 2x + 7$
- D$y = 4x + 3$
Show solution
Show solution
- A$y = 2x + 1$
- B$y = 2x + 5$
- C$y = \dfrac{1}{2}x + 4$
- D$y = 8x - 11$
Show solution
Show solution
- A$y = 6x$
- B$y = 3x + 3$
- C$y = 2x + 4$
- D$y = 3x + 6$
Show solution
Show solution
- A$y = -\dfrac{2}{3}x$
- B$y = -\dfrac{3}{2}x$
- C$y = \dfrac{2}{3}x$
- D$y = -\dfrac{2}{3}x + 2$
Show solution
Show solution
- A$-2$
- B$-1$
- C$1$
- D$2$
Show solution
Show solution
Find your exact gaps
A free practice test shows which Algebra questions you miss.
Practice this for free