Learn on PengiOpenstax Elementary Algebra 2EChapter 4: Graphs

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

In this lesson from OpenStax Elementary Algebra 2E, students learn to identify the slope and y-intercept directly from an equation written in slope-intercept form (y = mx + b) and use those values to graph a line. The lesson also covers how to use slopes to identify parallel and perpendicular lines, and how to choose the most convenient method for graphing a linear equation. Suitable for high school or college-level introductory algebra, this section builds on prior work with graphing linear equations in two variables.

Section 1

πŸ“˜ Use the Slope-Intercept Form of an Equation of a Line

New Concept

The slope-intercept form, y=mx+by = mx + b, provides a powerful shortcut to understanding and graphing linear equations. It instantly reveals a line's slope (mm) and y-intercept (bb), making it easier to visualize lines and analyze their relationships.

What’s next

Next, you'll work through interactive examples to master graphing with this form and then solve challenge problems involving parallel and perpendicular lines.

Section 2

Slope-Intercept Form

Property

The slope-intercept form of an equation of a line with slope mm and y-intercept, (0,b)(0, b), is

y=mx+by = mx + b

Examples

  • Identify the slope and y-intercept for the line y=βˆ’2x+8y = -2x + 8. The equation is in y=mx+by=mx+b form. The slope mm is βˆ’2-2, and the y-intercept is at (0,8)(0, 8).
  • For the equation 3x+y=73x + y = 7, first solve for yy to get y=βˆ’3x+7y = -3x + 7. Now you can see the slope mm is βˆ’3-3 and the y-intercept is at (0,7)(0, 7).

Section 3

Graphing with Slope and Intercept

Property

To graph a line using its slope and intercept:

  1. Find the slope-intercept form of the equation, y=mx+by = mx + b.
  2. Identify the slope (mm) and y-intercept (bb).
  3. Plot the y-intercept at point (0,b)(0, b).
  4. Use the slope formula m=riserunm = \frac{\text{rise}}{\text{run}} to find a second point by counting from the y-intercept.
  5. Connect the two points with a straight line.

Examples

  • To graph y=3xβˆ’1y = 3x - 1, start by plotting the y-intercept at (0,βˆ’1)(0, -1). The slope m=3m=3 means riserun=31\frac{\text{rise}}{\text{run}} = \frac{3}{1}. From (0,βˆ’1)(0, -1), go up 3 units and right 1 unit to find the next point, (1,2)(1, 2). Connect them.
  • To graph y=βˆ’12x+3y = -\frac{1}{2}x + 3, plot the y-intercept at (0,3)(0, 3). The slope m=βˆ’12m=-\frac{1}{2} means riserun=βˆ’12\frac{\text{rise}}{\text{run}} = \frac{-1}{2}. From (0,3)(0, 3), go down 1 unit and right 2 units to find the point (2,2)(2, 2). Connect them.

Section 4

Choosing Your Graphing Method

Property

To determine the most convenient method to graph a line:

  • For an equation like y=cy = c (e.g., y=5y=5), recognize it as a horizontal line passing through the y-axis at cc.
  • For an equation like x=cx = c (e.g., x=βˆ’2x=-2), recognize it as a vertical line passing through the x-axis at cc.
  • For an equation in Ax+By=CAx + By = C form (e.g., 2x+3y=62x+3y=6), finding the x- and y-intercepts is often easiest.
  • For an equation in y=mx+by = mx + b form (e.g., y=2xβˆ’1y = 2x-1), using the slope and y-intercept is most direct.

Examples

  • For the equation y=5y = 5, the most convenient method is to draw a horizontal line that passes through the y-axis at 5.
  • For the equation 4xβˆ’3y=124x - 3y = 12, finding the intercepts is convenient. If x=0x=0, y=βˆ’4y=-4. If y=0y=0, x=3x=3. Plot (0,βˆ’4)(0, -4) and (3,0)(3, 0) and connect them.

Section 5

Parallel Lines

Property

Parallel lines are lines in the same plane that do not intersect.

  • Parallel lines have the same slope and different y-intercepts.
  • If m1m_1 and m2m_2 are the slopes of two parallel lines, then m1=m2m_1 = m_2.
  • Parallel vertical lines have different x-intercepts.

Examples

  • The lines y=5x+1y = 5x + 1 and y=5xβˆ’3y = 5x - 3 are parallel because they both have a slope of m=5m=5 but have different y-intercepts.
  • To check if 2x+y=72x + y = 7 and y=βˆ’2x+4y = -2x + 4 are parallel, rewrite the first equation as y=βˆ’2x+7y = -2x + 7. Both lines have a slope of m=βˆ’2m=-2 and different y-intercepts, so they are parallel.

Section 6

Perpendicular Lines

Property

Perpendicular lines are lines in the same plane that form a right angle.

  • If m1m_1 and m2m_2 are the slopes of two perpendicular lines, then their slopes are negative reciprocals of each other: m1β‹…m2=βˆ’1m_1 \cdot m_2 = -1 and m1=βˆ’1m2m_1 = -\frac{1}{m_2}.
  • Vertical lines and horizontal lines are always perpendicular to each other.

Examples

  • The lines y=4x+2y = 4x + 2 and y=βˆ’14x+5y = -\frac{1}{4}x + 5 are perpendicular. Their slopes, 44 and βˆ’14-\frac{1}{4}, are negative reciprocals, since 4β‹…(βˆ’14)=βˆ’14 \cdot (-\frac{1}{4}) = -1.
  • To check if xβˆ’3y=9x - 3y = 9 and y=βˆ’3x+1y = -3x + 1 are perpendicular, rewrite the first equation as y=13xβˆ’3y = \frac{1}{3}x - 3. The slopes are 13\frac{1}{3} and βˆ’3-3. Since 13β‹…(βˆ’3)=βˆ’1\frac{1}{3} \cdot (-3) = -1, the lines are perpendicular.

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 5Current

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

  6. Lesson 6

    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

