<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />

# 5.1: Determining the Equation of a Line

Difficulty Level: At Grade Created by: CK-12
Estimated6 minsto complete
%
Progress
Practice Determining the Equation of a Line
Progress
Estimated6 minsto complete
%

Suppose you were given the slope of a line and either its y\begin{align*}y-\end{align*}intercept or one of its points, or were given two of its points. How could you write the equation of that line? After completing this Concept, you'll be able to write and graph equations from such information.

### Watch This

CK-12 Foundation: 0501S Linear Equations (H264)

### Try This

An applet at http://www.cut-the-knot.org/Curriculum/Calculus/StraightLine.shtml lets you create multiple lines and see how they intersect. Each line is defined by two points; you can change the slope of a line by moving either of the points, or just drag the whole line around without changing its slope. To create another line, just click duplicate and then drag one of the lines that are already there.

### Guidance

You are probably aware that many real-world situations can be described with linear graphs and equations. In this lesson, we’ll see how to find equations in a variety of situations.

Write an Equation Given Slope and y\begin{align*}y-\end{align*}Intercept

Recall that you may write an equation in slope–intercept form with a few simple steps: start with the general equation for the slope-intercept form of a line, y=mx+b\begin{align*}y=mx+b\end{align*}, and then substitute the given values of m\begin{align*}m\end{align*} and b\begin{align*}b\end{align*} into the equation. For example, a line with a slope of 4 and a y\begin{align*}y-\end{align*}intercept of –3 would have the equation y=4x3\begin{align*}y=4x-3\end{align*}.

If you are given just the graph of a line, you can identify the slope and y\begin{align*}y-\end{align*}intercept from the graph and write the equation from there. For example, on the graph below you can see that the line rises by 1 unit as it moves 2 units to the right, so its slope is 12\begin{align*}\frac{1}{2}\end{align*}. Also, you can see that the y\begin{align*}y-\end{align*}intercept is –2, so the equation of the line is y=12x2\begin{align*}y=\frac{1}{2} x-2\end{align*}.

Write an Equation Given the Slope and a Point

Often, we don’t know the value of the y\begin{align*}y-\end{align*}intercept, but we know the value of y\begin{align*}y\end{align*} for a non-zero value of x\begin{align*}x\end{align*}. In this case, it’s often easier to write an equation of the line in point-slope form. An equation in point-slope form is written as yy0=m(xx0)\begin{align*}y-y_0=m(x-x_0)\end{align*}, where m\begin{align*}m\end{align*} is the slope and (x0,y0)\begin{align*}(x_0, y_0)\end{align*} is a point on the line.

#### Example A

A line has a slope of 35\begin{align*}\frac{3}{5}\end{align*}, and the point (2, 6) is on the line. Write the equation of the line in point-slope form.

Solution

Start with the formula yy0=m(xx0)\begin{align*}y-y_0=m(x-x_0)\end{align*}.

Plug in 35\begin{align*}\frac{3}{5}\end{align*} for m\begin{align*}m\end{align*}, 2 for x0\begin{align*}x_0\end{align*} and 6 for y0\begin{align*}y_0\end{align*}.

The equation in point-slope form is y6=35(x2)\begin{align*}y-6=\frac{3}{5}(x-2)\end{align*}.

Notice that the equation in point-slope form is not solved for y\begin{align*}y\end{align*}. If we did solve it for y\begin{align*}y\end{align*}, we’d have it in y\begin{align*}y-\end{align*}intercept form. To do that, we would just need to distribute the 35\begin{align*}\frac{3}{5}\end{align*} and add 6 to both sides. That means that the equation of this line in slope-intercept form is y=35x65+6\begin{align*}y=\frac{3}{5}x-\frac{6}{5}+6\end{align*}, or simply y=35x+245\begin{align*}y=\frac{3}{5}x+\frac{24}{5}\end{align*}.

Write an Equation Given Two Points

Point-slope form also comes in useful when we need to find an equation given just two points on a line.

For example, suppose we are told that the line passes through the points (-2, 3) and (5, 2). To find the equation of the line, we can start by finding the slope.

