The idea
A function turns each allowed input into exactly one output. Think of as a named machine: something goes in, a fixed rule is applied, and exactly one result comes out every time.
Composition chains machines together: means run first, then feed its output into .
An inverse function runs a reversible machine backward. To find , write and solve for . For , gives , so . An inverse exists on a domain only when each output identifies one input; otherwise the domain must be restricted.
Real-world: a ride-fare calculator
A taxi app charges a $3 booking fee plus $2 per kilometre; distance goes in and total fare comes out, so the rule is . A 6 km trip gives , i.e. $15 — one distance always produces one fare.
+ 1
Move the input; the same rule always produces one output.
Worked example
- Input
- Multiply by 2:
- Add 1:
- So
Cheat sheet
- names a fixed rule: the same input always gives the same output.
- Composition runs first, then applies to the result.
- An inverse reverses a one-to-one rule: solve for , then verify .
- A function may send two different inputs to the same output, but never one input to two outputs.
- To evaluate at a value, substitute it for every in the rule and simplify.