Learn on PengiOpenstax Intermediate Algebra 2EChapter 3: Graphs and Functions

Lesson 3.2: Slope of a Line

In this lesson from OpenStax Intermediate Algebra 2E, students learn how to find and interpret the slope of a line using the rise-over-run formula, including calculating slope from a graph, identifying zero slope for horizontal lines, and recognizing undefined slope for vertical lines. The lesson also covers graphing lines using slope and y-intercept, and using slope to identify parallel and perpendicular lines. Real-world applications such as roof pitch and road grades help students connect the concept of slope as a rate of change to everyday contexts.

Section 1

πŸ“˜ Slope of a Line

New Concept

This lesson introduces slope (mm), the measure of a line's steepness, calculated as m=riserunm = \frac{\text{rise}}{\text{run}}. You'll learn to graph lines, interpret real-world applications, and identify parallel or perpendicular relationships using this powerful concept.

What’s next

Next, you'll master this through worked examples, interactive practice cards, and short videos, building your skills for graphing and analyzing lines.

Section 2

Find the Slope of a Line

Property

The slope of a line is m=riserunm = \frac{\text{rise}}{\text{run}}. The rise measures the vertical change and the run measures the horizontal change. To find the slope from a graph, locate two integer-coordinate points, sketch a right triangle between them, and count the rise (vertical change) and run (horizontal change) to form the ratio.

Examples

  • A line passes through (1,2)(1, 2) and (4,8)(4, 8). The rise is 8βˆ’2=68-2=6 and the run is 4βˆ’1=34-1=3. The slope m=63=2m = \frac{6}{3} = 2.
  • From a graph, you count that a line goes down 4 units (rise = -4) for every 2 units it moves to the right (run = 2). The slope is m=βˆ’42=βˆ’2m = \frac{-4}{2} = -2.
  • A roof rises 5 feet for every 15 feet of horizontal distance. The slope (pitch) of the roof is m=515=13m = \frac{5}{15} = \frac{1}{3}.

Explanation

Slope measures a line's steepness. It's the ratio of how much the line goes up or down (rise) for every unit it moves left or right (run). A positive slope goes up from left to right, while a negative slope goes down.

Section 3

Slope Formula

Property

The slope of the line between two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is:

m=y2βˆ’y1x2βˆ’x1m = \frac{y_2 - y_1}{x_2 - x_1}
This formula calculates the ratio of the change in the y-coordinates (rise) to the change in the x-coordinates (run).

Examples

  • Find the slope between (2,3)(2, 3) and (7,9)(7, 9). Using the formula: m=9βˆ’37βˆ’2=65m = \frac{9 - 3}{7 - 2} = \frac{6}{5}.
  • Find the slope between (βˆ’1,5)(-1, 5) and (3,βˆ’3)(3, -3). Using the formula: m=βˆ’3βˆ’53βˆ’(βˆ’1)=βˆ’84=βˆ’2m = \frac{-3 - 5}{3 - (-1)} = \frac{-8}{4} = -2.
  • Find the slope between (βˆ’4,βˆ’2)(-4, -2) and (βˆ’6,8)(-6, 8). Using the formula: m=8βˆ’(βˆ’2)βˆ’6βˆ’(βˆ’4)=10βˆ’2=βˆ’5m = \frac{8 - (-2)}{-6 - (-4)} = \frac{10}{-2} = -5.

Explanation

The slope formula is a way to calculate rise over run without a graph. It finds the vertical distance between points (y2βˆ’y1)(y_2 - y_1) and divides it by the horizontal distance (x2βˆ’x1)(x_2 - x_1) to find the steepness.

Section 4

Slope of Horizontal and Vertical Lines

Property

  • The slope of a horizontal line, y=by=b, is 0.
  • The slope of a vertical line, x=ax=a, is undefined.

Examples

  • The slope of the horizontal line y=6y = 6 is m=0m=0.
  • The slope of the vertical line x=βˆ’2x = -2 is undefined.
  • The slope between points (5,βˆ’1)(5, -1) and (βˆ’3,βˆ’1)(-3, -1) is m=βˆ’1βˆ’(βˆ’1)βˆ’3βˆ’5=0βˆ’8=0m = \frac{-1 - (-1)}{-3 - 5} = \frac{0}{-8} = 0. The line is horizontal.

Explanation

A horizontal line is perfectly flat, so its 'rise' is always 0, making the slope 0. A vertical line is perfectly steep, so its 'run' is 0. Since we can't divide by zero, the slope is called undefined.

Section 5

Graph a Line with a Point and Slope

Property

