Resources For Teachers For Tutors For Students & Parents AI New Pricing
Year 8 Maths Graphing Linear Equations

Finding the Rule

20 practice questions 1 video lesson Theory + worked examples
Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 1 video(s)
  • Finding the Rule - Video - Visual Pattern - Writing an Equation and Creating a Table Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A linear rule \(y = ax + k\) has two numbers: \(a\), the change in \(y\) each time \(x\) goes up \(1\), and \(k\), the \(y\)-value when \(x = 0\). For \(x = 0, 1, 2, 3\) and \(y = 6, 4, 2, 0\): \(a = -2\) and \(k = 6\), so \(y = -2x + 6\). This Year 8 maths page shows how.

Every rule on this page is \(y = ax + k\) (also written \(y = mx + b\)).

Find \(a\). It is the change in \(y\) each time \(x\) goes up \(1\). A table whose \(y\)-values fall gives a negative \(a\).

Find \(k\). It is the \(y\)-value when \(x = 0\). If there is no \(x = 0\) column, substitute a column you know and solve: for \(y = 5x + k\) with \(x = 2\), \(y = 6\): \(6 = 10 + k\), so \(k = -4\).

\(x\)-values that jump. If \(x\) goes up \(2\) at a time, the change in \(y\) covers \(2\) steps, so halve it. Divide by whatever the jump is. If \(y\) goes up \(1\) every time \(x\) goes up \(4\), then \(a = \dfrac{1}{4}\) and the rule starts \(y = \dfrac{x}{4}\).

Part of the rule given. In \(y = 8 + \square\,x\) the box is the change in \(y\) for each \(1\) in \(x\). In \(w = 9 - \square\,v\) the minus sign is already written, so the box is the size of the drop.

Filling a gap. Going right along a table, add the step; going left, take it away.

From a graph. Read the plotted points into a table of values, then carry on as above.

Check every column. A rule that fits one column can still be wrong. Substitute a column you did not use.

Finding a and k A table: x from 0 to 4, y equals 3, 7, 11, 15, 19. Arrows show x going up 1 each time and y going up 4 each time, so a = 4. The x = 0 column gives k = 3, so y = 4x + 3. x01234y37111519 +1+1+1+1 +4+4+4+4 a = 4, k = 3: y = 4x + 3
\(x\) goes up \(1\) and \(y\) goes up \(4\), so \(a = 4\); the \(x = 0\) column gives \(k = 3\). Check: \(4 \times 4 + 3 = 19\).
x jumps by 3 A table: x is 1, 4, 7, 10 and y is 2, 17, 32, 47. x goes up 3 each time and y goes up 15, so a = 15 divided by 3 = 5. Substituting x = 1, y = 2 gives k = -3, so y = 5x - 3. x14710y2173247 +3+3+3 +15+15+15 a = 15 ÷ 3 = 5, so y = 5x − 3
\(x\) jumps by \(3\), so \(a = 15 \div 3 = 5\). Substitute \(x = 1\), \(y = 2\): \(2 = 5 + k\), so \(k = -3\). Check: \(5 \times 10 - 3 = 47\).

In \(y = ax + k\):

NumberWhat it isHow to find it
\(a\)change in \(y\) when \(x\) goes up \(1\)change in y ÷ jump in x
\(k\)\(y\)-value when \(x = 0\)read it, or substitute a column and solve
One column is not enough. For \(x = 1, 2, 3\) and \(y = 2, 6, 10\), \(y = 2x\) fits the first column but gives \(4\), not \(6\), at \(x = 2\). The right rule is \(y = 4x - 2\).
\(k\) is the \(y\)-value at \(x = 0\), not the first \(y\)-value in the table. If the table starts at \(x = 1\), work \(k\) out.

Finding y = ax + k from a table

  1. Find \(a\): the change in \(y\) divided by the jump in \(x\).
  2. Find \(k\): read \(y\) at \(x = 0\), or substitute a column into \(y = ax + k\) and solve.
  3. Write the rule.
  4. Check it in every column.
Example 1 — Finding b, then m
(i) The rule for this table is \(y = x + b\). Find \(b\).
\(x\)\(0\)\(1\)\(2\)\(3\)
\(y\)\(5\)\(6\)\(7\)\(8\)
(ii) The rule for this table is \(y = mx + 5\). Find \(m\).
\(x\)\(0\)\(1\)\(2\)\(3\)
\(y\)\(5\)\(7\)\(9\)\(11\)
Solution
\(5\)\(=\)\(0 + b\)
\(b\)\(=\)\(5\)
\(7\)\(=\)\(m + 5\)
\(m\)\(=\)\(2\)
y = x +5 y =2 x +5

(i) \(b = 5\), so \(y = x + 5\) (using \(x = 0\), \(y = 5\))
(ii) \(m = 2\), so \(y = 2x + 5\) (using \(x = 1\), \(y = 7\))

Example 2 — Finding m and b
The rule for this table is \(y = mx + b\). Find \(m\) and \(b\).
\(x\)\(0\)\(1\)\(2\)\(3\)
\(y\)\(6\)\(4\)\(2\)\(0\)
Solution
\(6\)\(=\)\(0 + b\)
\(b\)\(=\)\(6\)
\(4\)\(=\)\(m + 6\)
\(m\)\(=\)\(-2\)
y =−2 x +6

