Gradient0%

The Straight Line · Topic 4 of 9

Gradient

Video lesson · from 17:274 worked examples

One lesson video covers all of The Straight Line, so it opens at 17:27 for this topic — not from the beginning.

Theory

The gradient of a line measures its steepness. It is the ratio of vertical change to horizontal change.

θx2 - x1adjy2 - y1opphyp(x1, y1)(x2, y2)
m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}

The gradient is also related to the angle θ\theta the line makes with the positive x-axis:

m=tanθm = \tan\theta
Positive
Negative
Zero
Undefined

⚠️ Common Examiner Traps

  • Keep the order consistent: whichever point you call the first, use it first in both the numerator and the denominator. Swapping halfway through flips the sign.
  • Rearrange before reading off mm: from 3x+2y=123x+2y=12 you must make yy the subject. The coefficient of xx in the original is not the gradient.
  • Leave gradients as fractions: decimals make later comparisons unreliable, particularly when testing whether two gradients are equal.
  • Angle questions use m=tanθm = \tan\theta: and if the angle is measured from the yy-axis, subtract from 9090^\circ first.

Worked examples

Example 1

Calculate the gradient of the straight line shown in the diagram:

32°Oxy
m=tanθ=tan320.62\begin{aligned} m &= \tan\theta \\ &= \tan 32^\circ \\ &\approx 0.62 \end{aligned}

Example 2

Find the angle that the line joining P(2,2)P(-2, -2) and Q(1,7)Q(1,7) makes with the positive direction of the x-axis.

mPQ=7(2)1(2)=93=3\begin{aligned} m_{PQ} &= \frac{7 - (-2)}{1 - (-2)} \\ &= \frac{9}{3} \\ &= 3 \end{aligned}
tanθ=3\tan\theta = 3
θ=tan1(3)71.6\theta = \tan^{-1}(3) \approx 71.6^\circ

Example 3

The line AB makes an angle of 6060^\circ with the y-axis. Find the exact value of the gradient of AB.

yxAB60°

The angle with the x-axis would be 9060=3090^\circ - 60^\circ = 30^\circ.

m=tan30=13\begin{aligned} m &= \tan 30^\circ \\ &= \frac{1}{\sqrt{3}} \end{aligned}

Example 4

Find the size of the angle θ\theta shown in the diagram:

yxOθm = 5

The gradient m=5m = 5 tells us the angle with the x-axis.

tanα=5\tan\alpha = 5
α=tan1(5)78.7\alpha = \tan^{-1}(5) \approx 78.7^\circ

The angle θ\theta with the y-axis is 9078.7=11.390^\circ - 78.7^\circ = 11.3^\circ.