Why Only a One-One and Onto Function Can Be Reversed
Classify functions as one-one, many-one, into or onto, find when a function is invertible, form composite functions and inverses, and sketch a function with its inverse as reflections in the line y = x.
What makes a function reversible?
A function turns inputs into outputs, but not every function can be run backwards. If two inputs share an output, or some outputs are never reached, there is no single way back. Classifying functions shows exactly when an inverse exists.
This lesson covers one-one and onto functions, invertibility, composite and inverse functions, and graphs of a function with its inverse.
This lesson covers one-one and onto functions, invertibility, composite and inverse functions, and graphs of a function with its inverse.
How do you classify a function as one-one, many-one, into or onto?
**A function is one-one if different inputs always give different outputs and many-one otherwise, and it is onto if every element of B is the image of some input and into if some element of B is never reached.
Tests:
- One-one** — show ; on a graph, every horizontal line meets the curve at most once
- Onto — for every y in B, solve and check that x lies in A
- Bijective — both one-one and onto
Worked example. with .
- One-one: gives
- Onto: for any real y, is real and
- So f is bijective
Worked example 2. with is many-one, since , and into, since no real x gives .
An everyday example. Giving each student in a class of 40 a different roll number from 1 to 40 is a bijection — no two students share a number and every number is used.
The substance. The same rule can change type when the sets change — from to is both one-one and onto.
Tests:
- One-one** — show ; on a graph, every horizontal line meets the curve at most once
- Onto — for every y in B, solve and check that x lies in A
- Bijective — both one-one and onto
Worked example. with .
- One-one: gives
- Onto: for any real y, is real and
- So f is bijective
Worked example 2. with is many-one, since , and into, since no real x gives .
An everyday example. Giving each student in a class of 40 a different roll number from 1 to 40 is a bijection — no two students share a number and every number is used.
The substance. The same rule can change type when the sets change — from to is both one-one and onto.
Under what conditions is a function invertible?
**A function is invertible exactly when it is bijective — one-one, so that each output comes from a single input, and onto, so that every element of B has an input to return to.
Why both conditions are needed:**
- If f is not one-one, the output 4 of would have to return to both 2 and
- If f is not onto, an unreached element of B would have nowhere to go
The inverse. For a bijective f, is defined by exactly when , so and .
Worked example. Is with invertible? It is one-one, since gives , but it is not onto, since 3 is not an image. So it is not invertible as a function into .
Restricting the domain. becomes invertible from to , with inverse .
An everyday example. A locker system that gives each student exactly one locker and leaves no locker empty can be reversed — from any locker you can name its owner.
The substance. Invertibility depends on the chosen codomain — is invertible as a function from onto the even natural numbers.
Why both conditions are needed:**
- If f is not one-one, the output 4 of would have to return to both 2 and
- If f is not onto, an unreached element of B would have nowhere to go
The inverse. For a bijective f, is defined by exactly when , so and .
Worked example. Is with invertible? It is one-one, since gives , but it is not onto, since 3 is not an image. So it is not invertible as a function into .
Restricting the domain. becomes invertible from to , with inverse .
An everyday example. A locker system that gives each student exactly one locker and leaves no locker empty can be reversed — from any locker you can name its owner.
The substance. Invertibility depends on the chosen codomain — is invertible as a function from onto the even natural numbers.
How do you find the composite of two functions and the inverse of an invertible function?
**The composite is defined by — apply f first, then g — and the inverse of an invertible function is found by writing , solving for x in terms of y, and renaming the variable.
Worked example (composite).** Let and .
- , so
- , so
- Since , composition is not commutative
Worked example (inverse). Find the inverse of for .
So — this function is its own inverse. Check: and .
Useful fact. .
An everyday example. Applying a 10 per cent discount and then a ₹50 coupon to a bill is a composite function — doing the two steps in the other order gives a different final amount.
The substance. Order matters in composition — means f acts first, even though g is written first.
Worked example (composite).** Let and .
- , so
- , so
- Since , composition is not commutative
Worked example (inverse). Find the inverse of for .
So — this function is its own inverse. Check: and .
Useful fact. .
An everyday example. Applying a 10 per cent discount and then a ₹50 coupon to a bill is a composite function — doing the two steps in the other order gives a different final amount.
The substance. Order matters in composition — means f acts first, even though g is written first.
How do you sketch the graph of a function together with the graph of its inverse?
**The graph of is the reflection of the graph of f in the line , because the point lies on the graph of f exactly when lies on the graph of .
Sketching steps:**
- Draw the line
- Plot key points of f and mark the swapped points
- Reflect the whole curve in
Worked example. For the inverse is .
- Points on f: , and
- Points on : , and
- The two graphs meet at , which lies on
Worked example 2. For , the inverse passes through because f passes through .
An everyday example. Converting Celsius to Fahrenheit and back uses a function and its inverse, and ; for instance 100 °C gives 212 °F, and 212 °F returns 100 °C.
The substance. **For an increasing function, the graphs of f and can meet only on the line ** — which is why solving finds their meeting points.
Sketching steps:**
- Draw the line
- Plot key points of f and mark the swapped points
- Reflect the whole curve in
Worked example. For the inverse is .
- Points on f: , and
- Points on : , and
- The two graphs meet at , which lies on
Worked example 2. For , the inverse passes through because f passes through .
An everyday example. Converting Celsius to Fahrenheit and back uses a function and its inverse, and ; for instance 100 °C gives 212 °F, and 212 °F returns 100 °C.
The substance. **For an increasing function, the graphs of f and can meet only on the line ** — which is why solving finds their meeting points.
Exam tip
What earns full marks on one-one, onto and inverse functions?
Prove one-one and onto as two separate parts using algebra, not just a graph, and always state the domain and codomain of the inverse.
- One-one:
- Onto: solve for every y in the codomain
- Invertible exactly when bijective
- ; the inverse graph is the reflection in
The trap. Declaring a function onto because a formula for x exists. Check that the x found actually lies in the domain.
- One-one:
- Onto: solve for every y in the codomain
- Invertible exactly when bijective
- ; the inverse graph is the reflection in
The trap. Declaring a function onto because a formula for x exists. Check that the x found actually lies in the domain.
Did you know
How do secret codes rely on functions that are easy to apply but hard to reverse?
The encryption that protects online banking uses functions that are bijective, so every message can in principle be recovered, yet working out the inverse without a secret key would take an impractically long time.
Multiplying two very large prime numbers is quick, but splitting the product back into its primes is extremely slow for a computer that does not already know one of them.
The one-one and onto properties guarantee that the right key reverses the process exactly.
Multiplying two very large prime numbers is quick, but splitting the product back into its primes is extremely slow for a computer that does not already know one of them.
The one-one and onto properties guarantee that the right key reverses the process exactly.
Exam relevance
How are one-one, onto and inverse functions tested in JEE Main?
Relations and Functions is a recurring JEE Main chapter, and inverse functions return in inverse trigonometric functions and calculus.
What gets asked. Classifying functions as one-one or onto on given sets, counting one-one or onto functions between finite sets, composite functions such as , and finding inverses.
Question types. Multiple-choice and numerical-value questions; JEE Advanced often mixes these with the greatest integer or modulus function.
The trap that costs marks. Reversing the order of composition — applies f first.
What gets asked. Classifying functions as one-one or onto on given sets, counting one-one or onto functions between finite sets, composite functions such as , and finding inverses.
Question types. Multiple-choice and numerical-value questions; JEE Advanced often mixes these with the greatest integer or modulus function.
The trap that costs marks. Reversing the order of composition — applies f first.
Key takeaways
What must you be able to do from this lesson?
- Types of functions: one-one, many-one, onto and into; bijective means one-one and onto
- Invertibility: a function has an inverse exactly when it is bijective
- Composite and inverse: ; solve for x to find
- Graphs: is the reflection of f in
If , what is , and what is ?
- Invertibility: a function has an inverse exactly when it is bijective
- Composite and inverse: ; solve for x to find
- Graphs: is the reflection of f in
If , what is , and what is ?