Model G20 2027 at FLAME University, registrations now open

Relations and Functions | CBSE Class 12 Maths Notes

23 min read

On this page

This Mathematics note covers relations, empty and universal relations, reflexivity, symmetry, transitivity, equivalence classes, one-one and onto functions, bijections, functions on finite sets, composition, and inverse functions, with worked proofs and calculations.

What is a relation, and how is it represented?

A relation from a set AA to a set BB is any subset of their Cartesian product. The first entry of each ordered pair belongs to the first set, and the second entry belongs to the second set.

Definition: A relation from AA to BB satisfies R⊆A×BR\subseteq A\times B. A relation in AA satisfies R⊆A×AR\subseteq A\times A. The notation aRbaRb means (a,b)∈R(a,b)\in R.

The order of the entries matters. Knowing that one element is related to another does not automatically tell us that the reversed pair belongs to the relation. That extra requirement is the property called symmetry.

How do roster and set-builder forms differ?

The roster form lists the ordered pairs. The set-builder form specifies a condition that the pairs must satisfy. Both describe the same mathematical object when they select exactly the same pairs from the same Cartesian product.

For the set A={1,2,3,4}A=\{1,2,3,4\}, the rule b=a+1b=a+1 selects pairs whose second entry is one greater than their first. The stated set remains part of the definition: both entries must belong to it.

  1. Take the first allowed input: a=1a=1. Then b=1+1=2b=1+1=2, giving (1,2)(1,2).
  2. For the next input, a=2a=2, calculate b=2+1=3b=2+1=3, giving (2,3)(2,3).
  3. For a=3a=3, calculate b=3+1=4b=3+1=4, giving (3,4)(3,4).
  4. For a=4a=4, the rule gives b=4+1=5b=4+1=5. Since 5∉A5\notin A, this pair is excluded. Thus R={(1,2),(2,3),(3,4)}R=\{(1,2),(2,3),(3,4)\}.

A function is a special kind of relation: each element of the domain has exactly one image in the codomain. General relations do not have this restriction. When classifying a relation, first identify its set and the precise membership condition.

What are empty and universal relations?

The empty relation and the universal relation are the two extreme possibilities for a relation in a set. One contains no ordered pairs; the other contains every ordered pair from the Cartesian product of the set with itself.

RelationConditionMeaning
EmptyR=∅R=\varnothingNo element is related to any element of the set.
UniversalR=A×AR=A\times AEvery element is related to every element of the set.

These are also called trivial relations. Their classification depends on all possible pairs, rather than on whether the condition looks complicated. A numerical condition may select no pairs or may hold for every pair in the stated set.

Worked example 1. In A={1,2,3,4}A=\{1,2,3,4\}, classify the relations defined by a−b=10a-b=10 and by ∣a−b∣≥0|a-b|\geq0.

  1. For the first relation, the largest possible difference is obtained from the largest first entry and smallest second entry: 4−1=34-1=3.
  2. The required difference 1010 exceeds 33. No allowed ordered pair can satisfy a−b=10a-b=10, so this relation has no elements.
  3. For the second relation, an absolute value is non-negative. Therefore ∣a−b∣≥0|a-b|\geq0 for every permitted choice of both entries.
  4. Every pair in A×AA\times A belongs to the second relation. No permitted pair needs to be excluded.

Answer: The condition a−b=10a-b=10 defines the empty relation; ∣a−b∣≥0|a-b|\geq0 defines the universal relation.

Notice that the empty relation is still a relation. Being a relation requires being a subset of the appropriate Cartesian product, and the empty set satisfies that requirement. A rule does not need to produce an ordered pair to define a relation.

How do you test reflexive, symmetric and transitive relations?

The three properties ask different questions about membership of ordered pairs. Test each property separately. Establishing one property does not establish either of the others, and a failed test should identify precisely which required pair is absent.

PropertyRequired conditionWhat to inspect
Reflexive(a,a)∈R(a,a)\in R for every a∈Aa\in AEvery element must be related to itself.
Symmetric(a,b)∈R⇒(b,a)∈R(a,b)\in R\Rightarrow(b,a)\in REvery included pair must have its reverse.
Transitive(a,b),(b,c)∈R⇒(a,c)∈R(a,b),(b,c)\in R\Rightarrow(a,c)\in REvery two-pair chain must have the required direct pair.

