5.2 Slope, Rate of Change & Graphing Lines

Key Takeaways

  • Slope ($m$) quantifies the steepness and direction of a straight line, defined as the ratio of vertical change (rise, $\Delta y$) to horizontal change (run, $\Delta x$): $m = \frac{y_2 - y_1}{x_2 - x_1}$.
  • There are four distinct slope categories: positive (rises from left to right), negative (falls from left to right), zero (horizontal line with equation $y = c$), and undefined (vertical line with equation $x = c$).
  • The slope formula requires consistent point ordering in both numerator and denominator; subtracting $y$-coordinates in one order and $x$-coordinates in reverse creates an erroneous sign flip.
  • In real-world applications, slope represents a constant unit rate of change, expressing units of output per unit of input (e.g., dollars per hour, feet per second, gallons per mile).
  • Any linear equation can be graphed by plotting a known starting point and using the slope ratio $\frac{\text{rise}}{\text{run}}$ to locate subsequent points, or by calculating a table of coordinate values.
Last updated: September 2026

Slope, Rate of Change & Graphing Lines

Quick Summary: Slope ($m$) is the fundamental measure of steepness and direction for a linear relationship, calculated as $m = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1}$. Lines with positive slope rise from left to right, while negative slope lines fall. Horizontal lines have a slope of $0$ ($y = c$), and vertical lines have an undefined slope ($x = c$) due to division by zero.

In algebra and coordinate geometry, linearity is defined by a constant rate of change. Whether analyzing the speed of a vehicle, the depreciation of equipment, or the cost per gallon of gasoline, slope provides the quantitative connection between two changing variables.


The Concept of Slope ($m$)

Slope measures how rapidly the dependent variable ($y$) changes relative to a unit change in the independent variable ($x$). Geometrically, it describes the tilt or incline of a line across the Cartesian coordinate plane.

m=Vertical ChangeHorizontal Change=RiseRun=ΔyΔxm = \frac{\text{Vertical Change}}{\text{Horizontal Change}} = \frac{\text{Rise}}{\text{Run}} = \frac{\Delta y}{\Delta x}

  • Rise ($\Delta y$): The vertical difference between two points ($y_2 - y_1$). Moving upward represents a positive rise; moving downward represents a negative rise.
  • Run ($\Delta x$): The horizontal difference between two points ($x_2 - x_1$). Moving right represents a positive run; moving left represents a negative run.
                                  (x₂, y₂)
                                    ▲
                                   /│
                                  / │
                                 /  │  Rise = Δy = y₂ - y₁
                                /   │  (Vertical change)
                               /    │
                      (x₁, y₁)┌─────▼
                              ◄─────►
                         Run = Δx = x₂ - x₁
                         (Horizontal change)

The Four Types of Slope

Every straight line on the coordinate plane falls into one of four distinct slope categories:

   1. Positive Slope (m > 0)          2. Negative Slope (m < 0)
          y                                  y
          │     ▲                            │  ▲
          │    /                             │   \
          │   /  Rises                       │    \  Falls
     ─────┼──/──────► x                 ─────┼─────\────► x
          │ /                                │      \
          │/                                 │       ▼
          
   3. Zero Slope (m = 0)              4. Undefined Slope (m = undef)
          y                                  y
          │                                  │   ▲
          │  Horizontal Line                 │   │ Vertical Line
     ─────┼─────────────────► x         ─────┼───┼────────► x
          │  Equation: y = c                 │   │ Equation: x = c
          │  Rise = 0, Run ≠ 0               │   │ Rise ≠ 0, Run = 0
          │  m = 0 / Δx = 0                  │   ▼ m = Δy / 0 = UNDEFINED

Detailed Comparison Table

Slope TypeSign / ValueGraph BehaviorStandard EquationFunction Status
Positive Slope$m > 0$Rises from lower-left to upper-right as $x$ increases$y = mx + b$ ($m > 0$)Valid Function
Negative Slope$m < 0$Falls from upper-left to lower-right as $x$ increases$y = mx + b$ ($m < 0$)Valid Function
Zero Slope$m = 0$Perfectly horizontal; no vertical change$y = c$ (e.g., $y = 4$)Valid Function (Constant)
Undefined Slope$\text{Undefined}$Perfectly vertical; no horizontal change$x = c$ (e.g., $x = -3$)NOT a Function (Fails VLT)

The Algebraic Slope Formula

Given any two distinct coordinate points on a line, $(x_1, y_1)$ and $(x_2, y_2)$ where $x_1 \neq x_2$, the slope $m$ is calculated using the official Slope Formula:

m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}

Essential Rules for Applying the Slope Formula

  1. Consistent Point Ordering: You may assign either point as $(x_1, y_1)$ and the other as $(x_2, y_2)$, but you must subtract in the exact same sequence: m=y2y1x2x1=y1y2x1x2m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{y_1 - y_2}{x_1 - x_2} Trap: Subtracting $y$-values in one order and $x$-values in the reverse order (e.g., $\frac{y_2 - y_1}{x_1 - x_2}$) produces the opposite sign and is mathematically invalid.
  2. Handling Double Negatives: When subtracting a negative coordinate, enclose it in parentheses to properly execute the sign change: $y_2 - (-y_1) = y_2 + y_1$.
  3. Simplifying Fractions: Always express slope as a fully simplified proper or improper fraction (e.g., $\frac{3}{4}$ or $-\frac{5}{2}$), rather than a rounded decimal, unless requested in a specific real-world context.

