Learn on PengiOpenstax Elementary Algebra 2EChapter 4: Graphs

Lesson 4.6: Find the Equation of a Line

In this lesson from OpenStax Elementary Algebra 2E, Chapter 4, students learn how to find the equation of a line using slope-intercept form (y = mx + b) and point-slope form (y − y₁ = m(x − x₁)). Students practice writing linear equations given the slope and y-intercept, the slope and a single point, or two points, as well as finding equations for parallel and perpendicular lines. The lesson connects these algebraic skills to real-world linear modeling in science, economics, and engineering.

Section 1

📘 Find the Equation of a Line

New Concept

In this lesson, you'll learn to write the equation of a line using different starting points. We'll master two key forms: the slope-intercept form, y=mx+by = mx + b, and the point-slope form, yy1=m(xx1)y - y_1 = m(x - x_1).

What’s next

Soon, we’ll work through examples for each method. You will then apply these skills in a series of practice cards and challenge problems.

Section 2

Equation from slope and y-intercept

Property

We can easily determine the slope and intercept of a line if the equation was written in slope-intercept form, y=mx+by = mx + b.
Now, we will do the reverse—we will start with the slope and y-intercept and use them to find the equation of the line.
To find an equation of a line with a given slope and y-intercept, substitute the slope (mm) and the y-coordinate of the y-intercept (bb) into the slope-intercept form, y=mx+by = mx + b.

Examples

  • Find the equation of a line with slope 4 and y-intercept (0,2)(0, 2). We substitute m=4m=4 and b=2b=2 into y=mx+by = mx + b to get the equation y=4x+2y = 4x + 2.
  • Find the equation of a line with slope 5-5 and y-intercept (0,1)(0, -1). We substitute m=5m=-5 and b=1b=-1 into y=mx+by = mx + b to get the equation y=5x1y = -5x - 1.

Section 3

Point-slope form of an equation

Property

The point-slope form of an equation of a line with slope mm and containing the point (x1,y1)(x_1, y_1) is

yy1=m(xx1)y - y_1 = m(x - x_1)

We can use the point-slope form of an equation to find an equation of a line when we are given the slope and one point.

Examples

  • A line has a slope of 5 and passes through the point (2,8)(2, 8). Its equation in point-slope form is y8=5(x2)y - 8 = 5(x - 2).
  • A line has a slope of 34-\frac{3}{4} and passes through the point (4,1)(-4, 1). Its equation is y1=34(x(4))y - 1 = -\frac{3}{4}(x - (-4)), which simplifies to y1=34(x+4)y - 1 = -\frac{3}{4}(x + 4).

Section 4

Equation from slope and a point

Property

To find an equation of a line with a given slope and a point, substitute the slope and the coordinates of the point into the point-slope form, yy1=m(xx1)y - y_1 = m(x - x_1). Then, rewrite the equation in slope-intercept form, y=mx+by = mx + b.

Examples

  • Find the equation of a line with slope 3 that contains the point (2,5)(2, 5). Start with y5=3(x2)y - 5 = 3(x - 2). Distribute to get y5=3x6y - 5 = 3x - 6. The final equation is y=3x1y = 3x - 1.
  • Find the equation of a line with slope m=12m = \frac{1}{2} that passes through (6,2)(6, -2). Start with y(2)=12(x6)y - (-2) = \frac{1}{2}(x - 6). Simplify to y+2=12x3y + 2 = \frac{1}{2}x - 3. The final equation is y=12x5y = \frac{1}{2}x - 5.

Section 5

Equation from two points

Property

When given two points, first find the slope using the formula m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}. Then, choose one of the points and use the point-slope form, yy1=m(xx1)y - y_1 = m(x - x_1), to find the equation. Finally, write the equation in slope-intercept form.

Examples

  • Find the equation of a line passing through (2,3)(2, 3) and (4,7)(4, 7). First, find the slope: m=7342=42=2m = \frac{7-3}{4-2} = \frac{4}{2} = 2. Using the point (2,3)(2, 3), we have y3=2(x2)y - 3 = 2(x - 2). The final equation is y=2x1y = 2x - 1.
  • Find the equation of a line passing through (1,5)(-1, 5) and (3,3)(3, -3). First, find the slope: m=353(1)=84=2m = \frac{-3-5}{3-(-1)} = \frac{-8}{4} = -2. Using the point (1,5)(-1, 5), we have y5=2(x(1))y - 5 = -2(x - (-1)). The final equation is y=2x+3y = -2x + 3.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 4: Graphs

  1. Lesson 1

    Lesson 4.1: Use the Rectangular Coordinate System

  2. Lesson 2

    Lesson 4.2: Graph Linear Equations in Two Variables

  3. Lesson 3

    Lesson 4.3: Graph with Intercepts

  4. Lesson 4

    Lesson 4.4: Understand Slope of a Line

  5. Lesson 5

    Lesson 4.5: Use the Slope-Intercept Form of an Equation of a Line

  6. Lesson 6Current

    Lesson 4.6: Find the Equation of a Line

  7. Lesson 7

    Lesson 4.7: Graphs of Linear Inequalities