In the transitivity test, the second entry of the first pair must equal the first entry of the second pair. Pairs with no matching middle element do not form the chain required by the definition.

Worked example 2. Classify R={(1,1),(2,2),(3,3),(1,2),(2,3)}R=\{(1,1),(2,2),(3,3),(1,2),(2,3)\} in A={1,2,3}A=\{1,2,3\}.

  1. Check all self-pairs: (1,1),(2,2),(3,3)∈R(1,1),(2,2),(3,3)\in R. Every element of the stated set is related to itself, so the relation is reflexive.
  2. Inspect the included pair (1,2)(1,2). Its reverse (2,1)∉R(2,1)\notin R, so the symmetry condition fails.
  3. Use the chain (1,2),(2,3)∈R(1,2),(2,3)\in R. Transitivity would require (1,3)∈R(1,3)\in R.
  4. Compare that required pair with the complete roster. Since (1,3)∉R(1,3)\notin R, transitivity fails.

Answer: On {1,2,3}\{1,2,3\}, this relation is reflexive, but neither symmetric nor transitive.

A counterexample disproves a universal property. One missing self-pair disproves reflexivity; one missing reverse disproves symmetry; and one chain lacking its direct pair disproves transitivity. Proving a property requires covering every relevant element or pair, not merely finding a successful instance.

Note: Do not assume that a relation must belong to just one category. It can satisfy several properties together, or fail more than one property.

When is a relation an equivalence relation?

An equivalence relation combines all three properties: reflexivity, symmetry and transitivity. A complete proof must explicitly establish each one. The final conclusion follows only after all three tests succeed on the same underlying set.

How does congruence illustrate equivalence?

Consider the relation of congruence on the set of all triangles in a plane. The elements being related are whole triangles. The relation asks whether the first triangle is congruent to the second, rather than comparing their names or positions.

  1. Every triangle is congruent to itself: T1≅T1T_1\cong T_1. Hence the relation is reflexive.
  2. If T1≅T2T_1\cong T_2, then T2≅T1T_2\cong T_1. Hence the relation is symmetric.
  3. If T1≅T2T_1\cong T_2 and T2≅T3T_2\cong T_3, then T1≅T3T_1\cong T_3. Hence the relation is transitive.
  4. All three conditions hold, so congruence defines an equivalence relation on the set of triangles.

Worked example 3. Prove that R={(a,b)∈Z×Z:2∣(a−b)}R=\{(a,b)\in\mathbb Z\times\mathbb Z:2\mid(a-b)\} is an equivalence relation. Here Z\mathbb Z denotes the set of all integers, and 2∣(a−b)2\mid(a-b) means that a−ba-b is divisible by 22.

  1. For any integer aa, calculate a−a=0=2⋅0a-a=0=2\cdot0. Thus 2∣(a−a)2\mid(a-a), proving reflexivity.
  2. Suppose aRbaRb. Write a−b=2ka-b=2k for an integer kk. Reversing the difference gives b−a=−2k=2(−k)b-a=-2k=2(-k), so bRabRa.
  3. Suppose also bRcbRc. Write b−c=2mb-c=2m for an integer mm. Add the two differences: a−c=(a−b)+(b−c)=2k+2m=2(k+m).a-c=(a-b)+(b-c)=2k+2m=2(k+m).
  4. Because k+m∈Zk+m\in\mathbb Z, the last difference is divisible by 22. Hence aRcaRc, establishing transitivity.

Answer: Divisibility of the difference by 22 defines a reflexive, symmetric and transitive relation, so it is an equivalence relation.

The algebra explains why the proof works for arbitrary integers. Checking a few even or odd numbers would illustrate the relation, but would not replace the argument for every permitted pair and every chain of related elements.

How do equivalence classes divide a set?

An equivalence class containing an element consists of all elements related to it. For the integer relation defined by an even difference, the class containing zero consists of all even integers, while the class containing one consists of all odd integers.

These classes are mutually disjoint, and together they cover the integers. Elements within either class are related to one another. No element in the even class is related to an element in the odd class.

Property: Equivalence classes form a partition

An equivalence relation divides its set into classes with three features: members of the same class are related, members of different classes are not related, and every element of the original set belongs to a class. This division is a partition.

Using the even-difference relation, its classes can be written as [0][0] and [1][1]. For every integer rr, the same two classes are also represented by [2r][2r] and [2r+1][2r+1], respectively. Different representatives can therefore name the same class.

