A turns each input into exactly one output. Its is the set of inputs it accepts, and its is the set of outputs it gives. An runs it backwards, so solving f(x)=10 is the same as finding f−1(10).
You'll be able to
Explain what a function is, and use notation such as f(x), v(t) and C(n).
Find the domain and range of a function, using its graph to see the range.
Use a function as a of a real situation, with a domain that fits the context.
Describe an inverse as undoing a function, and draw it as a reflection in y=x.
Solve f(x)=k by finding f−1(k), knowing that only functions have inverses.
Before you start3 quick questions on what this builds on
Check yourself
Find the value of 3x2−5x when x=−2.
Check yourself
Solve 3x+4=7.
Check yourself
For which value of x is 9−x not a real number?
Functions and function notation
Think of a as a machine. Feed in a number and it gives back exactly one number. With the rule “double it, then add 1”, an input of 3 always gives 7.
In f(x)=2x+1, the letter f names the function and x is the input. f(3) means “the output of f when the input is 3”. So f(3)=2(3)+1=7. It never means f times 3.
Other letters work the same way: v(t) could be a velocity at time t, and C(n) the cost of n tickets.
The graph of f is the set of all points (x,f(x)). Each point's height is its output, so you write y=f(x).
Worked exampleGiven g(x)=x2−4x+1, find g(−3).
Try it first, then reveal one step at a time.
Replace every x with (−3), in brackets: g(−3)=(−3)2−4(−3)+1.
Work out each term: (−3)2=9 and −4(−3)=+12.
Add: 9+12+1=22.
g(−3)=22
Worked exampleGiven f(x)=x2+3, find and simplify f(x−1).
Try it first, then reveal one step at a time.
The input is now the whole expression x−1. Replace every x in the rule with (x−1): f(x−1)=(x−1)2+3.
Expand the bracket: (x−1)2=x2−2x+1.
Add the 3: x2−2x+1+3=x2−2x+4.
Check with x=4: f(3)=12, and 42−2(4)+4=12 too.
f(x−1)=x2−2x+4
Check yourself
Let p(t)=t+112. Find p(3).
Check yourself
Given f(x)=2x2−x, find f(x+1).
Domain and range
Some inputs break a function. You can't take the square root of a negative number or divide by zero. So each function comes with a set of inputs it accepts.
A question may state the domain, as in “f(x)=x2, x≥0”. If it doesn't, take every real number that works. Two rules find the problem values:
1. A square root needs the expression inside it to be ≥0.
2. A fraction needs its denominator to be non-zero. For example, x+25 has domain x∈R, x=−2.
Write a domain with x, such as x≥4. Write a range with the output, such as f(x)≥3 or y≥3. Intervals also work: x≥4 is x∈[4,∞[.
Worked exampleFind the domain and range of f(x)=3+x−4.
Try it first, then reveal one step at a time.
Domain: the square root needs x−4≥0, so x≥4.
Range: the smallest a square root can be is 0. Here that happens at x=4, where f(4)=3+0=3.
As x grows, x−4 grows without limit, so f(x) does too. Every output is at least 3.
Check with a value: f(13)=3+9=6, which is ≥3.
domain: x≥4,range: f(x)≥3
Finding a range by reasoning alone gets hard quickly. A graph helps: the range is the stretch of the y-axis that the graph covers, from its lowest point to its highest.
The range of g runs from the lowest point of the graph to the highest, here −4≤g(x)≤5.
Worked exampleLet g(x)=(x−1)2−4, with domain −1≤x≤4. What is the range of g?
Try it first, then reveal one step at a time.
Sketch the graph. It is a U-shaped parabola with its lowest point where (x−1)2=0, at (1,−4). That point lies inside the domain.
Work out the end points: g(−1)=(−2)2−4=0 and g(4)=32−4=5.
The lowest output is −4, at the turning point. The highest is 5, at the right-hand end.
The end values alone, 0 and 5, would miss the dip to −4 in between.
−4≤g(x)≤5
Check yourself
Find the domain of k(x)=10−4x.
Check yourself
Find the range of f(x)=7−x2 for −1≤x≤3.
Functions as models
A is a function that describes something real, such as a cost or a height. Its letters stand for real quantities with units.
The context sets the . Time can't be negative, and a number of visits is a whole number. Outside its domain a model can give nonsense, such as a negative height.
Worked exampleA climbing gym charges a joining fee plus a fee for each visit. After n visits, a member has paid C(n)=25+8n dollars in total. (a) Find C(6) and say what it means. (b) Find the number of visits after which the total paid reaches 145 dollars.
Try it first, then reveal one step at a time.
(a) C(6)=25+8(6)=73. After 6 visits the member has paid 73 dollars in total.
(b) You want the input that gives the output 145. Solve 25+8n=145.
Subtract 25: 8n=120. Divide by 8: n=15.
Check it fits the domain: n counts visits, so it must be a whole number, and 15 is.
C(6)=73,n=15
Because n is a whole number (n=0,1,2,…), the graph of C is a row of dots, not a line. Its is 25,33,41,…, so a total of exactly 100 dollars never happens.
On Paper 2, your calculator draws the graph and you read the range from it. Check the end points and every turning point.
Worked exampleA ball is thrown upwards from a height of 1.6 m. Its height in metres t seconds later is modelled by h(t)=1.6+11t−4.9t2, until it lands on the ground. (a) Use your calculator to find when the ball lands, and hence state a suitable domain. (b) Find the range of h. Give your answers to 3 s.f.
Try it first, then reveal one step at a time.
(a) The ball lands when its height is 0. Write down the equation you solve: 1.6+11t−4.9t2=0.
Graph y=1.6+11x−4.9x2 and find its zeros: x=−0.137… and x=2.38198…. Time can't be negative, so the ball lands at t=2.38 s.
The model starts at t=0 and stops at landing, so a suitable domain is 0≤t≤2.38.
(b) Use the maximum tool on the same graph: the top is at (1.12244…,7.77346…). Carry the full value and round only at the end.
The lowest height over the domain is 0, at landing. It is not the starting height 1.6, because the ball falls below that before it lands.
domain: 0≤t≤2.38,range: 0≤h(t)≤7.77
Check yourself
A phone's battery charge, as a percentage, t hours after it was fully charged is modelled by B(t)=100−6t. The model holds until the battery is empty. Which is a suitable domain?
Check yourself
A drone takes off from a roof. Its height in metres t minutes later is modelled by h(t)=0.5t3−6t2+18t+2, for 0≤t≤7. Use your calculator to find the range of h.
Inverse functions
The function f(x)=2x+3 doubles its input, then adds 3. To get from an output back to the input, undo those steps in reverse order: subtract 3, then halve.
That undoing rule is the of f, written f−1. Here f−1(x)=2x−3. Test it: f(4)=11, and f−1(11)=211−3=4.
Swapping input and output swaps the coordinates. If (a,b) is on the graph of f, then (b,a) is on the graph of f−1.
f(x)=x2+1, x≥0, and its inverse. The point (2,5) on f becomes (5,2) on f−1.
Worked exampleLet f(x)=4x+5. Find f−1(x) by undoing the steps of f.
Try it first, then reveal one step at a time.
List what f does to its input, in order: divide by 4, then add 5.
Undo them in reverse order: first subtract 5, then multiply by 4.
Apply these to the input x: x−5, then 4(x−5)=4x−20.
Check with a number: f(8)=2+5=7, and f−1(7)=28−20=8, back where you started.
f−1(x)=4x−20
Undoing steps works when x appears once in the rule. In 2.5 you'll learn an algebraic method that finds inverses of harder functions.
Check yourself
Let f(x)=3x−7. Which is f−1(x)?
Check yourself
The point (−3,8) lies on the graph of y=f(x). Which point must lie on the graph of y=f−1(x)?
Not every function can be undone. f(x)=x2 sends both 3 and −3 to 9. Undoing would have to send 9 back to two inputs, and a function gives only one output.
Restricting the can make a function one-to-one. x2 with x≥0 passes the horizontal line test, and its inverse is x.
Now the key link. Solving f(x)=10 asks which input gives the output 10. That input is exactly f−1(10). So you can find f−1(10) by solving f(x)=10, with no formula for f−1.
Worked exampleThe function g is defined by g(x)=x2−6 for x≥0. (a) Write down the domain of g−1. (b) Find g−1(10).
Try it first, then reveal one step at a time.
(a) Since x2≥0, the smallest output is g(0)=−6, and outputs grow from there. So the range of g is g(x)≥−6.
The domain of g−1 is the range of g: x≥−6.
(b) g−1(10) is the input that gives 10. Solve x2−6=10, so x2=16 and x=4 or x=−4.
The domain of g is x≥0, so reject −4. Check: g(4)=16−6=10.
domain of g−1: x≥−6,g−1(10)=4
Worked exampleThe function f(x)=x3+2x−5 is one-to-one. Use your calculator to find f−1(20). Give your answer to 3 s.f.
Try it first, then reveal one step at a time.
There's no easy formula for f−1 here. But f−1(20) is the input that gives 20, so solve f(x)=20.
Write down the equation first: x3+2x−5=20, or x3+2x−25=0.
Graph y=x3+2x−25 and use the zero tool, as for the ball above: x=2.69651…. It crosses only once, as a one-to-one function should.
Round only now, to 3 s.f. Keep the trailing zero: 2.70, not 2.7.
f−1(20)≈2.70
Check yourself
Let h(x)=2x3+1. Find h−1(55).
Check yourself
The function f is defined by f(x)=(x−2)2+1 for x≥2. What is the domain of f−1?
Common mistakes
Giving the range in terms of x, or as the x-value of a turning point. A range lists outputs, so write it with f(x) or y, such as f(x)≥−4.
Finding the range from the end points alone. The graph can dip lower or rise higher in between, so check every turning point inside the domain.
Reading f−1(x) as f(x)1. The −1 means “inverse”, not a power.
Keeping both roots when you solve f(x)=k on a restricted domain. If the domain is x≥0, a negative root is not an input of f, so reject it.
Including a value that breaks the function. A denominator can't be 0, so that value of x is left out of the domain.
Exam tips
**Write down** means no working is needed, but the notation must be right: use x for a domain and f(x) or y for a range.
To **find** a range, sketch the graph over the given domain first. Mark the end points and turning points, then read off the lowest and highest outputs.
On Paper 2, you can find f−1(k) without a formula. Write down the equation f(x)=k, then solve it on your GDC. That written equation earns the method mark.
**Interpret** means say what a value means in the context, in words and with units. Check it makes sense: a time can't be negative.
Key takeaways
Learn thisA function gives exactly one output f(x) for each input x in its domain.
Learn thisDomain: the inputs allowed. A square root needs its inside ≥0, and a denominator can't be 0.
Learn thisRange: the outputs you get. Sketch the graph over the domain and read off the lowest and highest values.
Learn thisIn a model, the context sets the domain: times are not negative, and counts are whole numbers.
Learn thisf−1 undoes f: if f(a)=b, then f−1(b)=a. Its graph is the reflection of y=f(x) in y=x.
Learn thisOnly one-to-one functions have inverses. The domain of f−1 is the range of f.
Learn thisSolving f(x)=k is the same as finding f−1(k).
Practise this
3 past-paper questions on 2.2 in the AA HL bank, each with a mark scheme and a worked explanation.