πŸ“˜ Use the Slope-Intercept Form of an Equation of a Line

New Concept

The slope-intercept form, y=mx+by = mx + b, provides a powerful shortcut to understanding and graphing linear equations. It instantly reveals a line's slope (mm) and y-intercept (bb), making it easier to visualize lines and analyze their relationships.

What’s next

Next, you'll work through interactive examples to master graphing with this form and then solve challenge problems involving parallel and perpendicular lines.

Section 2

Slope-Intercept Form

Property

The slope-intercept form of an equation of a line with slope mm and y-intercept, (0,b)(0, b), is

y=mx+by = mx + b

Examples

  • Identify the slope and y-intercept for the line y=βˆ’2x+8y = -2x + 8. The equation is in y=mx+by=mx+b form. The slope mm is βˆ’2-2, and the y-intercept is at (0,8)(0, 8).
  • For the equation 3x+y=73x + y = 7, first solve for yy to get y=βˆ’3x+7y = -3x + 7. Now you can see the slope mm is βˆ’3-3 and the y-intercept is at (0,7)(0, 7).

Section 3

Graphing with Slope and Intercept

Property

To graph a line using its slope and intercept:

  1. Find the slope-intercept form of the equation, y=mx+by = mx + b.
  2. Identify the slope (mm) and y-intercept (bb).
  3. Plot the y-intercept at point (0,b)(0, b).
  4. Use the slope formula m=riserunm = \frac{\text{rise}}{\text{run}} to find a second point by counting from the y-intercept.
  5. Connect the two points with a straight line.

Examples

  • To graph y=3xβˆ’1y = 3x - 1, start by plotting the y-intercept at (0,βˆ’1)(0, -1). The slope m=3m=3 means riserun=31\frac{\text{rise}}{\text{run}} = \frac{3}{1}. From (0,βˆ’1)(0, -1), go up 3 units and right 1 unit to find the next point, (1,2)(1, 2). Connect them.
  • To graph y=βˆ’12x+3y = -\frac{1}{2}x + 3, plot the y-intercept at (0,3)(0, 3). The slope m=βˆ’12m=-\frac{1}{2} means riserun=βˆ’12\frac{\text{rise}}{\text{run}} = \frac{-1}{2}. From (0,3)(0, 3), go down 1 unit and right 2 units to find the point (2,2)(2, 2). Connect them.

Section 4

Choosing Your Graphing Method

Property

To determine the most convenient method to graph a line:

  • For an equation like y=cy = c (e.g., y=5y=5), recognize it as a horizontal line passing through the y-axis at cc.
  • For an equation like x=cx = c (e.g., x=βˆ’2x=-2), recognize it as a vertical line passing through the x-axis at cc.
  • For an equation in Ax+By=CAx + By = C form (e.g., 2x+3y=62x+3y=6), finding the x- and y-intercepts is often easiest.
  • For an equation in y=mx+by = mx + b form (e.g., y=2xβˆ’1y = 2x-1), using the slope and y-intercept is most direct.

Examples

  • For the equation y=5y = 5, the most convenient method is to draw a horizontal line that passes through the y-axis at 5.
  • For the equation 4xβˆ’3y=124x - 3y = 12, finding the intercepts is convenient. If x=0x=0, y=βˆ’4y=-4. If y=0y=0, x=3x=3. Plot (0,βˆ’4)(0, -4) and (3,0)(3, 0) and connect them.

Section 5

Parallel Lines

Property

Parallel lines are lines in the same plane that do not intersect.

  • Parallel lines have the same slope and different y-intercepts.
  • If m1m_1 and m2m_2 are the slopes of two parallel lines, then m1=m2m_1 = m_2.
  • Parallel vertical lines have different x-intercepts.

Examples

  • The lines y=5x+1y = 5x + 1 and y=5xβˆ’3y = 5x - 3 are parallel because they both have a slope of m=5m=5 but have different y-intercepts.
  • To check if 2x+y=72x + y = 7 and y=βˆ’2x+4y = -2x + 4 are parallel, rewrite the first equation as y=βˆ’2x+7y = -2x + 7. Both lines have a slope of m=βˆ’2m=-2 and different y-intercepts, so they are parallel.

Section 6

Perpendicular Lines

Property

Perpendicular lines are lines in the same plane that form a right angle.

  • If m1m_1 and m2m_2 are the slopes of two perpendicular lines, then their slopes are negative reciprocals of each other: m1β‹…m2=βˆ’1m_1 \cdot m_2 = -1 and m1=βˆ’1m2m_1 = -\frac{1}{m_2}.
  • Vertical lines and horizontal lines are always perpendicular to each other.

Examples

  • The lines y=4x+2y = 4x + 2 and y=βˆ’14x+5y = -\frac{1}{4}x + 5 are perpendicular. Their slopes, 44 and βˆ’14-\frac{1}{4}, are negative reciprocals, since 4β‹…(βˆ’14)=βˆ’14 \cdot (-\frac{1}{4}) = -1.
  • To check if xβˆ’3y=9x - 3y = 9 and y=βˆ’3x+1y = -3x + 1 are perpendicular, rewrite the first equation as y=13xβˆ’3y = \frac{1}{3}x - 3. The slopes are 13\frac{1}{3} and βˆ’3-3. Since 13β‹…(βˆ’3)=βˆ’1\frac{1}{3} \cdot (-3) = -1, the lines are perpendicular.

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 5Current

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

  6. Lesson 6

    Lesson 4.6: Find the Equation of a Line

  7. Lesson 7

    Lesson 4.7: Graphs of Linear Inequalities