Gradients Of Line Segments And Lines
Theory
The gradient of a line measures its steepness as rise over run, and the angle of inclination links it to the angle the line makes with the \(x\)-axis through \(m=\tan\theta\). This Year 11 Mathematics Advanced page covers the gradient formula, gradients from equations and angles, exact surd gradients, parallel and perpendicular lines, collinear points, and finding an unknown from a gradient condition.
The gradient \(m\) of a line measures how steep it is: the change in \(y\) (the rise) for each change in \(x\) (the run). A line with a positive gradient goes up from left to right; a negative gradient goes down. A horizontal line has gradient \(0\), and a vertical line has an undefined gradient.
A straight line has the same gradient everywhere, so any two points on it give the same value of \(\dfrac{\text{rise}}{\text{run}}\). This is the gradient formula.
The angle of inclination \(\theta\) of a line is the angle measured anticlockwise from the positive direction of the \(x\)-axis to the line, with \(0^\circ\le\theta\lt 180^\circ\). Since rise over run is the tangent ratio, \(m=\tan\theta\). A positive gradient gives an acute angle; a negative gradient gives an obtuse angle.
To read the gradient from an equation, rearrange it to the form \(y=mx+c\). The gradient is the coefficient of \(x\).
Parallel lines have equal gradients. Perpendicular lines (neither vertical) have gradients that multiply to \(-1\). Points are collinear if they lie on one straight line.
For the points \((x_1,y_1)\) and \((x_2,y_2)\):
For a line with angle of inclination \(\theta\), where \(0^\circ\le\theta\lt 180^\circ\) and \(\theta\neq 90^\circ\):
Exact gradients for the special angles (\(\dfrac{1}{\sqrt{3}}=\dfrac{\sqrt{3}}{3}\)):
| \(\theta\) | \(0^\circ\) | \(30^\circ\) | \(45^\circ\) | \(60^\circ\) | \(120^\circ\) | \(135^\circ\) | \(150^\circ\) |
|---|---|---|---|---|---|---|---|
| \(m=\tan\theta\) | \(0\) | \(\dfrac{1}{\sqrt{3}}\) | \(1\) | \(\sqrt{3}\) | \(-\sqrt{3}\) | \(-1\) | \(-\dfrac{1}{\sqrt{3}}\) |
Parallel and perpendicular lines with gradients \(m_1\) and \(m_2\):
How to find a gradient
- From two points: substitute into \(m=\dfrac{y_2-y_1}{x_2-x_1}\), keeping the same order on the top and the bottom. Simplify surds and rationalise the denominator if asked.
- From an equation: rearrange to \(y=mx+c\) and read off the coefficient of \(x\).
- From an angle: \(m=\tan\theta\). Use exact values for \(30^\circ\), \(45^\circ\), \(60^\circ\) and their supplements.
How to find the angle of inclination
- Find the gradient \(m\).
- If \(m\gt 0\): \(\theta=\tan^{-1}m\), an acute angle.
- If \(m\lt 0\): find the related acute angle \(\tan^{-1}|m|\), then \(\theta=180^\circ-\) that angle (Example 2).
Parallel, perpendicular and collinear problems
- Write both gradients, in terms of the unknown if there is one.
- Set up the condition: \(m_1=m_2\) (parallel or collinear) or \(m_1m_2=-1\) (perpendicular).
- Solve for the unknown. With the unknown in a denominator, multiply both sides by it first.
- To show a right angle at a vertex, show that the gradients of the two sides meeting there multiply to \(-1\) (Example 4).
- Lines that meet on the \(y\)-axis have the same \(y\)-intercept, so also set \(c_1=c_2\).
- Equation of a perpendicular line through \((x_1,y_1)\): find \(m_\perp=-\dfrac{1}{m}\), substitute into the point–gradient form \(y-y_1=m_\perp(x-x_1)\), then rearrange. Perpendicular to \(y=2x-1\) through \((4,1)\): \(m_\perp=-\dfrac{1}{2}\), \(y-1=-\dfrac{1}{2}(x-4)\), \(2y-2=-x+4\), so \(x+2y-6=0\).
(i) \(A(-2,5)\) and \(B(4,-7)\)
(ii) \(P(\sqrt{2},3)\) and \(Q(2\sqrt{2},5)\), in exact form
Use the gradient formula \(m=\dfrac{y_2-y_1}{x_2-x_1}\).
(i)
| \(m\) | \(=\) | \(\dfrac{-7-5}{4-(-2)}\) |
| \(\) | \(=\) | \(\dfrac{-12}{6}\) |
| \(\) | \(=\) | \(-2\) |
\(\therefore\) \(\boldsymbol{m=-2}\). The line falls from left to right, as a negative gradient should.
(ii)
| \(m\) | \(=\) | \(\dfrac{5-3}{2\sqrt{2}-\sqrt{2}}\) |
| \(\) | \(=\) | \(\dfrac{2}{\sqrt{2}}\times\dfrac{\sqrt{2}}{\sqrt{2}}\) |
| \(\) | \(=\) | \(\dfrac{2\sqrt{2}}{2}\) |
| \(\) | \(=\) | \(\sqrt{2}\) |
\(\therefore\) \(\boldsymbol{m=\sqrt{2}}\)
(ii) Find the angle of inclination of the line \(3x+2y-6=0\), correct to 1 decimal place.
(i) \(m=\tan 60^\circ\)
\(\therefore\) \(\boldsymbol{m=\sqrt{3}}\)
(ii) Rearrange to find the gradient:
| \(3x+2y-6\) | \(=\) | \(0\) |
| \(2y\) | \(=\) | \(-3x+6\) |
| \(y\) | \(=\) | \(-\dfrac{3}{2}x+3\) |
\(m=-\dfrac{3}{2}\), so \(\tan\theta=-\dfrac{3}{2}\). The gradient is negative, so \(\theta\) is obtuse. Find the related acute angle first:
| \(\tan^{-1}\dfrac{3}{2}\) | \(=\) | \(56.309\ldots^\circ\) |
| \(\theta\) | \(=\) | \(180^\circ-56.309\ldots^\circ\) |
| \(\) | \(=\) | \(123.690\ldots^\circ\) |
\(\therefore\) \(\boldsymbol{\theta\approx 123.7^\circ}\)
(a) parallel
(b) perpendicular.
Write both lines in the form \(y=mx+c\):
| \(\ell_1:\ y\) | \(=\) | \(-2x+4,\ \ m_1=-2\) |
| \(\ell_2:\ ky\) | \(=\) | \(-4x-3\) |
| \(y\) | \(=\) | \(-\dfrac{4}{k}x-\dfrac{3}{k},\ \ m_2=-\dfrac{4}{k}\) |
(a) Parallel: \(m_1=m_2\)
| \(-\dfrac{4}{k}\) | \(=\) | \(-2\) |
| \(-4\) | \(=\) | \(-2k\) |
| \(k\) | \(=\) | \(2\) |
(b) Perpendicular: \(m_1m_2=-1\)
| \(-2\times\left(-\dfrac{4}{k}\right)\) | \(=\) | \(-1\) |
| \(\dfrac{8}{k}\) | \(=\) | \(-1\) |
| \(k\) | \(=\) | \(-8\) |
\(\therefore\) (a) \(\boldsymbol{k=2}\) (b) \(\boldsymbol{k=-8}\)
Check (b): with \(k=-8\), \(\ell_2\) is \(y=\dfrac{1}{2}x+\dfrac{3}{8}\), and \(-2\times\dfrac{1}{2}=-1\).
The right angle is at \(B\), so \(AB\perp BC\) and \(m_{AB}\times m_{BC}=-1\).
| \(m_{AB}\) | \(=\) | \(\dfrac{4-2}{3-(-1)}=\dfrac{2}{4}=\dfrac{1}{2}\) |
So \(m_{BC}=-2\):
| \(\dfrac{-4-4}{k-3}\) | \(=\) | \(-2\) |
| \(-8\) | \(=\) | \(-2(k-3)\) |
| \(4\) | \(=\) | \(k-3\) |
| \(k\) | \(=\) | \(7\) |
\(\therefore\) \(\boldsymbol{k=7}\)
Check: \(m_{BC}=\dfrac{-4-4}{7-3}=-2\) and \(m_{AB}\times m_{BC}=\dfrac{1}{2}\times(-2)=-1\), so \(AB\perp BC\).
Common pitfalls
Frequently asked questions
How do you find the gradient of a line through two points?
Subtract the \(y\)-coordinates and divide by the difference of the \(x\)-coordinates, in the same order: \(m=\dfrac{y_2-y_1}{x_2-x_1}\). For \((1,2)\) and \((4,8)\), \(m=\dfrac{6}{3}=2\).
What is the angle of inclination of a line?
It is the angle measured anticlockwise from the positive direction of the \(x\)-axis to the line, with \(0^\circ\le\theta\lt 180^\circ\). The gradient is its tangent: \(m=\tan\theta\).
How do you find the gradient of a perpendicular line?
Take the negative reciprocal: turn the gradient upside down and change its sign. Perpendicular to a gradient of \(3\) is a gradient of \(-\dfrac{1}{3}\), because \(m_1m_2=-1\).
What is the gradient of a horizontal or a vertical line?
A horizontal line has gradient \(0\) because its rise is \(0\). A vertical line has an undefined gradient because its run is \(0\), and division by \(0\) is not defined.
How do you show that three points are collinear?
Find \(m_{AB}\) and \(m_{BC}\). If they are equal, the two segments have the same steepness and share the point \(B\), so \(A\), \(B\) and \(C\) lie on one straight line.