Worked example 4. In A={1,2,3,4,5,6,7}A=\{1,2,3,4,5,6,7\}, relate two elements when both are odd or both are even. Establish equivalence and identify the groups.

  1. Every element has the same parity as itself, so aRaaRa for every a∈Aa\in A. The relation is reflexive.
  2. If aa and bb have the same parity, exchanging their order preserves that fact. Thus aRb⇒bRaaRb\Rightarrow bRa.
  3. If aa and bb have the same parity, and bb and cc have the same parity, then all three have the same parity. Thus aRcaRc.
  4. The odd members form {1,3,5,7}\{1,3,5,7\}, and the even members form {2,4,6}\{2,4,6\}. These groups are disjoint and their union is AA.

Answer: The relation is an equivalence relation with classes {1,3,5,7}\{1,3,5,7\} and {2,4,6}\{2,4,6\}.

For divisibility of an integer difference by 33, the corresponding partition has classes represented by 00, 11 and 22. The organising principle remains the same: classify elements by which differences satisfy the relation.

How do one-one and onto functions differ?

A one-one function, also called an injective function, gives different images to distinct inputs. An onto function, also called a surjective function, reaches every element of its codomain. These requirements concern different aspects of the mapping.

Definition: A function f:X→Yf:X\to Y is one-one if f(x1)=f(x2)⇒x1=x2f(x_1)=f(x_2)\Rightarrow x_1=x_2 for all x1,x2∈Xx_1,x_2\in X. It is onto if every y∈Yy\in Y has some x∈Xx\in X satisfying f(x)=yf(x)=y.

The range consists of the images actually obtained. The codomain is the declared target set. Therefore a function is onto precisely when its range equals its codomain. An element in the codomain that has no preimage disproves surjectivity.

How do arrow diagrams show the distinction?

What the figure shows

Four types of mappings

Four arrow diagrams map elements of X1X_1 into target sets. In panel (i), distinct arrows reach distinct targets while ee and ff remain unreached. Panel (ii) sends 11 and 22 to bb. Panel (iii) reaches every target but combines inputs. Panel (iv) reaches every target with distinct images.

See Fig. 1.2 in your NCERT textbook

A function that is not one-one is called many-one. This means at least two distinct domain elements share an image. It does not mean one input has several images: that would violate the requirement for being a function.

ClassificationInputsCodomain coverage
One-oneDistinct inputs have distinct images.Some target elements may remain unreached.
OntoDifferent inputs may share an image.Every target element is reached.
BijectiveDistinct inputs have distinct images.Every target element is reached.

A bijection satisfies both tests. When proving bijectivity, keep the two arguments visible: first establish that images do not repeat for distinct inputs, and then establish that no codomain element is missed.

Why do the domain and codomain affect a function's type?

The formula alone does not determine whether a function is one-one or onto. Its declared domain and codomain are essential. The same doubling rule gives different surjectivity conclusions when applied to natural numbers and to real numbers.

Worked example 5. Classify f:N→Nf:\mathbb N\to\mathbb N, defined by f(x)=2xf(x)=2x, where N={1,2,3,…}\mathbb N=\{1,2,3,\ldots\} is the set of natural numbers.

  1. Assume two natural-number inputs have equal images: f(x1)=f(x2)f(x_1)=f(x_2).
  2. Substitute the rule: 2x1=2x22x_1=2x_2. Dividing by 22 gives x1=x2x_1=x_2, so the function is one-one.
  3. Choose 11 from the codomain. To reach it, an input would need to satisfy 2x=12x=1, hence x=12x=\frac12.
  4. Since 12∉N\frac12\notin\mathbb N, that codomain element has no allowed preimage. The function is not onto.

Answer: f(x)=2xf(x)=2x on the natural numbers is one-one but not onto.

Worked example 6. Classify f:R→Rf:\mathbb R\to\mathbb R, defined by f(x)=2xf(x)=2x, where R\mathbb R is the set of all real numbers.

  1. Assume f(x1)=f(x2)f(x_1)=f(x_2). Then 2x1=2x22x_1=2x_2, and division by 22 gives x1=x2x_1=x_2.
  2. Take an arbitrary real target yy. Solving 2x=y2x=y gives the candidate input x=y2x=\frac y2.
  3. The candidate belongs to the domain because y2∈R\frac y2\in\mathbb R whenever y∈Ry\in\mathbb R.
  4. Verify it by substitution: f(y2)=2(y2)=y.f\left(\frac y2\right)=2\left(\frac y2\right)=y. Every real target is reached.

