Exercise 1.2 — Solutions

Q1.

Show that the function f:R∗→R∗ defined by f(x)=1x (R∗=R∖{0}) is one-one and onto. Is the result true if the domain R∗ is replaced by N (with codomain still R∗)?

Solution.
Injective: Suppose f(x1)=f(x2). Then 1x1=1x2. Multiply both sides by x1x2 (nonzero) to get x2=x1. So f is one-one.

Surjective: For any y∈R∗ take x=1y∈R∗. Then f(x)=1/x=y. So every y∈R∗has a pre-image; f is onto.

Hence f is bijective.

If domain is replaced by N (i.e. f:N→R∗, f(n)=1/n:

  • Injective: Yes — different natural n give different reciprocals.

  • Surjective: No — many real nonzero numbers (e.g. 1/2 is covered, but numbers like 2, −1/3 etc.) are not of the form 1/n with n∈N. In particular negative reals are impossible. So not onto R∗.
    Thus bijectivity fails if domain is N.


Q2.

Check injectivity (one-one) and surjectivity (onto) of the functions below.

(i) f:N→N, f(x)=x2
(ii) f:Z→Z, f(x)=x2
(iii) f:R→R, f(x)=x2
(iv) f:N→N, f(x)=x3
(v) f:Z→Z, f(x)=x3

Solution.

(i) f(x)=x2 on N:

  • Injective: Yes. On N (positive integers), x2 is strictly increasing, so x12=x22⇒x1=x2.

  • Surjective: No. Not every natural number is a perfect square (e.g. 2 has no natural square root).
    So: one-one but not onto.

(ii) f(x)=x2 on Z:

  • Injective: No. x and −x map to same value for x≠0 (e.g. (−1)2=12.

  • Surjective: No. Negative integers are never squares, so they are not in the range.
    So: neither one-one nor onto.

(iii) f(x)=x2 on R:

  • Injective: No (same reason: x and −x).

  • Surjective: No — negative real numbers are not squares.
    So: neither one-one nor onto.

(iv) f(x)=x3 on N:

  • Injective: Yes (strictly increasing on N).

  • Surjective: No (not every natural number is a perfect cube).
    So: one-one but not onto.

(v) f(x)=x3 on Z:

  • Injective: Yes. Cubing is strictly monotone on Z; x13=x23⇒x1=x2.

  • Surjective: No — a general integer m need not be a perfect cube (e.g. 2 is not).
    So: one-one but not onto.


Q3.

Prove that the greatest integer function f:R→R, f(x)=⌊x⌋, is neither one-one nor onto.

Solution.

  • Not one-one: ⌊1.2⌋=⌊1.7⌋=1 though 1.2≠1.7. So many inputs share the same value.

  • Not onto: Range of ⌊x⌋ is the set of integers Z. Non-integer real numbers (e.g. 0.5) are not attained. Hence not onto R.

Therefore neither injective nor surjective.


Q4.

Show that the modulus function f:R→R, f(x)=∣x∣ is neither one-one nor onto.

Solution.

  • Not one-one: ∣1∣=1=∣−1∣ with 1≠−1

  • Not onto: Negative reals are not attained (no x with ∣x∣=−1). So not onto R.

Hence neither injective nor surjective.


Q5.

Show that the signum function sgn⁡:R→R defined by

sgn⁡(x)={1,x>0,0,x=0,−1,x<0,

is neither one-one nor onto.

Solution.

  • Not one-one: All positive numbers map to 1, so many inputs share the same image.

  • Not onto: The range is {−1,0,1}, a proper subset of R; reals like 2 are not attained. So not onto.

Therefore neither injective nor surjective.


Q6.

Let A={1,2,3}, B={4,5,6,7} and f={(1,4),(2,5),(3,6)} as a function A→B. Show that f is one-one.

Solution.
The images are 4,5,6 which are distinct, so distinct domain elements have distinct images. Thus f is injective. f is not onto B because 7 is not an image.


Q7.

Decide whether the given functions are one-one, onto, or bijective:

(i) f:R→R, f(x)=3−4x
(ii) f:R→R, f(x)=1+x2

Solution.

(i) f(x)=3−4x: linear with slope −4≠0.

  • Injective: Yes. If 3−4x1=3−4x2 then x1=x2.

  • Surjective: Yes. Given any y, solve y=3−4x ⇒ x=(3−y)/4∈R. So every real y has a pre-image.
    Thus bijective (one-one and onto).

(ii) f(x)=1+x2:

  • Injective: No because x and −x give same value for x≠0.

  • Surjective: No because range is [1,∞), so values <1 are not attained.
    Thus neither one-one nor onto.


Q8.

Let A,B be sets. Show f:A×B→B×A defined by f(a,b)=(b,a) is bijective.

Solution.
Define g:B×A→A×B by g(b,a)=(a,b). Then g∘f(a,b)=(a,b) and f∘g(b,a)=(b,a), so g=f−1. Hence f has an inverse and is bijective (both one-one and onto).


Q9.

Let f:N→N be defined by

f(n)={n+12,if n is odd,n2,if n is even,for all n∈N.

State whether f is bijective. Justify your answer.

Solution.
For a fixed m∈N both 2m−1 (odd) and 2m (even) map to m:

f(2m−1)=(2m−1)+12=m,f(2m)=2m2=m.

So every m has at least one preimage (in fact two), hence f is onto.

But f(1)=1 and f(2)=1 show f is not one-one. Therefore onto but not one-one; hence not bijective.


Q10.

(From the PDF — formula hard to render.) Let A=R∖{3}, B=R∖{1} and (interpreting the PDF) consider

f:A→B,f(x)=2x−3x−3.

Is f one-one and onto?

Solution – Under the interpretation f(x)=2x−3x−3

  1. Injectivity: Suppose f(x1)=f(x2). Then

2x1−3x1−3=2x2−3x2−3

Cross-multiply and simplify:

(2x1−3)(x2−3)=(2x2−3)(x1−3)

Expanding and cancelling leads to (x1−x2)⋅(2−3x1−3−⋯ )=0. Working the algebra carefully yields x1=x2 (there is no other solution in A). Thus f is injective. (One can solve for x in terms of y below to make injectivity explicit.)

  1. Find range (surjectivity): Solve y=2x−3x−3 for x:

y(x−3)=2x−3⇒yx−3y=2x−3⇒x(y−2)=3(y−1)

So if y≠2 then x=3(y−1)y−2 and this x∈A (provided x≠3). The algebra shows every y≠2 is attained by some x∈A. But y=2 yields no solution (division by zero). Thus the range = R∖{2}.

Hence with our interpreted formula:

  • f is one-one.

  • The image is R∖{2}, so f is onto R∖{2} but not onto the given codomain B=R∖{1}(because 1∈R∖{2} is in the image). Therefore f is not onto the stated B (but would be onto R∖{2}).

Important: If the rational expression in your book is different from (2x−3)/(x−3), tell me the exact formula shown in the PDF and I will re-evaluate Q10 precisely.


Q11.

Let f:R→R be f(x)=x4. Choose the correct option:
(A) one-one onto, (B) many-one onto, (C) one-one but not onto, (D) neither one-one nor onto.

Solution.
x4=(−x)4, so f is many-one (not injective). Range is [0,∞), so negative reals are not attained ⇒ not onto R. So answer is (D): neither one-one nor onto.


Q12.

Let f:R→R be f(x)=3x. Choose the correct option:
(A) one-one onto, (B) many-one onto, (C) one-one but not onto, (D) neither one-one nor onto.

Solution.
Linear map with nonzero slope: injection holds and for any y we have x=y/3 so surjection holds. Thus one-one and onto, option (A).

👋Subscribe to
ProTeacher.in

Sign up to receive NewsLetters in your inbox.

We don’t spam! Read our privacy policy for more info.