π Example 307. Writing a Line from Two Points.
Given the points \((3, 7)\) and \((-1, 2)\text{:}\)
-
Write the equation of the line in point-slope form.
-
Solve the equation for \(y\text{.}\)
Solution.
First, find the slope:
\begin{align*}
m \amp = \frac{2 - 7}{-1 - 3} = \frac{-5}{-4} = \frac{5}{4}
\end{align*}
Now plug into the point-slope form using either point:
\begin{align*}
y - 7 \amp = \frac{5}{4}(x - 3) \quad \text{or} \quad y - 2 = \frac{5}{4}(x + 1)
\end{align*}
Solving for \(y\) gives:
\begin{align*}
y \amp = \frac{5}{4}(x - 3) + 7 \quad \text{or} \quad y = \frac{5}{4}(x + 1) + 2
\end{align*}