Introduction
A function is a rule that takes each input from a set called the domain and gives exactly one output. This topic covers how to combine functions (composition), undo them (inverses), the modulus function , and how changing a formula moves its graph (transformations). It finishes with the standard graphs of and and direct and inverse proportion.
Why it matters
Real processes are chains of simpler steps. Converting Celsius to Fahrenheit, then applying a tax, then rounding, is a composite function. Decoding a message means applying the inverse of the encoding. And if you know what looks like, transformations let you sketch immediately, without plotting a single point.
Intuitive explanation
Think of as a machine. Put in , get out . The composite means: put into first, then put the result into . Read it from the inside out, like getting dressed: socks before shoes.
is the machine that runs backwards. Its graph is the reflection of in the line , because reflecting swaps the roles of inputs and outputs.
Changes outside the function act on and do what you expect: moves the graph up 3. Changes inside act on and do the opposite: moves the graph left 3.
Formal definitions
A function assigns to each element of its domain exactly one value . The range is the set of all outputs. A function is one-to-one if different inputs always give different outputs.
. It is defined only where lies in the domain of .
If is one-to-one, is the function with . The domain of is the range of , and the range of is the domain of .
if and if . It is the distance of from .
Notation
- means .
- states the domain.
- is the inverse, not .
- means in this topic.
Transformation rules
| Equation | Effect on |
|---|---|
| translate by (up ) | |
| translate by (left ) | |
| stretch parallel to the -axis, scale factor | |
| stretch parallel to the -axis, scale factor | |
| reflect in the -axis | |
| reflect in the -axis | |
| reflect the parts below the -axis upwards | |
| copy the right-hand half onto the left |
Key results
The graph of is the reflection of in the line .
- is directly proportional to : , a straight line through the origin.
- is inversely proportional to : , a hyperbola with asymptotes and .
Why the rules work
On , the point with -coordinate has height . So every height that reaches at is reached by the new graph at , which is units to the left.
∎lies on lies on . Swapping coordinates is reflection in .
∎Why the graph of an inverse is a reflection in y = x
A point lies on exactly when , which is exactly when , i.e. when lies on . Swapping the coordinates of every point is precisely reflection in the line : the midpoint of and is , on the line, and the segment joining them has gradient , perpendicular to it.
The triangle inequality for the modulus
For all real : , with equality exactly when and have the same sign (or one is ).
Both sides are non-negative, so it is enough to compare squares. and . Since , the first is at most the second. Equality needs , i.e. .
∎A useful consequence is the reverse triangle inequality : apply the inequality to .
Why |x − a| < r is an interval
is the distance between and on the number line, so describes the points within of : the open interval . This "ball" picture is how analysis defines limits and continuity, and it generalises to any space where distance makes sense.
Methods
- Write .
- Rearrange to make the subject.
- Swap and (or just rename) to get .
- State the domain of : it is the range of .
For : solve and , then check each solution in the original equation (a sketch helps).
Sketch the graph over the given domain and read off the lowest and highest -values. For a quadratic, completing the square gives the minimum.
Sketching any transformation from four rules
Every transformation in this topic is built from these four, applied to the equation:
| Change to the equation | Effect on the graph |
|---|---|
| translate | |
| translate | |
| stretch parallel to the -axis, factor | |
| stretch parallel to the -axis, factor |
To handle a combination such as , write it as : inside, stretch by in and then translate ; outside, stretch by in and then translate . The cleanest way to avoid confusion is the substitution test: a point on goes to the point whose new solves , and whose new is .
Examples
, . Then , but . Order matters.
The Worked examples tab has full step-by-step solutions on inverses, modulus equations and transformations.
Common mistakes
applies first.
The inverse undoes ; the reciprocal is a different thing.
on has no inverse because it is not one-to-one. Restricting to fixes this.
Always substitute back. Squaring both sides or splitting cases can introduce false solutions.
is a stretch of scale factor (it squashes), not .
Applications
- Unit conversion and pricing: chains of functions and their inverses.
- Physics: Boyle's law is inverse proportion; inverse-square laws give .
- Signal processing: shifting and stretching a waveform is a graph transformation.
Connections
- Exponentials and logarithms: is the inverse of .
- Trigonometry: , , are inverses on restricted domains.
- Algebraic methods: completing the square finds ranges.
- Polynomials: sketches combine with transformations.
Summary
- : apply first.
- Inverse: rearrange ; domain of = range of ; graph reflected in .
- Only one-to-one functions have inverses.
- : solve both cases and check.
- Outside changes act on as expected; inside changes act on the opposite way.
- direct proportion, inverse proportion.
Worked examples
Try each one yourself first, then open the solution.
for and for . Find and solve .
Show the solution
- 1Apply first
.
- 2Set equal to 3
.
- 3Solve
. Both give , so both are valid.
;
, . Find .
Show the solution
- 1Write
.
- 2Clear the fraction
.
- 3Collect terms
.
- 4Make the subject and rename
, so , .
, . Find and state its domain.
Show the solution
- 1Complete the square
. On it is increasing, so one-to-one, with range .
- 2Rearrange
(positive root, since ).
- 3Write the inverse
, with domain .
,
The domain restriction tells you which square root to take.
Solve .
Show the solution
- 1Positive case
.
- 2Negative case
.
- 3Check both
: ✓. : ✓.
or
Solve .
Show the solution
- 1Interpret as distance
means is less than 3 away from 1.
- 2Write as a double inequality
.
- 3Solve
.
The curve has a maximum at . Find the coordinates of the maximum on (a) (b) (c) .
Show the solution
- 1Part (a): inside, so act on
moves right 3: .
- 2Part (b): outside, so act on
Stretch by 2, then up 1: -coordinate . Point .
- 3Part (c): stretch in
halves -coordinates: .
(a) (b) (c)
Find the range of for .
Show the solution
- 1Complete the square
: minimum at , which lies inside the domain.
- 2Check the endpoints
; .
- 3Read off
Lowest value , highest .
Always check whether the vertex is inside the domain, and test both endpoints.
is inversely proportional to the square of . When , . Find when .
Show the solution
- 1Write the model
.
- 2Find
.
- 3Use it
.
University-level ideas and the deeper mathematics behind this topic. Not needed for exams, but this is where the subject really opens up.
Functions as sets: injections, surjections and bijections (university)
At university a function is not a formula but a set of ordered pairs.
A function is a subset such that every appears in exactly one pair . We write . is the domain, the codomain, and the image (what A level calls the range).
So on and on are different functions, even though the formula is the same. This is why A level questions insist on stating the domain.
- is injective (one-to-one) if .
- is surjective (onto) if every equals for some .
- is bijective if it is both.
has an inverse (with and ) if and only if is bijective. The inverse is then unique.
If exists: , so is injective; and any , so is surjective. Conversely, if is bijective, each has exactly one with ; define . Uniqueness: if and are both inverses, .
∎The last line used associativity of composition, , which holds because both sides send to . Composition is associative but not commutative: exactly like matrix multiplication, and for a deep reason, since matrices are functions (linear maps).
fails both tests: it is not injective () and not surjective (nothing maps to ). Restricting the domain to fixes injectivity; restricting the codomain to fixes surjectivity. The result is a bijection with inverse .
Counting infinite sets
Two sets have the same cardinality if there is a bijection between them. Surprising consequences:
- and the even numbers have the same size, via .
- and have the same size: list the fractions along diagonals of a grid.
- and have the same size, via .
There is no surjection from onto . The reals are "more infinite" than the natural numbers.
Suppose were onto, and write each as a decimal Build with if and otherwise. Then differs from in the th digit for every (and avoids the ambiguity), so is not in the list. Contradiction.
∎Continuity and the inverse function theorem (university)
When does a function of a real variable have a well-behaved inverse? The answer links this topic to calculus.
If is continuous and injective on an interval , then is strictly increasing or strictly decreasing on .
If not, there are in with above (or below) both and . Take any value strictly between and . By the intermediate value theorem, is attained once in and once in : two different inputs with the same output, contradicting injectivity.
∎This is why, at A level, "find the largest domain on which has an inverse" always means "cut at a turning point".
If is continuous, strictly increasing and onto the interval , then is continuous and strictly increasing.
Geometrically clear (reflecting an unbroken curve in gives an unbroken curve), but the proof needs the completeness of .
Let be differentiable and strictly monotonic near , with , and let . Then is differentiable at , and
Write and , so . By continuity of , as , and when (injectivity). So
In Leibniz notation this is the memorable . The reflection picture explains it: reflecting in swaps rise and run, so gradients become reciprocals.
- is the inverse of : .
- is the inverse of on : , taking the positive root because there.
- is the inverse of : the derivative blows up at , matching the vertical tangent of at the origin. The hypothesis really is needed.
Iteration, fixed points and Möbius maps (university)
Several Extreme questions in this topic apply a function again and again. This is the start of dynamical systems.
Möbius transformations
Functions with are Möbius transformations. Their secret is that composing them is the same as multiplying matrices:
If and , then . Scalar multiples of a matrix give the same map.
If then , and the coefficients are exactly the entries of .
∎This explains the questions at once:
- , whose square is : so is the identity (self-inverse). Generally is a multiple of iff the trace is (Cayley–Hamilton: ).
- , whose cube is : so is the identity.
- Over , Möbius maps are exactly the conformal bijections of the Riemann sphere; they map circles and lines to circles and lines.
Fixed points and cobwebs
A fixed point of is a solution of : where meets . Iterating is drawn as a cobweb diagram: go vertically to the curve, horizontally to the line, repeat.
Let be continuously differentiable with fixed point . If , iterates starting close enough to converge to . If , nearby iterates are pushed away.
By the mean value theorem, for some between and . Near , , so .
∎This is the theory behind the iteration method in Numerical methods. Its abstract form, the Banach fixed-point theorem, says that every contraction of a complete metric space has exactly one fixed point; it is used to prove that differential equations have unique solutions.
Chaos from a quadratic
The logistic map on is just a transformed parabola, yet:
- for , iterates settle on the fixed point ;
- at that point becomes repelling and a 2-cycle appears (points with , , exactly the "swapped pairs" of question Q54);
- the cycles keep doubling, , at values of whose gaps shrink by a ratio approaching the Feigenbaum constant ;
- by the behaviour is chaotic: two starting points apart become unrelated within about 35 steps.
If a continuous map of an interval to itself has a point of period , it has points of every period .
So (period 3 everywhere) would be wildly complicated if it were a continuous self-map of an interval, but it is not: it jumps across the asymptote at .
Why does this work?
The new graph at shows the height the old graph had at , which is units to the right. So each feature appears units earlier, to the left. Inside the bracket you change the input, and the graph has to move the opposite way to compensate.
Beyond the syllabus
Mathematical curiosities
Weierstrass's function (with and , an odd integer) is continuous but has no tangent anywhere: zoom in and the wiggles never smooth out.