2.2 Concept of a function, domain, range and inverse
Studying this course? Keep your progress in one place.
Key facts
- A function gives exactly one output for each input; is the output when the input is .
- The domain is the set of allowed inputs (); the range is the set of outputs ( or ).
- To find : write , swap and , then rearrange for .
- The graph of is the graph of reflected in ; the domain of is the range of .
- 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 for the output when the input is ; other letters fit the context, such as or .
A function is often a model. models a taxi fare of 12 AED plus 2.5 AED per kilometre, so means an 18 km journey costs 57 AED.
- fare in AED for km
- an 18 km journey costs 57 AED
For , what does 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 we need , so the domain is and the range is .
In context, negative distances are not allowed, so has domain .
To find the range, graph the function on your GDC and read off the lowest and highest outputs. Use and when the value is reached.
Worked example
Find the range of for .
- 1
is increasing, so the lowest output is at the lowest input.
- 2
.
- 3
.
What is the domain of ?
The inverse function
The inverse undoes : swap and in and rearrange for .
An inverse function reverses the effect of and is written . If turns 5 into 11, then turns 11 back into 5.
The graph of is the reflection in of the graph of .
Solving is the same as finding .
Worked example
Find the inverse of .
- 1
Write .
- 2
Swap and : .
- 3
Rearrange: .
If , what is ?
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. is not one-to-one because ; restricted to it is, and .
Inputs and outputs swap roles, so the domain of is the range of , and the range of is the domain of .
In the ball model , restrict the domain to before gives a unique time for each height.
- Domain of range of
- Range of domain of
Which function has an inverse over all real ?
Inverse functions in context
In a model, answers the reverse question: its input is the old output and its output is the old input.
For the taxi fare , asks 'what does 18 km cost?', while 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.
- Input: distance (km)
- Output: cost (AED)
- Input: cost (AED)
- Output: distance (km)
Worked example
Use to find how far you can travel for 100 AED.
- 1
Set the cost equal to 100: .
- 2
Subtract 12: .
- 3
Divide by 2.5: .
For , what is the input of ?
Try an exam question
The function is defined by for . (a) Write down the range of . (b) Find . (c) Write down the domain of .
[4 marks]
- [1]Range: .
- [1]Swaps and : .
- [1].
- [1]Domain of is the range of : .
That's the notes covered.
Carry on to the next subtopic.
Try a question
Which of the following is the largest possible domain of ?
1 mark, marked against the mark scheme
Which of the following is the largest possible domain of ?
1 mark, marked against the mark scheme