Class 12 Maths, Worked in Full Past papersGet updates
Chapter 1 · Relations and Functions

Miscellaneous · Q2: f(x)=x3f(x)=x^3 is injective

Miscellaneous ExerciseOne-one functions · Miscellaneous Exercise
The question

Show that the function f:R→Rf : \R \to \R given by f(x)=x3f(x) = x^3 is injective.

Exam answer

Let x1,x2∈Rx_1, x_2 \in \R with f(x1)=f(x2)f(x_1) = f(x_2)⁠. Then x13=x23x_1^3 = x_2^3⁠, so

x13−x23=(x1−x2) Q=0,x_1^3 - x_2^3 = (x_1 - x_2)\,Q = 0,

where

Q=x12+x1x2+x22=(x1+x22)2+34x22\begin{aligned} Q &= x_1^2 + x_1x_2 + x_2^2 \\ &= \Big(x_1 + \frac{x_2}{2}\Big)^2 + \frac34x_2^2 \end{aligned}

If x1−x2=0x_1 - x_2 = 0⁠, then x1=x2x_1 = x_2⁠. If Q=0Q = 0⁠, both squares are 0, so x2=0x_2 = 0 and then x1=0x_1 = 0⁠. Again x1=x2x_1 = x_2⁠.

So f(x1)=f(x2)⇒x1=x2f(x_1) = f(x_2) \Rightarrow x_1 = x_2⁠. Hence ff is injective.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Injective means: equal outputs force equal inputs. So we assume x13=x23x_1^3 = x_2^3 and must reach x1=x2x_1 = x_2⁠. The difference of two cubes factorises: x13−x23=(x1−x2)(x12+x1x2+x22)x_1^3 - x_2^3 = (x_1 - x_2)(x_1^2 + x_1x_2 + x_2^2)⁠. A product is zero only if a factor is zero, and the second factor, after completing the square, is a sum of two squares, which is zero only when x1=x2=0x_1 = x_2 = 0⁠. Either way, x1=x2x_1 = x_2⁠. Unlike squaring, cubing keeps the sign, so 22 and −2-2 do not collide.

Given, to show, and the plan
Given
f(x)=x3f(x) = x^3 for every real xx⁠, with domain and codomain R\R⁠.
To show
ff is injective (one-one): f(x1)=f(x2)⇒x1=x2f(x_1) = f(x_2) \Rightarrow x_1 = x_2 for all x1,x2∈Rx_1, x_2\in\R⁠.
Plan
(1) Assume x13=x23x_1^3 = x_2^3 for arbitrary reals. (2) Move everything to one side and factorise. (3) Use the zero-product rule: two cases. (4) Show the second case also gives x1=x2x_1 = x_2⁠, by completing the square. (5) Conclude, and compare with x2x^2⁠.

Basics you need

1Injective = one-one

f:A→Bf : A\to B is injective (one-one) if f(x1)=f(x2)f(x_1) = f(x_2) implies x1=x2x_1 = x_2 for all x1,x2∈Ax_1, x_2\in A⁠. To prove it, start from equal outputs for arbitrary inputs and deduce the inputs are equal. Basics: one-one and onto

2Difference of cubes

a3−b3=(a−b)(a2+ab+b2)a^3 - b^3 = (a-b)(a^2 + ab + b^2)⁠. Check by expanding: a3+a2b+ab2−a2b−ab2−b3=a3−b3a^3 + a^2b + ab^2 - a^2b - ab^2 - b^3 = a^3 - b^3⁠.

3Zero-product rule

If PQ=0PQ = 0 for real numbers P,QP, Q⁠, then P=0P = 0 or Q=0Q = 0 (or both). This is how a factorisation turns one hard equation into two easier ones.

4Squares are never negative

For every real tt⁠, t2≥0t^2 \ge 0⁠, with t2=0t^2 = 0 only when t=0t = 0⁠. So a sum of squares s2+t2s^2 + t^2 is 0 only when s=t=0s = t = 0⁠. Completing the square is the standard way to write an expression as such a sum.

5Proof by cases

When every possibility falls into one of a few cases, proving the conclusion in each case proves it outright. Basics: proving and disproving

