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

Example 25: IN+INI_{\N}+I_{\N} is not onto

ExamplesOnto functions · Miscellaneous Examples
The question

Consider the identity function IN:N→NI_{\N} : \N \to \N defined as IN(x)=x  ∀ x∈NI_{\N}(x) = x\ \ \forall\, x \in \N⁠. Show that although INI_{\N} is onto but IN+IN:N→NI_{\N} + I_{\N} : \N \to \N defined as (IN+IN)(x)=IN(x)+IN(x)=x+x=2x(I_{\N} + I_{\N})(x) = I_{\N}(x) + I_{\N}(x) = x + x = 2x is not onto.

Exam answer

INI_{\N} is onto: For every y∈Ny \in \N⁠, IN(y)=yI_{\N}(y) = y⁠, so yy is the image of y∈Ny \in \N⁠. Thus INI_{\N} is onto.

IN+INI_{\N} + I_{\N} is not onto: (IN+IN)(x)=2x(I_{\N} + I_{\N})(x) = 2x⁠. Take 3∈N3 \in \N⁠. If 2x=32x = 3⁠, then x=32∉Nx = \frac32 \notin \N⁠. So 3 has no pre-image in N\N⁠. Thus IN+INI_{\N} + I_{\N} is not onto.

Hence INI_{\N} is onto but IN+INI_{\N} + I_{\N} is not onto.

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

The one idea this problem is built on

Being onto is not preserved by adding functions. The identity hits every natural number, because each yy is its own preimage. But adding the identity to itself doubles every value, and doubling a natural number always gives an even number. So odd numbers such as 3 are never reached, and one unreached element of the codomain is enough to show a function is not onto.

Given, to show, and the plan
Given
N={1,2,3,… }\N = \{1,2,3,\dots\}⁠, the identity IN(x)=xI_{\N}(x) = x⁠, and the sum (IN+IN)(x)=2x(I_{\N}+I_{\N})(x) = 2x⁠, both from N\N to N\N⁠.
To show
(a) INI_{\N} is onto. (b) IN+INI_{\N}+I_{\N} is not onto.
Plan
(1) Prove (a) by producing a preimage for an arbitrary yy⁠. (2) Understand how the sum of two functions is defined, and check 2x2x really lands in N\N⁠. (3) Prove (b) with one counterexample: an element of the codomain with no preimage. (4) Describe exactly which elements are missed.

Basics you need

1Onto (surjective)

f:A→Bf : A\to B is onto if every y∈By\in B equals f(x)f(x) for at least one x∈Ax\in A⁠. To prove it, take an arbitrary yy and construct xx⁠. To disprove it, find one y∈By\in B that no x∈Ax\in A reaches. Basics: one-one and onto

2The identity function

IA:A→AI_A : A\to A⁠, IA(x)=xI_A(x) = x⁠: every element is sent to itself. Basics: what a function is

3Sum of two functions

For f,g:A→Rf, g : A\to\R⁠, the sum f+gf+g is the function defined pointwise: (f+g)(x)=f(x)+g(x)(f+g)(x) = f(x) + g(x) for each x∈Ax\in A⁠. (Class XI, Relations and Functions.)

4Even and odd natural numbers

nn is even when n=2kn = 2k for some integer kk⁠, and odd otherwise. No number is both, so an odd number is never of the form 2x2x with xx a whole number. Basics: integers, even and odd

5One counterexample disproves "for all"

"Onto" is a claim about every element of the codomain. A single element that fails is enough to show the claim is false. Basics: proving and disproving

