Prerequisites: lines, exponents, logs, trig

Slope of a line

The slope of the line through two points is the change in yy divided by the change in xx, y2−y1x2−x1\dfrac{y_2-y_1}{x_2-x_1}.

a=y2−y1x2−x1(x1≠x2)\begin{gathered} a \\[4pt] =\frac{y_2-y_1}{x_2-x_1}\quad(x_1\neq x_2) \end{gathered}

The slope tells you how much yy increases when xx increases by 1. From two points (x1, y1)(x_1,\,y_1) and (x2, y2)(x_2,\,y_2),

a=y2−y1x2−x1a=\frac{y_2-y_1}{x_2-x_1}

For example, for (3, 1)(3,\,1) and (5, −3)(5,\,-3) it is −3−15−3=−42=−2\dfrac{-3-1}{5-3}=\dfrac{-4}{2}=-2.

When the slope is known and one yy-coordinate is □, use change in yy == slope ×\times change in xx. For (3, −2)(3,\,-2) and (6, □)(6,\,\square) with slope 2, xx increases by 3, so yy increases by 6 and □=−2+6=4\square=-2+6=4.

Examples

  1. 01What is the slope of the line through these two points?(2, −4),(3, −3)\displaystyle (2,\ -4),\quad (3,\ -3)AnswerHide
    Answer1\displaystyle 1
  2. 02The line through these two points has slope 2. What goes in □?(3, −2),(6, □)\displaystyle (3,\ -2),\quad (6,\ \square)AnswerHide
    Answer4\displaystyle 4
  3. 03The line through these two points has slope -3. What goes in □?(1, −4),(3, □)\displaystyle (1,\ -4),\quad (3,\ \square)AnswerHide
    Answer−10\displaystyle -10
  4. 04What is the slope of the line through these two points?(3, 1),(5, −3)\displaystyle (3,\ 1),\quad (5,\ -3)AnswerHide
    Answer−2\displaystyle -2
  5. 05The line through these two points has slope -2. What goes in □?(−1, 4),(2, □)\displaystyle (-1,\ 4),\quad (2,\ \square)AnswerHide
    Answer−2\displaystyle -2
  6. 06What is the slope of the line through these two points?(−1, −5),(2, −8)\displaystyle (-1,\ -5),\quad (2,\ -8)AnswerHide
    Answer−1\displaystyle -1

FAQ

Q1Which point do I subtract from?AnswerHide
A
Either, as long as you subtract in the same order on top and bottom: y2−y1x2−x1=y1−y2x1−x2\dfrac{y_2-y_1}{x_2-x_1}=\dfrac{y_1-y_2}{x_1-x_2}. Mixing the order between top and bottom flips the sign.
Q2What if x1=x2x_1=x_2?AnswerHide
A
The denominator is 0, so the slope is undefined. The line is the vertical line x=x1x=x_1, parallel to the yy-axis.

Published 2026-10-14 · Updated 2026-10-14