To graph a line given a point and the slope:

  1. Plot the given point.
  2. Use the slope formula m=riserunm = \frac{\text{rise}}{\text{run}} to identify the rise and the run.
  3. Starting at the given point, count out the rise and run to mark the second point.
  4. Connect the points with a line.

Examples

  • Graph a line through (2,1)(2, 1) with slope m=23m = \frac{2}{3}. Start at (2,1)(2, 1), rise 2 units to (2,3)(2, 3), then run 3 units to (5,3)(5, 3). Connect (2,1)(2, 1) and (5,3)(5, 3).
  • Graph a line through (βˆ’1,4)(-1, 4) with slope m=βˆ’3=βˆ’31m = -3 = \frac{-3}{1}. Start at (βˆ’1,4)(-1, 4), fall 3 units (rise of -3) to (βˆ’1,1)(-1, 1), then run 1 unit to (0,1)(0, 1). Connect the points.
  • Graph a line through (0,βˆ’2)(0, -2) with slope m=12m = \frac{1}{2}. Start at (0,βˆ’2)(0,-2), rise 1 unit to (0,βˆ’1)(0, -1), then run 2 units to (2,βˆ’1)(2, -1). Connect the points.

Explanation

Think of this as giving directions. Start at your known location (the point). The slope tells you where to go next: up or down for the rise, then right for the run. Mark your new spot and draw the line between them.

Section 6

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
When an equation is in this form, the coefficient of xx is the slope, and the constant term is the y-coordinate of the y-intercept.

Examples

  • The equation y=3x+5y = 3x + 5 has a slope m=3m=3 and a y-intercept at (0,5)(0, 5).
  • For 2x+y=72x + y = 7, first solve for y: y=βˆ’2x+7y = -2x + 7. The slope is m=βˆ’2m=-2 and the y-intercept is (0,7)(0, 7).
  • For 8xβˆ’4y=128x - 4y = 12, solve for y: βˆ’4y=βˆ’8x+12-4y = -8x + 12, so y=2xβˆ’3y = 2x - 3. The slope is m=2m=2 and the y-intercept is (0,βˆ’3)(0, -3).

Explanation

This form is a shortcut for graphing. By solving an equation for yy, you can immediately identify the slope (mm) and the starting point on the y-axis (bb). This makes graphing quick and easy without plotting extra points.

Section 7

Choosing a Graphing Method

Property

Strategy for Choosing the Most Convenient Method to Graph a Line:

  • One variable: If the equation is x=ax=a or y=by=b, it is a vertical or horizontal line.
  • yy is isolated: If the equation is in the form y=mx+by=mx+b, use the slope and y-intercept.
  • Ax+By=CAx+By=C form: If xx and yy are on the same side, find the x- and y-intercepts.

Examples

  • For x=5x = 5, the most convenient method is to draw a vertical line passing through 5 on the x-axis.
  • For y=23xβˆ’1y = \frac{2}{3}x - 1, the best method is to use the slope-intercept form. Start at (0,βˆ’1)(0, -1), then rise 2 and run 3.
  • For 3x+4y=123x + 4y = 12, the easiest method is to find the intercepts. The x-intercept is (4,0)(4, 0) and the y-intercept is (0,3)(0, 3).

Explanation

Choosing the right tool makes the job easier. By looking at the equation's structure, you can pick the fastest graphing method instead of always plotting points, which can be slow. This strategy helps you work smarter, not harder.

Section 8

Parallel and Perpendicular Lines

Property

Parallel Lines are lines in the same plane that do not intersect. They 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.

Perpendicular Lines are lines in the same plane that form a right angle. Their slopes are negative reciprocals of each other, meaning m1=βˆ’1m2m_1 = -\frac{1}{m_2}, and their product is βˆ’1-1, so m1β‹…m2=βˆ’1m_1 \cdot m_2 = -1.

Examples

  • The lines y=2x+3y = 2x + 3 and y=2xβˆ’5y = 2x - 5 are parallel because both have a slope of m=2m=2.
  • The lines y=34x+1y = \frac{3}{4}x + 1 and y=βˆ’43x+9y = -\frac{4}{3}x + 9 are perpendicular because their slopes, 34\frac{3}{4} and βˆ’43-\frac{4}{3}, are negative reciprocals.
  • The lines y=5xβˆ’1y = 5x - 1 and y=βˆ’5x+2y = -5x + 2 are neither parallel nor perpendicular because their slopes are not equal and not negative reciprocals.

Book overview

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

Continue this chapter

Chapter 3: Graphs and Functions

  1. Lesson 1

    Lesson 3.1: Graph Linear Equations in Two Variables

  2. Lesson 2Current

    Lesson 3.2: Slope of a Line

  3. Lesson 3

    Lesson 3.3: Find the Equation of a Line

  4. Lesson 4

    Lesson 3.4: Graph Linear Inequalities in Two Variables

  5. Lesson 5

    Lesson 3.5: Relations and Functions

  6. Lesson 6

    Lesson 3.6: Graphs of Functions

