← Home

Functions & Relationships

Grade 8
Step 1 of 26
INTRODUCTION
1 / 26
Ready? Try the Quiz →

Full lesson notes

Everything covered in this lesson, in one place - useful for revision or printing.

\( \text{input} \rightarrow \text{rule} \rightarrow \text{output} \)

A relationship connects two sets of numbers: every input is turned into an output by a rule.

In this lesson you will learn to:

1. Input & Output

\( 3 \rightarrow \boxed{\times 2} \rightarrow 6 \)

Think of a rule as a machine. You feed in a number (the input), the machine applies its rule, and a new number comes out (the output).

Input \(3\), rule “multiply by 2” → output \(6\)

\( x \rightarrow \text{rule} \rightarrow y \)

We usually call the input \(x\) and the output \(y\).

Input (\(x\)) — the number you start with
Rule — what is done to the input
Output (\(y\)) — the result
The same input through the same rule always gives the same output. That is what makes it a relationship we can trust.

\( y = x + 5 \)

If the rule is “add 5”, then for input \(x=3\):

\( y = 3 + 5 = 8 \)
For input \(x=-2\):
\( y = -2 + 5 = 3 \)

\( \text{input} \xrightarrow{\ \text{rule}\ } \text{output} \)

Key idea: a relationship links every input to exactly one output through a rule. Next we will draw this idea as a flow diagram.

2. Flow Diagrams

\( x \rightarrow \boxed{\times 3} \rightarrow \boxed{+1} \rightarrow y \)

A flow diagram shows the rule as a chain of operations, applied left to right.

For \(x = 4\):   \(4 \rightarrow 12 \rightarrow 13\), so \(y = 13\)
First multiply by 3, then add 1. Order matters!

\( x \rightarrow \boxed{\times 6} \rightarrow \boxed{-4} \rightarrow y \)

Use the diagram for \(x = 1, 2, 3\):

\(1 \rightarrow 6 \rightarrow 2\)
\(2 \rightarrow 12 \rightarrow 8\)
\(3 \rightarrow 18 \rightarrow 14\)

\( x \rightarrow \boxed{\times 6} \rightarrow \boxed{-4} \rightarrow y \quad\Longleftrightarrow\quad y = 6x - 4 \)

Every flow diagram can be written as a formula. Read the operations in order:

“multiply by 6, then subtract 4”  →  \( y = 6x - 4 \)

\( y = 6x - 4 \)

Key idea: a flow diagram and a formula say the same thing. The diagram shows the steps; the formula compresses them into algebra.

3. Tables

\(x\) 1 2 3 4 \(y\) 5 8 11 14

A table lists inputs in the top row and outputs below. This table shows the rule \( y = 3x + 2 \):

\( 3(1)+2=5,\quad 3(2)+2=8,\quad 3(3)+2=11,\quad 3(4)+2=14 \)

\( y = 2x + 4 \)

Complete the outputs for \( x = 1, 2, 3, 10, 50 \):

\( T: \ 6,\ 8,\ 10,\ 24,\ 104 \)
A rule lets you jump straight to \(x=50\) without filling in everything before it — that is its power.

\( x:\ 1,\ 2,\ 3,\ 4 \qquad y:\ 6,\ 11,\ 16,\ 21 \)

The outputs increase by 5 each time, so the rule starts with \(5x\). Test \(x=1\): \(5(1)=5\), but the output is 6 — so add 1.

Rule: \( y = 5x + 1 \)
Check with \(x=4\): \(5(4)+1=21\). Correct.

\( \text{difference } d \Rightarrow y = dx + c \)

Key idea: when outputs change by a constant difference \(d\), the rule is \( y = dx + c \). Find \(c\) by testing the first input.

4. Formulae & Substitution

\( y = 3x - 2 \)

To use a formula, substitute the input and calculate. For \( x = -4 \):

\( y = 3(-4) - 2 = -12 - 2 = -14 \)
Always put negative inputs in brackets.

\( y = x^2 + 1 \)

Rules can include powers. For \( x = 3 \):

\( y = 3^2 + 1 = 9 + 1 = 10 \)
For \( x = -3 \):
\( y = (-3)^2 + 1 = 9 + 1 = 10 \)
Note \((-3)^2 = 9\), not \(-9\) — the brackets matter.

\( C = 6k + 18 \)

A taxi charges R18 plus R6 per kilometre. The formula gives the cost \(C\) for \(k\) kilometres.

For \(k=4\): \( C = 6(4) + 18 = \text{R}42 \)
Formulae describe real relationships, not just abstract numbers.

\( \text{substitute} \rightarrow \text{calculate} \rightarrow \text{check} \)

Key idea: substitution turns a formula into a specific answer. Use brackets, follow the order of operations, and sense-check the result.

5. Finding the Input

\( y = 2x + 5, \quad y = 25 \)

Sometimes you know the output and must find the input. Set up an equation and solve:

\( 2x + 5 = 25 \)
\( 2x = 20 \)
\( x = 10 \)

\( x \rightarrow \boxed{\times 3} \rightarrow \boxed{+4} \rightarrow 100 \)

On a flow diagram, work backwards using inverse operations, right to left:

\( 100 \xrightarrow{-4} 96 \xrightarrow{\div 3} 32 \)
So the input was \( x = 32 \).

\( 3(32) + 4 = 100 \)

Always check by running your answer forwards through the rule:

\( 3(32) + 4 = 96 + 4 = 100 \)
The output matches, so \(x = 32\) is correct.

\( \text{forwards: substitute} \qquad \text{backwards: solve} \)

Key idea: finding an output is substitution; finding an input is solving an equation (or reversing the flow diagram with inverse operations).

6. Equivalent Forms

\( \text{words} \leftrightarrow \text{flow diagram} \leftrightarrow \text{table} \leftrightarrow \text{formula} \)

The same relationship can be shown four ways:

Words: “multiply by 2, then add 4”
Flow diagram: \( x \rightarrow \boxed{\times 2} \rightarrow \boxed{+4} \rightarrow y \)
Table: \(x: 1,2,3 \;\rightarrow\; y: 6,8,10\)
Formula: \( y = 2x + 4 \)

\( y = 4n - 5 \)

From the formula \( y = 4n - 5 \):

Words: multiply the input by 4, then subtract 5
Flow diagram: \( n \rightarrow \boxed{\times 4} \rightarrow \boxed{-5} \rightarrow y \)
Table for \(n=1\) to \(4\): \(-1,\ 3,\ 7,\ 11\)

\( \text{Which form is best?} \)

Each form has a job:

Table — quick values at a glance
Flow diagram — shows the order of operations
Formula — jumps to any input instantly
Words — explains the rule to someone else

\( y = 2x + 4 \)

Key idea: being able to move between words, flow diagrams, tables and formulae is the heart of Functions & Relationships.

\[ \text{input} \xrightarrow{\ \text{rule}\ } \text{output} \qquad y = dx + c \]

You now know how to:


Test yourself with the quiz below.