2.2 Concept of a function, domain, range and inverse

2.2 Concept of a function, domain, range and inverse

IB Maths: Applications and Interpretation SL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A function gives exactly one output for each input; f(x)f(x) is the output when the input is xx.
  • The domain is the set of allowed inputs (xx); the range is the set of outputs (f(x)f(x) or yy).
  • To find f−1(x)f^{-1}(x): write y=f(x)y=f(x), swap xx and yy, then rearrange for yy.
  • The graph of f−1f^{-1} is the graph of ff reflected in y=xy=x; the domain of f−1f^{-1} is the range of ff.
  • Only a one-to-one function has an inverse; restrict the domain if needed.

Functions and models

A function is a rule that gives exactly one output for each input, and it often models a real situation.

A function gives exactly one output for each input. We write f(x)f(x) for the output when the input is xx; other letters fit the context, such as v(t)v(t) or C(n)C(n).

A function is often a model. C(n)=12+2.5nC(n)=12+2.5n models a taxi fare of 12 AED plus 2.5 AED per kilometre, so C(18)=57C(18)=57 means an 18 km journey costs 57 AED.

5101520253020406080100xyC(18) = 57C(n) = 12 + 2.5n
Taxi fare model C(n) = 12 + 2.5n (x is n, the distance in km; y is the fare in AED).
  • C(n)=12+2.5nC(n)=12+2.5nfare in AED for nn km
  • C(18)=57C(18)=57an 18 km journey costs 57 AED

For C(n)=12+2.5nC(n)=12+2.5n, what does C(10)C(10) represent?

Domain and range

The domain is limited by the mathematics (such as a square root) or by the context (such as no negative distances).

The domain is the set of allowed inputs and the range is the set of outputs. A square root needs a non-negative expression: for f(x)=2−xf(x)=\sqrt{2-x} we need 2−x≥02-x\ge0, so the domain is x≤2x\le2 and the range is f(x)≥0f(x)\ge0.

In context, negative distances are not allowed, so C(n)=12+2.5nC(n)=12+2.5n has domain n≥0n\ge0.

To find the range, graph the function on your GDC and read off the lowest and highest outputs. Use ≥\ge and ≤\le when the value is reached.

−6−5−4−3−2−1123−11234xy(2, 0)(-2, 2)y = √(2 − x)
The graph of f(x)=2−xf(x)=\sqrt{2-x} stops at x=2x=2 and never goes below y=0y=0.

Worked example

Find the range of g(x)=2x+5g(x)=2x+5 for −1≤x≤4-1\le x\le4.

What is the domain of f(x)=x−3f(x)=\sqrt{x-3}?

The inverse function

The inverse f−1f^{-1} undoes ff: swap xx and yy in y=f(x)y=f(x) and rearrange for yy.

An inverse function reverses the effect of ff and is written f−1f^{-1}. If ff turns 5 into 11, then f−1f^{-1} turns 11 back into 5.

The graph of f−1f^{-1} is the reflection in y=xy=x of the graph of ff.

Solving f(x)=10f(x)=10 is the same as finding f−1(10)f^{-1}(10).

−4−22468−4−22468xy(0, 5)(5, 0)f(x) = 2x + 5f⁻¹(x)
f(x)=2x+5f(x)=2x+5 and its inverse are mirror images in the dashed line y=xy=x. The point (0,5)(0,5) on ff matches (5,0)(5,0) on f−1f^{-1}.

Worked example

Find the inverse of f(x)=2x+5f(x)=2x+5.

If f(x)=3x−4f(x)=3x-4, what is f−1(x)f^{-1}(x)?

When an inverse exists

Only a one-to-one function has an inverse, because each output must come from exactly one input.

An inverse exists only for a one-to-one function. f(x)=x2f(x)=x^2 is not one-to-one because f(−2)=f(2)=4f(-2)=f(2)=4; restricted to x≥0x\ge0 it is, and f−1(x)=xf^{-1}(x)=\sqrt{x}.

Inputs and outputs swap roles, so the domain of f−1f^{-1} is the range of ff, and the range of f−1f^{-1} is the domain of ff.

In the ball model h(t)=−5t2+20t+25h(t)=-5t^2+20t+25, restrict the domain to 2≤t≤52\le t\le5 before h−1h^{-1} gives a unique time for each height.

−4−3−2−11234246810xy(-2, 4)(2, 4)y = x²y = 4
A horizontal line at y=4y=4 meets y=x2y=x^2 twice, at x=−2x=-2 and x=2x=2, so x2x^2 is not one-to-one.
  • Domain of f−1f^{-1}range of ff
  • Range of f−1f^{-1}domain of ff

Which function has an inverse over all real xx?

Inverse functions in context

In a model, f−1f^{-1} answers the reverse question: its input is the old output and its output is the old input.

For the taxi fare C(n)=12+2.5nC(n)=12+2.5n, C(18)=57C(18)=57 asks 'what does 18 km cost?', while C−1(100)C^{-1}(100) asks 'how far can I travel for 100 AED?'.

Always state what the answer means and give the units. When two inputs give the same output (a ball at the same height on the way up and down), use the domain to choose the correct one.

51015202530354020406080100xy(18, 57)(35.2, 100)C(n)
Read the model both ways: C(18) = 57 goes from distance to cost; C⁻¹(100) = 35.2 goes from cost back to distance (x is n in km, y is cost in AED).

C(n)C(n)

  • Input: distance (km)
  • Output: cost (AED)
  • C(18)=57C(18)=57

C−1(x)C^{-1}(x)

  • Input: cost (AED)
  • Output: distance (km)
  • C−1(100)=35.2C^{-1}(100)=35.2

Worked example

Use C(n)=12+2.5nC(n)=12+2.5n to find how far you can travel for 100 AED.

For C(n)=12+2.5nC(n)=12+2.5n, what is the input of C−1C^{-1}?

Try an exam question

The function ff is defined by f(x)=2x+5f(x)=2x+5 for x≥0x\ge0. (a) Write down the range of ff. (b) Find f−1(x)f^{-1}(x). (c) Write down the domain of f−1f^{-1}.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which of the following is the largest possible domain of ff?

1 mark, marked against the mark scheme

Revision notes