Knaph

Functions42 of 972 min read

Inputs and Outputs: Using f(x)

Maths has a short way to say "put 3 into the rule". It is written f(3), and it saves a lot of words.

Function notation

We name a function with a letter, often f. The rule f(x)=2x+1f(x) = 2x + 1 is read "f of x equals 2x2x plus 1". The x is the input. The whole f(x) is the output.

To find f(4), replace every x with 4: f(4)=2(4)+1=9f(4) = 2(4) + 1 = 9. So the input 4 gives the output 9.

A machine box labelled f(x) = 2x + 1 with the input 4 going in on the left and the output 9 coming out on the right.

Evaluating with care

Brackets matter. For g(x)=x2−3g(x) = x^2 - 3, the value g(−2) is (−2)² − 3 = 4 − 3 = 1. Square the −2 first, then take away 3.

Write the rule once with an empty pair of brackets, like ( )² − 3, and put the input inside. That keeps the signs right.

Going the other way

Sometimes you know the output and want the input. If f(x)=2x+1f(x) = 2x + 1 and f(x)=11f(x) = 11, then 2x+1=112x + 1 = 11. Take away 1, then halve: x=5x = 5.

So f(5) = 11. The input 5 is the one that gives output 11.

Careful

F(3) does not mean f times 3. It means the output when the input is 3.

Try it at home

  1. Write your own function, like f(x)=3x−2f(x) = 3x - 2.
  2. Find f(0), f(1) and f(−2).
  3. Pick an output and work out which input gives it.

Words in this lesson

  • function notation - writing a function as f(x), where x is the input and f(x) is the output.
  • evaluate - to put an input into a rule and work out the output.

Big idea

F(x) is the output for the input x: replace x with the number and work it out.

Test your understanding

Sign in to test your understanding of this lesson and track your progress.