Choose any two points \((x_1,y_1)\) and \((x_2,y_2)\) on the line. The order doesn't matter — just stay consistent (top/bottom match left/right).
Watch signs: if the line falls from left to right, \(y_2 - y_1\) is negative → gradient is negative. Always write the subtraction in the same order for numerator and denominator.
Interpreting the gradient
m > 0Positive — line rises left to right
m < 0Negative — line falls left to right
m = 0Zero — horizontal line (y = constant)
m = ∞Undefined — vertical line (x = constant)
Find gradient of line through (−1, 3) and (4, −2)
Formula
\(m = \dfrac{-2-3}{4-(-1)} = \dfrac{-5}{5}\)
✓
\(m = -1\)
Interactive — Gradient Explorer
Drag the sliders to place two points and see the gradient calculated
Point A (xâ‚, yâ‚)
-2
3
Point B (xâ‚‚, yâ‚‚)
3
-1
—
Equations of a Straight Line
Three forms · Finding the equation · Special lines · §6.2
Slope-intercept form
\(y = mx + c\)
m = gradient, c = y-intercept. Read both values directly off the equation. Most common form for sketching.
\(y = 3x - 2\): m = 3, c = −2
Point-gradient form
\(y - y_1 = m(x - x_1)\)
Use when you know a point \((x_1,y_1)\) and gradient m. Expand to get y = mx + c form.
m = 2, passes through (3,1): \(y-1=2(x-3)\)
General form
\(ax + by + c = 0\)
All terms on one side, often with integer coefficients. Common in exam answers. Rearrange to slope-intercept to read m and c.
\(2x - 3y + 6 = 0\) → \(y = \tfrac{2}{3}x + 2\)
Find equation of line through (2, 5) with gradient 3
Point-grad
\(y - 5 = 3(x - 2)\)
Expand
\(y - 5 = 3x - 6\)
✓
\(y = 3x - 1\)
Find equation of line through (−1, 4) and (3, −4)
Gradient
\(m = \dfrac{-4-4}{3-(-1)} = \dfrac{-8}{4} = -2\)
Point-grad
\(y - 4 = -2(x - (-1))\)
Expand
\(y - 4 = -2x - 2\)
✓
\(y = -2x + 2\)
Special lines
Horizontal line
\(y = k\) — passes through all points with y-coordinate k. Gradient = 0.
Vertical line
\(x = k\) — passes through all points with x-coordinate k. Gradient is undefined.
Line through origin
\(y = mx\) — y-intercept c = 0. The ratio y:x = m at every point.
Reading m and c: always rearrange to \(y = mx + c\) first. In \(2y = 6x + 4\), divide by 2: m = 3, c = 2 — not m = 6, c = 4.
Interactive — Line Equation Builder
Adjust m and c and see all three equation forms update live
Parallel lines have equal gradients and different y-intercepts. They never intersect.
Line \(y = 3x + 1\) is parallel to \(y = 3x - 5\). Both have m = 3.
Perpendicular Lines
\(m_1 \times m_2 = -1\)
Perpendicular lines have gradients that are negative reciprocals. They meet at a right angle.
If \(m_1 = 3\), then \(m_2 = -\tfrac{1}{3}\). Product: \(3 \times (-\tfrac{1}{3}) = -1\) ✓
Find equation of line parallel to \(y = 2x + 3\) through (1, 5)
Gradient
Parallel → same gradient: \(m = 2\)
Point-grad
\(y - 5 = 2(x - 1)\)
✓
\(y = 2x + 3\) — wait! Check: different y-intercept means it's a distinct line. \(y = 2x + 3\) passes through (1,5) since 2(1)+3=5. But that's the original line. So actually c = 5−2 = 3, giving y=2x+3 — same line! Try (1,7): y−7=2(x−1) → y=2x+5.
Find equation of line perpendicular to \(3x + y = 5\) through (3, 2)
When substituting a line into a quadratic gives \(ax^2+bx+c=0\), the discriminant \(\Delta = b^2 - 4ac\) tells you how many intersections exist:
Δ > 0Two distinct intersection points
Δ = 0One intersection — line is tangent to the curve
Δ < 0No real intersections — line misses the curve
Tangent condition: if asked "find k such that line is tangent", set Δ = 0 and solve for k.
Linear Law — Reducing to Straight Line Form
Transforming non-linear relationships · Reading constants off graphs · §6.6
Why we do this
Many real-world relationships are not linear — plotting y against x gives a curve, not a straight line. By substituting variables (often taking logs), we convert to a linear form \(Y = mX + c\), so we can find constants from a straight-line graph.
\(Y = mX + c\) where X and Y are expressions in x and y
From the straight-line graph: read the gradient (= m) and y-intercept (= c), then reverse the substitution to find the original constants.
Strategy for any non-linear equation
Identify the form of the equation (power law, exponential, product, etc.)
Apply appropriate transformation (take logs, reciprocal, square both sides, etc.)
Write in \(Y = mX + c\) form — label what X, Y, m, c represent
From graph data: read gradient and intercept, back-substitute to find original constants
Common transformations — at a glance
Original equation
Plot Y vs X
Gradient
Y-intercept
\(y = ax^n\)
\(\lg y\) vs \(\lg x\)
n
\(\lg a\)
\(y = Ab^x\)
\(\lg y\) vs \(x\)
\(\lg b\)
\(\lg A\)
\(y = Ae^{bx}\)
\(\ln y\) vs \(x\)
b
\(\ln A\)
\(y = a + bx^2\)
\(y\) vs \(x^2\)
b
a
\(xy = a + bx\)
\(xy\) vs \(x\)
b
a
\(\dfrac{1}{y} = a + \dfrac{b}{x}\)
\(\dfrac{1}{y}\) vs \(\dfrac{1}{x}\)
b
a
The graph of \(\lg y\) against \(x\) passes through (0, 2) and (3, 5). Find A and b in \(y = Ab^x\).
Linear form
\(\lg y = x\lg b + \lg A\) → this is \(Y = mx + c\)
Y-intercept
At \(x=0\): \(\lg A = 2 \Rightarrow A = 10^2 = 100\)
Gradient
\(\lg b = \dfrac{5-2}{3-0} = 1 \Rightarrow b = 10^1 = 10\)
✓
\(A = 100,\quad b = 10\) so \(y = 100 \cdot 10^x\)
The relationship \(y = ax^n\). Graph of \(\lg y\) against \(\lg x\) has gradient \(2.5\) and passes through \((0, -0.5)\). Find a and n.
Identify
Gradient = n = 2.5
Intercept
\(\lg a = -0.5 \Rightarrow a = 10^{-0.5} = \dfrac{1}{\sqrt{10}} \approx 0.316\)
✓
\(n = 2.5,\quad a = 10^{-0.5} \approx 0.316\)
Practice Questions
3 Easy · 3 Medium · 3 Hard — Straight Lines & Linear Law
Easy 1
[2] Find the gradient and y-intercept of \(3x-2y+8=0\).
[4] Variables \(x\) and \(y\) are such that \(y=ax^n\). A graph of \(\ln y\) against \(\ln x\) is a straight line through \((0,\,2)\) with gradient 3. Find \(a\) and \(n\).
[5] The line \(l_1:y=2x+1\) and line \(l_2\) are perpendicular and intersect at \(P(1,3)\). \(l_2\) meets the x-axis at \(Q\). Find the area of triangle \(OPQ\) where \(O\) is the origin.
SOLUTION
\(l_2\) equation
Gradient of \(l_2=-\tfrac12\). Through \((1,3)\): \(y=-\tfrac12x+\tfrac72\)
Point Q
At \(y=0\): \(x=7\). So \(Q=(7,0)\).
Area OPQ
Using \(\tfrac12|x_O(y_P-y_Q)+x_P(y_Q-y_O)+x_Q(y_O-y_P)|\) \(=\tfrac12|0(3-0)+1(0-0)+7(0-3)|=\tfrac12\cdot21=\boldsymbol{\tfrac{21}{2}}\)
Hard 3
[6] \(y=px^2+q\) where \(p,q\) are constants. A straight line graph is drawn plotting \(y\) against \(x^2\). Given it passes through \((1,7)\) and \((4,19)\) in \((x^2,y)\) coordinates, find \(p\), \(q\), and the value of \(y\) when \(x=3\).
[10]
The points \(A(-1,4)\), \(B(3,2)\), \(C(5,k)\) are such that \(BC\perp AB\). (a) Find the value of \(k\). [3] (b) Find the equation of the perpendicular bisector of \(AC\). [4] (c) This perpendicular bisector meets the y-axis at \(D\). Find the area of triangle \(ACD\). [3]
FULL SOLUTION
(a)
\(m_{AB}=\frac{2-4}{3-(-1)}=-\tfrac12\). Since \(BC\perp AB\): \(m_{BC}=2\) \(m_{BC}=\frac{k-2}{5-3}=\frac{k-2}{2}=2 \Rightarrow k=\boldsymbol{6}\)