Solution

  1. Assume equal outputs

    Let x1x_1 and x2x_2 be any real numbers with f(x1)=f(x2)f(x_1) = f(x_2)⁠, that is,

    x13=x23.x_1^3 = x_2^3.

    We must show that this forces x1=x2x_1 = x_2⁠.

    Injective is an "if … then" statement about every pair of inputs, so the proof must start from the "if" part, equal outputs, for inputs that could be any real numbers. Checking examples such as 23=82^3 = 8 and 33=273^3 = 27 would not cover the infinitely many other pairs.
    Definition of injective (Basic 1): f(x1)=f(x2)⇒x1=x2f(x_1) = f(x_2) \Rightarrow x_1 = x_2⁠.
  2. Bring everything to one side and factorise

    Subtract x23x_2^3 from both sides and use the difference-of-cubes identity (Basic 2) with a=x1, b=x2a = x_1,\ b = x_2⁠:

    0=x13−x23=(x1−x2)(x12+x1x2+x22).0 = x_1^3 - x_2^3 = (x_1 - x_2)\left(x_1^2 + x_1x_2 + x_2^2\right).
    The factor x1−x2x_1 - x_2 is exactly what we want to show is zero. Factorising makes it appear explicitly, so the question becomes: can the other factor be zero instead? We cannot just take cube roots of both sides here without first knowing that a real number has only one real cube root, which is essentially the statement we are trying to prove.
    a3−b3=(a−b)(a2+ab+b2)a^3 - b^3 = (a-b)(a^2+ab+b^2)⁠, checked by expanding the right-hand side (Basic 2).
  3. Two cases from the zero-product rule

    A product of two real numbers is zero only when one of them is zero (Basic 3). So

    x1−x2=0orx12+x1x2+x22=0.x_1 - x_2 = 0 \qquad\text{or}\qquad x_1^2 + x_1x_2 + x_2^2 = 0.

    Case 1: x1−x2=0x_1 - x_2 = 0⁠. Then x1=x2x_1 = x_2 immediately.

    Case 2: x12+x1x2+x22=0x_1^2 + x_1x_2 + x_2^2 = 0⁠. This needs more work, done in the next step.

    The two cases cover every possibility, so if each one leads to x1=x2x_1 = x_2⁠, the proof is complete (Basic 5). Case 1 is the outcome we want; Case 2 is the only way the proof could fail, so we must examine it carefully rather than ignore it.
    Zero-product rule (Basic 3): PQ=0⇒P=0PQ = 0 \Rightarrow P = 0 or Q=0Q = 0⁠.
  4. Case 2: complete the square

    Treat x12+x1x2x_1^2 + x_1x_2 as the start of a square in x1x_1⁠. Since (x1+x22)2=x12+x1x2+x224\left(x_1 + \frac{x_2}{2}\right)^2 = x_1^2 + x_1x_2 + \frac{x_2^2}{4}⁠,

    x12+x1x2+x22=(x1+x22)2+34x22.x_1^2 + x_1x_2 + x_2^2 = \left(x_1 + \frac{x_2}{2}\right)^2 + \frac{3}{4}x_2^2.

    Both terms on the right are ≥0\ge 0 (a square, and 34\frac34 times a square). A sum of two non-negative numbers is 0 only when both are 0 (Basic 4), so

    34x22=0 ⇒ x2=0,and then(x1+0)2=0 ⇒ x1=0.\begin{gathered} \frac34 x_2^2 = 0 \ \Rightarrow\ x_2 = 0, \\ \text{and then}\quad \left(x_1 + 0\right)^2 = 0 \ \Rightarrow\ x_1 = 0. \end{gathered}

    So in Case 2, x1=x2=0x_1 = x_2 = 0⁠, and in particular x1=x2x_1 = x_2.

    An expression like x12+x1x2+x22x_1^2 + x_1x_2 + x_2^2 has a cross term x1x2x_1x_2 that can be negative, so it is not obvious that it is never negative. Completing the square removes the cross term and writes the expression as a sum of squares, whose sign is obvious. This shows the second factor is positive except when both numbers are 0.
    t2≥0t^2 \ge 0 for every real tt⁠, with equality only at t=0t = 0 (Basic 4). Completing the square: a2+ab=(a+b2)2−b24a^2 + ab = \left(a + \frac{b}{2}\right)^2 - \frac{b^2}{4}⁠.
  5. Conclude, and compare with x2x^2

    In both cases x1=x2x_1 = x_2⁠. Since x1,x2x_1, x_2 were arbitrary, f(x1)=f(x2)⇒x1=x2f(x_1) = f(x_2) \Rightarrow x_1 = x_2 for all real x1,x2x_1, x_2⁠, and f(x)=x3f(x) = x^3 is injective.

    Compare squaring. For g(x)=x2g(x) = x^2 the same method gives x12−x22=(x1−x2)(x1+x2)x_1^2 - x_2^2 = (x_1 - x_2)(x_1 + x_2)⁠, and the second factor can be zero with x1≠x2x_1 \ne x_2⁠: take x1=2, x2=−2x_1 = 2,\ x_2 = -2⁠. Indeed g(2)=g(−2)=4g(2) = g(-2) = 4⁠, so x2x^2 is not one-one on R\R⁠. Cubing keeps the sign: 23=82^3 = 8 but (−2)3=−8(-2)^3 = -8⁠.

    −11 2−2 y = 1 meets the curve only at x = 1 y = −27/8 meets it only at x = −3/2 y = x³
    The graph of y=x3y = x^3 rises all the way from left to right, so every horizontal line meets it at most once (in fact exactly once). That is the picture of "injective". The parabola y=x2y = x^2⁠, by contrast, is met twice by the line y=4y = 4⁠, at x=±2x = \pm2⁠.
    Showing where the same method breaks for x2x^2 makes clear what the proof really used: the second factor x12+x1x2+x22x_1^2 + x_1x_2 + x_2^2 is never zero unless both numbers are zero, while x1+x2x_1 + x_2 is zero for every pair of opposite numbers.
    One counterexample (2≠−22 \ne -2 but 22=(−2)22^2 = (-2)^2⁠) disproves one-one for x2x^2 (Basic 5).
