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 HL: 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 for input xx.
  • The domain is the set of allowed inputs; the range is the set of outputs.
  • The inverse f−1f^{-1} undoes ff: write y=f(x)y=f(x), swap xx and yy, rearrange.
  • The graph of f−1f^{-1} is the reflection of ff in y=xy=x; domain of f−1f^{-1} = range of ff.
  • An inverse exists only if ff is one-to-one; restrict the domain if needed.
−8−6−4−224681012−8−6−4−224681012xy(0, 5)(5, 0)f(x) = 2x + 5f⁻¹(x) = (x − 5)/2y = x
f(x) = 2x + 5 and its inverse are reflections in y = x.

Functions and notation

A function is a rule that gives exactly one output for each input.

We write f(x)f(x) for the output when the input is xx; other letters suit the context, such as v(t)v(t) or C(n)C(n). The allowed inputs form the domain and the resulting outputs form the range. The graph is the set of points (x,f(x))(x,f(x)).

A function is often a mathematical 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.

  • One inputexactly one output

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

Domain and range

The domain is limited by the mathematics or the context; read the range off the graph.

Limits on the domain:

  • A square root needs a non-negative expression: for f(x)=2−xf(x)=\sqrt{2-x}, 2−x≥02-x\geq0, so the domain is x≤2x\leq2 and the range is f(x)≥0f(x)\geq0.
  • In context, negative times or distances are not allowed: for C(n)=12+2.5nC(n)=12+2.5n the domain is n≥0n\geq0.

Find the range by graphing and reading the lowest and highest outputs, using ≥\geq and ≤\leq when end values are reached. For g(x)=2x+5g(x)=2x+5 on −1≤x≤4-1\leq x\leq4: 3≤g(x)≤133\leq g(x)\leq13.

−8−7−6−5−4−3−2−1123−11234xy(2, 0)(−2, 2)(−7, 3)f(x) = √(2 − x)
f(x) = √(2 − x): the domain is x ≤ 2 and the range is f(x) ≥ 0.

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

The inverse function

The inverse reverses a function: if ff turns 5 into 11, then f−1f^{-1} turns 11 back into 5.

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 reflection of ff in the line y=xy=x. Solving f(x)=10f(x)=10 is the same as finding f−1(10)f^{-1}(10).

An inverse function reverses the roles: the domain of f−1f^{-1} is the range of ff, and the range of f−1f^{-1} is the domain of ff.

  1. 1

    Write y=f(x)y=f(x)

    y=2x+5y=2x+5

  2. 2

    Swap xx and yy

    x=2y+5x=2y+5

  3. 3

    Rearrange for yy

    2y=x−52y=x-5

  4. 4

    Result

    f−1(x)=x−52f^{-1}(x)=\frac{x-5}{2}

Finding the inverse of f(x) = 2x + 5

Worked example

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

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

When an inverse exists

Only a one-to-one function has an inverse; restrict the domain to make one.

A function is one-to-one if each output comes from exactly one input. If two inputs give the same output, the inverse would not know which to return.

f(x)=x2f(x)=x^{2} is not one-to-one because f(−2)=f(2)=4f(-2)=f(2)=4. Restrict the domain to x≥0x\geq0 and f−1(x)=xf^{-1}(x)=\sqrt x.

In the ball model h(t)=−5t2+20t+25h(t)=-5t^{2}+20t+25, the vertex is at t=2t=2, so restrict to 2≤t≤52\leq t\leq5 before using h−1h^{-1}.

−112345−112345xy(2, 4)(4, 2)y = x²y = √xy = x
y = x² is not one-to-one, but restricted to x ≥ 0 it has the inverse y = √x.

Worked example

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

Why does f(x)=x2f(x)=x^{2} have no inverse on all real numbers?

Try an exam question

The function ff is defined by f(x)=2x−6f(x)=2x-6 for −1≤x≤5-1\leq x\leq5. (a) Find the range of ff. (b) Find f−1(x)f^{-1}(x) and state its domain.

[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