2.2 · SLPaper 1Paper 2

Function concepts, domain and range

26 min read

In a minute

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)=10f(x) = 10 is the same as finding f−1(10)f^{-1}(10).

You'll be able to

  • Explain what a function is, and use notation such as f(x)f(x), v(t)v(t) and C(n)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=xy = x.
  • Solve f(x)=kf(x) = k by finding f−1(k)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−5x3x^{2} - 5x when x=−2x = -2.
Check yourself
Solve x+43=7\frac{x + 4}{3} = 7.
Check yourself
For which value of xx is 9−x\sqrt{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 33 always gives 77.

In f(x)=2x+1f(x) = 2x + 1, the letter ff names the function and xx is the input. f(3)f(3) means “the output of ff when the input is 33”. So f(3)=2(3)+1=7f(3) = 2(3) + 1 = 7. It never means ff times 33.

Other letters work the same way: v(t)v(t) could be a velocity at time tt, and C(n)C(n) the cost of nn tickets.

The graph of ff is the set of all points (x,f(x))(x, f(x)). Each point's height is its output, so you write y=f(x)y = f(x).

Worked exampleGiven g(x)=x2−4x+1g(x) = x^{2} - 4x + 1, find g(−3)g(-3).

Try it first, then reveal one step at a time.

  1. Replace every xx with (−3)(-3), in brackets: g(−3)=(−3)2−4(−3)+1g(-3) = (-3)^{2} - 4(-3) + 1.
Worked exampleGiven f(x)=x2+3f(x) = x^{2} + 3, find and simplify f(x−1)f(x - 1).

Try it first, then reveal one step at a time.

  1. The input is now the whole expression x−1x - 1. Replace every xx in the rule with (x−1)(x - 1): f(x−1)=(x−1)2+3f(x - 1) = (x - 1)^{2} + 3.
Check yourself
Let p(t)=12t+1p(t) = \frac{12}{t + 1}. Find p(3)p(3).
Check yourself
Given f(x)=2x2−xf(x) = 2x^{2} - x, find f(x+1)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)=x2f(x) = x^{2}, x≥0x \ge 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\ge 0.

2. A fraction needs its denominator to be non-zero. For example, 5x+2\frac{5}{x + 2} has domain x∈Rx \in \mathbb{R}, x≠−2x \ne -2.

