Composite functions
- A composite function joins two machines. The output of the first becomes the input of the second.
- The main thing to get right is the order. The notation hides the order, so almost everyone gets it wrong the first time.
means . The inner (right-most) function acts first. Work it out, then put that output into the outer one.
Does it exist? only exists if the range of is inside the domain of . The inner machine's outputs must be allowed inputs for the outer machine. If not, there is nothing to put in.
The right-most function acts first
In , the function nearest the goes first. So says: put through , then put that result through . Read it from the inside out.
- So the order matters. In most cases, .
- Doing then usually gives a different rule.
- So you can never just swap them.
Why you read it from the inside out (the bracket reason)
It works like brackets inside brackets in algebra. To find , you must know the inner value first. Only then can you put it into . It is like : you work out the inside before the square root. So the function next to has to happen first.
How to build one
To find : take the rule for . Then put the whole expression in for its input, inside brackets.
Worked example
Textbook 2.4: and , find and
- : do first, so put into the “double and add 3” machine: .
- Expand and tidy: .
- : do first, so put into the “square and subtract 1” machine, keeping it in a bracket: .
- Expand the square first, then subtract: .
Two completely different rules. This shows the order matters.
Worked example
Real exam: for , find (9709/12 Oct/Nov 2021 Q3a)
means do twice, and with a number you do not need a general formula, you just work out the inner one first.
- Inner first: .
- Put that answer back in: .
(9709/12 Oct/Nov 2021 Q3(a)) The mark scheme wants clear proof that you used f twice, so write the middle step , not just the final . The answer comes back to , which is a sign this is its own inverse (more in §2.3).
Find the smallest k so the composite can be formed
- A common exam question gives you a smaller domain with an unknown . It asks for the smallest that lets the composite exist.
- This is just the rule above. Fit the range of the inner inside the domain of the outer.
Worked example
for , for : find the smallest for which can be formed
For , is the inner machine, so its outputs must be allowed inputs of , which means the range of must be inside the domain of , which is .
- is an increasing line, so on its smallest output is at : .
- Force that lowest output into 's domain : .
- Solve: , so the smallest allowed value is the boundary.
(9709-style)
Where the marks go
Common mistake
Common mistake
Common mistake
Now you try
The function is defined for , where is a constant. Express in terms of and . (9709/12 May/June 2020 Q5)
Your turn— tap to reveal the worked answer (9709/12 May/June 2020 Q5(a))
Do twice. Put the inner in for the input, inside a bracket:
Now expand the bracket and simplify: