Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

6.2: Finding the Equation of a Line

( \newcommand{\kernel}{\mathrm{null}\,}\)

The Slope-Intercept and Point-Slope Forms

In the previous sections we have been given an equation and have constructed the line to which it corresponds. Now, however, suppose we're given some geometric information about the line and we wish to construct the corresponding equation. We wish to find the equation of a line.

We know that the formula for the slope of a line is m=y2y1x2x1. We can find the equation of a line using the slope formula in either of two ways:

1

If we’re given the slope, m, and any point (x1,y1) on the line, we can substitute this information into the formula for slope.
Let (x1,y1) be the known point on the line and let (x,y) be any other point on the line. Then

m=yy1xx1 Multiply both sides by xx1m(xx1)=(xx1)yy1xx1m(xx1)=yy1 For convenience, we'll rewrite the equation. yy1=m(xx1)

Since this equation was derived using a point and the slope of a line, it is called the point-slope form of a line.

2

If we are given the slope, m, y-intercept, (0,b), we can substitute this information into the formula for slope.
Let (0,b) be the y-intercept and (x,y) be any other point on the line. Then,

m=ybx0m=ybx Multiply both sides by xmx=xybxmx=yb Solve for ymx+b=y For convenience, we'll rewrite this equationy=mx+b

Since this equation was derived using the slope and the intercept, it was called the slope-intercept form of a line.

We summarize these two derivations as follows.

Forms of the Equation of a Line

We can find the equation of a line if we’re given either of the following sets of information:

The slope, m, and the y-intercept, (0,b), by substituting these values into:

y=mx+b

This is the slope-intercept form.

The slope, m, and any point (x1,y1), by substituting these values into

yy1=m(xx1)

This is the point-slope form.

Notice that both forms rely on knowing the slope. If we are given two points on the line we may still find the equation of the line passing through them by first finding the slope of the line, then using the point-slope form.

It is customary to use either the slope-intercept form or the general form for the final form of the line. We will use the slope-intercept form as the final form.

Sample Set A

Find the equation of the line using the given information.

Example 6.2.1

m=6, y-intercept (0,4)

Since we're given the slope and the y-intercept, we'll use the slope-intercept form. m=6,b=4.

y=mx+b
y=6x+4

Example 6.2.2

m=34, y-intercept (0,18)

Since we're given the slope and the y-intercept, we'll use the slope-intercept form. m=34,

b=18
y=mx+b
y=34x+18

Example 6.2.3

m=2, the point (4,3).

Since we're given the slope and some point, we'll use the point-slope form.

yy1=m(xx1). Let (x1,y1) be (4,3).
y3=2(x4) Put this equation in slope-intercept form by solving for y.
y3=2x8
y=2x5

Example 6.2.4

m=5, the point (3,0)

Write the equation in slope-intercept form.

Since we're given the slope and some point, we'll use the point-slope form.

yy1=m(xx1) Let (x1,y1) be (3,0)y0=5[x(3)]y=5(x+3) Solve for yy=5x15

Example 6.2.5

m=1, the point (0,7).

Write the equation in slope-intercept form.

We're given the slope and a point, but careful observation reveals that this point is actually the y-intercept. Thus, we'll use the slope-intercept form. If we had not seen this point was the y-intercept we would have proceeded with the point-slope form. This would created slightly more work, but still give the same result.

Slope-Intercept Form:

y=mx+by=1x+7y=x+7

Point-Slope Form:

yy1=m(xx1)y7=1(x0)y7=xy=x+7

Example 6.2.6

The two points (4,1) and (3,5).

Write the equation in slope-intercept form.

Since we're given two points, we'll find the slope first.

m=y2y1x2x1=5134=41=4

Now, we have the slope and two points, we can use either point and the point-slope form.

Using (4,1)

yy1=m(xx1)y1=4(x4)y=4x+17

Using (3,5)

yy1=m(xx1)y5=4(x3)y5=4x+12y=4x+17

We can see that the use of either gives the same result.

Practice Set A

Find the equation of each line given the following information. Use the slope-intercept form as the final form of the equation.

Practice Problem 6.2.1

m=5, y-intercept (0,8).

Answer

y=5x+8

Practice Problem 6.2.2

m=8, y-intercept (0,3).

Answer

y=8x+3

Practice Problem 6.2.3

m=2, y-intercept (0,7).

Answer

y=2x7

Practice Problem 6.2.4

m=1, y-intercept (0,1).

Answer

y=x1

Practice Problem 6.2.5

m=1, y-intercept (0,10).

Answer

y=x10

Practice Problem 6.2.6

m=4,the point (5,2).

Answer

y=4x18

Practice Problem 6.2.7

m=6,the point (1,0).

Answer

y=6x6

Practice Problem 6.2.8

m=1,the point (5,5).

Answer

y=x10

Practice Problem 6.2.9

The two points (4,1) and (6,5)

Answer

y=2x7

Practice Problem 6.2.10

The two points (7,1) and (4,8).

Answer

y=3x+20

Sample Set B

Example 6.2.7

Find the equation of the line passing through the point (4,7) having slope 0.

We're given the slope and some point, so we'll use the point-slope form. With m=0 and x1,y1) as (4,7), we have:

yy1=m(xx1)y(7)=0(x4)y+7=0y=7

This is a horizontal line

Example 6.2.8

Find the equation of the line passing through the point (1,3) given that the line is vertical.

