4A

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$.

Example 1●

Sketch $2x + 5y = 10$.

$5y = 10$, so the $y$-intercept is $(0, 2)$
On the y-axis, x = 0.
$2x = 10$, so the $x$-intercept is $(5, 0)$
On the x-axis, y = 0.
Line through $(0, 2)$ and $(5, 0)$
Plot both points and rule a line through them, extending past each one. Label the intercepts.
Example 2●●

Find the intercepts of $y = 3x - 6$.

$y = -6$, so $(0, -6)$
x = 0 makes the 3x term vanish.
$0 = 3x - 6$, so $x = 2$: $(2, 0)$
y = 0, then solve for x.
Lines of the form ax + by = c

The intercepts are c ÷ a on the x-axis and c ÷ b on the y-axis.

Try this

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.

EquationWhat it looks likeHow to sketch
$y = kx$, e.g. $y = -2x$passes through the originBoth intercepts are $(0, 0)$, so find a second point: $x = 1$ gives $(1, -2)$
$y = c$, e.g. $y = 3$horizontalEvery point has $y = 3$, whatever $x$ is
$x = k$, e.g. $x = -4$verticalEvery 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)$.

Practice
  1. Find the $y$-intercept of $3x + 4y = 12$.

  2. Find the $x$-intercept of $3x + 4y = 12$.

  3. Find the $x$-intercept of $y = 2x - 8$.

  4. The line $x = 3$ is:

  5. Which line passes through the origin?

  6. The point $(2, k)$ lies on $3x - 2y = 4$. Find $k$.

  7. Find the $x$-intercept of $5x - 2y = 15$.

  8. Find the $y$-intercept of $5x - 2y = 15$.

  9. Challenge: The line $3x + 4y = 12$ and the two axes form a triangle. Find its area in square units.

  10. Challenge: The line $ax + 3y = 18$ has an $x$-intercept of $2$. Find $a$.

Formula sheet