Invertible functions and inverse of a function

Some functions can be run backwards and some cannot. If ff turns an input xx into an output yy, an inverse would have to turn that same yy back into exactly the xx it came from — and that only works cleanly if no two different inputs ever landed on the same output, and if every possible output was actually hit. Those two requirements are exactly one-one-ness and onto-ness, the ideas you have already met for functions in general. Put them together and you get invertibility: a function ff is invertible precisely when it is a bijection, and its inverse f−1f^{-1} is the unique function that undoes it in both directions. This is not just abstract bookkeeping. The same "restrict the domain until it becomes invertible" trick you will practise below is the exact move used later to define the principal value branches of inverse trigonometric functions such as sin⁡−1x\sin^{-1}x and cos⁡−1x\cos^{-1}x. Under the current CBSE syllabus this specific topic is not separately examined, but understanding it now makes that later chapter far less mysterious.

The core insight

A function is invertible, with a well-defined inverse f−1f^{-1}, exactly when it is one-one and onto — a bijection — so every output traces back to exactly one input.

The core idea

What "invertible" means. A function f:A→Bf : A \to B is called invertible if there exists a function g:B→Ag : B \to A such that composing them either way gives you back where you started:

g(f(x))=x for every x∈A,f(g(y))=y for every y∈B.g(f(x)) = x \ \text{for every } x \in A, \qquad f(g(y)) = y \ \text{for every } y \in B.

where: AA is the domain of ff, BB is its codomain, xx ranges over AA, and yy ranges over BB. When such a gg exists it is unique, and it is called the inverse of ff, written f−1f^{-1}. It is worth pausing on why uniqueness matters: if two different functions g1g_1 and g2g_2 both satisfied these conditions, they would have to agree at every point of BB, so really there is only ever one candidate worth looking for.

Why bijection is the exact condition. One-one-ness is what lets you reverse ff without ambiguity: if two different inputs could give the same output yy, then "the" inverse would not know which one to send yy back to. Onto-ness is what lets the inverse be defined everywhere on BB: if some y∈By \in B were never hit by ff, then g(y)g(y) would have nothing sensible to equal. A function missing either property cannot be invertible in the strict two-sided sense above; a function with both properties always can be, by simply reading the graph of ff backwards.

How to actually find f−1f^{-1}. Once you know ff is invertible, the mechanical recipe is short: write y=f(x)y = f(x), solve this equation algebraically for xx in terms of yy, and then rename the letters so the answer reads as a function of its own input. That renamed expression is f−1f^{-1}. The figure below shows the picture behind the algebra — the arrows of ff simply run in reverse for f−1f^{-1}.

Figure
A function f mapping set A to set B with arrows shown, and the inverse function f inverse mapping the same points of B back to A along reversed arrows
f is invertible: every arrow has a unique way back A B f (one-one and onto) f inverse (reverses every arrow)

The core idea continued: no shortcuts around bijection

A common instinct is to try writing an inverse for any formula that looks solvable, but the definition demands the two-sided composition condition above hold for the whole domain and codomain, not just for a few convenient points. If ff fails one-one-ness or onto-ness on the sets you were given, "f−1f^{-1}" simply does not exist for that ff as stated — the fix, when one is possible, is to shrink the domain and codomain until both properties hold, which is exactly the move in the worked example below.

Derivation AShowing f(x) = 3x + 2 is invertible and finding its inverse

The goal of this derivation is to take a specific linear function f:R→Rf : \mathbb{R} \to \mathbb{R}, f(x)=3x+2f(x) = 3x+2, and establish — with a complete, checkable argument rather than a guess — that it is one-one, that it is onto, and therefore invertible, before extracting an explicit formula for f−1f^{-1} and verifying that formula by direct substitution back into the composition condition.

Step 1. Check one-one-ness. Suppose f(x1)=f(x2)f(x_1) = f(x_2) for some x1,x2∈Rx_1, x_2 \in \mathbb{R}. Then 3x1+2=3x2+23x_1 + 2 = 3x_2 + 2, so subtracting 22 from both sides gives 3x1=3x23x_1 = 3x_2, and dividing by 33 gives x1=x2x_1 = x_2. Since equal outputs forced equal inputs, ff is one-one.

Step 2. Check onto-ness. Take any target value y∈Ry \in \mathbb{R} and ask whether some xx satisfies 3x+2=y3x+2 = y. Solving gives x=y−23x = \dfrac{y-2}{3}, which is a perfectly good real number for every real yy, and substituting back confirms f(y−23)=3(y−23)+2=(y−2)+2=yf\left(\dfrac{y-2}{3}\right) = 3\left(\dfrac{y-2}{3}\right) + 2 = (y-2)+2 = y. So every y∈Ry \in \mathbb{R} is hit, and ff is onto.

Step 3. Conclude invertibility. Since ff is both one-one and onto R→R\mathbb{R} \to \mathbb{R}, it is a bijection, and by the theorem stated above it is invertible.

Step 4. Extract and check the inverse. Step 2 already expressed xx in terms of yy as x=y−23x = \dfrac{y-2}{3}; renaming the input letter so it reads as a function gives

f−1(x)=x−23.f^{-1}(x) = \frac{x-2}{3}.

Checking: f−1(f(x))=f−1(3x+2)=(3x+2)−23=3x3=xf^{-1}(f(x)) = f^{-1}(3x+2) = \dfrac{(3x+2)-2}{3} = \dfrac{3x}{3} = x, and likewise f(f−1(x))=3(x−23)+2=(x−2)+2=xf(f^{-1}(x)) = 3\left(\dfrac{x-2}{3}\right)+2 = (x-2)+2 = x. Both composition conditions hold, confirming the inverse is correct.