Since the line is vertical, the slope does not exist. Thus, we cannot use either the slope-intercept form or the point-slope form. We must recall what we know about vertical lines. The equation of this line is simply x=1.

Practice Set B

Practice Problem 6.2.11

Find the equation of the line passing throuhg the point (2,9) having slope 0.

Answer

y=9

Practice Problem 6.2.12

Find the equation of the line passing through the point (1,6) given that the line is vertical.

Answer

x=1

Sample Set C

Example 6.2.1

Reading only from the graph, determine the equation of the line.

The slope of the line is 23, and the line crosses the y-axis at the point (0,3). Using the slope-intercept form we get:

y=23x3

A graph of a line sloped up and to the right. The line is labelled 'm equals two thirds', with arrows illustrating an upward change of two units with a horizontal change of three units to the right.

Practice Set C

Practice Problem 6.2.13

Reading only from the graph, determine the equation of the line.

A graph of a line sloped down and to the right. The line crosses the y-axis at y equals four, and appears to approach the x-axis at x equals six.

Answer

y=23x+4

Exercises

 

Suggested exercises for PrePALS: 6.2.39, 6.2.31, 6.2.35, 6.2.37, 6.2.39, 6.2.41, 6.2.42

 

For the following problems, write the equation of the line using the given information in slope-intercept form.

Exercise 6.2.1

m=3, y-intercept (0,4)

Answer

y=3x+4

Exercise 6.2.2

m=2, y-intercept (0,5)

Exercise 6.2.3

m=8, y-intercept (0,1)

Answer

y=8x+1

Exercise 6.2.4

m=5, y-intercept (0,3)

Exercise 6.2.5

m=6, y-intercept (0,1)

Answer

y=6x1

Exercise 6.2.6

m=4, y-intercept (0,0)

Exercise 6.2.7

m=32, y-intercept (0,0)

Answer

y=32x

Exercise 6.2.8

m=3,(1,4)

Exercise 6.2.9

m=1,(3,8)

Answer

y=x+5

Exercise 6.2.10

m=2,(1,4)

Exercise 6.2.11

m=8,(4,0)

Answer

y=8x32

Exercise 6.2.12

m=3,(3,0)

Exercise 6.2.13

m=1,(6,0)

Answer

y=x+6

Exercise 6.2.14

m=6,(0,0)

Exercise 6.2.15

m=2,(0,1)

Answer

y=2x+1

Exercise 6.2.16

(0,0),(3,2)

Exercise 6.2.17

(0,0),(5,8)

Answer

y=85x

Exercise 6.2.18

(4,1),(6,3)

Exercise 6.2.19

(2,5),(1,4)

Answer

y=x+3

Exercise 6.2.20

(5,3),(6,2)

Exercise 6.2.21

(2,3),(5,3)

Answer

y=3 (horizontal line)

Exercise 6.2.22

(1,5),(4,5)

 
Exercise 6.2.23

(4,1),(4,2)

Answer

x=4 (vertical line)

Exercise 6.2.24

(2,7),(2,8)

Exercise 6.2.25

(3,3),(5,5)

Answer

y=x

Exercise 6.2.26

(0,0),(1,1)

Exercise 6.2.27

(2,4),(3,5)

Answer

y=95x+25

Exercise 6.2.28

(1,6),(1,6)

Exercise 6.2.29

(14,12),(9,11)

Answer

y=x2

Exercise 6.2.30

(0,4),(5,0)

For the following problems, read only from the graph and determine the equation of the lines.

Exercise 6.2.31

A graph of a line sloped up and to the right. The line crosses the y-axis at y equals one, and crosses the x-axis and pass through the point one unit below the x-axis and five units to the left of the y-axis.

Answer

y=25x+1

Exercise 6.2.32

A graph of a line sloped up and to the right. The line crosses the y-axis at y equals one, and crosses the x-axis and pass through the point one unit below the x-axis and one unit to the left of the y-axis.

Exercise 6.2.33

A graph of a line sloped up and to the right. The line crosses the y-axis at y equals one, and crosses the x-axis at x equals negative four.

Answer

y=14x+1

Exercise 6.2.34

A graph of a line parallel to x-axis in an xy plane. The line crosses the y-axis at y equals two.

Exercise 6.2.35

A graph of a line parallel to y-axis in an xy plane. The line crosses the x-axis at x equals negative four.

Answer

x=4

Exercise 6.2.36

A graph of a line sloped down and to the right. The line crosses the y-axis at y equals three, and crosses the x-axis at x equals three.

Exercise 6.2.37

A graph of a line sloped down and to the right. The line crosses the y-axis at y equals negative one, and crosses the x-axis and pass through the point four units below the x-axis and one unit to the right of the y-axis .

Answer

y=3x1

Exercises for Review

Exercise 6.2.38

Graph the equation x3=0

A horizontal line with arrows on both ends.

Exercise 6.2.39

Supply the missing word. The point at which a line crosses the y-axis is called the ____

Answer

y-intercept

Exercise 6.2.40

Supply the missing word. The ____ of a line is a measure of the steepness of the line.

Exercise 6.2.41

Find the slope of the line that passes through the points (4,0) and (2,6).

Answer

m=1

Exercise 6.2.42

Graph the equation 3y=2x+3

An xy coordinate plane with gridlines, labeled negative five and five on the both axes.


This page titled 6.2: Finding the Equation of a Line is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Denny Burzynski & Wade Ellis, Jr. (OpenStax CNX) .

Support Center

How can we help?