Answer: f(x)=2xf(x)=2x from the reals to the reals is one-one and onto, hence bijective.

The injectivity argument is unchanged in these two examples. The surjectivity argument changes because a candidate preimage must belong to the actual domain. Solving the equation is insufficient unless this membership condition is checked.

How do you prove a function is many-one or not onto?

To disprove injectivity, exhibit two distinct inputs with the same image. To disprove surjectivity, exhibit an element of the codomain that cannot be an image. These are separate counterexamples, even when both properties fail for the same function.

Worked example 7. Classify f:R→Rf:\mathbb R\to\mathbb R, defined by f(x)=x2f(x)=x^2.

  1. Evaluate the function at the two inputs −1-1 and 11: f(−1)=(−1)2=1f(-1)=(-1)^2=1 and f(1)=12=1f(1)=1^2=1.
  2. The inputs are distinct, since −1≠1-1\ne1, but their images agree. Therefore the function is many-one.
  3. Select the real codomain element −2-2. Reaching it would require x2=−2x^2=-2.
  4. For every real input, x2≥0x^2\geq0. The required equation has no real solution, so −2-2 has no preimage.

Answer: f(x)=x2f(x)=x^2 from the reals to the reals is neither one-one nor onto.

Can an onto function still repeat an image?

Yes. Consider the natural-number function specified by f(1)=f(2)=1f(1)=f(2)=1 and f(x)=x−1f(x)=x-1 for x>2x>2. The repeated image disproves injectivity, but it does not prevent the function from covering its entire codomain.

  1. The distinct inputs 11 and 22 share the image 11. Thus the function is not one-one.
  2. The target 11 is reached because f(1)=1f(1)=1.
  3. For any natural target y>1y>1, choose x=y+1x=y+1. This input satisfies x>2x>2, so the second branch applies.
  4. Substitution gives f(y+1)=(y+1)−1=yf(y+1)=(y+1)-1=y. Hence every natural-number target is reached, proving that the function is onto.

The conclusion illustrates the independence of the two function properties on an infinite set. A successful onto proof does not repair a failed one-one test, and a repeated image does not by itself show that a target is missed.

What changes when a function maps a finite set to itself?

Result: A finite self-map is one-one if and only if it is onto

For a finite set XX, a function f:X→Xf:X\to X is one-one exactly when it is onto. The domain and codomain are the same finite set in this result. That condition must remain attached to the conclusion.

  1. If the function is one-one, distinct domain elements have distinct images. The finite domain supplies as many distinct images as there are elements in the codomain.
  2. Those images therefore cover the codomain, establishing that the function is onto.
  3. Conversely, suppose the function is onto but two distinct inputs share an image. The number of distinct images would then be smaller than the number of domain elements.
  4. Because the domain and codomain are the same finite set, some codomain element would be missed. This contradicts the onto assumption, so the function must be one-one.

The infinite natural-number examples show why finiteness matters. Doubling is one-one but not onto, while the function with a repeated first image and the rule x−1x-1 afterwards is onto but not one-one.

Worked example 8. Find the number of one-one functions from A={1,2,3}A=\{1,2,3\} to itself.

  1. The image of the first input can be any of the 33 elements of the codomain.
  2. For a one-one function, the second input must have a different image. There are 22 unused choices.
  3. The last input must use the remaining image. There is 11 choice.
  4. Multiply these successive choices: 3×2×1=3!=6.3\times2\times1=3!=6. Here 3!3!, read as “three factorial”, means the product of the positive integers from 11 to 33.

Answer: There are 66 one-one functions from AA to itself.

Each such mapping is a permutation of the set. Every target is used once, so the finite self-map result also confirms that each of these one-one functions is onto.

How is the composition of two functions calculated?

Composition applies one function and then another. If f:A→Bf:A\to B and g:B→Cg:B\to C, the output of the first function lies in the domain of the second. The composite therefore maps the original input set into the final target set.

Definition: The composite g∘f:A→Cg\circ f:A\to C is defined by (g∘f)(x)=g(f(x))(g\circ f)(x)=g(f(x)) for every x∈Ax\in A. Apply ff first, then apply gg to its output.

