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
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.
- Monotonic ⇒ injective: a strictly increasing or strictly decreasing function is automatically one-one — the fastest injectivity test. If it is also onto its codomain, it is a bijection. (You can often see monotonicity directly, without calculus: is then , both increasing and meeting at 0, so it is strictly increasing and one-one.)
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 · 4 quick reps
From the bank · past-year question
[Q38 · Apr · 2021]
'Onto' is not absolute — it depends on the codomain
A non-monotone function usually fails one-one (and often onto)
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
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 (3)
- 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
- A non-monotone function usually fails one-one (and often onto)→ One-one, onto, and bijective
Drill every past-year question on this subtopic
8 questions from the bank — paginated, with cart and Word-export support.