Starting with the slope formula, m=y2y1x2x1\begin{align*}m=\frac{y_2-y_1}{x_2-x_1}\end{align*}, we plug in the x\begin{align*}x-\end{align*} and y\begin{align*}y-\end{align*}values of the two points to get m=235(2)=17\begin{align*}m=\frac{2-3}{5-(-2)}=\frac{-1}{7}\end{align*}. We can plug that value of m\begin{align*}m\end{align*} into the point-slope formula to get yy0=17(xx0)\begin{align*}y-y_0=-\frac{1}{7}(x-x_0)\end{align*}.

Now we just need to pick one of the two points to plug into the formula. Let’s use (5, 2); that gives us y2=17(x5)\begin{align*}y-2=-\frac{1}{7}(x-5)\end{align*}.

What if we’d picked the other point instead? Then we’d have ended up with the equation y3=17(x+2)\begin{align*}y-3=-\frac{1}{7}(x+2)\end{align*}, which doesn’t look the same. That’s because there’s more than one way to write an equation for a given line in point-slope form. But let’s see what happens if we solve each of those equations for y\begin{align*}y\end{align*}.

Starting with y2=17(x5)\begin{align*}y-2=-\frac{1}{7}(x-5)\end{align*}, we distribute the 17\begin{align*}-\frac{1}{7}\end{align*} and add 2 to both sides. That gives us y=17x+57+2\begin{align*}y=-\frac{1}{7} x+\frac{5}{7}+2\end{align*}, or y=17x+197\begin{align*}y=-\frac{1}{7}x+\frac{19}{7}\end{align*}.

On the other hand, if we start with y3=17(x+2)\begin{align*}y-3=-\frac{1}{7}(x+2)\end{align*}, we need to distribute the 17\begin{align*}-\frac{1}{7}\end{align*} and add 3 to both sides. That gives us y=17x27+3\begin{align*}y=-\frac{1}{7}x-\frac{2}{7}+3\end{align*}, which also simplifies to y=17x+197\begin{align*}y=-\frac{1}{7}x+\frac{19}{7}\end{align*}.

So whichever point we choose to get an equation in point-slope form, the equation is still mathematically the same, and we can see this when we convert it to y\begin{align*}y-\end{align*}intercept form.

#### Example B

A line contains the points (3, 2) and (-2, 4). Write an equation for the line in point-slope form; then write an equation in y\begin{align*}y-\end{align*}intercept form.

Solution

Find the slope of the line: m=y2y1x2x1=4223=25\begin{align*}m=\frac{y_2-y_1}{x_2-x_1}=\frac{4-2}{-2-3}=-\frac{2}{5}\end{align*}

Plug in the value of the slope: yy0=25(xx0)\begin{align*}y-y_0=-\frac{2}{5}(x-x_0)\end{align*}.

Plug point (3, 2) into the equation: y2=25(x3)\begin{align*}y-2=-\frac{2}{5}(x-3)\end{align*}.

The equation in point-slope form is y2=25(x3)\begin{align*}y-2=-\frac{2}{5}(x-3)\end{align*}.

To convert to y\begin{align*}y-\end{align*}intercept form, simply solve for y\begin{align*}y\end{align*}:

y2=25(x3)y2=25x+65y=25x+65+2y=25x+315.

The equation in y\begin{align*}y-\end{align*}intercept form is y=25x+315\begin{align*}y=-\frac{2}{5}x+3\frac{1}{5}\end{align*}.

Graph an Equation in Point-Slope Form

Another useful thing about point-slope form is that you can use it to graph an equation without having to convert it to slope-intercept form. From the equation yy0=m(xx0)\begin{align*}y-y_0=m(x-x_0)\end{align*}, you can just read off the slope m\begin{align*}m\end{align*} and the point (x0,y0)\begin{align*}(x_0, y_0)\end{align*}. To draw the graph, all you have to do is plot the point, and then use the slope to figure out how many units up and over you should move to find another point on the line.

#### Example C

Make a graph of the line given by the equation y+2=23(x2)\begin{align*}y+2=\frac{2}{3}(x-2)\end{align*}.

Solution

To read off the right values, we need to rewrite the equation slightly: y(2)=23(x2)\begin{align*}y-(-2)=\frac{2}{3}(x-2)\end{align*}. Now we see that point (2, -2) is on the line and that the slope is 23\begin{align*}\frac{2}{3}\end{align*}.

First plot point (2, -2) on the graph:

A slope of 23\begin{align*}\frac{2}{3}\end{align*} tells you that from that point you should move 2 units up and 3 units to the right and draw another point:

Now draw a line through the two points and extend it in both directions:

Watch this video for help with the Examples above.

CK-12 Foundation: Linear Equations

### Guided Practice

A line contains the points (1, -2) and (0, 0). Write an equation for the line in point-slope form; then write an equation in y\begin{align*}y-\end{align*}intercept form.

Solution

Find the slope of the line: m=y2y1x2x1=2010=21=2\begin{align*}m=\frac{y_2-y_1}{x_2-x_1}=\frac{-2-0}{1-0}=\frac{-2}{1}=-2\end{align*}

Plug in the value of the slope: yy0=2(xx0)\begin{align*}y-y_0=-2(x-x_0)\end{align*}.

Plug point (1, -2) into the equation: y(2)=2(x1)\begin{align*}y-(-2)=-2(x-1)\end{align*}.

The equation in point-slope form is y+2=2(x1)\begin{align*}y+2=-2(x-1)\end{align*}.

To convert to y\begin{align*}y-\end{align*}intercept form, simply solve for y\begin{align*}y\end{align*}:

y+2=2(x1)y+2=2x+2y=2x+22y=2x.

The equation in y\begin{align*}y-\end{align*}intercept form is y=2x\begin{align*}y=-2x\end{align*}.

### Explore More

Find the equation of each line in slope–intercept form.

1. The line has a slope of 7 and a y\begin{align*}y-\end{align*}intercept of -2.
2. The line has a slope of -5 and a y\begin{align*}y-\end{align*}intercept of 6.
3. The line has a slope of 14\begin{align*}-\frac{1}{4}\end{align*} and contains the point (4, -1).
4. The line contains points (3, 5) and (-3, 0).
5. The line contains points (10, 15) and (12, 20).

Write the equation of each line in slope-intercept form.

Find the equation of each linear function in slope–intercept form.

1. m=5,f(0)=3\begin{align*}m=5, f(0)=-3\end{align*}
2. m=7,f(2)=1\begin{align*}m=-7, f(2)=-1\end{align*}
3. m=13,f(1)=23\begin{align*}m=\frac{1}{3}, f(-1)=\frac{2}{3}\end{align*}
4. m=4.2,f(3)=7.1\begin{align*}m=4.2, f(-3)=7.1\end{align*}
5. f(14)=34,f(0)=54\begin{align*}f \left(\frac{1}{4}\right)=\frac{3}{4}, f(0)=\frac{5}{4}\end{align*}
6. f(1.5)=3,f(1)=2\begin{align*}f(1.5)=-3, f(-1)=2\end{align*}

Write the equation of each line in point-slope form.

1. The line has slope 110\begin{align*}-\frac{1}{10}\end{align*} and goes through the point (10, 2).
2. The line has slope -75 and goes through the point (0, 125).
3. The line has slope 10 and goes through the point (8, -2).
4. The line goes through the points (-2, 3) and (-1, -2).
5. The line contains the points (10, 12) and (5, 25).
6. The line goes through the points (2, 3) and (0, 3).
7. The line has a slope of 35\begin{align*}\frac{3}{5}\end{align*} and a y\begin{align*}y-\end{align*}intercept of -3.
8. The line has a slope of -6 and a y\begin{align*}y-\end{align*}intercept of 0.5.

Write the equation of each linear function in point-slope form.

1. m=15\begin{align*}m=-\frac{1}{5}\end{align*} and f(0)=7\begin{align*}f(0)=7\end{align*}
2. m=12\begin{align*}m=-12\end{align*} and f(2)=5\begin{align*}f(-2)=5\end{align*}
3. f(7)=5\begin{align*}f(-7)=5\end{align*} and f(3)=4\begin{align*}f(3)=-4\end{align*}
4. f(6)=0\begin{align*}f(6)=0\end{align*} and f(0)=6\begin{align*}f(0)=6\end{align*}
5. m=3\begin{align*}m=3\end{align*} and f(2)=9\begin{align*}f(2)=-9\end{align*}
6. m=95\begin{align*}m=-\frac{9}{5}\end{align*} and f(0)=32\begin{align*}f(0)=32\end{align*}

### Answers for Explore More Problems

To view the Explore More answers, open this PDF file and look for section 5.1.

## Date Created:

Aug 13, 2012

Jan 31, 2016
Save or share your relevant files like activites, homework and worksheet.
To add resources, you must be the owner of the Modality. Click Customize to make your own copy.