Functions and invertibility

A relation earns the name "function" only by keeping one promise: every input produces exactly one output. Once that promise holds, a sharper question follows — can the function be undone? Given an output, can you always recover the unique input that produced it? That question is the heart of Unit 1's second strand in ISC Class 12 Mathematics, worth 10 of 65 Section-A marks. It forces a precise vocabulary — one-one, onto, into, bijective — because "undoing" a function only works when every output is hit exactly once. This article builds that vocabulary from the definition of a function upward, proves the single clean rule that decides invertibility, and works two contrasting examples: one function that is invertible everywhere, and one that becomes invertible only after its domain and codomain are trimmed. The scope here stays strictly algebraic; inverting trigonometric, exponential or logarithmic functions belongs to a separate topic.

The core insight

A function is invertible exactly when it is a bijection — simultaneously one-one and onto — and its inverse is found algebraically by solving y=f(x)y = f(x) for xx and swapping variable names.

The core idea

A function f:A→Bf : A \to B is a relation from AA to BB in which every element of AA is linked to exactly one element of BB. AA is the domain, BB is the codomain, and the range is the actual set of outputs achieved, which may be a proper subset of BB. Four labels classify how a function behaves between its domain and codomain:

  • One-one (injective): distinct inputs always give distinct outputs — f(a1)=f(a2)f(a_1) = f(a_2) forces a1=a2a_1 = a_2.
  • Many-one: the opposite — at least two distinct inputs share one output.
  • Onto (surjective): every element of BB is hit by some input, so the range fills the whole codomain.
  • Into: the opposite — some element of BB is never reached.

A function that is one-one and onto at once is a bijection, and bijection is precisely the condition for invertibility. When f:A→Bf : A \to B is a bijection, define its inverse by reversing every arrow:

f−1(b)=a  ⟺  f(a)=bf^{-1}(b) = a \iff f(a) = b

where: a∈Aa \in A, b∈Bb \in B, and f−1:B→Af^{-1} : B \to A is itself a genuine function only because bijectivity guarantees each bb has exactly one such aa. The inverse satisfies f−1(f(a))=af^{-1}(f(a)) = a for every a∈Aa \in A and f(f−1(b))=bf(f^{-1}(b)) = b for every b∈Bb \in B — applying ff then f−1f^{-1}, or f−1f^{-1} then ff, always returns you to the start.

Figure
Two mappings from a set A to a set B one bijective with every arrow paired uniquely and one many-one and into with a shared arrow and an unreached target
Bijective — invertible Many-one and into — not invertible A B A B every arrow paired, none shared, none unused top target shared (many-one); bottom target unreached (into)

A fast algebraic test for one-one: show that f(x1)=f(x2)f(x_1) = f(x_2) forces x1=x2x_1 = x_2, or equivalently confirm ff is strictly monotonic (always increasing, or always decreasing) across its whole domain — a strictly monotonic function can never repeat an output.

Finding the inverse of an algebraic bijection

Derivation AFinding the inverse of f(x) equals 3x plus 5

The goal of this derivation is to establish, for the concrete linear function f:R→Rf : \mathbb{R} \to \mathbb{R} given by f(x)=3x+5f(x) = 3x + 5, both that it satisfies the bijection condition required for invertibility and the explicit algebraic formula for f−1f^{-1}, using only the definitions of one-one and onto stated above.

Step 1. Prove one-one. Assume f(x1)=f(x2)f(x_1) = f(x_2) for some x1,x2∈Rx_1, x_2 \in \mathbb{R}. Then 3x1+5=3x2+53x_1 + 5 = 3x_2 + 5, so 3x1=3x23x_1 = 3x_2, so x1=x2x_1 = x_2. Since the assumption of equal outputs forced equal inputs, ff is one-one.

Step 2. Prove onto. Take an arbitrary yy in the codomain R\mathbb{R}. We need some x∈Rx \in \mathbb{R} with f(x)=yf(x) = y. Setting 3x+5=y3x + 5 = y and solving gives x=y−53x = \dfrac{y-5}{3}, which is a real number for every real yy. So every element of the codomain is actually reached, and ff is onto.

Step 3. Conclude invertibility. Since ff is both one-one and onto, it is a bijection, so it is invertible by the definition stated in the core idea above.

Step 4. Extract the inverse formula. Write y=3x+5y = 3x + 5 and solve for xx in terms of yy, exactly as in Step 2: x=y−53x = \dfrac{y-5}{3}. To present the inverse as a function of its own input variable, swap the names xx and yy:

f−1(x)=x−53f^{-1}(x) = \frac{x-5}{3}

Checking, f(f−1(x))=3(x−53)+5=(x−5)+5=xf(f^{-1}(x)) = 3\left(\dfrac{x-5}{3}\right) + 5 = (x-5)+5 = x, confirming the round trip returns the original input.

Worked example

Let f:R→Rf : \mathbb{R} \to \mathbb{R} be f(x)=x2f(x) = x^2. Decide whether ff is invertible, and if not, find a restriction that makes it invertible.

Step 1. Test one-one on R\mathbb{R}. Take x1=2x_1 = 2 and x2=−2x_2 = -2. Then f(2)=4=f(−2)f(2) = 4 = f(-2) even though 2≠−22 \neq -2, so ff is not one-one — it is many-one.

Step 2. Test onto on R\mathbb{R}. Take y=−1y = -1 in the codomain. No real xx satisfies x2=−1x^2 = -1, so ff is not onto — it is into. So f:R→Rf : \mathbb{R} \to \mathbb{R} is neither one-one nor onto, hence not invertible.

Step 3. Restrict to g:[0,∞)→[0,∞)g : [0,\infty) \to [0,\infty), g(x)=x2g(x) = x^2. For x1,x2≥0x_1, x_2 \geq 0, if x12=x22x_1^2 = x_2^2 then (x1−x2)(x1+x2)=0(x_1-x_2)(x_1+x_2)=0; since both are non-negative, either both are zero or x1+x2>0x_1+x_2 > 0 forces x1=x2x_1 = x_2 — either way x1=x2x_1 = x_2, so gg is one-one. For any y≥0y \geq 0, x=y≥0x = \sqrt{y} \geq 0 satisfies g(x)=yg(x) = y, so gg is onto.

Step 4. Conclude. gg is a bijection, hence invertible, and solving y=x2y = x^2 for x≥0x \geq 0 gives x=yx = \sqrt{y}, so g−1(x)=xg^{-1}(x) = \sqrt{x} for x∈[0,∞)x \in [0,\infty). The same formula x2x^2 that failed to be invertible on all of R\mathbb{R} becomes invertible once domain and codomain are restricted.

Common traps

  • Writing down an algebraic "inverse formula" without first checking that ff is actually a bijection on the stated domain and codomain — a formula that looks valid can still be meaningless outside a restricted range.
  • Confusing "into" (range is a proper subset of the codomain) with "not a function" — an into function is still a perfectly valid function, just not onto.
  • Classifying a function as one-one or onto without stating domain and codomain — as f(x)=x2f(x) = x^2 shows, the same rule can flip its verdict depending on what sets are chosen.
  • Applying the horizontal-line test backwards: one-one fails when a horizontal line crosses the graph more than once, onto fails when a horizontal line at some codomain height never meets the graph at all.

Ask the tutor: Not sure whether a given algebraic function is one-one, onto, or invertible on its stated domain — ask the AI tutor to walk through the check with you step by step.

Why does invertibility require both one-one and onto, not just one of them?

The inverse must itself be a function, and a function requires every input to give exactly one output. If f is many-one, two different inputs share an output value b, so f-inverse of b would have to point to two different places at once — not a function. If f is into, some element of the codomain is never produced by f, so f-inverse would have no defined value there at all. Bijectivity is exactly what rules out both failures simultaneously.

If f of x equals x squared is not invertible, why do calculators and formulas casually use square root as its inverse?

Square root is the inverse of x squared only once the domain and codomain are restricted to non-negative numbers, as the worked example shows. On the full real numbers, x squared is many-one (2 and negative 2 both map to 4) and into (negative numbers are never reached), so no true inverse function exists there. The convention of taking the positive square root is a choice to work with the restricted, genuinely invertible version, not a property of the unrestricted function.

Is checking one-one and onto separately actually necessary, or can I just try to solve y equals f of x for x and call that the inverse?

Being able to solve y equals f of x for x is necessary but not sufficient. For f of x equals x squared, solving gives x equals plus or minus the square root of y — but that is not a single-valued function, precisely because f was many-one. Only when the algebra yields one and only one value of x for each y in the codomain, which is exactly what one-one and onto together guarantee, does the solved expression qualify as a genuine inverse function.

Before this

Where this leads