Relations and Functions

Chapter 2 · Tamil Nadu State Board

  • 19 min read
  • 5-question quiz

Every key point below shows the sentence from your textbook it comes from. Book back answers are solved and checked against the book; answers we could not prove are left out. How we check content

In short

This lesson explains how ordered pairs and Cartesian products help describe relations between sets. It shows that a function is a special relation in which every input has exactly one output. You learn ways to represent functions and classify them as one–one, many–one, onto, into, or bijections. These ideas help describe mathematical and everyday relationships clearly.

Written by AI from this lesson. How we check it

Key points

  • The Cartesian product of two non-empty sets contains every ordered pair whose first element comes from the first set and second element from the other.
    From your textbook
    “the set of all ordered pairs (a, b) such that a A Î , b B Î is called the Cartesian Product of A and B”
  • A relation from A to B is a subset of their Cartesian product, chosen according to a specified condition.
    From your textbook
    “A ‘relation’ R from A to B is a subset of A B ´ satisfying some specified conditions.”
  • A relation is a function when each element in its domain has exactly one corresponding element in the co-domain.
    From your textbook
    “for each x X Î there exists only one y Y Î such that ( , ) x y f Δ
  • Functions can be shown using ordered pairs, tables, arrow diagrams, or graphs.
    From your textbook
    “A function may be represented by (a) a set of ordered pairs (b) a table form (c) an arrow diagram (d) a graphical form”
  • A one–one function gives distinct images to distinct inputs, while a many–one function gives the same image to at least two inputs.
    From your textbook
    “A function f A B : ® is called many-one function if two or more elements of A have same image in B.”
  • An onto function has its range equal to its co-domain; an into function has at least one co-domain element outside its range.
    From your textbook
    “A function f A B : ® is said to be onto function if the range of f is equal to the co-domain of f.”
Test yourself: 5 questions

Formulas in this chapter

  • Number of elements in a Cartesian productn(A × B) = n(A) × n(B)Explained here
  • Cartesian product with unionA × (B ∪ C) = (A × B) ∪ (A × C)Explained here
  • Cartesian product with intersectionA × (B ∩ C) = (A × B) ∩ (A × C)Explained here
  • Number of relations from A to B2pqExplained here
  • Associative law of composition(f ∘ g) ∘ h = f ∘ (g ∘ h)Explained here

Ordered Pairs

An ordered pair has two entries in a particular order. In a seating token such as (4,10), the first number gives the row and the second gives the seat. So (5,9) means row 5 and seat 9; it does not mean row 9 and seat 5.

Definition

Ordered pair
A pair of entries written in a fixed order, where the first and second positions have different roles.

Remember: Order matters: in general, (a, b) ≠ (b, a). If a = b, then (a, b) = (b, a).

Cartesian Product of Sets

Definition

Cartesian product
For non-empty sets A and B, A × B is the set of all ordered pairs (a, b) where a ∈ A and b ∈ B.

In A × B, the first entry comes from A and the second comes from B. In B × A, the first entry comes from B and the second comes from A. The products are generally not equal, even though they have the same number of elements when A and B are finite.

Worked example

Let A = {1,3,5} and B = {2,3}. Find A × B and B × A. Are they equal?

Try it first, then show the solution
  1. A × B = {(1,2), (1,3), (3,2), (3,3), (5,2), (5,3)}.
  2. B × A = {(2,1), (2,3), (2,5), (3,1), (3,3), (3,5)}.
  3. The ordered pairs are different; for example, (1,2) ≠ (2,1).

Answer: A × B ≠ B × A. Each product has 6 elements.

Number of elements in a Cartesian product

n(A × B) = n(A) × n(B)

n(A) and n(B) are the numbers of elements in sets A and B.

Worked example

If A × B = {(3,2), (3,4), (5,2), (5,4)}, find A and B.

Try it first, then show the solution
  1. Take the first coordinates of the ordered pairs to form A.
  2. Take the second coordinates of the ordered pairs to form B.