Lesson overview

Expand to review the lesson summary and core properties.

Expand

Section 1

📘 Find the Equation of a Line

New Concept

In this lesson, you'll learn to write the equation of a line using different starting points. We'll master two key forms: the slope-intercept form, y=mx+by = mx + b, and the point-slope form, yy1=m(xx1)y - y_1 = m(x - x_1).

What’s next

Soon, we’ll work through examples for each method. You will then apply these skills in a series of practice cards and challenge problems.

Section 2

Equation from slope and y-intercept

Property

We can easily determine the slope and intercept of a line if the equation was written in slope-intercept form, y=mx+by = mx + b.
Now, we will do the reverse—we will start with the slope and y-intercept and use them to find the equation of the line.
To find an equation of a line with a given slope and y-intercept, substitute the slope (mm) and the y-coordinate of the y-intercept (bb) into the slope-intercept form, y=mx+by = mx + b.

Examples

  • Find the equation of a line with slope 4 and y-intercept (0,2)(0, 2). We substitute m=4m=4 and b=2b=2 into y=mx+by = mx + b to get the equation y=4x+2y = 4x + 2.
  • Find the equation of a line with slope 5-5 and y-intercept (0,1)(0, -1). We substitute m=5m=-5 and b=1b=-1 into y=mx+by = mx + b to get the equation y=5x1y = -5x - 1.

Section 3

Point-slope form of an equation

Property

The point-slope form of an equation of a line with slope mm and containing the point (x1,y1)(x_1, y_1) is

yy1=m(xx1)y - y_1 = m(x - x_1)

We can use the point-slope form of an equation to find an equation of a line when we are given the slope and one point.

Examples

  • A line has a slope of 5 and passes through the point (2,8)(2, 8). Its equation in point-slope form is y8=5(x2)y - 8 = 5(x - 2).
  • A line has a slope of 34-\frac{3}{4} and passes through the point (4,1)(-4, 1). Its equation is y1=34(x(4))y - 1 = -\frac{3}{4}(x - (-4)), which simplifies to y1=34(x+4)y - 1 = -\frac{3}{4}(x + 4).

Section 4

Equation from slope and a point

Property

To find an equation of a line with a given slope and a point, substitute the slope and the coordinates of the point into the point-slope form, yy1=m(xx1)y - y_1 = m(x - x_1). Then, rewrite the equation in slope-intercept form, y=mx+by = mx + b.

Examples

  • Find the equation of a line with slope 3 that contains the point (2,5)(2, 5). Start with y5=3(x2)y - 5 = 3(x - 2). Distribute to get y5=3x6y - 5 = 3x - 6. The final equation is y=3x1y = 3x - 1.
  • Find the equation of a line with slope m=12m = \frac{1}{2} that passes through (6,2)(6, -2). Start with y(2)=12(x6)y - (-2) = \frac{1}{2}(x - 6). Simplify to y+2=12x3y + 2 = \frac{1}{2}x - 3. The final equation is y=12x5y = \frac{1}{2}x - 5.

Section 5

Equation from two points

Property

When given two points, first find the slope using the formula m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}. Then, choose one of the points and use the point-slope form, yy1=m(xx1)y - y_1 = m(x - x_1), to find the equation. Finally, write the equation in slope-intercept form.

Examples

  • Find the equation of a line passing through (2,3)(2, 3) and (4,7)(4, 7). First, find the slope: m=7342=42=2m = \frac{7-3}{4-2} = \frac{4}{2} = 2. Using the point (2,3)(2, 3), we have y3=2(x2)y - 3 = 2(x - 2). The final equation is y=2x1y = 2x - 1.
  • Find the equation of a line passing through (1,5)(-1, 5) and (3,3)(3, -3). First, find the slope: m=353(1)=84=2m = \frac{-3-5}{3-(-1)} = \frac{-8}{4} = -2. Using the point (1,5)(-1, 5), we have y5=2(x(1))y - 5 = -2(x - (-1)). The final equation is y=2x+3y = -2x + 3.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 4: Graphs

  1. Lesson 1

    Lesson 4.1: Use the Rectangular Coordinate System

  2. Lesson 2

    Lesson 4.2: Graph Linear Equations in Two Variables

  3. Lesson 3

    Lesson 4.3: Graph with Intercepts

  4. Lesson 4

    Lesson 4.4: Understand Slope of a Line

  5. Lesson 5

    Lesson 4.5: Use the Slope-Intercept Form of an Equation of a Line

  6. Lesson 6Current

    Lesson 4.6: Find the Equation of a Line

  7. Lesson 7

    Lesson 4.7: Graphs of Linear Inequalities