Functions
Stage 10 of 23 Strand 1 of 9 26 lessons
26 illustrated lessons, each teaching the why before the how.
Start with Function Notation in the app →
Revise Functions with flashcards →
Jump to a lesson
Function Notation #
f(4) means put 4 in, not f times 4.
A function is a machine that turns each input into exactly one output
f(x) names a rule. Whatever goes in, the rule says what comes out.
f(4) does not mean f times 4. It means substitute 4 for x: 3 × 4 + 1 = 13.
Plot every input against its output and the rule becomes a picture.
Working backward, g(x) = 10 asks which inputs give 10: both x = 3 and x = −3 do.
Now you
f(x) = 6x + 1. What is f(5)?
f(x) = 6x − 4. What is f(6)?
Lesson complete. Continue your journey in the app — your progress saves there.
Domain and Range #
What may go in, and what can come out.
The domain is what you are allowed to put in and the range is what can come out
Any number can be squared, so every number is an allowed input. The set of allowed inputs is the domain.
But is never negative, so the range, the set of outputs, is every number from 0 up.
Here x cannot be zero at all, because dividing by zero has no answer.
And a square root needs what is inside to be 0 or more, so its domain starts at 0.
Now you
. Which input is not allowed?
. What is the smallest output?
Lesson complete. Continue your journey in the app — your progress saves there.
Piecewise Functions #
One rule for some inputs, another for the rest.
A piecewise function gives a different rule on each interval of its domain
One function can carry two rules, each with the inputs it governs.
To evaluate, first find which interval the input is in, then use that rule.
x = 8 is in the other interval, so use the second rule: 10 − 8 = 2.
The boundary belongs to whichever rule carries the "or equal to".
Now you
f(x) = 4x + 1 for x < 5, and 14 − x for . What is f(5)?
f(x) = 3x + 1 for x < 2, and 10 − x for . What is f(4)?
Lesson complete. Continue your journey in the app — your progress saves there.
Graphing a Piecewise Function #
Filled where the point is in, hollow where not.
Each rule is drawn only over its own interval, and the endpoints show which piece includes the boundary
Two rules again, and this time they disagree about x = 2.
Draw each rule only over its own interval, and the graph breaks at x = 2.
A hollow dot marks a point that is not there; a filled dot marks one that is.
The strict < leaves that end open; the closes the other one.
Change the second rule to 5 − x and both give 3 at x = 2, so the break closes.
Now you
f(x) = x + 1 for x < 2, and 7 − x for . Does the graph break at x = 2?
f(x) = x + 1 for x < 3, and 8 − x for . What is the filled endpoint?
Lesson complete. Continue your journey in the app — your progress saves there.
Making a Piecewise Function Continuous #
Choose the constant that closes the jump.
The two pieces join without a jump exactly when both rules agree at the boundary
f(x) = 2x for x < 2 and x + 4 for : the graph jumps by 2 at the boundary.
Replace the 4 with an unknown k, and ask which value of k closes the jump.
Work out both rules at the boundary: one gives 4, the other gives 2 + k.
Set the two equal, and one value of k is left: k = 2.
With k = 2 both rules give 4 at x = 2, so the graph has no break: f is continuous.
Now you
f(x) = 3x for x < 2, and x + k for . Which k joins the pieces?
f(x) = 5x for x < 5, and x + k for . Which k joins the pieces?
Lesson complete. Continue your journey in the app — your progress saves there.
Composite Functions #
One machine fed into the next, right to left.
Feeding one function into another makes a composite, and the order changes the answer
Here are two functions: f adds 3, and g doubles.
gf means do f first: 4 becomes 7, then doubling gives 14.
fg means do g first: 4 becomes 8, then adding 3 gives 11. The order matters.
Now you
f(x) = x + 2, g(x) = 3x. What is gf(4)?
f(x) = x + 6, g(x) = 4x. What is gf(3)?
Lesson complete. Continue your journey in the app — your progress saves there.
Inverse Functions #
Reverse the steps, and reverse each one.
The inverse undoes a function by running every step backwards
Read the rule as steps in order: multiply by 3, then add 1.
To undo it, reverse the order of the steps and swap each step for its opposite.
The inverse is the original reflected in the line y = x.
Now you
f(x) = 4x + 7. What is the inverse?
f(x) = 3x + 8. What is the inverse?
Lesson complete. Continue your journey in the app — your progress saves there.
Restricting the Domain for an Inverse #
Cut a curve at its turning point so it can be undone.
A function has an inverse only where each output comes from one input, so restrict its domain until it does
gives 4 at both x = −2 and x = 2, so an inverse would not know which one to return.
Keep only and every horizontal line meets the curve at most once: f is now one-to-one.
On the inverse is , the reflection of that half in the line y = x.
For , start the domain at the vertex, , and take the positive root.
Now you
. What is the largest domain on which f has an inverse?
, for . What is ?
Lesson complete. Continue your journey in the app — your progress saves there.
When a Composite Function Exists #
The range of g has to fit inside the domain of f.
fg exists only when every output of g is an input f accepts: the range of g lies inside the domain of f
fg feeds the outputs of g into f. With and g(x) = x − 3, g gives −2 at x = 1, and does not exist.
So fg exists only when the range of g lies inside the domain of f. On , g gives , which fits.
Then fg, and its domain is the domain of g, , because x goes into g first.
The order matters. gf feeds the outputs of f, , into g, which takes every number, so gf exists.
Now you
and . What is the least k for which fg exists?
and . What is the least k for which fg exists?
Lesson complete. Continue your journey in the app — your progress saves there.
Transforming Graphs #
Outside the bracket moves it the way you expect.
Adding outside the bracket moves the graph up or down; adding inside moves it sideways, against the sign
Start with , whose vertex is at the origin.
Add 3 outside the function and every point moves up 3.
Subtract 3 inside the bracket, , and the curve moves 3 to the right.
x must be 3 larger to give the same value inside the bracket, so every point moves 3 to the right.
A line follows the same rule. Moved 2 right, y = 2x + 1 becomes y = 2x − 3: the intercept falls by 2 × 2.
Now you
. Which way does the curve move?
. Which way does the curve move?
Lesson complete. Continue your journey in the app — your progress saves there.
Stretching a Graph Vertically #
Outside the bracket, every height multiplies.
Multiplying a function from outside the bracket multiplies every height by the same factor
doubles every height, so the curve is stretched away from the x-axis.
At x = 2 the height goes from 4 to 8. The heights double, and no point moves sideways.
A factor less than 1 squashes it toward the x-axis, by the same rule.
A negative factor sends every height to the other side: is the reflection of in the x-axis.
Points on the x-axis have height 0, so they do not move, while every other point is stretched.
Now you
y = f(x) has a lowest value of 9. What is the lowest value of y = 2f(x)?
(1, 6) is on y = f(x). Where is it on y = 2f(x)?
Lesson complete. Continue your journey in the app — your progress saves there.
Stretching a Graph Horizontally #
Inside the bracket, the widths divide instead.
Replacing x by ax inside the bracket squashes the graph toward the y-axis by that factor
Start from , which meets the x-axis at −2 and at 2.
Replace x by 2x, and the inside of the bracket reaches each old value at half the x.
So crosses at −1 and 1: the curve is squashed toward the axis.
Replacing x by stretches it outward instead, to −4 and 4.
Outside the bracket multiplies the height; inside it divides the width.
Now you
y = f(x) crosses the x-axis at x = 9. Where does y = f(3x) cross?
Which one squashes the graph of y = f(x) toward the y-axis?
Lesson complete. Continue your journey in the app — your progress saves there.
Combining Graph Transformations #
Two changes in a row, and the order decides where a point lands.
Follow one point: outside the bracket the height goes through the arithmetic in order; inside, x goes through it backwards
y = 2f(x) + 1 changes y = f(x) twice. Here , and the point (4, 2) ends at (4, 5).
Outside the bracket, follow the arithmetic in order: the height is doubled first, and 1 is added after.
The order matters: translating first and stretching after gives 2f(x) + 2, not 2f(x) + 1.
Inside the bracket, work backwards: x = 0 makes 2x + 4 = 4, so the point at x = 4 moves to x = 0.
So f(2x + 4) is a translation 4 to the left, followed by a stretch of scale factor ½ parallel to the x-axis.
Now you
(2, 1) is on y = f(x). Where is it on y = 2f(x) + 1?
(9, 3) is on y = f(x). Where is it on y = f(3x + 3)?
Lesson complete. Continue your journey in the app — your progress saves there.
Exponentials and Logarithms #
A log asks what power the base was raised to.
A logarithm asks what power the base was raised to, so it undoes an exponential
doubles each time x goes up by 1, so it rises slowly at first, then very fast.
The same fact, read the other way: what power of 2 gives 32?
The graph of is the reflection of across the line y = x: the domain and range change places.
Now you
What is log base 10 of 10000?
What is log base 2 of 16?
Lesson complete. Continue your journey in the app — your progress saves there.
Exponential Growth #
Multiplying by the same factor every step.
Exponential growth multiplies by the same factor every step, so it accelerates
Doubling each step: 1, 2, 4, 8, 16. Each jump is as big as everything before it.
Adding the same amount each time gives a line. Multiplying gives this curve.
So after n steps the count is the start times — with ×3 each step, times .
Now you
3 multiplied by 2, 4 times over
3 multiplied by 2, 3 times over
Lesson complete. Continue your journey in the app — your progress saves there.
Exponential Decay #
The same rule with a factor below one.
The same rule with a factor below one shrinks toward zero without reaching it
Halving each step: 80, 40, 20, 10, 5. The same rule, with a factor below 1.
The curve falls steeply, then flattens as there is less left to halve.
It closes in on zero forever without reaching it — half of something is never zero.
Now you
64 halved 3 times
48 halved 2 times
Lesson complete. Continue your journey in the app — your progress saves there.
Growth and Decay Problems #
Doubling colonies and half-lives, one rule twice.
Repeated doubling and half-lives are the two exponential shapes at work
Doubling each hour is exponential growth: after n hours, 100 has become .
A half-life of 3 days: 9 days is three halvings, so 80 g drops to 40, 20, then 10.
A savings account grows this way, a cooling coffee cools this way — the same two shapes.
Now you
After n half-lives, what fraction of a sample remains?
A colony of 100 bacteria doubles every hour. How many after 3 hours?
Lesson complete. Continue your journey in the app — your progress saves there.
Logistic Growth and Carrying Capacity #
Growth that slows as the room runs out.
A logistic model grows like an exponential at first and then flattens onto the largest size the space allows
Exponential growth never lets up. Doubling forever would need unlimited room.
A real population flattens onto a ceiling instead: the carrying capacity.
As t grows the exponential fades to nothing, so P closes on L and stops.
At the start the same formula hands back the starting size, L over 1 + A.
Growth is fastest halfway up, then slows as the remaining room runs out.
Now you
Which model stops growing at a ceiling?
. What is the carrying capacity?
Lesson complete. Continue your journey in the app — your progress saves there.
The Laws of Logarithms #
A log turns multiplying into adding.
A logarithm turns multiplying into adding, which is what makes it useful
The law of exponents: multiplying powers of one base adds the exponents, .
So log(ab) = log a + log b, in any base — so long as it is one base throughout.
And : a power is repeated multiplying, so the n comes to the front.
And : dividing inside becomes subtracting outside.
Now you
log 20 − log 4 = log ?
log 4 + log 5 = log ?
Lesson complete. Continue your journey in the app — your progress saves there.
The Change of Base Rule #
Any log is a quotient of logs you can compute.
One rule turns any logarithm into a quotient of logs the calculator has
This x is : applying the common logarithm isolates it, through the change-of-base identity.
So is — and any base converts the same way.
A calculator offers only and ln — this rule reaches every base from those two.
So is 2.113 — and 5 to that power really does come back to 30.
Now you
Which quotient computes ?
What is , exactly?
Lesson complete. Continue your journey in the app — your progress saves there.
The Natural Logarithm #
The log with base e, partner of e to the x.
ln is the logarithm with base e, and it obeys every law the others do
ln is the log with base , the base that turns up wherever growth is continuous.
: whatever power e was raised to, ln hands it straight back.
The other way round too: . Each machine undoes the other.
Every law of logarithms carries over unchanged — ln is a log like any other.
Now you
ln undoes which function?
What is ?
Lesson complete. Continue your journey in the app — your progress saves there.
Solving Exponential Equations #
Take logs and the power comes down.
Taking logs of both sides brings the unknown power down where you can reach it
The unknown is an exponent, so no amount of dividing will free it.
Take the log of both sides, and the power law brings the x down from the exponent.
Now it is an ordinary division. Check it: 2 to the 5 really is 32.
And here counting could never have got there: 40 is not any whole power of 2.
Now you
. What is x?
. Which expression gives x?
Lesson complete. Continue your journey in the app — your progress saves there.
Logarithmic Graphs #
The exponential reflected in y = x.
The log graph is the exponential reflected in the line y equals x
climbs away steeply and never dips below the x-axis.
Undoing swaps input and output, and swapping x with y reflects a graph in y = x.
So is reflected in that line: every (a, b) becomes (b, a).
So it dives at 0 and never reaches it: no power of 2 will ever give zero.
Now you
What is ?
What is ?
Lesson complete. Continue your journey in the app — your progress saves there.
Straightening Growth with Logarithms #
Take logs and the curve becomes a readable line.
Taking logs turns an exponential law into a straight line whose rule can be read
sweeps up in a curve — its 3 and its 2 are hard to read off the picture.
Take logs of both sides: log y = log a + x · log b — a straight line in x.
Plot log y instead of y and the curve straightens: same data, now a line.
Undo the logs: the gradient gives b = 2 and the intercept a = 3 — the rule is recovered.
Now you
Why take logs of growth data at all?
On the log plot of , what does the slope give?
Lesson complete. Continue your journey in the app — your progress saves there.
Straightening a Power Law #
On log-log axes the slope is n itself.
A power law straightens on log-log axes, and the slope is n itself
sweeps up in a curve — is the power 2, 3 or 4? The picture will not say.
Take logs: log y = log a + n · log x — a straight line in log x, not in x.
Plot log y against log x and it straightens — same data, and the slope is n itself.
Read the rule off: n = 3 from the slope, and 10 to the intercept gives a = 2.
Now you
A log-log line has slope 2 and intercept 0.7. Which model fits?
On the log-log plot of , what does the slope give?
Lesson complete. Continue your journey in the app — your progress saves there.
Fitting a Logarithmic Model #
Rising forever, by less and less each step.
A logarithmic model y = a + b ln x keeps rising while each extra unit of x adds less than the last
Scores climb with practice, but each extra trial adds less than the one before.
A logarithmic model y = a + b ln x bends that way: it rises without a ceiling.
Plot the same scores against ln x and the bend straightens into a line.
Read a off as the intercept of that line and b off as its gradient.
Put a value in and the model predicts: twenty trials gives a score near 17.
Which axis you take logs of is what picks the family of model.
Now you
Plotted against ln x the data give the line y = 5·(ln x) + 6. What is the model?
Values rise forever, but each extra unit of x adds less. Which model?
Lesson complete. Continue your journey in the app — your progress saves there.