Answer: A = {3,5} and B = {2,4}.

Useful facts about Cartesian products

  • A × ∅ = ∅.
  • A × B = ∅ if and only if A = ∅ or B = ∅.
  • For finite sets, n(A × B) = n(B × A).
  • ℝ × ℝ is the set of all ordered pairs (x, y) where x and y are real numbers; these points form the cartesian plane.

Remember: A × B and B × A usually contain different ordered pairs. The first coordinate always comes from the first set named.

Cartesian Products and Set Operations

A set of ordered pairs can be shown as points on a plane. If A and B are intervals, A × B corresponds to a region made from points whose first coordinate belongs to A and whose second coordinate belongs to B.

Taking the union or intersection of sets before making a Cartesian product can be matched with taking the union or intersection of the corresponding products. For the sets in the example, the products on both sides contain the same ordered pairs.

Cartesian product with union

A × (B ∪ C) = (A × B) ∪ (A × C)

Pair each element of A with every element in B or C; this gives the union of the two products.

Cartesian product with intersection

A × (B ∩ C) = (A × B) ∩ (A × C)

Pair each element of A with the elements shared by B and C; this gives the intersection of the two products.

Remember: In a Cartesian product, the first coordinate comes from A, while the second coordinate comes from the set paired with A.

Cartesian Product of Three Sets

Definition

Cartesian product of three sets
For non-empty sets A, B and C, A × B × C is the set of all ordered triplets (a, b, c), where a ∈ A, b ∈ B and c ∈ C.

If A = B = C = {0,1}, then A × B × C has eight ordered triplets. The Cartesian product of two sets can represent vertices in two dimensions, while the product of three sets can represent vertices in three dimensions.

Remember: In an ordered triplet (a, b, c), each entry comes from its matching set: a from A, b from B and c from C.

Relations Between Sets

Definition

Relation from A to B
A relation R from non-empty sets A to B is a subset of A × B that follows a specified condition; xRy means (x, y) ∈ R.

A relation describes how elements of two sets are connected by a rule. The same two objects can be related in different ways, so a collection of ordered pairs can make the intended rule clearer.

Definition

Domain of a relation
The domain of R is the set of all x ∈ A that are paired with at least one y ∈ B in R.

Definition

Co-domain of a relation
The co-domain of R is B.

Definition

Range of a relation
The range of R is the set of all y ∈ B that are paired with at least one x ∈ A in R.

Domain, co-domain and range

PartWhat it contains
DomainFirst elements that occur in pairs in R; it is a subset of A.
Co-domainThe whole set B.
RangeSecond elements that occur in pairs in R; it is a subset of B.

An arrow diagram is a visual way to show a relation. A relation can also be written using the roster method or the set builder method. Every relation from A to B must be a subset of A × B.

Checking and Writing Relations

Worked example

Let A = {3,4,7,8} and B = {1,7,10}. Which of these are relations from A to B? R1 = {(3,7), (4,7), (7,10), (8,1)}; R2 = {(3,1), (4,12)}; R3 = {(3,7), (4,10), (7,7), (7,8), (8,11), (8,7), (8,10)}.

Try it first, then show the solution
  1. A relation from A to B must contain only ordered pairs in A × B.
  2. Every pair in R1 has its first element in A and its second element in B.
  3. R2 contains (4,12), but 12 ∉ B.
  4. R3 contains (7,8), but 8 ∉ B.

Answer: R1 is a relation from A to B. R2 and R3 are not.

Definition

Null relation
A relation that contains no elements is called a null relation.
Number of relations from A to B

2pq

If n(A) = p and n(B) = q, then 2pq is the total number of relations from A to B.

Remember: To check whether a set of ordered pairs is a relation from A to B, check that every pair belongs to A × B.

Relations and their domain and range

A relation pairs elements from one set with elements from another set. It can be written as a set of ordered pairs. The domain is the set of first elements, and the range is the set of second elements that actually occur.

