Graphing straight lines
Sketching lines using the x- and y-intercepts, lines through the origin, and horizontal and vertical lines.
A straight line is the graph of a relationship that changes at a steady rate: phone plans, taxi fares, a car using fuel. Two points are enough to fix a line, so the skill here is choosing the two easiest points.
Points on a line
A line is the set of all points $(x, y)$ that make its equation true. To test a point, substitute it. For $2x + y = 7$, the point $(3, 1)$ works because $2(3) + 1 = 7$, but $(1, 3)$ doesn't, because $2(1) + 3 = 5$.
A table of values always works: choose a few $x$ values, work out $y$, and plot. But for a quick sketch there is a faster way.
The intercept method
The two easiest points are where the line crosses the axes. Every point on the $y$-axis has $x = 0$, and every point on the $x$-axis has $y = 0$.
Sketch $2x + 5y = 10$.
Find the intercepts of $y = 3x - 6$.
The intercepts are c ÷ a on the x-axis and c ÷ b on the y-axis.
Before moving anything, predict the intercepts of $2x + 3y = 6$, then set the sliders to check. Next, set $c = 0$. Where are the intercepts now, and why can't you sketch the line from them alone?
Lines with only one intercept
Some lines cross the axes at only one place, so the intercept method needs help.
| Equation | What it looks like | How to sketch |
|---|---|---|
| $y = kx$, e.g. $y = -2x$ | passes through the origin | Both intercepts are $(0, 0)$, so find a second point: $x = 1$ gives $(1, -2)$ |
| $y = c$, e.g. $y = 3$ | horizontal | Every point has $y = 3$, whatever $x$ is |
| $x = k$, e.g. $x = -4$ | vertical | Every point has $x = -4$, whatever $y$ is |
Your turn
Find the intercepts of $4x - 3y = 12$.
Show the working
$x = 0$: $-3y = 12$, so $y = -4$, giving $(0, -4)$. $y = 0$: $4x = 12$, so $x = 3$, giving $(3, 0)$.
Find the $y$-intercept of $3x + 4y = 12$.
Put $x = 0$: $4y = 12$, so $y = 3$.
Find the $x$-intercept of $3x + 4y = 12$.
Put $y = 0$: $3x = 12$, so $x = 4$.
Find the $x$-intercept of $y = 2x - 8$.
Put $y = 0$: $0 = 2x - 8$, so $x = 4$.
The line $x = 3$ is:
Every point has $x$-coordinate $3$, so the points line up vertically, crossing the $x$-axis at $(3, 0)$.
Which line passes through the origin?
Substitute $(0, 0)$: only $y = 5x$ gives $0 = 0$.
The point $(2, k)$ lies on $3x - 2y = 4$. Find $k$.
$3(2) - 2k = 4$, so $6 - 2k = 4$ and $k = 1$.
Find the $x$-intercept of $5x - 2y = 15$.
Put $y = 0$: $5x = 15$, so $x = 3$.
Find the $y$-intercept of $5x - 2y = 15$.
Put $x = 0$: $-2y = 15$, so $y = -7.5$.
Challenge: The line $3x + 4y = 12$ and the two axes form a triangle. Find its area in square units.
The intercepts are $(4, 0)$ and $(0, 3)$, so the triangle has base $4$ and height $3$. Area $= \tfrac12 \times 4 \times 3 = 6$.
Challenge: The line $ax + 3y = 18$ has an $x$-intercept of $2$. Find $a$.
The point $(2, 0)$ is on the line: $2a + 0 = 18$, so $a = 9$.
Coaching Centre