Mathematics.

linear functions

Slope of a Line

Algebra I45 minDifficulty2 out of 10

You should know: coordinate plane

Overview

Slope is a number that measures the steepness and direction of a line: how much the y-value changes for every unit increase in x. It is the discrete, algebraic ancestor of the derivative — a constant rate of change rather than an instantaneous one — and it is the single most important number describing a linear relationship between two variables. Slope tells you whether a line rises or falls, how steeply, and lets you write the equation of any line given just a point and a direction.

Intuition

Imagine hiking up a trail. Slope is what your legs feel: for every step forward (run), how many feet do you climb or descend (rise)? A steep mountain trail has a large slope; a flat sidewalk has a slope near zero; a trail that goes downhill has negative slope. Crucially, slope is CONSTANT along a straight line — no matter which two points on the line you pick, the ratio of rise to run is always the same. That constancy is exactly what makes a line 'linear': the rate of change never varies.

Interactive Graph

Drag two points to see the slope update in real time

Loading visualization…

Formal Definition

Definition

Given any two distinct points on a non-vertical line, the slope is the ratio of the change in y to the change in x between them:

m=y2y1x2x1,x1x2m = \frac{y_2 - y_1}{x_2 - x_1}, \quad x_1 \neq x_2

The rise (Δy) over the run (Δx) between two points (x₁,y₁) and (x₂,y₂)

Slope formula
m=ΔyΔxm = \frac{\Delta y}{\Delta x}

Shorthand notation using Δ (delta) for 'change in'

Notation

NotationMeaning
mmConventional symbol for slope
ΔyΔx\frac{\Delta y}{\Delta x}Rise over run — the change in y divided by the change in x

Derivation

Slope is well-defined (i.e. gives the same value no matter which two points on the line you choose) because similar right triangles formed along the line always have proportional sides. Here's why picking a third point C on the same line as A and B gives the same ratio:

Let A(x1,y1), B(x2,y2), C(x3,y3) all lie on the same line.\text{Let } A(x_1,y_1),\ B(x_2,y_2),\ C(x_3,y_3) \text{ all lie on the same line.}

Setup

ABDACE (right triangles formed by horizontal/vertical legs)\triangle ABD \sim \triangle ACE \text{ (right triangles formed by horizontal/vertical legs)}

The triangles formed by dropping horizontal and vertical legs from each pair of points are similar, since they share the same angle of inclination with the horizontal

y2y1x2x1=y3y1x3x1\frac{y_2-y_1}{x_2-x_1} = \frac{y_3-y_1}{x_3-x_1}

Similar triangles have proportional corresponding sides, so the rise/run ratio is identical regardless of which two points are chosen

Proofs

Slope determines a unique line through a given point
  1. Let m be a fixed real number and (x1,y1) a fixed point.\text{Let } m \text{ be a fixed real number and } (x_1,y_1) \text{ a fixed point.}(Given)
  2. For any point (x,y) on the desired line, yy1xx1=m.\text{For any point } (x,y) \text{ on the desired line, } \frac{y-y_1}{x-x_1} = m.(Definition of slope between (x₁,y₁) and (x,y))
  3. yy1=m(xx1)y - y_1 = m(x-x_1)(Multiply both sides by (x - x₁), valid since x ≠ x₁)
  4. This is a linear equation, so its solution set is exactly one line.\text{This is a linear equation, so its solution set is exactly one line.}(A linear equation in x and y has a straight-line graph, and this equation is satisfied by exactly the points collinear with (x₁,y₁) at slope m)

Properties

Point-slope form

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

Parallel lines

l1l2    m1=m2l_1 \parallel l_2 \iff m_1 = m_2

Perpendicular lines

l1l2    m1m2=1 (m1,m20)l_1 \perp l_2 \iff m_1 \cdot m_2 = -1 \ (m_1, m_2 \neq 0)

Horizontal line

m=0m = 0

Vertical line

slope is undefined (division by Δx=0)\text{slope is undefined (division by } \Delta x = 0\text{)}

Sign convention

m>0line rises left-to-right;m<0line falls left-to-rightm > 0 \Rightarrow \text{line rises left-to-right}; \quad m < 0 \Rightarrow \text{line falls left-to-right}

Applications

On a position-vs-time graph, slope represents velocity; on a velocity-vs-time graph, slope represents acceleration.

Animation

Animates a right triangle 'staircase' sliding along a line, showing the rise and run legs staying in constant proportion no matter where along the line the triangle is placed — illustrating why slope is a single well-defined number for any line.

Worked Examples

  1. Apply the slope formula.

    m=11241=93m = \frac{11-2}{4-1} = \frac{9}{3}

Answer: m = 3

Practice Problems

Difficulty 2/10

Find the slope of the line through (2, -3) and (6, 5).

Difficulty 3/10

A line has slope -1/3. Which slope would make a second line perpendicular to it?

Difficulty 4/10

A wheelchair ramp rises 2 feet over a horizontal run of 24 feet. Find its slope as a decimal and as a percent grade.

Common Mistakes

Common Mistake

Computing slope as (x₂-x₁)/(y₂-y₁) — inverting rise and run.

Slope is always Δy/Δx = (y₂-y₁)/(x₂-x₁) — the change in the OUTPUT (y) over the change in the INPUT (x), never the reverse.

Common Mistake

Believing a vertical line has a slope of 0.

A vertical line has UNDEFINED slope (division by zero, since Δx = 0). A HORIZONTAL line has slope 0 — these are opposite cases and easy to mix up.

Quiz

What is the slope of the line through (3, 4) and (3, 9)?
Two lines have slopes 4 and -1/4. What is their relationship?

Flashcards

1 / 4

Historical Background

The idea of measuring a line's steepness as a ratio of vertical to horizontal change goes back to ancient practical geometry — Egyptian and Greek builders used the concept of a 'seked' (a measure of a pyramid's slope) and grade for ramps and roads long before algebraic notation existed. The formal algebraic treatment of slope emerged alongside analytic geometry in the 17th century, when René Descartes and Pierre de Fermat linked algebra to geometric curves via coordinates. The letter 'm' for slope has an uncertain origin — one popular but unconfirmed theory traces it to the French verb 'monter' ('to climb'), though it may simply have been an arbitrary choice in 19th-century textbooks. By the time coordinate geometry was standardized in American and European high school curricula in the 19th and 20th centuries, slope = rise/run had become the canonical definition.

  1. c. 1650 BCE

    Egyptian scribes use the 'seked' to describe the slope of pyramid faces, recorded in the Rhind Mathematical Papyrus

  2. 1637

    Descartes publishes La Géométrie, unifying algebra and geometry via coordinates — the foundation for defining slope algebraically

    René Descartes

  3. 1844

    Matthew O'Brien's British textbook uses 'm' for slope in the equation of a line, one of the earliest documented uses

    Matthew O'Brien

Summary

  • Slope m = Δy/Δx = (y₂-y₁)/(x₂-x₁) measures a line's steepness and direction.
  • Slope is constant along any straight line — it doesn't matter which two points you pick.
  • Positive slope rises left-to-right; negative slope falls; zero slope is horizontal; vertical lines have undefined slope.
  • Parallel lines share the same slope; perpendicular lines have slopes that are negative reciprocals.
  • Point-slope form y - y₁ = m(x - x₁) lets you write a line's equation from just one point and the slope.

References

  1. BookLarson, R. Algebra 1, Ch. 4: Graphing Linear Equations and Functions.