For a relation from A to B, the co-domain is B. The range is always contained in the co-domain, but it may not include every element of it.

Remember: The domain lists inputs that occur in the relation. The range lists outputs that occur.

Meaning and test for a function

Definition

Function
A function from X to Y assigns exactly one element of Y to every element of X.

A function is a special kind of relation. Every input in its domain must have an image, and that image must be unique. Different inputs may have the same image.

Relation and function

RelationFunction
An element may have no image or more than one image.Every element in the domain has exactly one image.
A relation is a subset of a Cartesian product.A function is a special relation.

Checking an arrow diagram

  • Check that every input has an arrow.
  • Check that each input has only one arrow leaving it.
  • Several inputs may point to the same output.

Remember: One input with two different outputs means the relation is not a function.

Domain, co-domain, image, pre-image and range

Definition

Domain
The domain of a function f: X → Y is the set X of inputs.

Definition

Co-domain
The co-domain of a function f: X → Y is the set Y.

Definition

Image
If f(a) = b, then b is the image of a under f.

Definition

Pre-image
If f(a) = b, then a is a pre-image of b.

Definition

Range
The range is the set of all images of elements in the domain.

In the relation {(1,2),(2,4),(3,6),(4,8)} from X = {1,2,3,4} to Y = {2,4,6,8,10}, each element of X has exactly one image. So the relation is a function. Its domain is X, its co-domain is Y, and its range is {2,4,6,8}.

Worked example

For X = {–5,1,3,4} and Y = {a,b,c}, decide which of these relations are functions: R1 = {(–5,a), (1,a), (3,b)}, R2 = {(–5,b), (1,b), (3,a),(4,c)}, R3 = {(–5,a), (1,a), (3,b),(4,c),(1,b)}.

Try it first, then show the solution
  1. In R1, the input 4 has no image.
  2. In R2, every input has exactly one image.
  3. In R3, the input 1 has two images, a and b.

Answer: R1 and R3 are not functions. R2 is a function.

Function values and domains

A function can be shown as a rule that turns each input into an output. For example, when f(x) = 2x – 1, substituting x + 1 for x gives f(x+1) = 2(x+1) – 1 = 2x + 1.

A function may not be defined for every real number. For f(x) = 1/(x+1), x = –1 makes the denominator zero, so the domain is all real numbers except –1.

For f(x) = 1/((x–2)(x–3)), the function is not defined at x = 2 or x = 3. Its domain is all real numbers except 2 and 3.

If A and B are finite sets with n(A) = p and n(B) = q, the number of functions from A to B is q^p.

Remember: When finding a domain, exclude any input that makes the function undefined.

Representing a Function

A function can be shown in four ways: as ordered pairs, a table, an arrow diagram, or a graph. In a graph, plot each ordered pair as a point in the XY-plane. The graph is the collection of all these points.

Four ways to represent a function

  • Ordered pairs show each input and its image together.
  • A table lists inputs and their corresponding images.
  • An arrow diagram uses arrows to connect each domain element to its image.
  • A graph plots the ordered pairs as points in the XY-plane.

A curve represents a function if every vertical line meets it at no more than one point. If one vertical line meets the curve at two points, the curve does not represent a function.

Definition

Vertical line test
A curve represents a function when every vertical line intersects it at only one point.

Worked example

Let A = {1,2,3,4}, B = {2,5,8,11,14}, and f(x) = 3x − 1. Represent f in different forms.

Try it first, then show the solution
  1. Find the images: f(1) = 2, f(2) = 5, f(3) = 8, and f(4) = 11.
  2. Table: x has values 1, 2, 3, 4; f(x) has values 2, 5, 8, 11.
  3. Ordered pairs: (1,2), (2,5), (3,8), (4,11).
  4. For the graph, plot the points (1,2), (2,5), (3,8), and (4,11).

Answer: The arrow diagram connects 1 to 2, 2 to 5, 3 to 8, and 4 to 11. The table, ordered pairs, and graph show the same function.

One-One and Many-One Functions

Definition

