2.2 Functions, domain, range and inverse

2.2 Functions, domain, range and inverse

IB Maths: Analysis and Approaches SL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A function gives exactly one output for each input: domain = inputs, range = 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} = range of ff; range of f−1f^{-1} = domain of ff.
  • Only one-to-one functions have inverses; restrict the domain if needed.

What is a function?

A function assigns each input exactly one output; the inputs form the domain and the outputs form the range.

A function gives exactly one output for each input. Inputs form the domain, outputs the range. A relation is a function if every vertical line meets its graph at most once (the vertical line test).

Unless stated, the domain is the largest set where the rule works: x−3\sqrt{x-3} needs x≥3x \ge 3; 1x+2\frac{1}{x+2} needs x≠−2x \ne -2. For 2x−3+12\sqrt{x-3}+1, x−3≥0\sqrt{x-3}\ge0 so f(x)≥1f(x)\ge1.

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

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

Notation and models

C(12)C(12) means substitute 12 into the rule; as a model, the domain must make sense in context.

Function notation names the rule and the input: v(t)v(t) is velocity at time tt; C(12)C(12) does not mean C×12C\times12. A function can be a mathematical model: a taxi fare C(d)=3.5+1.8dC(d) = 3.5+1.8d only applies for the distances driven, e.g. 0<d≤400<d\le40.

For a linear model the range comes from the two ends of the domain. Watch strict (<<) and non-strict (≤\le) ends.

510152025303540451020304050607080xy(40, 75.5)C(d) = 3.5 + 1.8d
Taxi fare: an open end at d=0d=0 and a closed end at d=40d = 40.

Worked example

A taxi fare is C(d)=3.5+1.8dC(d) = 3.5 + 1.8d dollars for dd km, 0<d≤400 < d \le 40. Find the range of CC.

For C(d)=3.5+1.8dC(d) = 3.5 + 1.8d, what is C(10)C(10)?

Inverse functions

An inverse reverses a function: if f(a)=bf(a)=b then f−1(b)=af^{-1}(b)=a. So solving f(x)=10f(x)=10 is finding f−1(10)f^{-1}(10).

For the taxi, a fare of 48.50 dollars means d=C−1(48.5)=48.5−3.51.8=25d = C^{-1}(48.5) = \frac{48.5-3.5}{1.8} = 25 km.

To find f−1(x)f^{-1}(x), write y=f(x)y=f(x), swap xx and yy, and rearrange for yy. For F(c)=1.8c+32F(c)=1.8c+32 this gives F−1(x)=x−321.8F^{-1}(x) = \frac{x-32}{1.8}.

  • f(a)=bf(a) = bf−1(b)=af^{-1}(b) = a
  • Solve f(x)=10f(x)=10Find f−1(10)f^{-1}(10)

Worked example

Find the inverse of F(c)=1.8c+32F(c) = 1.8c + 32.

f(x)=2x+6f(x) = 2x + 6. What is f−1(10)f^{-1}(10)?

Reflection in y = x

Swapping inputs and outputs swaps coordinates, so y=f−1(x)y=f^{-1}(x) is the reflection of y=f(x)y=f(x) in the line y=xy=x.

A point (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 vice versa.

Where y=f(x)y=f(x) meets y=xy=x the point is on both graphs. F(x)=1.8x+32F(x)=1.8x+32 gives x=−40x=-40: −40 ∘-40\,^\circC =−40 ∘=-40\,^\circF.

123456789123456789xy(3, 1)(1, 3)(7, 5)(5, 7)y = f(x)y = f⁻¹(x)y = x
The graph of f−1f^{-1} is the mirror image of ff in the dashed line y=xy=x.

f

  • Domain x≥3x\ge3
  • Range f(x)≥1f(x)\ge1

f−1f^{-1}

  • Domain x≥1x\ge1
  • Range f−1(x)≥3f^{-1}(x)\ge3

The point (2,7)(2, 7) is on y=f(x)y = f(x). Which point is on y=f−1(x)y = f^{-1}(x)?

When does an inverse exist?

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

ff is one-to-one if each output comes from exactly one input: every horizontal line meets the graph at most once (horizontal line test). To show it is not, give two inputs with one output: for g(x)=(x−2)2+1g(x)=(x-2)^2+1, g(0)=g(4)=5g(0)=g(4)=5.

Restricting to x≥2x\ge2 keeps the one-to-one right half. Solving g(x)=10g(x)=10 then rejects x=−1x=-1.

−2−1123456246810xy(2, 1)(0, 5)(4, 5)y = (x−2)² + 1y = 5
The horizontal line y=5y = 5 meets gg twice, so gg is not one-to-one.

Which function is one-to-one for all real xx?

Try an exam question

The function ff is defined by f(x)=2x+6f(x)=2x+6. (a) Find f−1(x)f^{-1}(x). (b) Solve f(x)=10f(x) = 10.

[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