What the figure shows

Following a composite function

Three sets labelled AA, BB and CC contain xx, f(x)f(x) and g(f(x))g(f(x)). An arrow labelled ff goes from the first set to the second, and an arrow labelled gg continues to the third. A curved arrow labelled g∘fg\circ f connects the original input to the final image.

See Fig. 1.5 in your NCERT textbook

Worked example 9. Let f:{2,3,4,5}→{3,4,5,9}f:\{2,3,4,5\}\to\{3,4,5,9\} satisfy f(2)=3f(2)=3, f(3)=4f(3)=4, f(4)=f(5)=5f(4)=f(5)=5. Let g:{3,4,5,9}→{7,11,15}g:\{3,4,5,9\}\to\{7,11,15\} satisfy g(3)=g(4)=7g(3)=g(4)=7, g(5)=g(9)=11g(5)=g(9)=11. Find g∘fg\circ f.

  1. For the first input, follow both rules: (g∘f)(2)=g(f(2))=g(3)=7(g\circ f)(2)=g(f(2))=g(3)=7.
  2. For the second input, (g∘f)(3)=g(f(3))=g(4)=7(g\circ f)(3)=g(f(3))=g(4)=7.
  3. For the third input, (g∘f)(4)=g(f(4))=g(5)=11(g\circ f)(4)=g(f(4))=g(5)=11.
  4. For the fourth input, (g∘f)(5)=g(f(5))=g(5)=11(g\circ f)(5)=g(f(5))=g(5)=11.

Answer: g∘f={(2,7),(3,7),(4,11),(5,11)}g\circ f=\{(2,7),(3,7),(4,11),(5,11)\}, with domain {2,3,4,5}\{2,3,4,5\} and codomain {7,11,15}\{7,11,15\}.

Result: Composition need not commute

The order of composition matters. For f(x)=cos⁡xf(x)=\cos x and g(x)=3x2g(x)=3x^2, both defined from the reals to the reals, calculate the two orders separately.

  1. Apply the cosine rule first: (g∘f)(x)=g(cos⁡x)=3cos⁡2x(g\circ f)(x)=g(\cos x)=3\cos^2x.
  2. Apply the quadratic rule first: (f∘g)(x)=f(3x2)=cos⁡(3x2)(f\circ g)(x)=f(3x^2)=\cos(3x^2).
  3. At x=0x=0, the first composite gives 3cos⁡20=33\cos^2 0=3, while the second gives cos⁡(3⋅02)=1\cos(3\cdot0^2)=1.
  4. Since 3≠13\ne1, the composites differ at an input in their domain. Thus g∘f≠f∘gg\circ f\ne f\circ g.

When is a function invertible, and how is its inverse checked?

An inverse function reverses a function through composition. For f:X→Yf:X\to Y, an inverse must be a function g:Y→Xg:Y\to X. It must return every original input after the forward mapping and recover every target after the reverse mapping.

Result: A function is invertible exactly when it is bijective

Definition: The function f:X→Yf:X\to Y is invertible if there is a function g:Y→Xg:Y\to X such that g∘f=IXg\circ f=I_X and f∘g=IYf\circ g=I_Y. Here IXI_X and IYI_Y are the identity functions on XX and YY, respectively: IX(x)=xI_X(x)=x for every x∈Xx\in X, and IY(y)=yI_Y(y)=y for every y∈Yy\in Y. The inverse is written f−1f^{-1}.

Being one-one and onto is equivalent to being invertible. To establish invertibility without finding a formula for the inverse, prove both properties. If an inverse formula is requested, also state its domain and verify the two identity compositions.

Worked example 10. Let f:N→Yf:\mathbb N\to Y satisfy f(x)=4x+3f(x)=4x+3, where Y={y∈N:y=4x+3 for some x∈N}Y=\{y\in\mathbb N:y=4x+3\text{ for some }x\in\mathbb N\}. Find and verify its inverse.

  1. Start with the output equation y=4x+3y=4x+3. Subtracting 33 gives y−3=4xy-3=4x.
  2. Divide by 44 to obtain x=y−34x=\frac{y-3}{4}. Define g:Y→Ng:Y\to\mathbb N by g(y)=y−34g(y)=\frac{y-3}{4}.
  3. Check the domain condition. The definition of YY guarantees that each y∈Yy\in Y has the form 4x+34x+3 for a natural number xx. Thus g(y)∈Ng(y)\in\mathbb N.
  4. Check the first composition for every natural input: (g∘f)(x)=g(4x+3)=4x+3−34=4x4=x.(g\circ f)(x)=g(4x+3)=\frac{4x+3-3}{4}=\frac{4x}{4}=x.
  5. Check the second composition for every y∈Yy\in Y: (f∘g)(y)=f(y−34)=4(y−34)+3=y−3+3=y.(f\circ g)(y)=f\left(\frac{y-3}{4}\right)=4\left(\frac{y-3}{4}\right)+3=y-3+3=y.

