7B

Gradients of intervals and lines

The gradient formula, parallel and perpendicular gradients, testing for collinear points, and the angle of inclination m = tan θ.

Gradient measures steepness. It is the most important idea in this chapter, because in calculus the derivative is just the gradient of a curve at a point. Get comfortable with it here.

The gradient formula

Gradient is rise over run: how far you go up for each step you go across. Moving from $P(x_1, y_1)$ to $Q(x_2, y_2)$, the rise is $y_2 - y_1$ and the run is $x_2 - x_1$.

Gradient formula
$$m = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1}$$
  • Positive gradient: the line goes up as you move right. Negative: it goes down.
  • Horizontal: the rise is always $0$, so $m = 0$.
  • Vertical: the run is always $0$, and you can't divide by zero, so a vertical line has no gradient (it is undefined, not zero).

Why does a line have one gradient, whichever two points you pick? Any two rise–run triangles on the same line are similar (they have the same angles), so the ratio rise : run is the same in every one.

The angle of inclination

The angle of inclination $\theta$ is the angle the line makes with the positive direction of the $x$-axis, measured anticlockwise, with $0^\circ \le \theta \lt 180^\circ$. Draw a rise–run triangle with the run along the $x$-axis: the rise is opposite $\theta$ and the run is adjacent, so rise over run is $\tan\theta$.

Gradient and angle
$$m = \tan\theta$$

Acute angles give positive gradients. Obtuse angles give negative gradients, because $\tan$ is negative in the second quadrant.

Gradient from the angle

Acute angles give positive gradients. Obtuse angles give negative gradients.

Try this

Predict first, then check: which angle gives gradient $1$? Which gives gradient $-1$? What happens to the gradient as $\theta$ gets close to $90^\circ$ from either side?

Example 1●●

Find the angle of inclination of the line through $A(4, 1)$ and $B(-2, 4)$, to the nearest degree.

$m = \dfrac{4 - 1}{-2 - 4} = \dfrac{3}{-6} = -\dfrac12$
Gradient first.
$\tan^{-1}\tfrac12 \approx 27^\circ$
The calculator's tan⁻¹ of a negative number gives a negative angle, which is outside 0° to 180°. Use the acute angle with tan θ = ½ instead.
$\theta \approx 180^\circ - 27^\circ = 153^\circ$
The gradient is negative, so the angle is obtuse: subtract from 180°.

Parallel lines and collinear points

Parallel lines have the same steepness, so two non-vertical lines are parallel exactly when $m_1 = m_2$.

Three points $A$, $B$, $C$ are collinear (on one line) when $AB$ and $BC$ have the same gradient. Equal gradients alone would only make them parallel. It is the shared point $B$ that forces them onto the same line.

Perpendicular lines

Example 2: a right-angled triangle●●

Show that the triangle with vertices $P(-2, 1)$, $Q(2, 3)$ and $R(3, 1)$ is right-angled.

$m_{PQ} = \dfrac{3 - 1}{2 + 2} = \dfrac12$, $\quad m_{QR} = \dfrac{1 - 3}{3 - 2} = -2$
Find the gradient of each side and look for a pair that multiplies to −1.
$m_{PQ} \times m_{QR} = \tfrac12 \times (-2) = -1$
So $PQ \perp QR$, and the triangle is right-angled at $Q$.
The right angle sits where the two perpendicular sides meet.

Your turn

The line through $A(1, -2)$ and $B(4, k)$ is perpendicular to a line with gradient $-3$. Find $k$.

Show the working

The perpendicular gradient is $\tfrac13$. So $\dfrac{k - (-2)}{4 - 1} = \dfrac13$, which gives $k + 2 = 1$ and $k = -1$.

Flashcards
Gradient formula
$m = \dfrac{y_2 - y_1}{x_2 - x_1}$
Angle of inclination
$m = \tan\theta$, with $0^\circ \le \theta \lt 180^\circ$
Parallel lines
$m_1 = m_2$
Perpendicular lines
$m_1 m_2 = -1$
Practice
  1. Find the gradient of the line through $(-2, 5)$ and $(4, 2)$. Give a decimal.

  2. A line perpendicular to one with gradient $4$ has gradient:

  3. A line has gradient $\sqrt3$. Find its angle of inclination in degrees.

  4. A line has angle of inclination $135^\circ$. Its gradient is:

  5. The line through $(1, 2)$ and $(3, k)$ is parallel to $y = 2x + 5$. Find $k$.

  6. The points $(0, 1)$, $(2, 4)$ and $(4, k)$ are collinear. Find $k$.

  7. Find the angle of inclination of a line with gradient $-\tfrac12$, to the nearest degree.

  8. The triangle $A(-1, 0)$, $B(3, 2)$, $C(4, 0)$ is right-angled. At which vertex is the right angle?

  9. A line passes through $A(-2, 4)$ and $B(1, k)$, and is perpendicular to a line with gradient $-3$. Find $k$.

  10. Exam style: $P(k, 1)$, $Q(-2, -3)$, $R(2, 3)$ and $S(1, k)$ are such that $PQ \parallel RS$. Find both values of $k$, separated by &.

Formula sheet