3C

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

Example 1●

Find the gradient and $y$-intercept of $2x + 5y - 10 = 0$.

$5y = -2x + 10$
Keep the y term on the left and move the rest across.
$y = -\tfrac25 x + 2$
Divide every term by 5 to get y on its own.
Gradient $-\tfrac25$, $y$-intercept $2$.

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

Example 2●

Sketch $3x - 4y - 12 = 0$.

$y = 0$: $3x = 12$, so the $x$-intercept is $(4, 0)$.
On the x-axis, y = 0.
$x = 0$: $-4y = 12$, so the $y$-intercept is $(0, -3)$.
On the y-axis, x = 0.
The line rises from $(0, -3)$ to $(4, 0)$, so its gradient is $\tfrac34$.
Join them with a ruler, extend both ways, and label both intercepts.

Three special cases

The intercept method fails when a term is missing, so these need a different approach:

EquationWhat it looks likeHow to sketch
$y = 3x$ (no constant)Through the originBoth 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 undefinedEvery 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.

Example 3●●

Solve $x + y = 6$ and $2x - y = 3$, and interpret the answer as a point.

$3x = 9$, so $x = 3$
The y terms are +y and −y, so adding the equations removes y.
$3 + y = 6$, so $y = 3$
Substitute into the simpler equation.
The lines meet at $(3, 3)$.
Check in the other equation: 6 − 3 = 3. Correct.
Where do two lines meet?

It starts on Example 3: y = −x + 6 and y = 2x − 3 meet at (3, 3).

Try this
  • 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).

Example 4: comparing two plans●●

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?

$A = 40 + 12n$ and $B = 10 + 18n$
Write each cost as a linear function of the number of visits n.
$40 + 12n = 10 + 18n$, so $30 = 6n$ and $n = 5$
Equal cost is where the two lines cross.
Both cost $\$100$ at $5$ visits. For more than $5$ visits, A is cheaper.
B starts cheaper but has the steeper line, so it overtakes A after the crossing.

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

Practice
  1. The line $y = 5 - 2x$ has:

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

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

  4. Find the gradient of $2x + 5y - 10 = 0$ as a decimal.

  5. Which of these is not a function?

  6. Solve $x + y = 6$ and $2x - y = 3$. Enter $x, y$.

  7. The point $(2, k)$ lies on $4x + 3y = 5$. Find $k$.

  8. How many solutions do $y = 2x + 1$ and $4x - 2y + 6 = 0$ have?

  9. 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?

  10. Exam style: the lines $y = mx + 3$ and $y = 2x - 1$ meet at the point where $x = 4$. Find $m$.

Formula sheet