Answer: f−1:Y→Nf^{-1}:Y\to\mathbb N is f−1(y)=y−34f^{-1}(y)=\frac{y-3}{4}. Both required identity compositions hold.

The specified target set is crucial here. It ensures that the reverse rule actually produces a natural number. Algebraic rearrangement supplies a candidate inverse; the domain check and the two compositions establish that it works as the required function.

How can known equivalence relations produce further results?

Result: The intersection of two equivalence relations is an equivalence relation

Suppose R1R_1 and R2R_2 are equivalence relations in the same set AA. Their intersection contains exactly the ordered pairs that belong to both relations. Its equivalence properties follow by applying each original relation's properties to the same elements.

  1. For every a∈Aa\in A, reflexivity gives (a,a)∈R1(a,a)\in R_1 and (a,a)∈R2(a,a)\in R_2. Hence (a,a)∈R1∩R2(a,a)\in R_1\cap R_2.
  2. If (a,b)∈R1∩R2(a,b)\in R_1\cap R_2, it lies in both relations. Symmetry in each gives (b,a)∈R1(b,a)\in R_1 and (b,a)∈R2(b,a)\in R_2, so (b,a)∈R1∩R2(b,a)\in R_1\cap R_2.
  3. If (a,b),(b,c)∈R1∩R2(a,b),(b,c)\in R_1\cap R_2, both pairs lie in each relation. Transitivity in each gives (a,c)∈R1(a,c)\in R_1 and (a,c)∈R2(a,c)\in R_2.
  4. Therefore (a,c)∈R1∩R2(a,c)\in R_1\cap R_2. The intersection is reflexive, symmetric and transitive, so it is an equivalence relation.

Why do equal function values define an equivalence relation?

Let f:X→Yf:X\to Y be any function, and define a relation on its domain by aRbaRb exactly when f(a)=f(b)f(a)=f(b). Equality of the images supplies all three equivalence properties, regardless of whether the function is injective or surjective.

  1. For every input, f(a)=f(a)f(a)=f(a). Therefore aRaaRa, proving reflexivity.
  2. If f(a)=f(b)f(a)=f(b), reversing the equality gives f(b)=f(a)f(b)=f(a). Therefore aRb⇒bRaaRb\Rightarrow bRa, proving symmetry.
  3. If f(a)=f(b)f(a)=f(b) and f(b)=f(c)f(b)=f(c), then f(a)=f(c)f(a)=f(c). Therefore aRbaRb and bRcbRc imply aRcaRc, proving transitivity.
  4. All three requirements hold on XX. The relation defined by equal images is therefore an equivalence relation.

These proofs use a common method: translate membership into its defining condition, apply a known property, and translate the resulting condition back into membership. Keep the underlying set and all three tests explicit throughout the argument.

Glossary

  • Relation — A subset of a Cartesian product specifying which ordered pairs are included.
  • Empty relation — A relation containing no ordered pairs from the Cartesian product of its underlying set.
  • Universal relation — A relation containing every ordered pair from the Cartesian product of its underlying set.
  • Reflexive relation — A relation in which every element of the underlying set is related to itself.
  • Symmetric relation — A relation in which reversing any included ordered pair produces another included ordered pair.
  • Transitive relation — A relation where two related pairs with a common middle element imply the corresponding direct pair.
  • Equivalence relation — A relation that satisfies reflexivity, symmetry and transitivity on the same underlying set.
  • Equivalence class — The subset consisting of all elements related to a chosen element under an equivalence relation.
  • Codomain — The declared target set of a function, which contains all of its images.
  • Range — The set of images actually obtained from all permitted inputs of a function.
  • Injective function — A function in which distinct elements of the domain have distinct images.
  • Surjective function — A function for which every element of the codomain has a preimage in the domain.
  • Bijective function — A function that is both injective and surjective between its stated domain and codomain.
  • Composition — The function obtained by applying one function to the output of another compatible function.
  • Inverse function — A reverse function whose compositions with the original give the identity functions on the respective sets.

