Class 11 — Mathematics (NCERT)

Relations and Functions: Cartesian Product and Types of Functions

Class 11

  • ✓By the end of this lesson students will be able to define and compute the Cartesian product of two sets.
  • ✓By the end of this lesson students will be able to identify and distinguish between relations and functions.
  • ✓By the end of this lesson students will be able to understand and apply the concepts of domain, codomain, and range of a function.
  • ✓By the end of this lesson students will be able to classify functions as one-one (injective), onto (surjective), many-one, into, or bijective.
  • ✓By the end of this lesson students will be able to solve problems involving the properties and types of functions.

Key concepts

Cartesian Product of Two Sets

The Cartesian product of two non-empty sets A and B is the set of all ordered pairs (a, b) such that 'a' is an element of set A and 'b' is an element of set B. It is denoted by A × B. The order of elements in an ordered pair is important, i.e., (a, b) ≠ (b, a) unless a = b.

A × B = {(a, b) : a ∈ A, b ∈ B}
Relation

A relation R from a non-empty set A to a non-empty set B is a subset of the Cartesian product A × B. The subset is derived by describing a relationship between the first element and the second element of the ordered pairs.

Function

A relation f from a set A to a set B is said to be a function if every element of set A has one and only one image in set B. This means two conditions must be satisfied: \n1. Every element in the domain A must be mapped to an element in the codomain B. \n2. Each element in the domain A must be mapped to a unique element in the codomain B (i.e., no element in A has more than one image). We write f: A → B.

f: A → B
Domain, Codomain, and Range of a Function

For a function f: A → B:\n- The set A is called the domain of the function.\n- The set B is called the codomain of the function.\n- The set of all images of elements of A under f is called the range of the function. The range is always a subset of the codomain (Range ⊆ Codomain).

Types of Functions: One-one (Injective) Function

A function f: A → B is said to be one-one (or injective) if distinct elements of A have distinct images in B. In other words, if f(x₁) = f(x₂) for x₁, x₂ ∈ A, then x₁ = x₂.

Types of Functions: Onto (Surjective) Function

A function f: A → B is said to be onto (or surjective) if every element of B is the image of some element of A under f. This means that for every y ∈ B, there exists at least one x ∈ A such that f(x) = y. Equivalently, the range of f is equal to its codomain (Range = Codomain).

Types of Functions: Bijective Function

A function f: A → B is said to be bijective if it is both one-one (injective) and onto (surjective).

Types of Functions: Many-one Function

A function f: A → B is said to be many-one if two or more distinct elements of A have the same image in B. It is the negation of a one-one function.

Types of Functions: Into Function

A function f: A → B is said to be an into function if there exists at least one element in B which is not the image of any element of A. In other words, the range of f is a proper subset of its codomain (Range ⊂ Codomain). It is the negation of an onto function.

Key facts to remember

  • 1The Cartesian product A × B consists of all ordered pairs (a, b) where a ∈ A and b ∈ B.
  • 2If n(A) = p and n(B) = q, then n(A × B) = pq.
  • 3A × B ≠ B × A unless A = B or one of the sets is empty.
  • 4A relation R from A to B is any subset of A × B.
  • 5A function f: A → B is a special type of relation where every element of A has one and only one image in B.
  • 6A function is one-one (injective) if distinct elements of the domain have distinct images.
  • 7A function is onto (surjective) if its range is equal to its codomain.
  • 8A function is bijective if it is both one-one and onto.

Worked examples

Example 1

If A = {1, 2, 3} and B = {a, b}, find A × B and B × A. Also, find the number of elements in A × B and B × A.

IGiven sets A = {1, 2, 3} and B = {a, b}.
IITo find A × B, we form all ordered pairs (x, y) where x ∈ A and y ∈ B.
IIIA × B = {(1, a), (1, b), (2, a), (2, b), (3, a), (3, b)}.
IVTo find B × A, we form all ordered pairs (y, x) where y ∈ B and x ∈ A.
VB × A = {(a, 1), (a, 2), (a, 3), (b, 1), (b, 2), (b, 3)}.
VIThe number of elements in A is n(A) = 3.
VIIThe number of elements in B is n(B) = 2.
VIIIThe number of elements in A × B is n(A × B) = n(A) × n(B) = 3 × 2 = 6.
9The number of elements in B × A is n(B × A) = n(B) × n(A) = 2 × 3 = 6.

