ExamSaathi learning library · School · CBSE Class 11 Mathematics 2026-27; teacher review pending · Mathematics
Relations and functions: Cartesian products, domain, range and graphs of real functions
Build ordered pairs and Cartesian products, read the domain, co-domain and range of a relation, test whether a relation is a function, and meet the standard real functions, from identity and modulus to signum, greatest integer, exponential and logarithmic, with their graphs and domains.
Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.
You will learn to
- Form ordered pairs and Cartesian products A x B and use n(A x B) = n(A) x n(B) to count pairs and relations.
- Find the domain, co-domain and range of a relation from A to B, written as a subset of the Cartesian product A x B.
- Decide whether a relation is a function and find the domain and range of real functions such as rational, modulus, signum and greatest integer functions.
- Find the sum, difference, product and quotient of two real functions and the domain of each combined function.
Before you start
You should know how to write sets in roster and set-builder form, the meaning of n(A), and interval notation such as [2, 5) from the lesson on sets. You should also be able to plot points on a graph and solve simple equations and inequalities. In this lesson a real variable is called t, and f(t), read 'f of t', is the value of a function f at t; the letter x is kept for multiplication and for the Cartesian product. A relation tells us which elements of one set are linked to which elements of another, such as each student linked to the subjects she studies. A function is a special relation with exactly one output for each input, such as each student of a class linked to her roll number. Functions are the language of graphs, rates and formulas in later mathematics, physics and economics.
Ordered pairs and Cartesian products
An ordered pair (a, b) has a first entry a and a second entry b, and the order matters: (2, 5) and (5, 2) are different pairs. Two ordered pairs are equal only when their first entries are equal and their second entries are equal, so (k + 1, 4) = (3, 4) forces k = 2. For non-empty sets A and B, the Cartesian product A x B is the set of all ordered pairs (a, b) with a taken from A and b taken from B. If A = {1, 2} and B = {p, q, r}, then A x B = {(1, p), (1, q), (1, r), (2, p), (2, q), (2, r)}. Each of the n(A) first entries is paired with each of the n(B) second entries, so n(A x B) = n(A) x n(B); here 2 x 3 = 6. B x A has the same number of pairs but different pairs, such as (p, 1), so for non-empty sets A x B and B x A are equal only when A = B. If either set is empty, A x B is the empty set. The product A x A x A is made of ordered triplets (a, b, c), and R x R, the set of all pairs of real numbers, is the coordinate plane.
Relations, domain and range, and functions
A relation R from A to B is any subset of A x B, often given by a rule. With A = {1, 2, 3} and B = {2, 3, 4, 5, 6}, the rule b = a + 2 gives R = {(1, 3), (2, 4), (3, 5)}, which an arrow diagram shows as A and B drawn as two ovals with the arrows 1 -> 3, 2 -> 4 and 3 -> 5; the elements 2 and 6 of B receive no arrow. The domain of R is the set of first entries, {1, 2, 3}; the co-domain is the whole of B; the range is the set of second entries actually reached, {3, 4, 5}, a subset of the co-domain. Every subset of A x B is a relation, so if n(A) = p and n(B) = q there are 2^(pq) relations from A to B. A function f from A to B is a relation in which every element of A has exactly one image in B. Two signs show that a relation is not a function from A: an element of A with no image, or an element of A with two or more images. Two elements sharing one image is allowed. For a function the domain is A, the co-domain is B and the range is the set of all images f(a). A real function has its domain and co-domain inside R; when only a formula is given, its domain is taken as all real t for which the formula gives a real value. A graph shows a function of t when no vertical line meets it more than once.
Standard real functions and their graphs
Identity f(t) = t: domain R, range R; a straight line through (0, 0) and (1, 1). Constant f(t) = c: domain R, range {c}; a horizontal line. Polynomial f(t) = a0 + a1 t + a2 t^2 + ... + am t^m, with real coefficients and m a whole number: domain R; for example f(t) = t^2 has range [0, infinity) and a U-shaped graph through (-2, 4), (0, 0) and (2, 4). Rational f(t) = p(t)/q(t), where p and q are polynomials and q is not the zero polynomial: the domain is every real t with q(t) not equal to 0; for f(t) = 1/t the domain and the range are both all real numbers except 0, with one branch in the first quadrant and one in the third. Modulus f(t) = |t|, which equals t when t >= 0 and -t when t < 0: domain R, range [0, infinity); a V shape with its corner at the origin. Signum f(t) = |t|/t for t not equal to 0, with f(0) = 0: domain R; it gives 1 for every positive t and -1 for every negative t, so its range is {-1, 0, 1}. Its graph is the horizontal half-line y = -1 for t < 0 and the half-line y = 1 for t > 0, each with an open circle at t = 0, together with the single point (0, 0). Greatest integer f(t) = [t], the greatest integer less than or equal to t: [2.7] = 2, [5] = 5 and [-2.7] = -3; domain R, range Z, and the graph is a staircase whose steps are each closed at the left end and open at the right end; for example [t] = 0 on [0, 1) and [t] = 1 on [1, 2).
Exponential and logarithmic functions, and the algebra of functions
For a base a with a > 0 and a not equal to 1, the exponential function f(t) = a^t has domain R and range (0, infinity). Its graph passes through (0, 1) and stays above the t-axis; it rises from left to right when a > 1, as 2^t does, and falls when 0 < a < 1. The logarithmic function f(t) = log_a(t), the logarithm of t to base a, undoes it: log_a(t) = k exactly when a^k = t. It has domain (0, infinity) and range R, and its graph passes through (1, 0), rising from left to right when a > 1 and falling when 0 < a < 1; for example log_10(1000) = 3. Real functions can also be combined point by point. If f and g have domains D1 and D2, then on the common part D1 intersection D2 we define (f + g)(t) = f(t) + g(t), (f - g)(t) = f(t) - g(t) and (fg)(t) = f(t) x g(t). The quotient (f/g)(t) = f(t)/g(t) uses the same common part with every t where g(t) = 0 removed. For example, with f(t) = sqrt(t) on [0, infinity) and g(t) = t - 4 on R, the domain of f/g is [0, 4) union (4, infinity).
Common mistakes
Treating (a, b) and (b, a) as the same pair, or A x B and B x A as the same set. Calling the co-domain the range: the range holds only the images actually reached. Rejecting a function because two inputs share an output, or accepting a relation in which some element of A has no image or two images. Writing the domain of a formula as R without removing the zeros of a denominator or the values that make the number under a square root negative. Rounding instead of going down in the greatest integer function: [-2.5] = -3, not -2, and [2.5] = 2, not 3. Forgetting that the signum function takes the value 0 at t = 0. Cancelling a common factor before finding a domain: (t^2 - 4)/(t + 2) equals t - 2 only when t is not -2. Putting 0 or a negative number into a logarithm.
A routine for function questions
1. For a list of pairs, check each element of A: it must appear as a first entry exactly once. 2. For a formula, start from all real t and remove the zeros of every denominator, the values that make the number under a square root negative, and the values that make the input of a logarithm zero or negative. 3. Write the domain in interval form. 4. Find the range by working out which outputs are actually possible, using the formula, an inequality or a sketch of the graph, and check whether each end value is reached. 5. For f + g, f - g and fg, use the common part of the two domains; for f/g also remove every t where g(t) = 0. 6. Check your answer by working out the function at one or two points of the domain.
Worked examples
Let A = {2, 3} and B = {4, 5, 6, 9}. Find n(A x B), list the relation R = {(a, b) in A x B : a divides b}, give its domain, co-domain and range, decide whether R is a function from A to B, and count all the relations from A to B.
- 1. n(A x B) = n(A) x n(B) = 2 x 4 = 8 pairs.
- 2. Test each pair: 2 divides 4 and 6 but not 5 or 9, and 3 divides 6 and 9 but not 4 or 5. So R = {(2, 4), (2, 6), (3, 6), (3, 9)}.
- 3. The domain of R is {2, 3}, the co-domain is B = {4, 5, 6, 9}, and the range is {4, 6, 9}; the element 5 of the co-domain is not reached.
- 4. R is not a function from A to B, because 2 has two images, 4 and 6 (and 3 also has two).
- 5. Each of the 2^8 subsets of A x B is a relation, so there are 2^8 = 256 relations from A to B.
Answer: n(A x B) = 8; R = {(2, 4), (2, 6), (3, 6), (3, 9)} with domain {2, 3}, co-domain {4, 5, 6, 9} and range {4, 6, 9}; R is not a function; there are 256 relations from A to B.
Find the domain and range of f(t) = sqrt(9 - t^2). Then find the domain of g(t) = (t + 1)/(t^2 - 5t + 6) and the value g(4).
- 1. For f, the number under the square root must not be negative: 9 - t^2 >= 0, so t^2 <= 9, which means -3 <= t <= 3. The domain of f is [-3, 3].
- 2. As t runs over [-3, 3], 9 - t^2 runs from 0 (at t = -3 or t = 3) up to 9 (at t = 0), so sqrt(9 - t^2) runs from 0 up to 3. The range of f is [0, 3].
- 3. For g, the denominator must not be 0: t^2 - 5t + 6 = (t - 2)(t - 3), which is 0 at t = 2 and at t = 3. The domain of g is all real numbers except 2 and 3.
- 4. g(4) = (4 + 1)/(16 - 20 + 6) = 5/2 = 2.5.
Answer: f has domain [-3, 3] and range [0, 3]; g has domain R - {2, 3}, and g(4) = 2.5.
For the greatest integer function f(t) = [t] and the modulus function g(t) = |t|, find f(3.7), f(-3.7) and g(-3.7). Then find (f + g)(-3.7) and (f/g)(-3.7), the second correct to two decimal places, and state the domain of f/g.
- 1. The greatest integer that is not more than 3.7 is 3, so f(3.7) = 3.
- 2. On the number line -3.7 lies between -4 and -3; the greatest integer that is not more than -3.7 is -4, so f(-3.7) = -4.
- 3. g(-3.7) = |-3.7| = 3.7.
- 4. (f + g)(-3.7) = -4 + 3.7 = -0.3.
- 5. (f/g)(-3.7) = -4/3.7 = -1.081..., which is -1.08 to two decimal places.
- 6. Both f and g have domain R, and g(t) = 0 only at t = 0, so the domain of f/g is all real numbers except 0.
Answer: f(3.7) = 3, f(-3.7) = -4, g(-3.7) = 3.7, (f + g)(-3.7) = -0.3 and (f/g)(-3.7) = -1.08; f/g is defined for every real t except 0.
Practice checks
- If n(A) = 3 and n(B) = 4, how many ordered pairs does A x B have, and how many relations from A to B are there?
- Which of these relations from A = {1, 2, 3} to B = {4, 5, 6} is a function from A to B?
- What is the domain of f(t) = sqrt(t - 2) + 1/(t - 5)?
- What is the value of [-4.2] + [4.2] + sgn(-9), where [t] is the greatest integer function and sgn is the signum function?
- For f(t) = t^2 - 4 and g(t) = t + 2, which statement about the quotient f/g is correct?
Sources checked
- CBSE Mathematics (041), Classes XI-XII (2026-27) — Class XI Unit I Sets and Functions, Chapter 2 Relations and Functions (ordered pairs, Cartesian product of sets, number of elements in a Cartesian product, relations with domain, co-domain and range, function as a special relation, real valued functions and their graphs, sum, difference, product and quotient of functions); draft topic mapping, not an examinability guarantee
- NCERT Mathematics, Class XI, Chapter 2: Relations and Functions — Cartesian products and their size; relations with domain, co-domain and range; functions; the identity, constant, polynomial, rational, modulus, signum and greatest integer functions; algebra of real functions; facts only
- OpenStax College Algebra 2e, 3.2 Domain and Range — Finding the domain of a function given by a formula (denominators and even roots), interval notation, and the domain and range of basic functions such as the constant, identity, absolute value and reciprocal functions; facts only
- OpenStax College Algebra 2e, 6.3 Logarithmic Functions — A logarithm as the inverse of an exponential function, the equivalence of logarithmic and exponential forms, and the domain of a logarithmic function; facts only