Write a domain with xx, such as x≥4x \ge 4. Write a range with the output, such as f(x)≥3f(x) \ge 3 or y≥3y \ge 3. Intervals also work: x≥4x \ge 4 is x∈[4,∞[x \in [4, \infty[.

Worked exampleFind the domain and range of f(x)=3+x−4f(x) = 3 + \sqrt{x - 4}.

Try it first, then reveal one step at a time.

  1. Domain: the square root needs x−4≥0x - 4 \ge 0, so x≥4x \ge 4.

Finding a range by reasoning alone gets hard quickly. A graph helps: the range is the stretch of the yy-axis that the graph covers, from its lowest point to its highest.

x y (−1, 0) (4, 5) (1, −4) range 5 −4
The range of gg runs from the lowest point of the graph to the highest, here −4≤g(x)≤5-4 \le g(x) \le 5.
Worked exampleLet g(x)=(x−1)2−4g(x) = (x - 1)^{2} - 4, with domain −1≤x≤4-1 \le x \le 4. What is the range of gg?

Try it first, then reveal one step at a time.

  1. Sketch the graph. It is a U-shaped parabola with its lowest point where (x−1)2=0(x - 1)^{2} = 0, at (1,−4)(1, -4). That point lies inside the domain.
Check yourself
Find the domain of k(x)=10−4xk(x) = \sqrt{10 - 4x}.
Check yourself
Find the range of f(x)=7−x2f(x) = 7 - x^{2} for −1≤x≤3-1 \le x \le 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 nn visits, a member has paid C(n)=25+8nC(n) = 25 + 8n dollars in total. (a) Find C(6)C(6) and say what it means. (b) Find the number of visits after which the total paid reaches 145145 dollars.

Try it first, then reveal one step at a time.

  1. (a) C(6)=25+8(6)=73C(6) = 25 + 8(6) = 73. After 66 visits the member has paid 7373 dollars in total.

Because nn is a whole number (n=0,1,2,…n = 0, 1, 2, \ldots), the graph of CC is a row of dots, not a line. Its is 25,33,41,…25, 33, 41, \ldots, so a total of exactly 100100 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.61.6 m. Its height in metres tt seconds later is modelled by h(t)=1.6+11t−4.9t2h(t) = 1.6 + 11t - 4.9t^{2}, 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 hh. Give your answers to 3 s.f.

Try it first, then reveal one step at a time.

  1. (a) The ball lands when its height is 00. Write down the equation you solve: 1.6+11t−4.9t2=01.6 + 11t - 4.9t^{2} = 0.
Check yourself
A phone's battery charge, as a percentage, tt hours after it was fully charged is modelled by B(t)=100−6tB(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 tt minutes later is modelled by h(t)=0.5t3−6t2+18t+2h(t) = 0.5t^{3} - 6t^{2} + 18t + 2, for 0≤t≤70 \le t \le 7. Use your calculator to find the range of hh.

Inverse functions

The function f(x)=2x+3f(x) = 2x + 3 doubles its input, then adds 33. To get from an output back to the input, undo those steps in reverse order: subtract 33, then halve.

That undoing rule is the of ff, written f−1f^{-1}. Here f−1(x)=x−32f^{-1}(x) = \frac{x - 3}{2}. Test it: f(4)=11f(4) = 11, and f−1(11)=11−32=4f^{-1}(11) = \frac{11 - 3}{2} = 4.

Swapping input and output swaps the coordinates. If (a,b)(a, b) is on the graph of ff, then (b,a)(b, a) is on the graph of f−1f^{-1}.

x y (2, 5) (5, 2) y = f(x) y = f⁻¹(x) y = x
f(x)=x2+1f(x) = x^{2} + 1, x≥0x \ge 0, and its inverse. The point (2,5)(2, 5) on ff becomes (5,2)(5, 2) on f−1f^{-1}.
Worked exampleLet f(x)=x4+5f(x) = \frac{x}{4} + 5. Find f−1(x)f^{-1}(x) by undoing the steps of ff.

Try it first, then reveal one step at a time.

  1. List what ff does to its input, in order: divide by 44, then add 55.

Undoing steps works when xx 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−7f(x) = 3x - 7. Which is f−1(x)f^{-1}(x)?
Check yourself
The point (−3,8)(-3, 8) lies on the graph of y=f(x)y = f(x). Which point must lie on the graph of y=f−1(x)y = f^{-1}(x)?

Not every function can be undone. f(x)=x2f(x) = x^{2} sends both 33 and −3-3 to 99. Undoing would have to send 99 back to two inputs, and a function gives only one output.

Restricting the can make a function one-to-one. x2x^{2} with x≥0x \ge 0 passes the horizontal line test, and its inverse is x\sqrt{x}.

Now the key link. Solving f(x)=10f(x) = 10 asks which input gives the output 1010. That input is exactly f−1(10)f^{-1}(10). So you can find f−1(10)f^{-1}(10) by solving f(x)=10f(x) = 10, with no formula for f−1f^{-1}.

Worked exampleThe function gg is defined by g(x)=x2−6g(x) = x^{2} - 6 for x≥0x \ge 0. (a) Write down the domain of g−1g^{-1}. (b) Find g−1(10)g^{-1}(10).

Try it first, then reveal one step at a time.

  1. (a) Since x2≥0x^{2} \ge 0, the smallest output is g(0)=−6g(0) = -6, and outputs grow from there. So the range of gg is g(x)≥−6g(x) \ge -6.
Worked exampleThe function f(x)=x3+2x−5f(x) = x^{3} + 2x - 5 is one-to-one. Use your calculator to find f−1(20)f^{-1}(20). Give your answer to 3 s.f.

Try it first, then reveal one step at a time.

  1. There's no easy formula for f−1f^{-1} here. But f−1(20)f^{-1}(20) is the input that gives 2020, so solve f(x)=20f(x) = 20.
Check yourself
Let h(x)=2x3+1h(x) = 2x^{3} + 1. Find h−1(55)h^{-1}(55).
Check yourself
The function ff is defined by f(x)=(x−2)2+1f(x) = (x - 2)^{2} + 1 for x≥2x \ge 2. What is the domain of f−1f^{-1}?

Common mistakes

  • Giving the range in terms of xx, or as the xx-value of a turning point. A range lists outputs, so write it with f(x)f(x) or yy, such as f(x)≥−4f(x) \ge -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)f^{-1}(x) as 1f(x)\frac{1}{f(x)}. The −1-1 means “inverse”, not a power.
  • Keeping both roots when you solve f(x)=kf(x) = k on a restricted domain. If the domain is x≥0x \ge 0, a negative root is not an input of ff, so reject it.
  • Including a value that breaks the function. A denominator can't be 00, so that value of xx is left out of the domain.

Exam tips

  • **Write down** means no working is needed, but the notation must be right: use xx for a domain and f(x)f(x) or yy 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)f^{-1}(k) without a formula. Write down the equation f(x)=kf(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)f(x) for each input xx in its domain.
Learn thisDomain: the inputs allowed. A square root needs its inside ≥0\ge 0, and a denominator can't be 00.
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−1f^{-1} undoes ff: if f(a)=bf(a) = b, then f−1(b)=af^{-1}(b) = a. Its graph is the reflection of y=f(x)y = f(x) in y=xy = x.
Learn thisOnly one-to-one functions have inverses. The domain of f−1f^{-1} is the range of ff.
Learn thisSolving f(x)=kf(x) = k is the same as finding f−1(k)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.

Practise 2.2 →