Skip to content
Worked Examples · Example 1

Q.Let A={1,2,3,4}A=\{1,2,3,4\} and B={1,4,9,16,25}B=\{1,4,9,16,25\}. The relation ff from AA to BB is defined by f(x)=x2f(x)=x^2. Show that ff is a function, and state its domain, codomain and range. Is ff one-one? Is it onto?

Maharashtra MsbshseTextbookSubjectiveImportance★★★★★est
85% · 11/13 Questions
✓ Free question

Is ff a function? Apply f(x)=x2f(x)=x^2 to each element of AA:

f(1)=1,f(2)=4,f(3)=9,f(4)=16.f(1)=1,\quad f(2)=4,\quad f(3)=9,\quad f(4)=16.

Every element of AA receives exactly one image, and each image (1,4,9,161,4,9,16) lies in BB. Both conditions — existence and uniqueness — hold, so ff is a function, f:A→Bf:A\to B.

Domain, codomain, range.

  • Domain =A={1,2,3,4}=A=\{1,2,3,4\} (every element has an image).
  • Codomain =B={1,4,9,16,25}=B=\{1,4,9,16,25\} (the set images are drawn from).
  • Range ={f(1),f(2),f(3),f(4)}={1,4,9,16}=\{f(1),f(2),f(3),f(4)\}=\{1,4,9,16\} (the values actually attained).

One-one? Suppose f(x1)=f(x2)f(x_1)=f(x_2) with x1,x2∈Ax_1,x_2\in A. Then x12=x22x_1^2=x_2^2; since AA contains only positive integers, taking positive square roots gives x1=x2x_1=x_2. Distinct inputs give distinct outputs, so ff is one-one.

Onto? The codomain contains 2525, but no element of AA satisfies x2=25x^2=25 (that would need x=5∉Ax=5\notin A). So 2525 has no pre-image, the range {1,4,9,16}\{1,4,9,16\} is a proper subset of the codomain, and ff is not onto — it is an into function.

✓Final answer

ff is a function with domain {1,2,3,4}\{1,2,3,4\}, codomain {1,4,9,16,25}\{1,4,9,16,25\} and range {1,4,9,16}\{1,4,9,16\}; it is one-one (distinct positive inputs have distinct squares) but not onto, since 2525 has no pre-image — hence ff is one-one and into.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.