One-one function
A function is one-one when distinct elements of the domain have distinct images in the co-domain.

A one-one function is also called an injection. Equivalently, if f(a₁) = f(a₂), then a₁ = a₂. No two different inputs share the same image.

Definition

Many-one function
A function is many-one when two or more elements of the domain have the same image.

One-one and many-one

One-oneMany-one
Different domain elements have different images.Two or more domain elements share an image.
Example: {(1,a), (2,b), (3,d), (4,c)}.Example: {(1,a), (2,a), (3,b), (4,c)}.

Remember: For one-one, check whether any two different inputs have the same image. If they do, the function is many-one, not one-one.

Onto and Into Functions

Definition

Onto function
A function is onto when its range is equal to its co-domain.

In an onto function, every element of the co-domain is the image of at least one domain element. An onto function is also called a surjection.

Definition

Into function
A function is into when at least one element of the co-domain is not the image of any domain element.

For an into function, the range is a proper subset of the co-domain. In other words, an into function is not onto.

Onto and into

OntoInto
Range equals the co-domain.Range is a proper subset of the co-domain.
Every co-domain element has a pre-image.At least one co-domain element has no pre-image.

Worked example

Let A = {1,2,3} and B = {w,x,y,z}. Let f = {(1,w), (2,x), (3,z)}. Is f onto or into?

Try it first, then show the solution
  1. The range is {w,x,z}.
  2. The co-domain is {w,x,y,z}.
  3. The element y in the co-domain is not the image of any element in A.

Answer: f is an into function because its range is a proper subset of its co-domain.

Remember: Compare the range with the co-domain: equal means onto; missing at least one co-domain element means into.

Composition of Functions

Definition

Composition of functions
For f: A → B and g: B → C, the composition g ∘ f is defined by (g ∘ f)(x) = g(f(x)) for every x in A.

To find g ∘ f, apply f to the input first. Then apply g to the result. The output of f becomes the input of g.

Steps to find g ∘ f

  • Start with an input x.
  • Find f(x).
  • Use f(x) as the input to g.
  • Write the final result as g(f(x)).

Worked example

Find f ∘ g and g ∘ f when f(x) = 2x + 1 and g(x) = x² − 2.

Try it first, then show the solution
  1. f ∘ g(x) = f(g(x)) = 2(x² − 2) + 1.
  2. Simplify: f ∘ g(x) = 2x² − 3.
  3. g ∘ f(x) = g(f(x)) = (2x + 1)² − 2.
  4. Simplify: g ∘ f(x) = 4x² + 4x − 1.

Answer: f ∘ g(x) = 2x² − 3 and g ∘ f(x) = 4x² + 4x − 1.

Order of composition

CompositionWhat it means
g ∘ fApply f first, then g.
f ∘ gApply g first, then f.

Remember: Composition is generally not commutative: f ∘ g is generally not equal to g ∘ f.

When a Composition Exists

For g ∘ f to exist, every output of f must be an allowed input of g. In other words, the range of f must be a subset of the domain of g.

Worked example

If f(x) = 2x − 1 and f ∘ f(k) = 5, find k.

Try it first, then show the solution
  1. Apply f to k: f(k) = 2k − 1.
  2. Apply f again: f(f(k)) = 2(2k − 1) − 1 = 4k − 3.
  3. Set 4k − 3 = 5.
  4. Solve to get k = 2.

Answer: k = 2

Composition of Three Functions

For three functions f, g and h, composition is associative. This means the result is the same whether we group the first two functions or the last two.

Associative law of composition

(f ∘ g) ∘ h = f ∘ (g ∘ h)

f, g and h are functions composed in order.

Worked example

Given f(x) = 2x + 3, g(x) = x − 1 and h(x) = 2x, show that (f ∘ g) ∘ h = f ∘ (g ∘ h).

