Topic 2 · Lesson 4 of 6
The modulus function, domain and range
The modulus functionA level only
The modulus means the size of ignoring its sign: and . So when and when . To sketch , draw and reflect any part below the -axis up above it. This gives a V shape with its vertex where , at .
The same idea gives two related sketches, using the dashed curve below:
- : reflect the parts below the -axis upwards. All -values become positive.
- : keep the part for , throw away the left half, and replace it with a mirror image of the right half in the -axis. (Since , the graph is symmetrical.)
Worked example
A modulus equation and inequalityA level
a) Solve . b) Hence solve .
Show solutionHide solution
A modulus equation is two equations in one, because the inside is either positive or negative. Each answer must then be checked.
- Case 1, inside positive: , so , .
- Case 2, inside negative: , so , .
- Check: gives ✓; gives ✓.
- b) The diagram shows the V is below the line between the two crossings, so .
Checking matters: for , case 2 gives , which checks (both sides equal 2) ✓, while case 1 gives , where is negative, which a modulus can never equal. So is rejected.
Functions, domain and rangeA level only
A function is a rule that gives exactly one output for each input. The set of allowed inputs is the domain, and the set of outputs is the range. We write , , or . A function is one-to-one if every output comes from just one input, and many-to-one otherwise ( is many-to-one, since ).
Composites. A composite function means "do first, then ": . Order matters. With and , but .
Inverses. An inverse function undoes : if then . Only one-to-one functions have inverses (otherwise would have to be both 2 and ), which is why domains are often restricted, for example below. Because the inverse swaps inputs and outputs, its graph is the reflection of in the line , and the domain of is the range of .
How to find an inverse function
- Step 1: Write .
- Step 2: Rearrange to make the subject.
- Step 3: Swap and (or just write the answer as ).
- Step 4: State the domain of : it is the range of .
For , : the range is . From , (the positive root, as ). So , . The diagram shows the reflection.
Worked example
Composite and inverse functionstop gradeA level
, , and , .
a) State the range of . b) Find and its domain. c) Solve .
Show solutionHide solution
- a) For , takes every positive value, so takes every positive value: .
- b) , so and . So , with domain (the range of ).
- c) . But only accepts inputs above 2, so we need , that is .
- gives , so . Both satisfy , so or .
Practise this topic
Both are part of Premium.