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

Exercise 1.2 · Q7: 3−4x3-4x and 1+x21+x^2 on R\R

Exercise 1.2Types of functions · Exercise 1.2
The question

In each of the following cases, state whether the function is one-one, onto or bijective. Justify your answer.

(i) f:R→Rf : \R \to \R defined by f(x)=3−4xf(x) = 3 - 4x

(ii) f:R→Rf : \R \to \R defined by f(x)=1+x2f(x) = 1 + x^2

Exam answer

(i) Let f(x1)=f(x2)f(x_1) = f(x_2)⁠. Then 3−4x1=3−4x23 - 4x_1 = 3 - 4x_2 ⇒x1=x2\Rightarrow x_1 = x_2⁠. So ff is one-one.

Let y∈Ry \in \R⁠. Take x=3−y4∈Rx = \frac{3 - y}{4} \in \R⁠. Then

f(x)=3−4⋅3−y4=3−(3−y)=y\begin{aligned} f(x) &= 3 - 4\cdot\frac{3 - y}{4} \\ &= 3 - (3 - y) = y \end{aligned}

So ff is onto.

Hence ff is one-one and onto, that is, bijective.

(ii) f(1)=2=f(−1)f(1) = 2 = f(-1)⁠, but 1≠−11 \ne -1⁠. So ff is not one-one.

f(x)=1+x2≥1f(x) = 1 + x^2 \ge 1 for all xx⁠, so 0∈R0 \in \R has no preimage. So ff is not onto.

Hence ff is neither one-one nor onto.

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

The one idea this problem is built on

For each function, ask two separate questions. One-one: if two inputs give the same output, must they be the same input? Onto: can every real number yy be produced, that is, can we always solve f(x)=yf(x) = y for a real xx⁠? For 3−4x3-4x the equation 3−4x=y3 - 4x = y always has exactly one solution, so both answers are yes. For 1+x21 + x^2⁠, squaring forgets the sign of xx (so 11 and −1-1 collide), and x2≥0x^2 \ge 0 means the output is never below 1, so both answers are no.

Given, to find, and the plan
Given
(i) f(x)=3−4xf(x) = 3-4x and (ii) f(x)=1+x2f(x) = 1+x^2⁠, each with domain R\R and codomain R\R⁠.
To find
For each function: is it one-one? onto? bijective? with a justification.
Plan
Part (i): prove one-one by assuming f(x1)=f(x2)f(x_1)=f(x_2) and deducing x1=x2x_1=x_2⁠; prove onto by solving 3−4x=y3-4x=y for an arbitrary yy and checking the answer. Part (ii): disprove one-one with a counterexample; disprove onto by showing 1+x2≥11+x^2 \ge 1 for all xx⁠, so a value such as 0 is never reached.

Basics you need

1One-one (injective)

ff is one-one if f(x1)=f(x2)f(x_1)=f(x_2) implies x1=x2x_1=x_2⁠, for every x1,x2x_1, x_2 in the domain (Definition 5). To prove it, start from f(x1)=f(x2)f(x_1)=f(x_2) with arbitrary x1,x2x_1, x_2⁠. To disprove it, give one pair x1≠x2x_1\ne x_2 with equal images. Basics: one-one and onto

2Onto (surjective)

f:X→Yf : X\to Y is onto if for every y∈Yy\in Y there is an x∈Xx\in X with f(x)=yf(x)=y (Definition 6). To prove it, take an arbitrary yy and construct xx⁠. To disprove it, name one yy that no xx reaches.

3Bijective

Bijective means one-one and onto (Definition 7). Basics: proving and disproving

4Rules for equations

Adding the same number to both sides, or multiplying or dividing both sides by the same non-zero number, gives an equivalent equation. So −4x1=−4x2-4x_1 = -4x_2 can be divided by −4-4⁠.

5Squares are never negative

For every real xx⁠, x2≥0x^2 \ge 0⁠, with x2=0x^2 = 0 only when x=0x = 0⁠. Also (−x)2=x2(-x)^2 = x^2⁠: a square cannot tell xx and −x-x apart. Basics: what a function is