Try it first, then show the solution
  1. (f ∘ g)(x) = f(x − 1) = 2(x − 1) + 3 = 2x + 1.
  2. ((f ∘ g) ∘ h)(x) = (f ∘ g)(2x) = 4x + 1.
  3. (g ∘ h)(x) = g(2x) = 2x − 1.
  4. (f ∘ (g ∘ h))(x) = f(2x − 1) = 2(2x − 1) + 3 = 4x + 1.

Answer: Both sides equal 4x + 1, so composition is associative.

Remember: Composition is associative, but it is generally not commutative.

Linear Functions and Their Graphs

Definition

Linear function
A function f(x) = mx + c, where m ≠ 0, is called a linear function.

The graph of a linear function is a straight line. Linear functions are one-one functions. They are used in Cryptography and in several branches of Science and Technology.

Specific linear functions

  • Identity function: f(x) = x.
  • Additive inverse function: f(x) = −x.

Definition

Modulus or absolute valued function
The modulus function is f(x) = |x|, with domain ℝ and range [0, ∞).

The modulus function is made from the two linear functions x and −x. It is not itself a linear function.

Remember: A linear function has a straight-line graph, but the modulus function is not linear.

Quadratic and Cubic Functions

Definition

Quadratic function
A function f(x) = ax² + bx + c, where a ≠ 0, is called a quadratic function.

The graph of f(x) = x² has range [0, ∞). The graph of f(x) = −x² has range (−∞, 0].

Definition

Cubic function
A function f(x) = ax³ + bx² + cx + d, where a ≠ 0, is called a cubic function.

The graph of f(x) = x³ is shown as the example of a cubic function.

Quadratic and cubic functions

Quadratic functionCubic function
f(x) = ax² + bx + c, where a ≠ 0f(x) = ax³ + bx² + cx + d, where a ≠ 0
The specific examples shown are x² and −x².The specific example shown is x³.

Reciprocal and Constant Functions

Definition

Reciprocal function
A function f(x) = 1/x, with domain ℝ − {0}, is called a reciprocal function.

Definition

Constant function
A function f(x) = c for every x ∈ ℝ is called a constant function.

Reciprocal and constant functions

Reciprocal functionConstant function
f(x) = 1/xf(x) = c
Its domain excludes 0.It gives the same value c for every x ∈ ℝ.

Remember: For the reciprocal function, x cannot be 0. A constant function always gives the value c.

Using the GeoGebra Composition of Functions Worksheet

Steps to explore the worksheet

  • Open a browser and enter the given URL, or scan the QR Code.
  • Open the GeoGebra workbook named “Relations and Functions–X”.
  • Choose the worksheet “Composition of Functions” from the activities on the left side.
  • Click the check boxes beside the functions on the left. Their graphs appear on the right.
  • Study the graphs, then click “New Functions” and continue until you understand.

The workbook has activities related to the Relations and Functions chapter. You can use the same steps to explore its other activities.

Remember: Select a function, study its graph, and use “New Functions” to continue exploring.

Questions students ask

Short, direct answers to what students search for in this chapter.

What is an ordered pair?

An ordered pair is a pair of entries written in a fixed order. The first and second positions have different roles, so changing their order usually gives a different pair. For example, (5,9) and (9,5) do not refer to the same ordered pair.

What is the Cartesian product of two sets?

For non-empty sets A and B, the Cartesian product A × B is the set of all ordered pairs (a, b) such that a ∈ A and b ∈ B. The first coordinate comes from A, and the second comes from B.

How do you find the number of elements in A × B?

For finite sets A and B, multiply the number of elements in each set: n(A × B) = n(A) × n(B). For example, if A has 3 elements and B has 2 elements, A × B has 3 × 2 = 6 elements.

Is A × B equal to B × A?

In general, A × B is not equal to B × A because the order of coordinates changes. In A × B, the first coordinate comes from A; in B × A, it comes from B. For finite sets, the two products have the same number of elements.

What is ℝ × ℝ?

ℝ × ℝ is the set of all ordered pairs (x, y) where x and y are real numbers. The collection of these points is called the cartesian plane.

What is the Cartesian product of three sets?

