# 4.7.1: Determining the Equation of a Line

- Page ID
- 4329

## Determining the Equation of a Line

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−Intercept**

**Write an Equation Given Slope and y−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, and then substitute the given values of m and b into the equation. For example, a line with a slope of 4 and a y−intercept of –3 would have the equation y=4x−3.

If you are given just the graph of a line, you can identify the slope and y−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 1/2. Also, you can see that the y−intercept is –2, so the equation of the line is y=1/2x−2.

**Write an Equation Given the Slope and a Point**

**Write an Equation Given the Slope and a Point**

Often, we don’t know the value of the y−intercept, but we know the value of y for a non-zero value of x. 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 y−y_{0}=m(x−x_{0}), where m is the slope and (x_{0},y_{0}) is a point on the line.

**Writing the Equation of a Line in Point-Slope Form **

A line has a slope of 3/5, and the point (2, 6) is on the line. Write the equation of the line in point-slope form.

Start with the formula y−y_{0}=m(x−x_{0}).

Plug in 3/5 for m, 2 for x_{0} and 6 for y_{0}.

**The equation in point-slope form is** y−6=3/5(x−2).

Notice that the equation in point-slope form is not solved for y. If we did solve it for y, we’d have it in y−intercept form. To do that, we would just need to distribute the 35 and add 6 to both sides. That means that the equation of this line in slope-intercept form is y=3/5x−(6/5)+6, or simply y=(3/5)x+24/5.

**Write an Equation Given Two Points**

**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=(y_{2}−y_{1})/(x_{2}−x_{1}), we plug in the x− and y−values of the two points to get m=(2−3)/(5−(−2))=−1/7. We can plug that value of m into the point-slope formula to get y−y_{0}=-1/17(x−x_{0}).

Now we just need to pick one of the two points to plug into the formula. Let’s use (5, 2); that gives us y−2=−1/7(x−5).

What if we’d picked the other point instead? Then we’d have ended up with the equation y−3=−1/7(x+2), 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.

Starting with y−2=−1/7(x−5), we distribute the −1/7 and add 2 to both sides. That gives us y=−1/7x+(5/7)+2, or y=−1/7x+19/7.

On the other hand, if we start with y−3=−1/7(x+2), we need to distribute the −1/7 and add 3 to both sides. That gives us y=−1/7x−(2/7)+3, which also simplifies to y=−1/7x+19/7.

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−intercept form.

**Writing an Equation in y−intercept form **

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−intercept form.

Find the slope of the line: m=(y_{2}−y_{1})/(x_{2}−x_{1})=(4−2)/(−2−3)=−2/5

Plug in the value of the slope: y−y_{0}=−2/5(x−x_{0}).

Plug point (3, 2) into the equation: y−2=−2/5(x−3).

**The equation in point-slope form is** y−2=−2/5(x−3).

To convert to y−intercept form, simply solve for y:

y−2=−2/5(x−3)→y−2=−2/5x+6/5→y=−2/5x+(6/5)+2→y=−2/5x+31/5.

**The equation in y−intercept form is y=−2/5x+31/5.**

**Graph an Equation in Point-Slope Form**

**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 y−y_{0}=m(x−x_{0}), you can just read off the slope m and the point (x_{0},y_{0}). 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.

**Graphing an Equation of a Line **

Make a graph of the line given by the equation y+2=2/3(x−2).

To read off the right values, we need to rewrite the equation slightly: y−(−2)=2/3(x−2). Now we see that point (2, -2) is on the line and that the slope is 23.

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

A slope of 23 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:

**Examples**

Example 4.7.1.1

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−intercept form.

**Solution**

Find the slope of the line: m=(y_{2}−y_{1})/(x_{2}−x_{1})=(−2−0)/(1−0)=−2/1=−2

Plug in the value of the slope: y−y_{0}=-2(x−x_{0}).

Plug point (1, -2) into the equation: y−(−2)=−2(x−1).

**The equation in point-slope form is** y+2=−2(x−1).

To convert to y−intercept form, simply solve for y:

y+2=−2(x−1)→y+2=−2x+2→y=−2x+2−2→y=−2x.

**The equation in y−intercept form is y=−2x.**

**Review**

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

- The line has a slope of 7 and a y−intercept of -2.
- The line has a slope of -5 and a y−intercept of 6.
- The line has a slope of −1/4 and contains the point (4, -1).
- The line contains points (3, 5) and (-3, 0).
- 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.

- m=5,f(0)=−3
- m=−7,f(2)=−1
- m=1/3,f(−1)=2/3
- m=4.2,f(−3)=7.1
- f(14)=3/4,f(0)=5/4
- f(1.5)=−3,f(−1)=2

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

- The line has slope −1/10 and goes through the point (10, 2).
- The line has slope -75 and goes through the point (0, 125).
- The line has slope 10 and goes through the point (8, -2).
- The line goes through the points (-2, 3) and (-1, -2).
- The line contains the points (10, 12) and (5, 25).
- The line goes through the points (2, 3) and (0, 3).
- The line has a slope of 3/5 and a y−intercept of -3.
- The line has a slope of -6 and a y−intercept of 0.5.

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

- m=−1/5 and f(0)=7
- m=−12 and f(−2)=5
- f(−7)=5 and f(3)=−4
- f(6)=0 and f(0)=6
- m=3 and f(2)=−9
- m=−9/5 and f(0)=32

### Review (Answers)

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

### Additional Resources

PLIX: Play, Learn, Interact, eXplore: **Determining the Equation of a Line: Trip Functions**

Video:

Practice: **Determining the Equation of a Line**