Lesson overview

Expand to review the lesson summary and core properties.

Expand

Section 1

πŸ“˜ Slope of a Line

New Concept

This lesson introduces slope (mm), the measure of a line's steepness, calculated as m=riserunm = \frac{\text{rise}}{\text{run}}. You'll learn to graph lines, interpret real-world applications, and identify parallel or perpendicular relationships using this powerful concept.

What’s next

Next, you'll master this through worked examples, interactive practice cards, and short videos, building your skills for graphing and analyzing lines.

Section 2

Find the Slope of a Line

Property

The slope of a line is m=riserunm = \frac{\text{rise}}{\text{run}}. The rise measures the vertical change and the run measures the horizontal change. To find the slope from a graph, locate two integer-coordinate points, sketch a right triangle between them, and count the rise (vertical change) and run (horizontal change) to form the ratio.

Examples

  • A line passes through (1,2)(1, 2) and (4,8)(4, 8). The rise is 8βˆ’2=68-2=6 and the run is 4βˆ’1=34-1=3. The slope m=63=2m = \frac{6}{3} = 2.
  • From a graph, you count that a line goes down 4 units (rise = -4) for every 2 units it moves to the right (run = 2). The slope is m=βˆ’42=βˆ’2m = \frac{-4}{2} = -2.
  • A roof rises 5 feet for every 15 feet of horizontal distance. The slope (pitch) of the roof is m=515=13m = \frac{5}{15} = \frac{1}{3}.

Explanation

Slope measures a line's steepness. It's the ratio of how much the line goes up or down (rise) for every unit it moves left or right (run). A positive slope goes up from left to right, while a negative slope goes down.

Section 3

Slope Formula

Property

The slope of the line between two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is:

m=y2βˆ’y1x2βˆ’x1m = \frac{y_2 - y_1}{x_2 - x_1}
This formula calculates the ratio of the change in the y-coordinates (rise) to the change in the x-coordinates (run).

Examples

  • Find the slope between (2,3)(2, 3) and (7,9)(7, 9). Using the formula: m=9βˆ’37βˆ’2=65m = \frac{9 - 3}{7 - 2} = \frac{6}{5}.
  • Find the slope between (βˆ’1,5)(-1, 5) and (3,βˆ’3)(3, -3). Using the formula: m=βˆ’3βˆ’53βˆ’(βˆ’1)=βˆ’84=βˆ’2m = \frac{-3 - 5}{3 - (-1)} = \frac{-8}{4} = -2.
  • Find the slope between (βˆ’4,βˆ’2)(-4, -2) and (βˆ’6,8)(-6, 8). Using the formula: m=8βˆ’(βˆ’2)βˆ’6βˆ’(βˆ’4)=10βˆ’2=βˆ’5m = \frac{8 - (-2)}{-6 - (-4)} = \frac{10}{-2} = -5.

Explanation

The slope formula is a way to calculate rise over run without a graph. It finds the vertical distance between points (y2βˆ’y1)(y_2 - y_1) and divides it by the horizontal distance (x2βˆ’x1)(x_2 - x_1) to find the steepness.

Section 4

Slope of Horizontal and Vertical Lines

Property

  • The slope of a horizontal line, y=by=b, is 0.
  • The slope of a vertical line, x=ax=a, is undefined.

Examples

  • The slope of the horizontal line y=6y = 6 is m=0m=0.
  • The slope of the vertical line x=βˆ’2x = -2 is undefined.
  • The slope between points (5,βˆ’1)(5, -1) and (βˆ’3,βˆ’1)(-3, -1) is m=βˆ’1βˆ’(βˆ’1)βˆ’3βˆ’5=0βˆ’8=0m = \frac{-1 - (-1)}{-3 - 5} = \frac{0}{-8} = 0. The line is horizontal.

Explanation

A horizontal line is perfectly flat, so its 'rise' is always 0, making the slope 0. A vertical line is perfectly steep, so its 'run' is 0. Since we can't divide by zero, the slope is called undefined.

Section 5

Graph a Line with a Point and Slope

Property

To graph a line given a point and the slope:

  1. Plot the given point.
  2. Use the slope formula m=riserunm = \frac{\text{rise}}{\text{run}} to identify the rise and the run.
  3. Starting at the given point, count out the rise and run to mark the second point.
  4. Connect the points with a line.