For non-empty sets A, B and C, their Cartesian product A × B × C contains all ordered triplets (a, b, c) where a ∈ A, b ∈ B and c ∈ C. Each entry in the triplet comes from its corresponding set.

Show 24 more questions

What is a relation from A to B?

A relation R from non-empty sets A to B is a subset of A × B that follows a specified condition. If x ∈ A is related to y ∈ B, we write xRy, which means that (x, y) ∈ R.

What are the domain, co-domain and range of a relation?

The domain contains the first elements that occur in the relation’s ordered pairs. The co-domain is the set B. The range contains the second elements that occur in those pairs. The domain is a subset of A, and the range is a subset of B.

How can I check if a set of ordered pairs is a relation from A to B?

Check that every ordered pair belongs to A × B. This means each pair’s first element must be in A and its second element must be in B. If even one pair fails this check, the set is not a relation from A to B.

What is a null relation?

A null relation is a relation that contains no elements. It occurs when no ordered pair satisfies the specified condition for the relation.

What is a function in maths?

A function from X to Y is a relation that assigns exactly one element of Y to every element of X. Each input must have an image, and that image must be unique. Different inputs can still have the same image.

How do you tell if a relation is a function?

Check every input in the domain. Each input must have an image, and it must have only one image. If any input has no image or has two different images, the relation is not a function.

What is the difference between domain and range?

The domain is the set of inputs in a function. The range is the set of outputs that are actually images of those inputs. The range is contained in the co-domain, but it need not contain every element of the co-domain.

What are the image and pre-image of a function?

If f(a) = b, then b is the image of a under f, and a is a pre-image of b. The image is an output, while the pre-image is an input that produces that output.

How can a function be represented?

A function can be represented as a set of ordered pairs, in a table, with an arrow diagram, or as a graph. The table and arrow diagram show each input with its image. The graph plots the ordered pairs as points in the XY-plane.

How do you use the vertical line test to check if a curve is a function?

Imagine drawing vertical lines across the curve. If every vertical line meets the curve at no more than one point, the curve represents a function. If a vertical line meets it at two points, the curve does not represent a function.

What is the difference between one-one and many-one functions?

In a one-one function, distinct domain elements have distinct images. In a many-one function, two or more domain elements have the same image. A one-one function is also called an injection.

What is the difference between onto and into functions?

An onto function has a range equal to its co-domain, so every co-domain element has a pre-image. An into function has at least one co-domain element that is not an image. Its range is a proper subset of the co-domain.

What is a bijection in functions?

A function from A to B is a bijection when it is both one-to-one and onto. Different elements of A have different images, and every element of B is the image of an element of A. Such a function is also called a one-to-one correspondence.

How do I tell if a function is onto?

A function from A to B is onto if every element of B has a pre-image in A. In this case, the range equals the co-domain. If even one element of B has no pre-image, the function is not onto.

What is the horizontal line test?

The horizontal line test checks whether a function represented by a graph is one-to-one. If every horizontal line meets the curve at only one point, the function is one-to-one. If a horizontal line meets it at more than one point, it is not one-to-one.

What is the difference between an onto function and an into function?

For an onto function, every element of the co-domain is in the range, so the range equals the co-domain. For an into function, the range is a proper subset of the co-domain, so at least one co-domain element is not the image of any element of the domain.

What are constant and identity functions?

A constant function gives the same fixed value for every element in its domain, so its range has only one element. An identity function maps every element of a non-empty set A to itself, so f(x) = x for every x in A.

What is composition of functions?

Composition combines two functions in sequence. For g ∘ f, first find f(x), then use that result as the input to g. The output is g(f(x)). This composition is defined when the range of f is a subset of the domain of g.

How do you find g of f of x?

To find g(f(x)), first calculate f(x). Then substitute the whole result into g as its input. Simplify the expression you get. Remember that f acts first, even though g is written first in g ∘ f.

Is composition of functions commutative?

