NDA Maths · Functions
What a Function Is, and How to Classify It
A function assigns each input exactly one output; classifying it as one-one, onto, or bijective is about how inputs and outputs are paired.
Why this matters
Eight PYQs, all EASY–MODERATE — the vocabulary the rest of the chapter is built on. The bank tests three things: whether a given rule even is a function (the vertical-line / well-defined test), whether it is one-one and/or onto, and how to count functions of a given type. Get the definitions exact and these are free marks; blur 'onto' and 'into' and you lose them.
Concept 1 of 4
Domain, codomain, range — the vocabulary
Intuition
Definition
For :
- Domain : the set of all valid inputs.
- Codomain : the declared target set.
- Range : the set of values actually taken. Always .
- Image of is ; pre-image of is any with .
Worked example
- Domain is the declared input set — every real has a square.
- Codomain is the declared target .
- Range is what is actually produced: squares are , so range .
- Range — the negatives are never hit, so this is not onto.
Practice this concept4 quick reps
Practice — Level 1 (4 reps)
Quick reps to lock in the method. Try each, then check.
- 1.Range vs codomain — which can be smaller?
- 2.Domain of on ?
- 3.Image of under ?
- 4.A pre-image of under ?
Concept 2 of 4
Is it a function? Well-defined and the vertical-line test
Intuition
Definition
is a function iff for every there is one and only one with . Failures: a value with no output (gap in domain) or a value with two outputs (relation, not a function). A piecewise rule must agree at the join to stay well-defined.
Worked example
- Solve for : .
- For this gives and — two outputs for one input.
- The vertical line meets the curve twice.
From the bank · past-year question
[Q25 · Sep · 2018]
Piecewise rules must agree at the boundary
Concept 3 of 4
One-one, onto, and bijective
Intuition
Definition
- Injective: (equivalently, every horizontal line meets the graph at most once).
- Surjective: range codomain, i.e. every has a pre-image.
- Bijective: injective and surjective. Only bijections have an inverse.
Onto depends on the codomain you declare — shrinking the codomain to the range makes any function onto.
Worked example
- One-one? — two inputs, one output, so not one-one.
- Onto? Range is , which is not all of — negatives are missed, so not onto.
- If instead , it becomes both one-one and onto — a bijection. Domain/codomain matter.
Practice this conceptself-check
Try it yourself
From the bank · past-year question
[Q38 · Apr · 2021]
'Onto' is not absolute — it depends on the codomain
Concept 4 of 4
Counting functions of a given type
Intuition
Definition
Let , .
- All functions : (each of inputs has choices).
- One-one (needs ): .
- Onto (general): inclusion–exclusion; for it is .
Number of functions A → B
Worked example
- All functions: .
- One-one: .
Practice this concept4 quick reps
Practice — Level 1 (4 reps)
Quick reps to lock in the method. Try each, then check.
- 1.Functions from a 2-element to a 5-element set?
- 2.One-one functions from a 2-set to a 4-set?
- 3.Onto functions from a 4-set to a 2-set?
- 4.Can there be a one-one function from a 5-set to a 3-set?
From the bank · past-year question
[Q35 · Apr · 2024]
Summary — formulas & gotchas at a glance
A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.
Formulas (1)
- Counting functions of a given type
Number of functions A → B
Watch out for (2)
- Piecewise rules must agree at the boundary→ Is it a function? Well-defined and the vertical-line test
- 'Onto' is not absolute — it depends on the codomain→ One-one, onto, and bijective
Mastery check — 5 interleaved questions
Try each one before clicking. Questions are interleaved across the concepts above, not grouped — interleaving sharpens transfer.
[Q23 · Sep · 2023]
[Q4 · Sep · 2022]
[Q87 · Apr · 2025]
[Q22 · Apr · 2024]
[Q88 · Apr · 2025]
Drill every past-year question on this subtopic
8 questions from the bank — paginated, with cart and Word-export support.