# What is an equation for the line that passes through the coordinates (-1,2) and (7,6)?

Jan 10, 2017

$\left(y - \textcolor{red}{2}\right) = \textcolor{b l u e}{\frac{1}{2}} \left(x + \textcolor{red}{1}\right)$

Or

$y = \frac{1}{2} x + \frac{5}{2}$

#### Explanation:

We will use the point-slope formula to determine the line passing through these two points.

However, we will need to first calculate the slope which we can do because we have two points.

The slope can be found by using the formula: $m = \frac{\textcolor{red}{{y}_{2}} - \textcolor{b l u e}{{y}_{1}}}{\textcolor{red}{{x}_{2}} - \textcolor{b l u e}{{x}_{1}}}$

Where $m$ is the slope and ($\textcolor{b l u e}{{x}_{1} , {y}_{1}}$) and ($\textcolor{red}{{x}_{2} , {y}_{2}}$) are the two points on the line.

Substituting the two points from the problem gives the result:

$m = \frac{\textcolor{red}{6} - \textcolor{b l u e}{2}}{\textcolor{red}{7} - \textcolor{b l u e}{- 1}}$

$m = \frac{4}{8} = \frac{1}{2}$

Now, having the slope, we can use it and either of the points in the point-slope formula to find the equation of the line we are looking for.

The point-slope formula states: $\left(y - \textcolor{red}{{y}_{1}}\right) = \textcolor{b l u e}{m} \left(x - \textcolor{red}{{x}_{1}}\right)$

Where $\textcolor{b l u e}{m}$ is the slope and $\textcolor{red}{\left(\left({x}_{1} , {y}_{1}\right)\right)}$ is a point the line passes through.

Substituting results in:

$\left(y - \textcolor{red}{2}\right) = \textcolor{b l u e}{\frac{1}{2}} \left(x - \textcolor{red}{- 1}\right)$

$\left(y - \textcolor{red}{2}\right) = \textcolor{b l u e}{\frac{1}{2}} \left(x + \textcolor{red}{1}\right)$

Or, if we want to convert to the more familiar slope-intercept form we can solve for $y$:

$y - \textcolor{red}{2} = \textcolor{b l u e}{\frac{1}{2}} x + \left(\textcolor{b l u e}{\frac{1}{2}} \times \textcolor{red}{1}\right)$

$y - \textcolor{red}{2} = \textcolor{b l u e}{\frac{1}{2}} x + \frac{1}{2}$

$y - \textcolor{red}{2} + 2 = \textcolor{b l u e}{\frac{1}{2}} x + \frac{1}{2} + 2$

$y - 0 = \textcolor{b l u e}{\frac{1}{2}} x + \frac{1}{2} + \frac{4}{2}$

$y = \frac{1}{2} x + \frac{5}{2}$