Common errors and misconceptions

  • Misconception: One self-pair makes a relation reflexive. Correct: Every element of the underlying set must have its self-pair included.
  • Misconception: Symmetry means every possible ordered pair is present. Correct: Symmetry requires the reverse of each included pair; it does not require the universal relation.
  • Misconception: Transitivity follows from the presence of self-pairs. Correct: Check every applicable chain of two pairs and its required direct pair separately.
  • Misconception: A reflexive and symmetric relation is automatically an equivalence relation. Correct: Transitivity must also be established before drawing that conclusion.
  • Misconception: An onto function must assign distinct images to distinct inputs. Correct: Onto concerns coverage of the codomain; repeated images are compatible with surjectivity.
  • Misconception: The formula alone determines whether a function is onto. Correct: The declared domain and codomain matter, as the two doubling functions demonstrate.
  • Misconception: Composition can be performed in either order without changing the answer. Correct: g∘fg\circ f applies ff first, and reversing the order can change the function.
  • Misconception: Rearranging an equation alone proves invertibility. Correct: Check the reverse function's domain and both identity compositions, or establish bijectivity.

Exam-style questions with model answers

Q1. Define an equivalence relation. [2 marks]
  1. An equivalence relation on a set is a relation that is reflexive, symmetric and transitive.
  2. All three properties must hold on the stated underlying set; establishing only two of them is insufficient.
Q2. Why is f:N→Nf:\mathbb N\to\mathbb N, f(x)=2xf(x)=2x, not onto? [2 marks]
  1. The codomain contains 11. Reaching this target would require 2x=12x=1, giving x=12x=\frac12.
  2. That candidate is not a natural number, so the target has no preimage in the domain. Hence the function is not onto.
Q3. Classify R={(1,1),(2,2),(3,3),(1,2),(2,3)}R=\{(1,1),(2,2),(3,3),(1,2),(2,3)\} in {1,2,3}\{1,2,3\}. [3 marks]
  1. All required self-pairs, namely (1,1),(2,2),(3,3)(1,1),(2,2),(3,3), are present. Thus every element is related to itself, and the relation is reflexive.
  2. Although (1,2)∈R(1,2)\in R, the reversed pair (2,1)∉R(2,1)\notin R. This counterexample disproves symmetry.
  3. The included pairs (1,2)(1,2) and (2,3)(2,3) form a chain, but (1,3)∉R(1,3)\notin R. Therefore transitivity also fails. The relation is reflexive but neither symmetric nor transitive, and consequently is not an equivalence relation.
Q4. Show that f:R→Rf:\mathbb R\to\mathbb R, f(x)=2xf(x)=2x, is bijective. [3 marks]
  1. Assume f(x1)=f(x2)f(x_1)=f(x_2) for real inputs. Substituting gives 2x1=2x22x_1=2x_2. Dividing by 22 gives x1=x2x_1=x_2, proving that the function is one-one.
  2. Let yy be any real number in the codomain. Solve 2x=y2x=y to obtain x=y2x=\frac y2, which is an allowed real input.
  3. Substitution verifies f(y2)=2(y2)=yf(\frac y2)=2(\frac y2)=y. Thus every target is reached, so the function is onto. As both properties hold, it is bijective.
Q5. Prove that aRbaRb defined by 2∣(a−b)2\mid(a-b) on Z\mathbb Z is an equivalence relation, and identify its classes. [5 marks]
  1. For any integer aa, the difference a−a=0=2⋅0a-a=0=2\cdot0 is divisible by 22. Thus each integer is related to itself, proving reflexivity.
  2. If aRbaRb, write a−b=2ka-b=2k for some integer kk. Then b−a=−2k=2(−k)b-a=-2k=2(-k), which is also divisible by 22. Hence bRabRa, proving symmetry.
  3. If also bRcbRc, write b−c=2mb-c=2m for an integer mm. Adding gives a−c=(a−b)+(b−c)=2(k+m)a-c=(a-b)+(b-c)=2(k+m). The integer sum shows that aRcaRc, proving transitivity.
  4. All three properties hold, so the relation is an equivalence relation. The class [0][0] contains all even integers and [1][1] contains all odd integers. These classes are disjoint and their union is Z\mathbb Z.
