HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Domain, Range, Inverse and Composite Functions
  1. 1Functions, domain, range and the modulus
  2. 2Inverse functions and their graphs
  3. 3Composite functions
  1. Mathematics
  2. /Domain, Range, Inverse and Composite Functions
  3. /Functions, domain, range and the modulus

Course 21.1·Lesson 1 of 3

Functions, domain, range and the modulus

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
Domain, Range, Inverse and Composite Functions
  1. 1Functions, domain, range and the modulus
  2. 2Inverse functions and their graphs
  3. 3Composite functions

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+3f(x) = 2x + 3f(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)=x2g(x) = x^2g(x)=x2 we have g(2)=g(−2)=4g(2) = g(-2) = 4g(2)=g(−2)=4.

A rule that gives two outputs for one input is not a function. The rule y2=xy^2 = xy2=x sends x=4x = 4x=4 to both y=2y = 2y=2 and y=−2y = -2y=−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.

  1. f(x)=x2+3f(x) = x^2 + 3f(x)=x2+3 for all real xxx. Since x2≥0x^2 \ge 0x2≥0, the range is f(x)≥3f(x) \ge 3f(x)≥3.
  2. f(x)=2x−1f(x) = 2x - 1f(x)=2x−1 for −1≤x≤4-1 \le x \le 4−1≤x≤4. The line rises, so the range is −3≤f(x)≤7-3 \le f(x) \le 7−3≤f(x)≤7.
  3. f(x)=(x−1)2−4f(x) = (x - 1)^2 - 4f(x)=(x−1)2−4 for 0≤x≤40 \le x \le 40≤x≤4. The turning point (1,−4)(1, -4)(1,−4) is inside the domain, so the lowest output is −4-4−4. The ends give f(0)=−3f(0) = -3f(0)=−3 and f(4)=5f(4) = 5f(4)=5. The range is −4≤f(x)≤5-4 \le f(x) \le 5−4≤f(x)≤5.
  4. g(x)=1x−2g(x) = \dfrac{1}{x - 2}g(x)=x−21​ for x≠2x \ne 2x=2. The output is never 000, so the range is g(x)≠0g(x) \ne 0g(x)=0.
  5. h(x)=x−1h(x) = \sqrt{x - 1}h(x)=x−1​. The domain is x≥1x \ge 1x≥1 and the range is h(x)≥0h(x) \ge 0h(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∈Rx \in \mathbb{R}x∈R, x≥1x \ge 1x≥1 and f(x)≥0f(x) \ge 0f(x)≥0.

Function notation

The syllabus uses these forms.

  • f(x)=2exf(x) = 2e^xf(x)=2ex gives the output for the input xxx.
  • f:x↦lg⁡xf : x \mapsto \lg xf:x↦lgx for x>0x > 0x>0 is the same idea, written as a mapping. Here lg⁡\lglg means the logarithm to base 101010.
  • f−1(x)f^{-1}(x)f−1(x) is the inverse function. You meet it in the next lesson.
  • fg(x)fg(x)fg(x) means f(g(x))f(g(x))f(g(x)). You meet it in the lesson on composite functions.
  • f2(x)f^2(x)f2(x) means f(f(x))f(f(x))f(f(x)), the function applied twice. It does not mean (f(x))2(f(x))^2(f(x))2. For f(x)=2x+1f(x) = 2x + 1f(x)=2x+1 we get f2(x)=2(2x+1)+1=4x+3f^2(x) = 2(2x + 1) + 1 = 4x + 3f2(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|a| = a∣a∣=a when a≥0a \ge 0a≥0 and ∣a∣=−a|a| = -a∣a∣=−a when a<0a < 0a<0. So ∣5∣=5|5| = 5∣5∣=5 and ∣−5∣=5|-5| = 5∣−5∣=5.

To draw y=∣f(x)∣y = |f(x)|y=∣f(x)∣ from the graph of y=f(x)y = f(x)y=f(x):

  1. Keep every part of the graph that is on or above the xxx-axis.
  2. Reflect every part that is below the xxx-axis in the xxx-axis.

The new graph never goes below the axis. Here f(x)=x2−4f(x) = x^2 - 4f(x)=x2−4 has the range f(x)≥−4f(x) \ge -4f(x)≥−4, but ∣f(x)∣|f(x)|∣f(x)∣ has the range ∣f(x)∣≥0|f(x)| \ge 0∣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−2f(x) = x - 2f(x)=x−2 is one-one, but ∣x−2∣=3|x - 2| = 3∣x−2∣=3 for both x=5x = 5x=5 and x=−1x = -1x=−1.

Practise with new numbers

Try it in Python

The program lists the outputs of f(x)=(x−2)2+1f(x) = (x - 2)^2 + 1f(x)=(x−2)2+1 for whole-number inputs, finds the range, and tests whether the function is one-one.

Read it first. Then run it. Is the function one-one on this domain?

1. Change range(-2, 7) to range(2, 7). Is the function one-one now? Why?

2. Change the rule to abs(x - 2). What is the range?

Common mistakes

  • Reading f2(x)f^2(x)f2(x) as (f(x))2(f(x))^2(f(x))2. It means f(f(x))f(f(x))f(f(x)).
  • Forgetting the turning point. The lowest output of (x−1)2−4(x - 1)^2 - 4(x−1)2−4 on 0≤x≤40 \le x \le 40≤x≤4 is −4-4−4, not −3-3−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 xxx, the inputs. The range is about f(x)f(x)f(x), the outputs.
  • Leaving the negative part in ∣f(x)∣|f(x)|∣f(x)∣. Reflect it in the xxx-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))f^2(x) = f(f(x))f2(x)=f(f(x)).
  • y=∣f(x)∣y = |f(x)|y=∣f(x)∣: reflect the parts below the xxx-axis in the xxx-axis.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. A relation has the pairs (1,4)(1, 4)(1,4), (2,6)(2, 6)(2,6), (2,9)(2, 9)(2,9) and (3,5)(3, 5)(3,5). Is it a function? Explain in words.
  1. Find the range of f(x)=x2−6x+5f(x) = x^2 - 6x + 5f(x)=x2−6x+5 for 0≤x≤50 \le x \le 50≤x≤5.
  1. State the largest possible domain, and the range, of g(x)=x+5g(x) = \sqrt{x + 5}g(x)=x+5​.
  1. For f(x)=3x−2f(x) = 3x - 2f(x)=3x−2, find f2(x)f^2(x)f2(x).
  1. Sketch y=∣x−4∣y = |x - 4|y=∣x−4∣ in words. Where does it touch the xxx-axis, and what is yyy when x=0x = 0x=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.
No payment. You can leave at any time.

Problems (3)

A function is used to model a quantity over a limited stretch of inputs, and the lowest and highest…Easy · High School (9–10) · by StemPy Lab
A calculator program evaluates the rule below and reports an error for some inputs, so the allowed…Medium · High School (9–10) · by StemPy Lab
Marcus studies a function on a closed interval and then wraps it in a modulus, as when only the…Hard · High School (9–10) · by StemPy Lab
Next: lesson 2Inverse functions and their graphs
← Domain, Range, Inverse and Composite Functions
← PreviousInverse functions and their graphs →

Discussion (0)

Log in to join the discussion.

Loading…

1 Python program
5 questions to check yourself

This lesson is free to read. Enroll free to keep your place in the course.

Python Labs (1)

Range and one-one by testingPython Lab · by StemPy Lab