Answer

A × B = {(1, a), (1, b), (2, a), (2, b), (3, a), (3, b)}\nB × A = {(a, 1), (a, 2), (a, 3), (b, 1), (b, 2), (b, 3)}\nn(A × B) = 6, n(B × A) = 6

Observe that A × B ≠ B × A, although n(A × B) = n(B × A).

Example 2

Let A = {1, 2, 3, 4} and B = {2, 4, 6, 8}. Which of the following relations from A to B are functions?\n(i) R₁ = {(1, 2), (2, 4), (3, 6), (4, 8)}\n(ii) R₂ = {(1, 2), (1, 4), (2, 6), (3, 8)}\n(iii) R₃ = {(1, 2), (2, 4), (3, 6)}

IRecall the definition of a function: Every element of the domain A must have one and only one image in the codomain B.
IIFor R₁ = {(1, 2), (2, 4), (3, 6), (4, 8)}:\n - Elements of A are {1, 2, 3, 4}. All elements of A are mapped.\n - Each element of A has a unique image (1 maps to 2, 2 maps to 4, 3 maps to 6, 4 maps to 8).\n - Therefore, R₁ is a function.
IIIFor R₂ = {(1, 2), (1, 4), (2, 6), (3, 8)}:\n - Element 1 from A is mapped to 2 and also to 4. This means element 1 has two images.\n - This violates the condition that each element must have one and only one image.\n - Therefore, R₂ is not a function.
IVFor R₃ = {(1, 2), (2, 4), (3, 6)}:\n - Element 4 from A is not mapped to any element in B.\n - This violates the condition that every element in the domain A must be mapped.\n - Therefore, R₃ is not a function.

Answer

(i) R₁ is a function.\n(ii) R₂ is not a function.\n(iii) R₃ is not a function.

Always check both conditions for a function: every element of the domain is mapped, and each element has a unique image.

Example 3

Show that the function f: N → N, given by f(x) = 2x, is one-one but not onto. (N is the set of natural numbers).

ITo check if f is one-one:
IILet x₁, x₂ ∈ N such that f(x₁) = f(x₂).
IIIThen, 2x₁ = 2x₂.
IVDividing both sides by 2, we get x₁ = x₂.
VSince f(x₁) = f(x₂) implies x₁ = x₂, the function f is one-one.
VITo check if f is onto:
VIIThe codomain of f is N (the set of natural numbers).
VIIIFor f to be onto, every element in the codomain N must have a pre-image in the domain N.
9Consider an element y = 1 in the codomain N. We need to find x ∈ N such that f(x) = 1.
10So, 2x = 1, which implies x = 1/2.
11However, 1/2 is not a natural number (1/2 ∉ N).
12Thus, there is no element in the domain N whose image is 1.
13Hence, the range of f is {2, 4, 6, ...}, which is a proper subset of the codomain N.
14Therefore, the function f is not onto.

Answer

The function f: N → N, f(x) = 2x, is one-one but not onto. Hence proved.

For 'not onto' proofs, it is sufficient to find just one element in the codomain that has no pre-image in the domain.

Common mistakes

  • ✗Confusing an ordered pair (a, b) with a set {a, b} or assuming (a, b) is the same as (b, a).
  • ✗Failing to check both conditions for a function: that every element in the domain is mapped, and that each element has a unique image.
  • ✗Incorrectly assuming that if a function is not one-one, it must be onto, or vice-versa.
  • ✗Not clearly distinguishing between the codomain and the range of a function.
  • ✗Making errors in algebraic manipulation when proving one-one or onto properties for functions defined by rules.

Exam tips

  • ★Always clearly state the domain and codomain of the function at the beginning of your solution.
  • ★For proving a function is one-one, assume f(x₁) = f(x₂) and logically deduce x₁ = x₂.
  • ★For proving a function is onto, take an arbitrary element 'y' from the codomain and show that there exists an 'x' in the domain such that f(x) = y.
  • ★For small finite sets, drawing arrow diagrams can help visualise relations and functions and determine their types.
  • ★Practice with various types of functions (polynomial, rational, trigonometric, exponential, logarithmic) to understand how their properties affect injectivity and surjectivity.

Ready to practise?

Try a problem on this topic

Snap a photo or type a question — get step-by-step working instantly.