Functions in maths: notation, composite functions and inverse functions
TutorAura guide · Updated
A function is a rule that turns each input into exactly one output. Write , and means "put 4 into the rule": . Function notation is just a compact way of writing "the machine that triples and adds two", and once you're comfortable with it, two further ideas follow: composite functions (one machine feeding another) and inverse functions (the machine run backwards). This guide covers all three with the examples exams use.
Key takeaways
- f(x) is the output of the rule f for the input x; f(4) means substitute 4.
- fg(x) means do g first, then f: substitute g(x) into f.
- To find the inverse, write y = f(x), swap x and y, rearrange for y.
- A function and its inverse undo each other: f⁻¹(f(x)) = x.
Function notation
names the function and says what it does to any input . Then:
is not multiplied by . It's "f of x", the output of at . Other letters work the same way: , .
Solving means finding the input that gives 11: , so .
Domain and range
The domain is the set of inputs a function accepts; the range is the set of outputs it produces.
For the domain is (you can't square root a negative) and the range is . For the domain excludes (division by zero). For with all real inputs, the range is .
Exam questions often give a restricted domain and ask for the range: for with , the range is .
Composite functions
A composite function applies one function, then another. , also written , means do g first, then put the result into f.
With and :
These are different functions: but . Read composites from the inside (right) outwards, and replace every in the outer function with the whole inner expression, brackets included.
means apply twice: .
Inverse functions
The inverse undoes : if , then . To find it:
- Write .
- Swap and .
- Rearrange to make the subject.
- Write the result as .
For : , so .
Check: ✓.
For : .
The graph of is the reflection of the graph of in the line . Only one-to-one functions have inverses; needs its domain restricted (to , say) before it does.
Common mistakes
- Treating as a product and "cancelling" the .
- Doing the functions in the wrong order in a composite: is g first.
- Forgetting brackets when substituting an expression: , not .
- Confusing with . The inverse is a different idea from the reciprocal.
Practice questions
and .
- Find and .
- Solve .
- Find and .
- Find .
- Find .
Answers: 1. and . 2. . 3. ; . 4. . 5. .
More practice in our functions questions.
Frequently asked questions
What does f(x) mean?
The output of the function f when the input is x. It's read 'f of x' and is not f multiplied by x.
What is the difference between fg(x) and gf(x)?
The order. fg(x) applies g first, then f; gf(x) applies f first, then g. They usually give different results.
How do you find an inverse function?
Write y = f(x), swap x and y, rearrange to make y the subject, and call the result f⁻¹(x). Check it by putting an output back in and getting the original input.
Sources
- GCSE mathematics: subject content and assessment objectives. Department for Education.
- Cambridge IGCSE Mathematics 0580 syllabus. Cambridge International.
- Cambridge International AS & A Level Mathematics 9709. Cambridge International.
Keep reading
Functions (composite and inverse) questions and answers
8 GCSE and IGCSE questions with worked answers, checked as you type.
Transformations of graphs: translations, reflections and stretches of y = f(x)
The six transformation rules with a table, why f(x + a) moves left, and worked examples on turning points.
Simplifying algebraic expressions: like terms, brackets and indices
Collecting like terms, multiplying and dividing terms, index laws and brackets, with worked examples.
An AI algebra tutor: from your first equation to quadratics
Equations, graphs, systems, factoring and quadratics, taught step by step with your working checked on a whiteboard.