\(m = -2\) and \(b = 6\), so \(y = -2x + 6\). Check \(x = 3\): \(-6 + 6 = 0\).

Example 3 — One number missing
The rule for this table is \(y = \square\,x - 4\). What number goes in the box?
\(x\)\(0\)\(1\)\(2\)\(3\)
\(y\)\(-4\)\(1\)\(6\)\(11\)
Solution

The box is the change in \(y\) each time \(x\) goes up \(1\): \(1 - (-4) = 5\), \(6 - 1 = 5\), \(11 - 6 = 5\).

\(5 \times 3 - 4\)\(=\)\(11\)
5

The box holds \(5\): \(y = 5x - 4\).

Example 4 — Gaps, then the rule
Find \(a\) and \(b\), then the rule.
\(x\)\(0\)\(1\)\(2\)\(3\)\(4\)
\(y\)\(a\)\(8\)\(2\)\(-4\)\(b\)
Solution

The step is \(2 - 8 = -6\). \(a\) is one step left of \(8\); \(b\) is one step right of \(-4\).

\(a\)\(=\)\(8 + 6 = 14\)
\(b\)\(=\)\(-4 - 6 = -10\)
\(y\)\(=\)\(-6x + 14\)
a =14, b =−10, y =−6 x +14

\(a = 14\), \(b = -10\) and \(y = -6x + 14\). Check \(x = 3\): \(-18 + 14 = -4\).

Example 5 — A jump and a fraction
(i) Find the rule.
(ii) Find \(x\) when \(y = 12\).
\(x\)\(0\)\(4\)\(8\)\(12\)
\(y\)\(5\)\(6\)\(7\)\(8\)
Solution

\(x\) jumps by \(4\) while \(y\) goes up \(1\), so \(a = \dfrac{1}{4}\). The \(x = 0\) column gives \(k = 5\).

\(y\)\(=\)\(\dfrac{x}{4} + 5\)
\(\dfrac{x}{4}\)\(=\)\(12 - 5 = 7\)
\(x\)\(=\)\(28\)
y = x /4+5 x =28

(i) \(y = \dfrac{x}{4} + 5\) (check \(x = 12\): \(3 + 5 = 8\))
(ii) \(x = 28\)

Example 6 — A rule from a graph
The plotted points follow a rule.
(i) Find the rule.
(ii) Find \(y\) when \(x = 7\).
(iii) Find \(x\) when \(y = 12\).
Points on a line A number plane with five points: (-2, 6), (-1, 4), (0, 2), (1, 0) and (2, -2). They lie on a straight line going down 2 for every 1 across. xy −3−2−1123−3−2−112345670
Solution

The points are \((-2, 6)\), \((-1, 4)\), \((0, 2)\), \((1, 0)\) and \((2, -2)\). Each step right, \(y\) goes down \(2\); at \(x = 0\), \(y = 2\).

\(y\)\(=\)\(-2x + 2\)
\(-2 \times 7 + 2\)\(=\)\(-12\)
\(-2x + 2\)\(=\)\(12\)
\(x\)\(=\)\(-5\)
y =−2 x +2−12−5

(i) \(y = -2x + 2\)
(ii) \(-12\)
(iii) \(x = -5\)

Example 7 — No x = 0 column
(i) Find the rule for this table.
\(x\)\(2\)\(4\)\(6\)\(8\)
\(y\)\(1\)\(7\)\(13\)\(19\)
(ii) The rule \(w = 9 - \square\,v\) fits \(v = -1, 0, 1, 2\) and \(w = 11, 9, 7, 5\). What goes in the box?
Solution

(i) \(x\) jumps by \(2\) and \(y\) goes up \(6\), so \(a = 6 \div 2 = 3\). Substitute \(x = 2\), \(y = 1\).
(ii) \(w\) drops by \(2\) for each \(1\) in \(v\); the minus sign is already written.

\(1\)\(=\)\(3 \times 2 + k\)
\(k\)\(=\)\(-5\)
\(y\)\(=\)\(3x - 5\)
y =3 x −52

(i) \(y = 3x - 5\) (check \(x = 8\): \(24 - 5 = 19\))
(ii) \(2\), so \(w = 9 - 2v\).

Common pitfalls

Checking only one column. A rule must fit every column of the table.
Forgetting to divide by the jump. When \(x\) jumps by \(2\), a change of \(6\) in \(y\) means \(a = 3\), not \(6\).
Copying the first y-value as k. \(k\) is the \(y\)-value at \(x = 0\) only.
Writing a double negative in a given rule. In \(w = 9 - \square\,v\), the box holds the size of the drop, a positive number.

Frequently asked questions

How do I find the rule for a table of values?

Find a, the change in y when x goes up by 1, and k, the y-value when x = 0. The rule is y = ax + k. Check it in every column.

What if the table has no x = 0 column?

Find a first, then substitute any column into y = ax + k and solve for k.

What if the x-values go up by 2?

Divide the change in y by 2 to get a.

Can a be a fraction?

Yes. If y goes up 1 when x goes up 4, then a = 1/4.

How do I find the rule from a graph?

Read the coordinates of the points into a table, then find a and k as usual.