Part (i): f(x)=3−4xf(x) = 3 - 4x

  1. One-one: equal outputs force equal inputs

    Let x1,x2x_1, x_2 be any real numbers with f(x1)=f(x2)f(x_1) = f(x_2)⁠. Then

    3−4x1=3−4x2−4x1=−4x2(subtract 3 from both sides)x1=x2(divide both sides by −4).\begin{aligned} 3 - 4x_1 &= 3 - 4x_2 \\ -4x_1 &= -4x_2 &&\text{(subtract 3 from both sides)}\\ x_1 &= x_2 &&\text{(divide both sides by } -4\text{)}. \end{aligned}

    So f(x1)=f(x2)f(x_1) = f(x_2) always forces x1=x2x_1 = x_2⁠: ff is one-one.

    One-one is a "for all" claim, so we must work with arbitrary x1,x2x_1, x_2⁠, not chosen numbers. The method is to undo the formula one operation at a time. Each step is reversible: subtracting 3 is always allowed, and dividing by −4-4 is allowed because −4≠0-4 \ne 0⁠. That non-zero coefficient is the whole reason the function is one-one: a linear function ax+bax+b is one-one exactly when a≠0a\ne0⁠.
    Dividing both sides of an equation by a non-zero number keeps it equivalent (Basic 4). One-one: f(x1)=f(x2)⇒x1=x2f(x_1)=f(x_2)\Rightarrow x_1=x_2 (Definition 5).
  2. Onto: solve 3−4x=y3 - 4x = y for any real yy

    Take an arbitrary y∈Ry\in\R⁠. We look for a real xx with f(x)=yf(x) = y⁠:

    3−4x=y ⟹ −4x=y−3 ⟹ x=y−3−4=3−y4.3 - 4x = y \ \Longrightarrow\ -4x = y - 3 \ \Longrightarrow\ x = \frac{y-3}{-4} = \frac{3-y}{4}.

    This xx is a real number for every real yy (the only division is by 4), so it lies in the domain R\R⁠. Check that it works:

    f ⁣(3−y4)=3−4⋅3−y4=3−(3−y)=y. ✓f\!\left(\frac{3-y}{4}\right) = 3 - 4\cdot\frac{3-y}{4} = 3 - (3 - y) = y. \ ✓

    So every real yy is the image of 3−y4\frac{3-y}{4}⁠: ff is onto.

    Onto says every element of the codomain is hit, so again we start from an arbitrary yy⁠. Solving the equation tells us which xx to try; the check then proves that this xx really maps to yy⁠. We must also make sure the xx we found belongs to the domain. Here the domain is all of R\R and 3−y4\frac{3-y}{4} is always real, so there is nothing to exclude.
    Onto: for an arbitrary yy in the codomain, find xx in the domain with f(x)=yf(x)=y⁠, then check (Definition 6). Basics: one-one and onto
  3. Conclude for part (i), and picture it

    ff is one-one (Step 1) and onto (Step 2), so f(x)=3−4xf(x) = 3 - 4x is bijective.

    −112 −6−4−22468 x y (1, −1) (0, 3) (3/4, 0) y = −1 y = 3 − 4x
    The graph of y=3−4xy = 3 - 4x is a straight line that falls steadily and extends without bound in both directions. Every horizontal line meets it exactly once: for example y=−1y = -1 meets it only at x=3−(−1)4=1x = \frac{3-(-1)}{4} = 1⁠. "At most once" is one-one; "at least once" is onto.
    The graph gives a picture of both properties at once. A horizontal line at height yy collects all inputs with output yy⁠. If no horizontal line meets the graph twice, no two inputs share an output (one-one); if every horizontal line meets the graph, every yy is an output (onto).
    Bijective = one-one and onto (Definition 7). Lesson: types of functions

Part (ii): f(x)=1+x2f(x) = 1 + x^2

  1. Not one-one: 11 and −1-1 give the same output

    Compute

    f(1)=1+12=2andf(−1)=1+(−1)2=1+1=2.f(1) = 1 + 1^2 = 2 \qquad\text{and}\qquad f(-1) = 1 + (-1)^2 = 1 + 1 = 2.

    So f(1)=f(−1)f(1) = f(-1) although 1≠−11 \ne -1⁠. Two different inputs share an output, so ff is not one-one.

    Squaring forgets the sign: (−x)2=x2(-x)^2 = x^2⁠, so f(−x)=f(x)f(-x) = f(x) for every xx⁠. Any non-zero xx and its negative collide. One such pair is enough, because one-one is a "for all" claim and a single counterexample disproves it. Compare part (i): there, dividing by −4-4 undid the formula; here, the step x12=x22x_1^2 = x_2^2 cannot be undone to x1=x2x_1 = x_2⁠, only to x1=±x2x_1 = \pm x_2⁠.
    (−x)2=x2(-x)^2 = x^2 (Basic 5). To disprove a "for all" statement, one counterexample is enough. Basics: proving and disproving
  2. Not onto: the output is never less than 1

    For every real xx⁠, x2≥0x^2 \ge 0 (Basic 5), so

    f(x)=1+x2 ≥ 1+0=1for all x∈R.f(x) = 1 + x^2 \ \ge\ 1 + 0 = 1 \qquad\text{for all } x\in\R.

    Now take the codomain element 0∈R0\in\R⁠. If some real xx had f(x)=0f(x) = 0⁠, then 1+x2=01 + x^2 = 0⁠, so x2=−1x^2 = -1⁠, which is impossible for a real number because x2≥0x^2 \ge 0⁠. So no x∈Rx\in\R maps to 0, and ff is not onto.

    The same holds for every y<1y < 1⁠, for example y=12y = \tfrac12 or y=−5y = -5⁠. The range of ff is exactly [1,∞)[1, \infty)⁠: every y≥1y \ge 1 is reached, by x=y−1x = \sqrt{y-1}⁠, since 1+(y−1)2=1+(y−1)=y1 + (\sqrt{y-1})^2 = 1 + (y-1) = y⁠.

    −2−112 −112345 x y (−1, 2) (1, 2) y = 1/2: never reached lowest point (0, 1) y = 1 + x² y = 2
    The graph of y=1+x2y = 1 + x^2 is a U-shaped parabola with lowest point (0,1)(0, 1) (horizontal and vertical scales differ). The horizontal line y=2y = 2 meets it twice, at x=±1x = \pm1 (not one-one). The line y=12y = \tfrac12 lies wholly below the graph and meets it nowhere (not onto).
    To show a value is never reached we need a reason that covers every xx at once; trying several inputs proves nothing. The inequality x2≥0x^2\ge0 supplies that reason. We chose 0 as the missing value because it is the simplest number below 1, but any y<1y<1 would do. Finding the full range [1,∞)[1,\infty) shows precisely which part of the codomain is missed.
    Onto fails if some yy in the codomain has no preimage; equivalently, the range is smaller than the codomain (Remark after Definition 6). Basics: one-one and onto
  3. Conclude for part (ii)

    ff is not one-one (Step 1) and not onto (Step 2), so f(x)=1+x2f(x) = 1 + x^2 is neither one-one nor onto, and in particular not bijective.

    Both failures have a structural cause: squaring loses the sign (destroying one-one) and squaring never produces a negative number (destroying onto). Changing the domain to [0,∞)[0,\infty) would repair one-one, and changing the codomain to [1,∞)[1,\infty) would repair onto; with both changes ff would be a bijection. The question fixes both as R\R⁠, so neither repair applies.
