Latest
  • Admissions openClass 11 Science, 2027‑28: JEE, NEET and MHT‑CET with junior college and hostel under one roofApply now
  • IMGSAT 2027Free scholarship and admission test for Class 10 students, every Saturday and Sunday at our Nashik campusRegister
  • Free Foundation 2026‑27Evening classes for Class 10 in Physics, Chemistry, Maths and Biology, taught by our IITian and doctor facultyJoin free

+91 70303 00666

Maths · Class 11 · Chapter 2

Relations and Functions

A function is the single most used idea in JEE mathematics. This chapter builds it from ordered pairs, then gives you the standard real functions whose graphs you should be able to sketch from memory.

In this chapter: ordered pairs and Cartesian product, relations with domain, codomain and range, functions and real functions, identity, constant, polynomial, rational, modulus, signum and greatest integer functions, and the algebra of real functions.

Cartesian product of sets

An ordered pair (a, b) is a pair in which the order matters, so (2, 3) and (3, 2) are different. Two ordered pairs are equal only when their corresponding entries are equal:

(a, b) = (c, d) ⇔ a = c and b = d

For non-empty sets A and B, the Cartesian product is the set of all ordered pairs with first entry from A and second from B:

A × B = {(a, b) : a ∈ A, b ∈ B}n(A × B) = n(A) · n(B)
  • If A or B is empty, A × B = φ.
  • A × B ≠ B × A in general, though both have the same number of elements.
  • If either A or B is infinite (and the other is non-empty), A × B is infinite.
  • A × A × A = {(a, b, c) : a, b, c ∈ A}, a set of ordered triplets. R × R is the coordinate plane and R × R × R is three-dimensional space.

Relations

A relation R from A to B is any subset of A × B. Usually it is described by a rule linking the first element to the second. If (a, b) ∈ R, we say b is the image of a and a is a pre-image of b.

  • Domain of R: the set of all first elements of the pairs in R.
  • Range of R: the set of all second elements.
  • Codomain: the whole set B. Range ⊂ codomain, and the two need not be equal.

If n(A) = p and n(B) = q, then n(A × B) = pq, and every subset of A × B is a relation, so the number of relations from A to B is 2pq. This count includes the empty relation and A × B itself.

Worked example: A = {1, 2} and B = {3, 4, 5}. Write A × B and find the number of relations from A to B.
Solution: A × B = {(1, 3), (1, 4), (1, 5), (2, 3), (2, 4), (2, 5)}, so n(A × B) = 2 × 3 = 6. The number of relations is 26 = 64.

Functions

A relation f from A to B is a function if every element of A has one and only one image in B. Two things can break this: an element of A with no image, or an element of A with two or more images. Elements of B may be left without a pre-image, and two elements of A may share an image; neither stops f from being a function.

We write f : A → B and y = f(x). A is the domain, B the codomain, and the set of images {f(x) : x ∈ A} is the range.

Arrow diagrams: a function and a relation that is not a functionwww.iitmedicoguide.comf(x) = x²a function12341491620AB20 has no pre-image: range ≠ codomainRelation Rnot a function123456AB1 has two images; 3 has nonewww.iitmedicoguide.com
On the left every element of A sends exactly one arrow, so f is a function; 20 is in the codomain but not in the range. On the right 1 sends two arrows and 3 sends none, so R is a relation but not a function.

A function whose domain and codomain are subsets of R is a real function. When only a formula is given, take the domain to be the largest set of real x for which the formula gives a real value. In practice: a denominator cannot be zero, and an expression under a square root must be ≥ 0 (strictly > 0 if the root is also in a denominator).

A side result worth knowing: if n(A) = p and n(B) = q, the number of functions from A to B is qp, since each of the p elements has q choices of image.

Some standard functions and their graphs

FunctionRuleDomainRange
Identityf(x) = xRR
Constantf(x) = cR{c}
Polynomiala0 + a1x + ... + anxn, n a non-negative integerRdepends on the polynomial
Rationalf(x)/g(x), f and g polynomialsR minus the zeros of gdepends
Modulus|x| = x if x ≥ 0; −x if x < 0R[0, ∞)
Signumsgn x = |x|/x if x ≠ 0; 0 if x = 0R{−1, 0, 1}
Greatest integer[x] = greatest integer ≤ xRZ

The graph of the identity function is the line y = x through the origin at 45°; the constant function is a horizontal line; f(x) = x² is a parabola opening upwards with vertex at the origin, and f(x) = x³ rises through the origin. The reciprocal function f(x) = 1/x, x ≠ 0, has two branches, in the first and third quadrants.

For the greatest integer function, [2.7] = 2, [5] = 5, [−0.4] = −1 and [−2.5] = −3. On a number line, [x] is the integer at or immediately to the left of x.

Graphs of the modulus, signum and greatest integer functionswww.iitmedicoguide.comy = |x|range [0, ∞)xy1−1y = sgn xrange {−1, 0, 1}xy1−1y = [x]range Zxy122point includedpoint excludedwww.iitmedicoguide.com
The modulus graph is a V with its vertex at the origin. The signum graph jumps from −1 to 1 and takes the value 0 only at x = 0. The greatest integer graph is a staircase: each step includes its left end point and excludes its right end point.

