Linear functions and graphs
Gradient, intercepts, the forms of a straight line, sketching lines, and solving simultaneous equations by graph and by algebra.
Straight lines are the simplest graphs, and they keep coming back: tangents in calculus are lines, and many real costs grow at a steady rate. This is a quick review, with lines studied in more depth in Chapter 8.
Two forms of a line
A function is linear when its graph is a straight line. It can be written two ways:
Gradient–intercept form
$y = mx + b$
$m$ is the gradient: how much $y$ rises when $x$ goes up by $1$. $b$ is the $y$-intercept.
General form
$ax + by + c = 0$
All terms on one side, usually with integer coefficients and $a$ positive.
To read the gradient from general form, solve for $y$.
Find the gradient and $y$-intercept of $2x + 5y - 10 = 0$.
Sketching with intercepts
Two points fix a line, and the easiest two are where it crosses the axes. Every point on the $y$-axis has $x = 0$, and every point on the $x$-axis has $y = 0$.
Sketch $3x - 4y - 12 = 0$.
Three special cases
The intercept method fails when a term is missing, so these need a different approach:
| Equation | What it looks like | How to sketch |
|---|---|---|
| $y = 3x$ (no constant) | Through the origin | Both intercepts are $(0, 0)$, so find one more point: $(1, 3)$. |
| $y = -2$ (no $x$) | Horizontal, gradient $0$ | Every point has $y = -2$. |
| $x = 5$ (no $y$) | Vertical, gradient undefined | Every point has $x = 5$. |
A vertical line is a relation but not a function: the single input $x = 5$ has every real number as an output.
Where two lines meet
A point lies on a line exactly when its coordinates satisfy the line's equation. So the point where two lines cross satisfies both equations: it is the solution of the pair. A graph gives a quick estimate, and algebra gives the exact answer.
Solve $x + y = 6$ and $2x - y = 3$, and interpret the answer as a point.
It starts on Example 3: y = −x + 6 and y = 2x − 3 meet at (3, 3).
- Change only $b_2$. Does the pair ever stop having a solution? Why not?
- Now make the system have no solution at all. Which slider did you have to change?
- Make it have infinitely many solutions.
So a pair of linear equations has one solution (lines cross), no solution (parallel lines, same gradient, different intercepts), or infinitely many (the same line twice).
Gym A charges $\$40$ to join plus $\$12$ per visit. Gym B charges $\$10$ to join plus $\$18$ per visit. After how many visits do they cost the same?
Your turn
Find where $x + 2y - 6 = 0$ meets $y = x - 3$.
Show the working
Substitute $y = x - 3$: $x + 2(x - 3) - 6 = 0$, so $3x - 12 = 0$ and $x = 4$. Then $y = 4 - 3 = 1$. The lines meet at $(4, 1)$.
The line $y = 5 - 2x$ has:
Rewrite as $y = -2x + 5$. The coefficient of $x$ is the gradient and the constant is the $y$-intercept.
Find the $x$-intercept of $3x - 4y - 12 = 0$.
Put $y = 0$: $3x - 12 = 0$, so $x = 4$.
Find the $y$-intercept of $3x - 4y - 12 = 0$.
Put $x = 0$: $-4y - 12 = 0$, so $y = -3$.
Find the gradient of $2x + 5y - 10 = 0$ as a decimal.
$5y = -2x + 10$, so $y = -\tfrac25 x + 2$. The gradient is $-\tfrac25 = -0.4$.
Which of these is not a function?
$x = -2$ is a vertical line. The single input $-2$ has infinitely many outputs.
Solve $x + y = 6$ and $2x - y = 3$. Enter $x, y$.
Adding gives $3x = 9$, so $x = 3$, then $y = 6 - 3 = 3$.
The point $(2, k)$ lies on $4x + 3y = 5$. Find $k$.
Substitute $x = 2$, $y = k$: $8 + 3k = 5$, so $3k = -3$ and $k = -1$.
How many solutions do $y = 2x + 1$ and $4x - 2y + 6 = 0$ have?
The second equation is $2y = 4x + 6$, so $y = 2x + 3$. Both lines have gradient $2$ but different intercepts, so they are parallel and never meet.
Exam style: phone plan P costs $\$30$ plus $\$0.50$ per GB. Plan Q costs $\$15$ plus $\$1.25$ per GB. For how many GB do they cost the same?
$30 + 0.5g = 15 + 1.25g$, so $15 = 0.75g$ and $g = 20$. Both cost $\$40$ at $20$ GB.
Exam style: the lines $y = mx + 3$ and $y = 2x - 1$ meet at the point where $x = 4$. Find $m$.
On the second line, $x = 4$ gives $y = 7$. So $(4, 7)$ is on the first line too: $4m + 3 = 7$, so $m = 1$.
Coaching Centre