CBSE Class 12 Maths · Relations and Functions
One-One, Onto and Bijective Functions
One-one (injective), onto (surjective) and bijective functions: the standard proofs, using the range to decide onto, functions on natural numbers and integers, and functions between two finite sets.
Why this matters
75 questions, forty-three of them from board papers in every year from 2023 to 2026, more than any other page of the chapter. The board asks you to show that a function is one-one and onto, very often a rational function such as (x − 2)/(x − 3), set in 2024, 2025 and twice in 2026 and also in NCERT Exercise 1.2; to show a quadratic or other function is not one-one or not onto and find its range or the codomain that makes it onto (2023, 2024, 2026); MCQs and assertion-reason items on functions on N and Z (2024 to 2026); and case studies on functions between two small sets (2023, 2025, 2026). The function 4x² + 4x − 5 from [0, ∞) to [−5, ∞) was set in 2023 and again in 2026.
Concept 1 of 4: Proving that a function is one-one and onto
Definition
- One-one (injective): is one-one if implies for every . Otherwise f is many-one.
- Onto (surjective): for every there is an with . f is onto exactly when the range of f is Y.
- Bijective: both one-one and onto.
- One-one proof: start from and simplify to .
- Onto proof: take any y in the codomain, solve for x, show this x lies in the domain (for a rational function, that it is not the excluded value), and check .
- Not one-one: two different inputs with the same image. Not onto: one element of the codomain with no pre-image.
One-one and onto
Worked example
Practise this conceptself-check · 3 quick reps
The same idea in a real exam question:
Example 1 · Relations and Functions · One-One and Onto Functions
Not checking that the pre-image lies in the domain
Calling f onto because f(x) is real
Ignoring the codomain
Concept 2 of 4: The range decides onto: quadratic and bounded functions
Definition
- f is onto if and only if the range of f equals the codomain.
- To find the range, put , solve for x, and see which y give an x inside the domain. Completing the square gives the least or greatest value of a quadratic.
- A quadratic on is not one-one (equal values on both sides of the axis ) and not onto .
- On a domain lying on one side of the axis, such as when the axis is at a negative x, the quadratic is one-one.
- Functions like , , and are even, , so they are not one-one on a domain that contains and .
- To find the codomain A that makes onto, take A equal to the range.
Onto test with the range
Worked example
Practise this conceptself-check · 3 quick reps
The same idea in a real exam question:
Example 2 · Relations and Functions · One-One and Onto Functions
An open bracket at a value that is taken
Keeping a root outside the domain
Showing not one-one by algebra alone
Concept 3 of 4: Functions on N and Z, and functions defined in pieces
Definition
- In this chapter (no 0) and .
- Not onto on N or Z: find a y in the codomain whose solved x is not a natural number or integer. For on N, 1 has no pre-image.
- One-one depends on the domain: is one-one on N (since ) but not on Z.
- Piecewise rule (odd and even): for one-one, check both odd, both even, and one of each, and rule out the mixed case. For onto, give the pre-image of an odd y and of an even y separately.
- A piecewise function can be onto without being one-one, if it sends many inputs to one value.
Worked example
Practise this conceptself-check · 3 quick reps
The same idea in a real exam question:
Example 3 · Relations and Functions · One-One and Onto Functions
Taking 0 as a natural number
Solving for x and stopping
Forgetting the mixed case
Concept 4 of 4: Functions between finite sets: checking and counting
Definition
- A set of pairs is a function from A to B when every element of A appears exactly once as a first entry.
- One-one: no second entry is repeated. Onto: every element of B appears as a second entry.
- If and : each element of A has n choices, so there are functions from A to B.
- A one-one function from A to B exists only if ; an onto function only if ; a bijection only if .
- The number of one-one functions from to itself is ; the number of onto functions from to itself is .
- For a finite set X, a function is one-one if and only if it is onto. This is not true for an infinite set.
- Onto functions from a set of m elements to a set of 2 elements: all functions except the 2 constant ones, so .
Number of functions from A to B
Worked example
Practise this conceptself-check · 3 quick reps
The same idea in a real exam question:
Example 4 · Relations and Functions · One-One and Onto Functions
Mixing up the two counts
Claiming onto when the sizes forbid it
Asking 'one-one?' of something that is not a function
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 (3)
- Proving that a function is one-one and onto
One-one and onto
- The range decides onto: quadratic and bounded functions
Onto test with the range
- Functions between finite sets: checking and counting
Number of functions from A to B
Watch out for (12)
- Not checking that the pre-image lies in the domain→ Proving that a function is one-one and onto
- Calling f onto because f(x) is real→ Proving that a function is one-one and onto
- Ignoring the codomain→ Proving that a function is one-one and onto
- An open bracket at a value that is taken→ The range decides onto: quadratic and bounded functions
- Keeping a root outside the domain→ The range decides onto: quadratic and bounded functions
- Showing not one-one by algebra alone→ The range decides onto: quadratic and bounded functions
- Taking 0 as a natural number→ Functions on N and Z, and functions defined in pieces
- Solving for x and stopping→ Functions on N and Z, and functions defined in pieces
- Forgetting the mixed case→ Functions on N and Z, and functions defined in pieces
- Mixing up the two counts→ Functions between finite sets: checking and counting
- Claiming onto when the sizes forbid it→ Functions between finite sets: checking and counting
- Asking 'one-one?' of something that is not a function→ Functions between finite sets: checking and counting
Test yourself on Relations and Functions
15 past CBSE Class 12 questions from this chapter, timed at 23 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.