Q6. For f(x)=cos⁡xf(x)=\cos x and g(x)=3x2g(x)=3x^2 on R\mathbb R, calculate both composites and show that they differ. [3 marks]
  1. Applying ff first and gg second gives (g∘f)(x)=g(cos⁡x)=3cos⁡2x(g\circ f)(x)=g(\cos x)=3\cos^2x.
  2. Applying gg first and ff second gives (f∘g)(x)=f(3x2)=cos⁡(3x2)(f\circ g)(x)=f(3x^2)=\cos(3x^2).
  3. At the common input x=0x=0, the first function gives 3cos⁡20=33\cos^2 0=3, while the second gives cos⁡0=1\cos0=1. Because these outputs differ, the composites cannot be equal functions. This example shows that composition need not commute.
Q7. Find and verify the inverse of f:N→Yf:\mathbb N\to Y, f(x)=4x+3f(x)=4x+3, where Y={4x+3:x∈N}Y=\{4x+3:x\in\mathbb N\}. [5 marks]
  1. Write the output as y=4x+3y=4x+3. Subtracting 33 and dividing by 44 gives x=y−34x=\frac{y-3}{4}. This provides the candidate reverse rule.
  2. Define g:Y→Ng:Y\to\mathbb N by g(y)=y−34g(y)=\frac{y-3}{4}. The definition of YY ensures that the quotient is a natural number for every allowed target, so the rule has the required domain and codomain.
  3. For every natural input, (g∘f)(x)=g(4x+3)=4x+3−34=x(g\circ f)(x)=g(4x+3)=\frac{4x+3-3}{4}=x. Therefore the first composition is the identity on N\mathbb N.
  4. For every y∈Yy\in Y, (f∘g)(y)=4(y−34)+3=y(f\circ g)(y)=4(\frac{y-3}{4})+3=y. Therefore the second composition is the identity on YY. Both checks succeed, so ff is invertible and f−1(y)=y−34f^{-1}(y)=\frac{y-3}{4}.
Q8. How many one-one functions map {1,2,3}\{1,2,3\} to itself? [2 marks]
  1. The first input has 33 possible images. The second has 22 unused choices, and the third has 11.
  2. Multiplication gives 3×2×1=3!=63\times2\times1=3!=6 one-one functions, each a permutation of the set.

Key takeaways

  • A relation is a subset of the appropriate Cartesian product; both the underlying sets and the membership rule matter.
  • Test reflexivity, symmetry and transitivity independently, using the precise requirements for self-pairs, reversed pairs and chains.
  • An equivalence relation satisfies all three properties and divides its underlying set into mutually disjoint equivalence classes.
  • One-one functions separate distinct inputs, while onto functions cover every element of the declared codomain.
  • The same formula can have different function classifications when its domain or codomain changes.
  • For a finite set mapped to itself, injectivity and surjectivity imply each other; infinite sets need separate treatment.
  • Composition applies the inner function first, and reversing the order can produce a different function.
  • Invertibility is equivalent to bijectivity; verify an explicit inverse by checking its domain and both identity compositions.

Test yourself

What must a reflexive relation contain?

It must contain (a,a)(a,a) for every element aa of its underlying set.

What disproves symmetry?

An included pair (a,b)(a,b) whose reverse (b,a)(b,a) is absent disproves the symmetry condition.

Which pair is required when (a,b)(a,b) and (b,c)(b,c) belong to a transitive relation?

The pair (a,c)(a,c) must also belong to the relation for that chain.

What are the classes for the even-difference relation on integers?

The two classes are the even integers and the odd integers; together they cover all integers.

When does a function's range equal its codomain?

This equality holds exactly when the function is onto, so every target has a preimage.

Which function acts first in g∘fg\circ f?

The function ff acts first; gg then acts on its output.

What are the two checks for an inverse g:Y→Xg:Y\to X of f:X→Yf:X\to Y?

Verify g∘f=IXg\circ f=I_X and f∘g=IYf\circ g=I_Y, using the stated domains for both compositions.

Does one-one imply onto for every function from natural numbers to themselves?

No. The doubling function is one-one, but the natural-number target 11 has no natural-number preimage.