Composition is generally not commutative. This means f ∘ g is generally not equal to g ∘ f. The order matters because the two compositions apply the functions in different sequences, so they can produce different results.

Is composition of functions associative?

Yes. Composition of three functions is associative. The expressions (f ∘ g) ∘ h and f ∘ (g ∘ h) give the same result. Changing the grouping does not change the order in which the functions act.

What is a linear function?

A linear function is a function f(x) = mx + c, where m ≠ 0. Its graph is a straight line. Linear functions are one-one functions and have applications in Cryptography and in several branches of Science and Technology.

What is the modulus function?

The modulus or absolute valued function is f(x) = |x|, with domain ℝ and range [0, ∞). It is made from the two linear functions x and −x, but it is not itself a linear function.

What is the difference between a quadratic and a cubic function?

A quadratic function has the form f(x) = ax² + bx + c, where a ≠ 0. A cubic function has the form f(x) = ax³ + bx² + cx + d, where a ≠ 0. The examples shown are x², −x² and x³.

Book back answers

13 textbook exercises, solved and checked against the book. Questions we could not prove are left out.

Multiple choice questions

  1. If n A ( ) × n(B) = 6 and A = {1, 3} then n(B) is

    • 1
    • 2
    • 3
    • 6
    Try it, then show the answer

    3

    Since A has 2 elements, 2 × n(B) = 6, so n(B) = 3.

    From the book: “If n A p ( ) = , n B q ( ) = , then the total number of relations that exist from A to B is 2pq”

  2. If A = {1, 2}, B = {1, 2, 3, 4}, C = {5, 6} and D = {5, 6, 7, 8} then state which of the following statement is true.

    • (A) (A × C) ⊂ (B × D)
    • (B) (B × D) ⊂ (A × C)
    • (C) (A × B) ⊂ (A × D)
    • (D) (D × A) ⊂ (B × A)
    Try it, then show the answer

    (A) (A × C) ⊂ (B × D)

    A is a subset of B and C is a subset of D, so every ordered pair in A × C is in B × D.

    From the book: “A × B is the set of all possible ordered pairs between the elements of A and B such that the first coordinate is an element of A and the second coordinate is an element of B”

  3. If there are 1024 relations from a set A = {1, 2, 3, 4, 5} to a set B, then the number of elements in B is

    • 3
    • 2
    • 4
    • 8
    Try it, then show the answer

    2

    The number of relations is 2^(n(A)n(B)). Thus 2^(5n(B)) = 1024 = 2^10, giving n(B) = 2.

    From the book: “If n A p ( ) = , n B q ( ) = , then the total number of relations that exist from A to B is 2pq”

  4. The range of the relation R = {(x, x²) | x is a prime number less than 13} is

    • {2,3,5,7}
    • {2,3,5,7,11}
    • {4,9,25,49,121}
    • {1,4,9,25,49,121}
    Try it, then show the answer

    {4,9,25,49,121}

    The primes less than 13 are 2, 3, 5, 7 and 11. Their squares form the range.

    From the book: “The range of the relation R ={ | , } y B x y x A Î Î R for some”

All 13 book back answers →

Practice

Question 1 of 5Score 0

Which ordered pairs belong to A × B?

Exam questions

Practice questions with model answers. These are not from an official paper.

What is the Cartesian product of two non-empty sets A and B?2 marks

It is the set of all ordered pairs (a, b) where a belongs to A and b belongs to B.

State the two conditions that make a relation a function.2 marks

Every element in the domain must have an image, and that image must be unique.

Distinguish between an onto function and an into function.2 marks

An onto function has range equal to its co-domain. An into function has a range that is a proper subset of its co-domain.

What is a bijection?2 marks

A function that is both one–one and onto is called a bijection.

Watch out

  • Do not treat (a, b) and (b, a) as the same ordered pair in general.
  • A relation is not automatically a function: every input must have exactly one image.

Still stuck on this lesson?

Get an AI answer grounded in your actual textbook — with the exact page reference.

Ask AI about this topic →