Solution

  1. INI_{\N} is onto

    Take any y∈Ny\in\N (the codomain). We need an x∈Nx\in\N (the domain) with IN(x)=yI_{\N}(x) = y⁠. Choose x=yx = y⁠. It is a natural number, and

    IN(x)=IN(y)=y.I_{\N}(x) = I_{\N}(y) = y.

    Since yy was arbitrary, every element of the codomain has a preimage, so INI_{\N} is onto.

    The textbook says "clearly INI_{\N} is onto"; this step spells out why. To prove onto we must handle every yy⁠, so we use a letter yy that could be any natural number and find its preimage explicitly. For the identity the preimage is yy itself.
    Onto: for each yy in the codomain there is an xx in the domain with f(x)=yf(x)=y (Definition 6, Basic 1).
  2. What the function IN+INI_{\N}+I_{\N} is

    By the pointwise definition of a sum (Basic 3), for each x∈Nx\in\N⁠,

    (IN+IN)(x)=IN(x)+IN(x)=x+x=2x.(I_{\N}+I_{\N})(x) = I_{\N}(x) + I_{\N}(x) = x + x = 2x.

    So IN+INI_{\N}+I_{\N} is the "doubling" function. It does map N\N into N\N⁠: if xx is a natural number then so is 2x2x⁠. A few values:

    xx12345…
    (IN+IN)(x)=2x(I_{\N}+I_{\N})(x) = 2x246810…
    Before testing "onto", we must know exactly what the function does and confirm that its outputs lie in the stated codomain N\N⁠. The sum of functions is defined value by value, so adding the identity to itself just adds xx to xx at each point.
    (f+g)(x)=f(x)+g(x)(f+g)(x) = f(x)+g(x) (Basic 3). The sum of two natural numbers is a natural number, so 2x=x+x∈N2x = x + x \in \N⁠.
  3. IN+INI_{\N}+I_{\N} is not onto: the number 3 is never reached

    Take y=3y = 3⁠, which is in the codomain N\N⁠. Is there an x∈Nx\in\N with 2x=32x = 3⁠? Solving the equation,

    2x=3  ⟺  x=32=1.5.2x = 3 \iff x = \frac{3}{2} = 1.5.

    This is the only number satisfying 2x=32x = 3⁠, and it is not a natural number. So no xx in the domain N\N has (IN+IN)(x)=3(I_{\N}+I_{\N})(x) = 3⁠. One element of the codomain has no preimage, hence IN+INI_{\N}+I_{\N} is not onto.

    To disprove onto we need just one element of the codomain that is missed (Basic 5). Solving 2x=32x = 3 finds the only possible candidate for a preimage, so once that candidate is ruled out, no preimage exists at all. The candidate fails because it is not in the domain N\N⁠: the domain matters as much as the formula.
    Dividing both sides of 2x=32x = 3 by 2 is reversible, so x=32x = \frac32 is the unique solution. 32\frac32 lies strictly between 1 and 2, so it is not a natural number.
  4. Exactly which numbers are missed

    Every output 2x2x is even, so every odd natural number is missed: 1, 3, 5, 7, … . And every even number y=2ky = 2k is reached, by x=kx = k⁠. So the range of IN+INI_{\N}+I_{\N} is the set of even natural numbers, a proper part of the codomain N\N⁠.

    inputs x 1234 12345678 missedmissedmissedmissed …… codomain N: gold outputs are reached (even), rose outputs are never reached (odd)
    Each input xx sends one arrow to 2x2x⁠. The arrows only ever land on even numbers. Every odd number, including 3, is left without an arrow, so the function is not onto N\N⁠.
    The textbook needs only one missed element, but seeing all of them explains the failure: doubling can only produce even numbers. Note that 1 is missed too (the smallest output is 2⋅1=22\cdot1 = 2⁠), so the number 1 would have served equally well as the counterexample.
    An odd number is never 2×2\times(a natural number) (Basic 4). The range of a function is the set of outputs actually reached; "onto" means range = codomain.
  5. Conclude

    INI_{\N} is onto (Step 1), but IN+INI_{\N}+I_{\N} is not onto (Step 3). So adding two onto functions can produce a function that is not onto.

    This is the point of the example: properties like "onto" belong to a function as a whole and need not survive arithmetic on functions. The same doubling function is studied on its own in Example 8, where it is shown to be one-one but not onto on N\N⁠. On R\R instead of N\N it would be onto, because x=32x = \frac32 would then be allowed (Example 9).
Result

INI_{\N} is onto, since every y∈Ny\in\N is IN(y)I_{\N}(y)⁠. But IN+INI_{\N}+I_{\N}⁠, which sends xx to 2x2x⁠, is not onto: the element 33 of the codomain would need x=32∉Nx = \frac32\notin\N⁠. In fact it misses every odd number.

Check it with numbers

The values 2⋅1,2⋅2,…,2⋅99992\cdot1, 2\cdot2, \dots, 2\cdot9999 run 2,4,6,…,199982, 4, 6, \dots, 19998⁠. The site's verification script confirms that 3 is not among them, that no odd number below 1000 is among them, and that every even number below 1000 is (as 2⋅y22\cdot\frac{y}{2}⁠). Near 3 the outputs jump from 2⋅1=22\cdot1 = 2 straight to 2⋅2=42\cdot2 = 4⁠, skipping 3.

Common mistakes
  1. Accepting x=32x = \frac32⁠. The domain is N\N⁠; a preimage must be a natural number.
  2. Thinking the sum of onto functions must be onto. This example shows it fails, even when both summands are the same onto function.
  3. Proving onto for INI_{\N} with examples. "IN(5)=5I_{\N}(5) = 5" for a few values is not a proof; use an arbitrary yy⁠.
  4. Confusing one-one with onto. 2x2x is one-one (2x1=2x2⇒x1=x22x_1 = 2x_2 \Rightarrow x_1 = x_2⁠); it is the onto property that fails.
What to take away
  1. To show a function is not onto, name one element of the codomain and show that the equation f(x)=yf(x) = y has no solution in the domain.
  2. Whether a function is onto depends on the domain and codomain, not just the formula: 2x2x is onto R\R but not onto N\N⁠.
  3. Sums of functions are defined pointwise, and they can lose properties the summands had. Example 26 shows the same for one-one.

Every fact used, and where it comes from

FactUsed inSource
Onto (surjective)Steps 1, 3, 5Definition 6, Section 1.3 (Lesson: types of functions)
Identity function IN(x)=xI_{\N}(x) = xSteps 1, 2Given in the question; also used in Section 1.4
Sum of functions (f+g)(x)=f(x)+g(x)(f+g)(x) = f(x)+g(x)Step 2Class XI, Relations and Functions; stated in the question
2x=3  ⟺  x=32∉N2x = 3 \iff x = \frac32\notin\NStep 3Algebra; N={1,2,3,… }\N = \{1,2,3,\dots\}
Odd numbers are never 2x2x⁠, x∈Nx\in\NStep 4Definition of even and odd
Missed and reached valuesStep 4, CheckChecked over large samples 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 →