[Math] Linear equations; how to write an equation from given coordinates

algebra-precalculusanalytic geometrycoordinate systems

A straight line goes through the points $( 0, 1 )$, $( 2, 7 )$ and $( 4, 13 )$
and I need to write the equation of this straight line. How do you write equations?

I know you have it's usually $y = x \text{(something)} + \text{something}$.

Is it trial and error or is there a better way? We just got introduced to linear equations so it's new, I know how to work out the coordinates to make a line but I'm not sure on how to write the equation from coordinates.

Best Answer

First, you only need two of those points. Let's take the first two, and make the identifications: $$(x_1,y_1) = (0,1)$$ $$ (x_2,y_2) = (2,7)$$

Then we use the slope formula: $$m = \dfrac{y_2-y_1}{x_2-x_1}$$

Finally, we plug all this into the "point slope" formula, and simplify as necessary: $$y-y_1 = m(x-x_1)$$

Related Question