Gradient of a Straight Line

Gradient of a Straight Line

Secondary 3

The gradient measures vertical change per unit of horizontal change. For distinct points \(A{\left(x_1,y_1\right)}\) and \(B{\left(x_2,y_2\right)}\) with \(x_1\ne x_2\), \(m=\dfrac{y_2-y_1}{x_2-x_1}\). Similar right-angled triangles drawn on the same straight line have the same ratio of vertical to horizontal change, so any two points give the same gradient.

  1. Label both points, then subtract their \(y\)-coordinates in one order.
  2. Subtract their \(x\)-coordinates in the same order and divide. A zero denominator means a vertical line with undefined gradient.
  3. Check the sign by looking from left to right: rising is positive, falling is negative.

Reversing both point orders changes the signs of both differences: \(\dfrac{y_1-y_2}{x_1-x_2}=\dfrac{-(y_2-y_1)}{-(x_2-x_1)}=\dfrac{y_2-y_1}{x_2-x_1}\).

Rising line: positive gradient

For \(A{\left(-7,4\right)}\), \(B{\left(5,13\right)}\), \(m=\dfrac{13-4}{5-(-7)}=\dfrac9{12}=\dfrac34\). As \(x\) increases, \(y\) increases.

Falling line: negative gradient

For \(C{\left(-12,23\right)}\), \(D{\left(-4,13\right)}\), \(m=\dfrac{13-23}{-4-(-12)}=\dfrac{-10}{8}=-\dfrac54\). As \(x\) increases, \(y\) decreases.

Horizontal line: zero gradient

For \(E{\left(-9,-8\right)}\), \(F{\left(-1,-8\right)}\), \(m=\dfrac{-8-(-8)}{-1-(-9)}=\dfrac08=0\). There is no vertical change.

Vertical line: undefined gradient

For \(G{\left(10,-7\right)}\), \(H{\left(10,2\right)}\), the vertical change is 9 and the horizontal change is 0. Division by zero is undefined, so the line has no defined gradient.

An unknown coordinate from a gradient

Write the coordinate differences in the gradient formula, state any forbidden zero denominator, cross-multiply, then solve. Check the result in the original ratio.

Example: the line through \(\left(-8,4\right)\) and \(\left(k,-5\right)\) has gradient \(-\dfrac37\). Here \(k\ne-8\).

\(\dfrac{-5-4}{k-(-8)}\)\({}=-\dfrac37\)\(-63\)\({}=-3(k+8)\)\(k\)\({}=13\)

Check: \(\dfrac{-9}{13+8}=-\dfrac37\). The line falls from left to right, as its negative gradient requires.

Common mistake

\(\dfrac{y_2-y_1}{x_1-x_2}\) mixes the subtraction orders and reverses the gradient's sign. Use one point order for both changes.

Common mistake

A vertical line does not have gradient 0: its horizontal change is 0 and division is undefined. Gradient 0 belongs to a horizontal line.

Solution:

Solution locked

680+ questions here come with free worked solutions. A free account saves your questions and progress; this one needs a course plan.

Answer:Rising: \(\dfrac34\); falling: \(-\dfrac54\); horizontal: \(0\); vertical: undefined; \(k=13\).

Need help? Join our E-Maths tuition for the SEC, the exam that replaces the O-Levels.

Learn more