Algebra of real functions

Let f and g be real functions defined on a common domain X ⊂ R, and let α be a real number. Then, for x ∈ X:

(f + g)(x) = f(x) + g(x)(f − g)(x) = f(x) − g(x)(αf)(x) = α f(x)(fg)(x) = f(x) g(x)(f/g)(x) = f(x)/g(x)only where g(x) ≠ 0

If f and g come with different domains, the new function lives on the intersection of the two domains, and for f/g you also remove the points where g vanishes.

Worked example: f(x) = x² and g(x) = 2x + 1 on R. Find (f + g)(x), (fg)(x) and (f/g)(x).
Solution: (f + g)(x) = x² + 2x + 1 = (x + 1)². (fg)(x) = x²(2x + 1) = 2x³ + x². (f/g)(x) = x²/(2x + 1), defined for x ≠ −1/2.

Finding domain and range

For the domain, list the restrictions and solve them together. For the range, a reliable method is to put y = f(x), solve for x in terms of y, and ask which y give a real x that lies in the domain.

Worked example: Find the domain and range of f(x) = (x + 1)/(x − 2).
Solution: The denominator vanishes at x = 2, so the domain is R − {2}. Put y = (x + 1)/(x − 2). Then xy − 2y = x + 1, so x(y − 1) = 2y + 1 and x = (2y + 1)/(y − 1). This is real for every y ≠ 1. Check that it never gives x = 2: (2y + 1)/(y − 1) = 2 would need 2y + 1 = 2y − 2, which is impossible. So the range is R − {1}.

Two more you should know without working: f(x) = √9 − x² has domain [−3, 3] and range [0, 3]; f(x) = 1/x has domain and range both R − {0}.

Common mistakes: (1) Writing [−2.5] = −2. The greatest integer not exceeding −2.5 is −3. (2) Treating (a, b) and (b, a) as the same pair, or A × B as equal to B × A. (3) Mixing up the counts: relations from A to B number 2pq, functions number qp. (4) Calling the codomain the range. (5) Forgetting that for √(x − 5) in a denominator the condition is x > 5, not x ≥ 5. (6) Leaving out the zeros of g in the domain of f/g.

Exam focus

  • Equality of ordered pairs and the number of elements in A × B.
  • Counting relations and functions between finite sets.
  • Deciding from pairs, arrow diagrams or graphs whether a relation is a function.
  • Domain and range of rational and square-root expressions, written in interval notation.
  • Graphs and values of |x|, sgn x and [x]; these three reappear in limits, continuity and area questions in Class 12.

Practice questions

If (x + 1, y − 2) = (3, 1), then (x, y) is:

  1. (2, 3)
  2. (3, 2)
  3. (4, −1)
  4. (2, −1)
Show answer
A. x + 1 = 3 gives x = 2 and y − 2 = 1 gives y = 3.

If n(A) = 3 and n(B) = 4, the number of relations from A to B is:

  1. 12
  2. 81
  3. 4096
  4. 64
Show answer
C. n(A × B) = 12, so there are 212 = 4096 relations.

The range of the signum function is:

  1. R
  2. {−1, 1}
  3. [−1, 1]
  4. {−1, 0, 1}
Show answer
D. sgn x is 1 for x > 0, −1 for x < 0 and 0 at x = 0.

The value of [−3.7] + [3.7] is:

  1. 0
  2. −1
  3. 1
  4. −7
Show answer
B. [−3.7] = −4 and [3.7] = 3, so the sum is −1.

The domain of f(x) = 1/√x − 5 is:

  1. (−∞, 5)
  2. R − {5}
  3. [5, ∞)
  4. (5, ∞)
Show answer
D. The root must be real and non-zero, so x − 5 > 0.

The domain of f(x) = (x² + 3x + 5)/(x² − 5x + 4) is:

  1. R − {1, 4}
  2. R − {−1, −4}
  3. R
  4. (1, 4)
Show answer
A. x² − 5x + 4 = (x − 1)(x − 4) vanishes at x = 1 and x = 4.

Which of the following relations from A = {1, 2, 3} to B = {4, 5} is a function?

  1. {(1, 4), (2, 5)}
  2. {(1, 4), (1, 5), (2, 4), (3, 5)}
  3. {(1, 5), (2, 5), (3, 4)}
  4. {(2, 4), (3, 5)}
Show answer
C. Each of 1, 2, 3 has exactly one image. In A and D some element has no image; in B, 1 has two images.

The range of f(x) = √9 − x² is:

  1. [−3, 3]
  2. [0, 3]
  3. [0, 9]
  4. (0, 3)
Show answer
B. 9 − x² runs from 0 (at x = ±3) to 9 (at x = 0), so its square root runs from 0 to 3.
Call WhatsApp Apply
Chat with us on WhatsApp