Examples

  • Graph a line through (2,1)(2, 1) with slope m=23m = \frac{2}{3}. Start at (2,1)(2, 1), rise 2 units to (2,3)(2, 3), then run 3 units to (5,3)(5, 3). Connect (2,1)(2, 1) and (5,3)(5, 3).
  • Graph a line through (βˆ’1,4)(-1, 4) with slope m=βˆ’3=βˆ’31m = -3 = \frac{-3}{1}. Start at (βˆ’1,4)(-1, 4), fall 3 units (rise of -3) to (βˆ’1,1)(-1, 1), then run 1 unit to (0,1)(0, 1). Connect the points.
  • Graph a line through (0,βˆ’2)(0, -2) with slope m=12m = \frac{1}{2}. Start at (0,βˆ’2)(0,-2), rise 1 unit to (0,βˆ’1)(0, -1), then run 2 units to (2,βˆ’1)(2, -1). Connect the points.

Explanation

Think of this as giving directions. Start at your known location (the point). The slope tells you where to go next: up or down for the rise, then right for the run. Mark your new spot and draw the line between them.

Section 6

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
When an equation is in this form, the coefficient of xx is the slope, and the constant term is the y-coordinate of the y-intercept.

Examples

  • The equation y=3x+5y = 3x + 5 has a slope m=3m=3 and a y-intercept at (0,5)(0, 5).
  • For 2x+y=72x + y = 7, first solve for y: y=βˆ’2x+7y = -2x + 7. The slope is m=βˆ’2m=-2 and the y-intercept is (0,7)(0, 7).
  • For 8xβˆ’4y=128x - 4y = 12, solve for y: βˆ’4y=βˆ’8x+12-4y = -8x + 12, so y=2xβˆ’3y = 2x - 3. The slope is m=2m=2 and the y-intercept is (0,βˆ’3)(0, -3).

Explanation

This form is a shortcut for graphing. By solving an equation for yy, you can immediately identify the slope (mm) and the starting point on the y-axis (bb). This makes graphing quick and easy without plotting extra points.

Section 7

Choosing a Graphing Method

Property

Strategy for Choosing the Most Convenient Method to Graph a Line:

  • One variable: If the equation is x=ax=a or y=by=b, it is a vertical or horizontal line.
  • yy is isolated: If the equation is in the form y=mx+by=mx+b, use the slope and y-intercept.
  • Ax+By=CAx+By=C form: If xx and yy are on the same side, find the x- and y-intercepts.

Examples

  • For x=5x = 5, the most convenient method is to draw a vertical line passing through 5 on the x-axis.
  • For y=23xβˆ’1y = \frac{2}{3}x - 1, the best method is to use the slope-intercept form. Start at (0,βˆ’1)(0, -1), then rise 2 and run 3.
  • For 3x+4y=123x + 4y = 12, the easiest method is to find the intercepts. The x-intercept is (4,0)(4, 0) and the y-intercept is (0,3)(0, 3).

Explanation

Choosing the right tool makes the job easier. By looking at the equation's structure, you can pick the fastest graphing method instead of always plotting points, which can be slow. This strategy helps you work smarter, not harder.

Section 8

Parallel and Perpendicular Lines

Property

Parallel Lines are lines in the same plane that do not intersect. They 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.

Perpendicular Lines are lines in the same plane that form a right angle. Their slopes are negative reciprocals of each other, meaning m1=βˆ’1m2m_1 = -\frac{1}{m_2}, and their product is βˆ’1-1, so m1β‹…m2=βˆ’1m_1 \cdot m_2 = -1.

Examples

  • The lines y=2x+3y = 2x + 3 and y=2xβˆ’5y = 2x - 5 are parallel because both have a slope of m=2m=2.
  • The lines y=34x+1y = \frac{3}{4}x + 1 and y=βˆ’43x+9y = -\frac{4}{3}x + 9 are perpendicular because their slopes, 34\frac{3}{4} and βˆ’43-\frac{4}{3}, are negative reciprocals.
  • The lines y=5xβˆ’1y = 5x - 1 and y=βˆ’5x+2y = -5x + 2 are neither parallel nor perpendicular because their slopes are not equal and not negative reciprocals.

Book overview

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

Continue this chapter

Chapter 3: Graphs and Functions

  1. Lesson 1

    Lesson 3.1: Graph Linear Equations in Two Variables

  2. Lesson 2Current

    Lesson 3.2: Slope of a Line

  3. Lesson 3

    Lesson 3.3: Find the Equation of a Line

  4. Lesson 4

    Lesson 3.4: Graph Linear Inequalities in Two Variables

  5. Lesson 5

    Lesson 3.5: Relations and Functions

  6. Lesson 6

    Lesson 3.6: Graphs of Functions