A function gives exactly one output for each input. You meet the words domain, range, one-one and many-one, and find the domain and range of a function. You also use the syllabus notation, and see how the graph of the modulus of a function comes from the graph of the function.
about 25 min1 simulation1 practice question
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
Additional Mathematics has one level of paper, so this chapter has no Core and Extended split. You have already met function notation in the course Graphs of Functions and Function Notation, in the chapter Algebra and Graphs in Practice. Here we go further: domain and range, the modulus, inverses and composites.
A rule with exactly one answer
A taxi fare depends on the distance, and a phone battery level depends on the time. A rule like this is a function when each allowed input gives exactly one output.
The domain is the set of inputs the rule may use.
The range is the set of outputs that really occur. It is also called the image set.
A one-one function gives every output from exactly one input. For f(x)=2x+3, each output comes from one input only.
A many-one function has at least one output that comes from two or more inputs. For g(x)=x2 we have g(2)=g(−2)=4.
A rule that gives two outputs for one input is not a function. The rule y2=x sends x=4 to both y=2 and y=−2. To explain in words why a rule is a function, say that every input in the domain has exactly one output.
Three mapping diagrams, each with inputs 1, 2, 3 in a left oval and outputs in a right oval. The first, a one-one function, sends 1 to 4, 2 to 5 and 3 to 6. The second, a many-one function, sends 1 and 3 both to 5 and 2 to 6. The third is not a function: the input 2 has two arrows, to 5 and to 7.
Domain and range
The domain is whatever the question allows, minus any input that breaks the rule. Three things break a rule: dividing by zero, taking the square root of a negative number, and taking the logarithm of zero or a negative number.
To find the range, think about what outputs can happen.
f(x)=x2+3 for all real x. Since x2≥0, the range is f(x)≥3.
f(x)=2x−1 for −1≤x≤4. The line rises, so the range is −3≤f(x)≤7.
f(x)=(x−1)2−4 for 0≤x≤4. The turning point (1,−4) is inside the domain, so the lowest output is −4. The ends give f(0)=−3 and f(4)=5. The range is −4≤f(x)≤5.
g(x)=x−21 for x=2. The output is never 0, so the range is g(x)=0.
h(x)=x−1. The domain is x≥1 and the range is h(x)≥0.
Check the turning point and both ends of the domain. The range of a quadratic on an interval comes from these three values.
Write the domain with the variable and the range with the function, for example x∈R, x≥1 and f(x)≥0.
Function notation
The syllabus uses these forms.
f(x)=2ex gives the output for the input x.
f:x↦lgx for x>0 is the same idea, written as a mapping. Here lg means the logarithm to base 10.
f−1(x) is the inverse function. You meet it in the next lesson.
fg(x) means f(g(x)). You meet it in the lesson on composite functions.
f2(x) means f(f(x)), the function applied twice. It does not mean (f(x))2. For f(x)=2x+1 we get f2(x)=2(2x+1)+1=4x+3.
The modulus of a function
The modulus of a number is its distance from zero, so it is never negative. We write ∣a∣=a when a≥0 and ∣a∣=−a when a<0. So ∣5∣=5 and ∣−5∣=5.
To draw y=∣f(x)∣ from the graph of y=f(x):
Keep every part of the graph that is on or above the x-axis.
Reflect every part that is below the x-axis in the x-axis.
The new graph never goes below the axis. Here f(x)=x2−4 has the range f(x)≥−4, but ∣f(x)∣ has the range ∣f(x)∣≥0.
Two graphs side by side. The left graph is the parabola y equals x squared minus 4, with its lowest point at (0, minus 4) and roots at minus 2 and 2. The right graph is y equals the modulus of x squared minus 4: the part between x equals minus 2 and x equals 2 is reflected upwards, so there is a peak at (0, 4) and the graph never goes below the x-axis.
The modulus can turn a one-one function into a many-one one. The function f(x)=x−2 is one-one, but ∣x−2∣=3 for both x=5 and x=−1.
Practise with new numbers
Try it in Python
The program lists the outputs of f(x)=(x−2)2+1 for whole-number inputs, finds the range, and tests whether the function is one-one.
Common mistakes
Reading f2(x) as (f(x))2. It means f(f(x)).
Forgetting the turning point. The lowest output of (x−1)2−4 on 0≤x≤4 is −4, not −3.
Using the ends only. A parabola can have its lowest or highest output between the ends.
Mixing domain and range. The domain is about x, the inputs. The range is about f(x), the outputs.
Leaving the negative part in ∣f(x)∣. Reflect it in the x-axis.
Remember these
Function: exactly one output for each input. One-one: no output is shared. Many-one: some output is shared.
Range of a quadratic on an interval: compare the turning point, if it is inside, with both ends.
f2(x)=f(f(x)).
y=∣f(x)∣: reflect the parts below the x-axis in the x-axis.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
A relation has the pairs (1,4), (2,6), (2,9) and (3,5). Is it a function? Explain in words.
Find the range of f(x)=x2−6x+5 for 0≤x≤5.
State the largest possible domain, and the range, of g(x)=x+5.
For f(x)=3x−2, find f2(x).
Sketch y=∣x−4∣ in words. Where does it touch the x-axis, and what is y when x=0?
References
Cambridge International, IGCSE Additional Mathematics 0606 syllabus (2025, 2026 and 2027), unit 1 Functions.
OpenStax, Precalculus 2e, chapter 1 Functions.
Enroll free in Domain, Range, Inverse and Composite Functions
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Count the course towards the certificate for its chapter.