Functions: domain, codomain and range

About this lesson: Functions: domain, codomain and range

In short

A function f from set A to set B gives each element x of A exactly one image f(x) in B. A is the domain and B is the codomain. Two arrows from one x are not allowed.

What you'll explore

A rule with one output: What makes a function
A function f from set A to set B gives each element x of A exactly one image f(x) in B. A is the domain and B is the codomain.
Range: The images actually reached
The range is the set of images that are actually reached. It is part of the codomain and can be smaller.
Largest domain: Where the formula makes sense
If only a formula is given, take the largest set of real x for which it works.
Explore: Domain and range on a graph
Move a to shift the graph y = √(x − a) + 1. The domain starts at x = a and the range starts at y = 1. Read both from the picture.
Check yourself: Domain
Inside the root must not be negative.

Also in this lesson

  • Functions in detail
  • Common mistakes

Key words

Function
A rule giving each element of the domain exactly one image.
Domain
The set of inputs of a function.
Codomain
The set in which the outputs must lie.
Range
The set of outputs actually reached.
Image
The output f(x) of one input x.
Variable
A letter that can take different values.

Sources

  • NIE Sri Lanka, G.C.E. (A/L) Combined Mathematics syllabus, Grade 12 and 13, 2017 (competency level I 2.1).

An interactive lesson with a live experiment: move the sliders, press the buttons and answer quick questions. 5 short steps and a 30-question quiz. Part of the Family plan. Written and checked by Shalo Lab. Last updated 21 November 2026.

← Recurring decimals and surds · One-one, onto and inverse functions →

All lessons in Unit 1 · Real numbers and functions · A/L Combined Maths

A/L Combined Maths past papers 2019–2025: analysis and 10 model papers with answers

මේ පිටුව සිංහලෙන් කියවන්න