Linear Functions and Graphs

Chapter 6 Study Notes · O-Level 4052

Section 3 of 9
Contents

6.2Functions: One Input, One Output

A function is a rule that turns each input xx into exactly one output yy, written y=f(x)y = f(x). Press the same button on a vending machine and you always get the same one item, never two, never none.

3× 26+ 175× 210+ 111x× 22x+ 12x + 1Put 3 in and 7 always comes out. Never two answers, never none.
The rule f(x)=2x+1f(x) = 2x + 1 drawn as a machine: an input enters on the left, each stage acts in turn, and exactly one output leaves on the right.
  • Each input must give exactly one output; if one input could give two, it is not a function.
  • f(3)f(3) means substitute x=3x = 3 into the rule to find the output.

Evaluating a function: whole number input

A function is defined by f(x)=4x7\displaystyle f(x) = 4x - 7. Find f(5)\displaystyle f(5) and f(0)\displaystyle f(0).

Show solution
f(5)\displaystyle f(5)
=4(5)7substitute x=5\displaystyle = 4(5) - 7 \quad \scriptsize\textit{substitute } x = 5
=207\displaystyle = 20 - 7
=13\displaystyle = 13
f(0)\displaystyle f(0)
=4(0)7substitute x=0\displaystyle = 4(0) - 7 \quad \scriptsize\textit{substitute } x = 0
=07\displaystyle = 0 - 7
=7\displaystyle = -7

Now you try

Given y=3x4y = 3x - 4, find the value of yy when x=1x = 1.

Show solution
y\displaystyle y
=3x4\displaystyle = 3x - 4
y\displaystyle y
=3(1)4substitute x = 1\displaystyle = 3(1) - 4 \quad \scriptsize\textit{substitute x = 1}
=34\displaystyle = 3 - 4
=1\displaystyle = -1

Want it marked, with hints, and a new question each time? Practise this →

Evaluating a function: negative input

Given g(x)=35x\displaystyle g(x) = 3 - 5x, find g(4)\displaystyle g(-4) and find the value of x\displaystyle x when g(x)=28\displaystyle g(x) = 28.

Show solution
g(4)\displaystyle g(-4)
=35(4)substitute x=4\displaystyle = 3 - 5(-4) \quad \scriptsize\textit{substitute } x = -4
=3+20\displaystyle = 3 + 20
=23\displaystyle = 23
To find xx when g(x)=28g(x) = 28:
35x\displaystyle 3 - 5x
=28\displaystyle = 28
5x\displaystyle -5x
=25subtract 3 from both sides\displaystyle = 25 \quad \scriptsize\textit{subtract 3 from both sides}
x\displaystyle x
=5\displaystyle = -5

Now you try

Given y=4x+11y = -4x + 11, find the value of xx when y=23y = 23.

Show solution
y\displaystyle y
=4x+11\displaystyle = -4x + 11
23\displaystyle 23
=4x+11substitute y = 23\displaystyle = -4x + 11 \quad \scriptsize\textit{substitute y = 23}
4x\displaystyle -4x
=2311\displaystyle = 23 - 11
4x\displaystyle -4x
=12\displaystyle = 12
x\displaystyle x
=124\displaystyle = -\frac{12}{4}
=3\displaystyle = -3

Want it marked, with hints, and a new question each time? Practise this →

Predict

If f(x)=x23f(x) = x^2 - 3, what is f(2)f(2)? Decide before reading on.

Show the answer
f(2)f(2) means: substitute x=2x = 2 into the rule.
f(2)\displaystyle f(2)
=223\displaystyle = 2^2 - 3
=1\displaystyle = 1
It does not mean f×2f \times 2: the letter names the rule, and the bracket holds its input.

Practise this

Questions on Linear Functions and Graphs, marked as you go, with the working shown.

Practise Linear Functions and Graphs