Result

(i) f(x)=3−4xf(x) = 3 - 4x is one-one and onto, hence bijective: 3−4x1=3−4x23-4x_1 = 3-4x_2 gives x1=x2x_1 = x_2⁠, and every real yy is the image of 3−y4\frac{3-y}{4}⁠.

(ii) f(x)=1+x2f(x) = 1 + x^2 is neither one-one nor onto: f(1)=f(−1)=2f(1) = f(-1) = 2⁠, and f(x)≥1f(x) \ge 1 for all xx⁠, so 0 has no preimage.

(Textbook answer: (i) one-one and onto; (ii) neither one-one nor onto.)

Check it with numbers

(i) Take y=11y = 11⁠. The formula gives x=3−114=−2x = \frac{3-11}{4} = -2⁠, and indeed f(−2)=3−4(−2)=3+8=11f(-2) = 3 - 4(-2) = 3 + 8 = 11 ✓. Take y=−1y = -1⁠: x=3+14=1x = \frac{3+1}{4} = 1⁠, and f(1)=3−4=−1f(1) = 3 - 4 = -1 ✓.

(ii) f(3)=f(−3)=10f(3) = f(-3) = 10⁠, another collision. The smallest value over the inputs −3,−2.5,…,3-3, -2.5, \dots, 3 is f(0)=1f(0) = 1⁠, and no input gives anything below 1.

Common mistakes
  1. Proving one-one with numbers. Checking that f(1)≠f(2)f(1)\ne f(2) for 3−4x3-4x proves nothing in general; the argument must use arbitrary x1,x2x_1, x_2⁠.
  2. Forgetting to check the preimage. After solving 3−4x=y3-4x=y⁠, substitute back to confirm f(3−y4)=yf\big(\frac{3-y}{4}\big) = y⁠.
  3. "x12=x22x_1^2 = x_2^2 so x1=x2x_1 = x_2". This step is false: x1=−x2x_1 = -x_2 is also possible. That is exactly why part (ii) is not one-one.
  4. Choosing a value in the range as the onto counterexample. For 1+x21 + x^2⁠, the values 1, 2 or 5 are reached; pick a value below 1, such as 0.
What to take away
  1. A linear function ax+bax + b with a≠0a \ne 0 is a bijection from R\R to R\R⁠; its inverse is found by solving ax+b=yax+b=y⁠.
  2. Even powers such as x2x^2 lose the sign, so they are not one-one on R\R⁠. They are also bounded below (x2≥0x^2 \ge 0⁠, so 1+x2≥11 + x^2 \ge 1⁠), so they miss every value below the bound and are not onto R\R⁠.
  3. Horizontal lines on the graph test both properties: at most one meeting point (one-one), at least one (onto).

Every fact used, and where it comes from

FactUsed inSource
Definitions of one-one, onto, bijectiveBoth partsDefinitions 5, 6, 7, Section 1.3 (Lesson: types of functions)
Onto ⇔ range = codomainPart (ii), Step 2Remark after Definition 6, Section 1.3
Dividing by a non-zero number keeps an equation equivalentPart (i), Steps 1, 2Algebra of equations
x2≥0x^2 \ge 0 and (−x)2=x2(-x)^2 = x^2 for real xxPart (ii), Steps 1, 2Properties of real numbers
Same method for 2x2x and for x2x^2 on R\RBoth partsExample 9 and Example 11, Section 1.3
All numerical valuesCheckRecomputed 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 →