Result

If x13=x23x_1^3 = x_2^3⁠, then (x1−x2)[(x1+x22)2+34x22]=0(x_1 - x_2)\left[\left(x_1 + \frac{x_2}{2}\right)^2 + \frac34x_2^2\right] = 0⁠. Either x1=x2x_1 = x_2⁠, or the bracket is 0, which forces x1=x2=0x_1 = x_2 = 0⁠. So x1=x2x_1 = x_2 in every case, and f(x)=x3f(x) = x^3 is injective on R\R. (The answer key gives no answer for this "show that" question.)

Check it with numbers

Take x1=1, x2=−2x_1 = 1,\ x_2 = -2⁠: the second factor is 12+1⋅(−2)+(−2)2=1−2+4=31^2 + 1\cdot(-2) + (-2)^2 = 1 - 2 + 4 = 3⁠, and the completed-square form gives (1+−22)2+34⋅4=0+3=3\left(1 + \frac{-2}{2}\right)^2 + \frac34\cdot4 = 0 + 3 = 3⁠, the same and positive. The site's verification script cubes 81 different fractions from −10-10 to 1010 and finds 81 different cubes, checks that x12+x1x2+x22>0x_1^2 + x_1x_2 + x_2^2 > 0 for every sample pair other than (0,0)(0,0)⁠, and confirms both identities symbolically.

Common mistakes
  1. Dividing by x12+x1x2+x22x_1^2 + x_1x_2 + x_2^2 without checking it is non-zero. It is zero when x1=x2=0x_1 = x_2 = 0⁠; that case must be handled (it gives x1=x2x_1 = x_2 anyway).
  2. Claiming x12+x1x2+x22>0x_1^2 + x_1x_2 + x_2^2 > 0 "because squares are positive". The middle term x1x2x_1x_2 can be negative; completing the square is what proves the claim.
  3. "Taking cube roots" with no justification. That every real number has exactly one real cube root is essentially what we are proving.
  4. Proving the converse. x1=x2⇒x13=x23x_1 = x_2 \Rightarrow x_1^3 = x_2^3 is true for every function and proves nothing about injectivity.
What to take away
  1. For a polynomial ff⁠, proving one-one usually means: factor f(x1)−f(x2)f(x_1) - f(x_2) as (x1−x2)×(something)(x_1 - x_2)\times(\text{something}) and show the "something" cannot vanish when x1≠x2x_1 \ne x_2⁠.
  2. Completing the square is the tool for showing a quadratic expression is never negative.
  3. x3x^3 is also onto R\R (every real yy is the cube of y3\sqrt[3]{y}⁠), so it is a bijection; compare Miscellaneous Q1, another bijection proved by solving f(x1)=f(x2)f(x_1) = f(x_2)⁠.

Every fact used, and where it comes from

FactUsed inSource
Injective (one-one)Steps 1, 5Definition 5, Section 1.3 (Lesson: types of functions)
a3−b3=(a−b)(a2+ab+b2)a^3 - b^3 = (a-b)(a^2+ab+b^2)Step 2Algebraic identity (Class IX); verified symbolically in the site's verification script
Zero-product ruleStep 3Property of real numbers
a2+ab+b2=(a+b2)2+34b2a^2+ab+b^2 = \left(a+\frac b2\right)^2 + \frac34b^2⁠; squares ≥0\ge 0Step 4Completing the square; verified symbolically
x2x^2 is not one-one on R\RStep 5Counterexample 22=(−2)22^2 = (-2)^2 (compare Example 11, Section 1.3)
Sample cubes distinct; graph coordinatesCheck, FigureComputed in the site's verification script
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →