Slope of a Line

Definition of Slope

The slope of a line measures its steepness and rate of change. Given two points \(A(x_A,y_A)\) and \(B(x_B,y_B)\), the slope \(m\) is defined as:

\[ m = \frac{\Delta y}{\Delta x} = \frac{y_B - y_A}{x_B - x_A} \]

Where \(\Delta y = y_B - y_A\) is the vertical change (rise) and \(\Delta x = x_B - x_A\) is the horizontal change (run).

Slope definition visualization

Special Cases

Horizontal Lines

For horizontal lines, \(y_A = y_B\), so:

\[ m = \frac{0}{x_B - x_A} = 0 \]

The equation of a horizontal line is \(y = \text{constant}\).

Vertical Lines

For vertical lines, \(x_A = x_B\), so:

\[ m = \frac{y_B - y_A}{0} = \text{undefined} \]

The equation of a vertical line is \(x = \text{constant}\).

Example Problems

Example 1: Finding Slopes

Determine slopes of lines through given points:

  1. \(L_1: (2,3), (4,9) \quad m_1 = \frac{9-3}{4-2} = 3\) (rises)
  2. \(L_2: (-1,0), (6,-8) \quad m_2 = \frac{-8-0}{6-(-1)} = -\frac{8}{7}\) (falls)
  3. \(L_3: (-5,1), (-5,3) \quad m_3 = \frac{3-1}{-5-(-5)} = \text{undefined}\) (vertical)
  4. \(L_4: (7,-3), (-5,-3) \quad m_4 = \frac{-3-(-3)}{-5-7} = 0\) (horizontal)
Lines with different slopes

Example 2: Parallel and Perpendicular Lines

Given lines:

Since \(m_1 = m_3\), \(L_1\) and \(L_3\) are parallel. Since \(m_1 \times m_2 = -1\), \(L_1\) and \(L_2\) are perpendicular.

Parallel and perpendicular lines

Interactive Slope Explorer

How to Use the Interactive Graph:

Your browser does not support the canvas element.

Coordinate Input (Alternative to Dragging)

Point A (Blue)

Point B (Blue)

Tip: Drag the blue points on the graph for interactive control!

Slope Calculation

Formula: \(m = \dfrac{y_B - y_A}{x_B - x_A} = \dfrac{\text{Rise}}{\text{Run}}\)

Slope (m): 0.833 = 5/6

Equation of line: y = 5/6x - 1.333

\[y = \frac{5}{6}x - 1.333\]

Exploration Activities

  1. Drag point A or B to create different slopes
  2. Make a horizontal line by dragging points to have the same y-coordinate (\(y_A = y_B\))
  3. Make a vertical line by dragging points to have the same x-coordinate (\(x_A = x_B\))
  4. Create positive slopes (line rises left to right)
  5. Create negative slopes (line falls left to right)
  6. Observe how the rise/run triangle changes
  7. Note that slope = rise/run = (\(y_B - y_A\))/(\(x_B - x_A\))

Related Resources