Worked example

Let f:[0,∞)→[0,∞)f : [0,\infty) \to [0,\infty) be defined by f(x)=x2f(x) = x^2. Show ff is invertible on this restricted domain and codomain, and find f−1f^{-1}.

Step 1. Recall the trap. On the full sets R→R\mathbb{R} \to \mathbb{R}, f(x)=x2f(x) = x^2 is neither one-one (since f(−2)=f(2)=4f(-2) = f(2) = 4) nor onto (negative numbers are never reached). Restricting both the domain and the codomain to [0,∞)[0,\infty) is what rescues it.

Step 2. Check one-one on [0,∞)[0,\infty). Suppose x1,x2≥0x_1, x_2 \ge 0 and f(x1)=f(x2)f(x_1) = f(x_2), i.e. x12=x22x_1^2 = x_2^2. Factor: x12−x22=(x1−x2)(x1+x2)=0x_1^2 - x_2^2 = (x_1-x_2)(x_1+x_2) = 0. So either x1=x2x_1 = x_2, or x1+x2=0x_1 + x_2 = 0. Because x1,x2≥0x_1, x_2 \ge 0, the second case is only possible when x1=x2=0x_1 = x_2 = 0 — which again gives x1=x2x_1 = x_2. Either way, x1=x2x_1 = x_2, so ff is one-one on [0,∞)[0,\infty).

Step 3. Check onto [0,∞)[0,\infty). Take any y≥0y \ge 0. Choosing x=yx = \sqrt{y} (a well-defined non-negative real number since y≥0y \ge 0) gives f(y)=(y)2=yf(\sqrt{y}) = (\sqrt{y})^2 = y. So every y≥0y \ge 0 is hit, and ff is onto.

Step 4. Write and check the inverse. With both properties established, ff is invertible on [0,∞)→[0,∞)[0,\infty) \to [0,\infty), and

f−1(x)=x,x≥0.f^{-1}(x) = \sqrt{x}, \qquad x \ge 0.

Check: f−1(f(x))=x2=∣x∣=xf^{-1}(f(x)) = \sqrt{x^2} = |x| = x for x≥0x \ge 0, and f(f−1(x))=(x)2=xf(f^{-1}(x)) = (\sqrt{x})^2 = x for x≥0x \ge 0. The inverse of f(x)=x2f(x) = x^2 on [0,∞)[0,\infty) is f−1(x)=xf^{-1}(x) = \sqrt{x}.

Competitive stretch

The same restriction idea reappears, with a twist, for f(x)=sin⁡xf(x) = \sin x: on the full real line it is neither one-one nor onto [−1,1][-1,1], but restricted to the domain [−π2,π2]\left[-\tfrac{\pi}{2}, \tfrac{\pi}{2}\right] and codomain [−1,1][-1,1] it becomes a bijection, and its inverse there is exactly the principal value branch sin⁡−1x\sin^{-1}x you will meet in the next chapter — the restricted interval is chosen precisely so one-one-ness and onto-ness both hold.

Common traps

  • Writing down "f−1f^{-1}" before checking ff is one-one and onto — invertibility must be established, not assumed from the formula alone.
  • Confusing the inverse function f−1(x)f^{-1}(x) with the reciprocal 1f(x)\dfrac{1}{f(x)}; the superscript −1-1 here means "undo the function," not "raise to the power minus one."
  • Ignoring the stated domain and codomain and testing only the "natural" formula — as Worked Example shows, x2x^2 is invertible on [0,∞)[0,\infty) even though it is not invertible on all of R\mathbb{R}.
  • Skipping the final check f−1(f(x))=xf^{-1}(f(x)) = x and f(f−1(x))=xf(f^{-1}(x)) = x after solving for the inverse — this is the step that catches sign errors and algebraic slips before they cost marks.

Ask the tutor: Want to see how this same domain-restriction trick is used to define sin⁡−1x\sin^{-1}x, cos⁡−1x\cos^{-1}x and the other inverse trigonometric functions, or want more practice finding inverses of algebraic functions step by step?

If f is only one-one but not onto, can I still call it invertible in some sense?

Not in the strict sense used here, where f−1f^{-1} must be defined on the whole codomain BB. What you can do is shrink the codomain to the actual range of ff — the set of values ff really hits — and then ff becomes onto that smaller set automatically, since nothing is left uncovered. Once you do that, a one-one function is onto its own range, so it is invertible when viewed as a function into its range. This is exactly the spirit of restricting x2x^2 to [0,∞)[0,\infty): you are choosing the codomain to match what the function can actually produce, combined with restricting the domain to keep it one-one too.

Why isn't this topic tested directly on my CBSE board exam?

Under the current CBSE Class 12 syllabus (2025-26), invertible functions and the formal computation of f−1f^{-1} were removed from the Relations and Functions chapter during a curriculum rationalisation, even though they appeared in the original NCERT textbook. So you will not see a question asking you to prove a given function invertible and find its inverse by name. It is still worth understanding, though, because the identical reasoning — restrict a function until it is one-one and onto, then read its graph backwards — is exactly how the principal value branches of inverse trigonometric functions are defined, and that chapter is very much on the syllabus.

How is this different from just solving an equation for x?

Solving y=f(x)y = f(x) for xx is the mechanical last step, but by itself it does not tell you an inverse function exists. You could solve y=x2y = x^2 for xx over all reals and get x=±yx = \pm\sqrt{y} — two answers for one input, which is not a function at all. The invertibility check (one-one and onto) is what guarantees the algebra produces exactly one valid value of xx for every yy in the codomain, so that "solve for xx" actually defines a genuine function f−1f^{-1} rather than an ambiguous multi-valued expression.

Before this

Where this leads