Step-by-Step Worked Examples

Example 1: Standard Two-Point Slope Calculation

Find the slope of the line passing through $(-3, 8)$ and $(5, -4)$.

  1. Assign coordinates: $(x_1, y_1) = (-3, 8)$ and $(x_2, y_2) = (5, -4)$.
  2. Set up the slope formula: m=485(3)m = \frac{-4 - 8}{5 - (-3)}
  3. Simplify numerator and denominator: m=125+3=128m = \frac{-12}{5 + 3} = \frac{-12}{8}
  4. Reduce the fraction by dividing by $\gcd(12, 8) = 4$: m=32m = -\frac{3}{2}

Example 2: Horizontal Line Slope Verification

Find the slope of the line passing through $(-4, 5)$ and $(7, 5)$.

m=557(4)=011=0m = \frac{5 - 5}{7 - (-4)} = \frac{0}{11} = 0 Since the $y$-coordinates are identical ($y = 5$), the vertical rise is zero. The slope is $0$, representing a horizontal line.

Example 3: Vertical Line Slope Verification

Find the slope of the line passing through $(6, -2)$ and $(6, 9)$.

m=9(2)66=110=Undefinedm = \frac{9 - (-2)}{6 - 6} = \frac{11}{0} = \text{Undefined} Because division by zero is undefined in real arithmetic, the slope is undefined, representing a vertical line with equation $x = 6$.

Loading diagram...
Four Slope Classifications and Equation Structures

Slope as a Real-World Rate of Change

In applied word problems on the HiSET, slope represents the constant rate of change of one physical quantity with respect to another:

Rate of Change=Change in Output Quantity (with units)Change in Input Quantity (with units)\text{Rate of Change} = \frac{\text{Change in Output Quantity (with units)}}{\text{Change in Input Quantity (with units)}}

Interpreting Slope in Context

  • Distance vs. Time: If distance $d$ (miles) is graphed against time $t$ (hours), the slope represents speed (velocity) in miles per hour (mph).
  • Cost vs. Usage: If total utility bill $C$ (dollars) is graphed against electricity consumed $k$ (kilowatt-hours), the slope represents the unit price per kWh.
  • Fluid Depletion: If water remaining in a reservoir $V$ (gallons) decreases over time $t$ (minutes), the slope is negative, representing the drainage rate in gallons per minute.

Worked Example: Vehicle Fuel Depletion Rate

A delivery truck driver starts a route with $32\text{ gallons}$ of fuel at odometer reading $120\text{ miles}$. After driving to odometer reading $330\text{ miles}$, the fuel tank contains $18\text{ gallons}$. What is the vehicle's rate of fuel consumption in gallons per mile, and what is its fuel economy in miles per gallon?

  1. Identify the coordinate points $(x = \text{miles}, y = \text{gallons})$: (x1,y1)=(120,32)and(x2,y2)=(330,18)(x_1, y_1) = (120, 32) \quad \text{and} \quad (x_2, y_2) = (330, 18)
  2. Calculate the rate of fuel change (gallons per mile): m=1832330120=14 gallons210 miles=115 gallons per mile0.067 gal/mim = \frac{18 - 32}{330 - 120} = \frac{-14\text{ gallons}}{210\text{ miles}} = -\frac{1}{15}\text{ gallons per mile} \approx -0.067\text{ gal/mi} Interpretation: The truck consumes $\frac{1}{15}$ of a gallon for every mile driven.
  3. Compute fuel economy (miles per gallon): Fuel Economy=ΔxΔy=210 miles14 gallons=15 miles per gallon (mpg)\text{Fuel Economy} = \frac{\Delta x}{|\Delta y|} = \frac{210\text{ miles}}{14\text{ gallons}} = 15\text{ miles per gallon (mpg)}

Graphing Lines: Step-by-Step Techniques

There are two primary methods for graphing a line given a point and slope or an algebraic equation:

Method 1: The Point-Slope Staircase Method

  1. Plot the starting point: Plot the known point $(x_1, y_1)$ or the $y$-intercept $(0, b)$ on the grid.
  2. Interpret the slope fraction: Express $m = \frac{\text{rise}}{\text{run}}$. If $m$ is an integer such as $-3$, write it as $\frac{-3}{1}$.
  3. Count the rise and run:
    • From your starting point, move vertically by the rise (up for positive, down for negative).
    • From that position, move horizontally by the run (always right for a positive denominator).
  4. Plot the second point and draw the line: Plot the new coordinate and use a straightedge to connect the points across the grid with arrows at both ends.

Method 2: The Table of Values Method

  1. Choose at least three convenient input values for $x$ (typically $-2, 0, 2$ or multiples of the slope's denominator to avoid fractions).
  2. Calculate the corresponding $y$-values using the equation.
  3. Plot all ordered pairs and draw the line through them.
Test Your Knowledge

What is the slope of the line that passes through the coordinates (-4, 7) and (6, -8)?

A
B
C
D
Test Your Knowledge

Which of the following statements correctly characterizes the graph of the linear equation x = -5?

A
B
C
D
Test Your Knowledge

A municipal storage tank contained 1,450 gallons of water at 8:00 AM (t = 0 hours). By 2:00 PM (t = 6 hours), the water volume had decreased at a constant rate to 970 gallons. What is the constant rate of change in water volume per hour?

A
B
C
D
Test Your Knowledge

A line with a slope of m = 3/4 passes through the points (-2, y) and (6, 5). What is the value of the unknown coordinate y?

A
B
C
D