2.2 Functions, domain, range and inverse

2.2 Functions, domain, range and inverse

IB Maths: Analysis and Approaches HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A function gives exactly one output for each input; the domain is the inputs and the range the outputs.
  • C(12)C(12) means substitute 12; the domain of a model must make sense in context.
  • Solving f(x)=bf(x)=b is the same as finding f−1(b)f^{-1}(b).
  • The graph of f−1f^{-1} is the reflection of the graph of ff in y=xy=x.
  • Domain of f−1f^{-1} is the range of ff; only one-to-one functions have inverses, so restrict the domain if needed.

What a function is

A function assigns to each input exactly one output; the domain is the allowed inputs and the range the outputs produced.

A relation is a function if every vertical line meets its graph at most once. Unless stated, the domain is the largest set of real numbers for which the rule works: x−3\sqrt{x-3} needs x≥3x\ge3; 1x+2\frac1{x+2} needs x≠−2x\ne-2.

For the range, think about the least and greatest outputs. In f(x)=2x−3+1f(x)=2\sqrt{x-3}+1, x−3≥0\sqrt{x-3}\ge0, so f(x)≥1f(x)\ge1. Domain is about xx; range is about f(x)f(x).

246810122468xy(3, 1)(7, 5)y = 2√(x − 3) + 1
f(x)=2x−3+1f(x)=2\sqrt{x-3}+1: the domain is x≥3x\ge3 and the range is f(x)≥1f(x)\ge1.

What is the largest possible domain of f(x)=2x−8f(x)=\sqrt{2x-8}?

Notation and models

Function notation names the rule and the input, and a model's domain must make sense in context.

Function notation such as C(n)C(n) names the rule and the input. C(12)C(12) means substitute n=12n=12, not C×12C\times12.

A function can be a mathematical model. A taxi fare C(d)=3.5+1.8dC(d)=3.5+1.8d applies only for distances driven, say 0<d≤400<d\le40. The range follows: 3.5<C(d)≤75.53.5<C(d)\le75.5. Take care with strict (<<) and non-strict (≤\le) inequalities at each end.

5101520253035401020304050607080xy(0, 3.5)(12, 25.1)(40, 75.5)C(d) = 3.5 + 1.8d
Taxi fare C(d)=3.5+1.8dC(d)=3.5+1.8d for 0<d≤400<d\le40.

Worked example

Using C(d)=3.5+1.8dC(d)=3.5+1.8d, find the fare for an 18 km journey.

Using C(d)=3.5+1.8dC(d)=3.5+1.8d, what is C(30)C(30)?

Inverse functions

An inverse function f−1f^{-1} reverses ff: if f(a)=bf(a)=b then f−1(b)=af^{-1}(b)=a.

An inverse function undoes the rule, so solving f(x)=10f(x)=10 is the same as finding f−1(10)f^{-1}(10). For the taxi, a fare of 48.50 dollars gives d=C−1(48.5)=48.5−3.51.8=25d=C^{-1}(48.5)=\frac{48.5-3.5}{1.8}=25 km.

Note f−1(x)f^{-1}(x) is not 1f(x)\frac1{f(x)}: the −1-1 means inverse, not reciprocal. Check an inverse by substituting: F(180)=356F(180)=356, so F−1(356)F^{-1}(356) should be 180.

  1. 1

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

    Replace the function name with yy

  2. 2

    Swap xx and yy

    Inputs and outputs trade places

  3. 3

    Rearrange

    Make yy the subject

  4. 4

    Name it f−1(x)f^{-1}(x)

    The new yy is the inverse

Finding an inverse function

Worked example

Find the inverse of F(c)=1.8c+32F(c)=1.8c+32, which converts Celsius to Fahrenheit.

What is F−1(212)F^{-1}(212) for F−1(x)=x−321.8F^{-1}(x)=\frac{x-32}{1.8}?

Graph of an inverse

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

Swapping inputs and outputs swaps the coordinates: (a,b)(a,b) on y=f(x)y=f(x) becomes (b,a)(b,a) on y=f−1(x)y=f^{-1}(x). So the domain of f−1f^{-1} is the range of ff, and the range of f−1f^{-1} is the domain of ff.

Points where y=f(x)y=f(x) meets y=xy=x are also on y=f−1(x)y=f^{-1}(x). For f(x)=2x−3+1f(x)=2\sqrt{x-3}+1, x≥3x\ge3, f−1f^{-1} has domain x≥1x\ge1 and range f−1(x)≥3f^{-1}(x)\ge3.

1234567892468xy(3, 1)(1, 3)(7, 5)(5, 7)y = f(x)y = f⁻¹(x)y = x
ff and f−1f^{-1} are mirror images in the dashed line y=xy=x.

Worked example

Find where F(x)=1.8x+32F(x)=1.8x+32 meets the line y=xy=x.

f(x)=x+2f(x)=\sqrt x+2 has domain x≥0x\ge0. What is the domain of f−1f^{-1}?

When an inverse exists

Only a one-to-one function has an inverse; restrict the domain if it is not.

An inverse exists only if every output comes from exactly one input. The horizontal line test: every horizontal line meets the graph at most once.

To show a function is not one-to-one, give two inputs with the same output: for g(x)=(x−2)2+1g(x)=(x-2)^2+1, g(0)=g(4)=5g(0)=g(4)=5. Restricting the domain, here to x≥2x\ge2, keeps one half. Then only the solution in the restricted domain counts.

−2−112345624681012xyy = 5(0, 5)(4, 5)(2, 1)y = (x − 2)² + 1
gg fails the horizontal line test: y=5y=5 meets it twice.

Worked example

Solve g(x)=10g(x)=10 for g(x)=(x−2)2+1g(x)=(x-2)^2+1 with domain x≥2x\ge2.

Which function, on all real numbers, has an inverse?

Try an exam question

The function ff is defined by f(x)=2x−3+1f(x)=2\sqrt{x-3}+1 for x≥3x\ge3. (a) State 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

Find the range of ff.

1 mark, marked against the mark scheme

Revision notes