## Point-Slope Formula

### Learning Outcomes

• Write the equation for a linear function using the point-slope formula

## Point-Slope Form

We previously learned how to find the equation of a line given the slope of the line and a point on the line.  We did this by substituting the slope and point values into the equation $y=mx+b$ and then solving the equation for b.

We will now show you how you can use either use the slope and a point or just two points to define the equation of the line using point-slope form:

$y-{y}_{1}=m\left(x-{x}_{1}\right)$

This is an important formula, as it will be used in other algebra courses and often in calculus to find the equation of a tangent line. We need only one point and the slope of the line to use the formula. After substituting the slope and the coordinates of one point into the formula, we can simplify it and then write the equation in slope-intercept form.

### Point-Slope Form

Given a point $\left({x}_{1},{y}_{1}\right)$ and slope m, point-slope form will give the following equation of a line:

$y-{y}_{1}=m\left(x-{x}_{1}\right)$

Now that we know both the slope-intercept form and the point-slope for linear equations, when we are asked to find an equation for a linear function, we can choose which method to use based on the information we are given and our personal preferences. The information provided may be in the form of a graph, a point and a slope, two points, and so on. Let’s look at the graph of the function f below and determine its equation. We are not given the slope of the line, but we can choose any two points on the line to find the slope. Choose $(0, 7)$ and $(4, 4)$. We can use these points to calculate the slope.

$\begin{array}{l} m & =\dfrac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}\hfill \\ & =\dfrac{4 - 7}{4 - 0}\hfill \\ & =-\dfrac{3}{4} \end{array}$

Now we can substitute the slope and the coordinates of one of the points into point-slope form.

$\begin{array}{l}y-{y}_{1}=m\left(x-{x}_{1}\right)\hfill \\ y - 4=-\dfrac{3}{4}\left(x - 4\right)\hfill \end{array}$

If we want to rewrite the equation in slope-intercept form, we would do the following:

$\begin{array}{l}y - 4=-\dfrac{3}{4}\left(x - 4\right)\hfill \\ y - 4=-\dfrac{3}{4}x+3\hfill \\ \text{ }y=-\dfrac{3}{4}x+7\hfill \end{array}$ If we had wanted to find the equation of the line in slope-intercept form without first using point-slope form, we could have recognized that the line crosses the y-axis when the output value is $7$. Therefore, b = $7$. We now have the initial value b and the slope so we can substitute m and b into slope-intercept form of a line.

The function is $f\left(x\right)=-\dfrac{3}{4}x+7$, and the linear equation would be $y=-\dfrac{3}{4}x+7$.

Let’s take a look at another example like the one above.

### Example

Write an equation for a linear function f given its graph shown below. In our next example, we will start with the slope. Then, we will show how to find the equation of a line when the slope is not given.

### Example

Write the equation of the line with slope $m=-3$ that passes through the point $\left(4,8\right)$. Write the final equation in slope-intercept form.

Now, let’s look at an example in which we start with two points and find the equation of the line that passes through them.

### Example

Find the equation of the line that passes through the points $\left(3,4\right)$ and $\left(0,-3\right)$. Write the final equation in slope-intercept form.

The following video shows how to write the equation for a line given its slope and a point on the line.

This next video shows another example of writing the equation of a line given two points on the line.

Now that we have seen some examples of how to use the point-slope form of a linear equation, let us look briefly at where the point-slope form comes from.

Recall that the formula for the slope of a line is defined as $m=\dfrac{{y}_{2}-{y}_{1}}{{x}_{2}-{x}_{1}}$.  For any two points on the same line, the slope formula will always give us the same value for $m$.  With this in mind, let us rewrite the slope equation as $m=\dfrac{y-{y}_{1}}{x-{x}_{1}}$ where $(x_1, y_1)$ represents a given point on the line and $(x, y)$ represents any other point on our line.  Now, if we multiply both sides of this slope equation by $x-x_1,$ we get the following result:

$m\left(x-{x}_{1}\right)=y-{y}_{1}$

Which is equivalent to our point-slope form:

$y-{y}_{1}=m\left(x-{x}_{1}\right)$

We will conclude this section by looking at an example that provides the points of the function using function notation.

### Example

If f is a linear function, with $f\left(3\right)=-2$ , and $f\left(8\right)=1$, find an equation for the function in slope-intercept form.

In this last video, we show an example of how to write a linear function given two points written with function notation.

## Contribute!

Did you have an idea for improving this content? We’d love your input.