Relations and functions
What will we learn in this lesson?
This lesson works through Relations and functions as it appears in Class 12 Mathematics. The explanation stays close to the facts and definitions recorded for this topic: each conclusion below can be traced back to a statement made here, and nothing is taken from a textbook passage.
By the end of the lesson you should be able to:
- describe how a function is one-one if distinct elements of the domain have distinct images.
- state that the number of possible functions from a set with m elements to a set with n elements is n raised to the power m.
- describe how a function f: A → B is bijective when it is both one-one and onto.
- state that a relation that is reflexive and transitive is called a preorder.
These aims are deliberately small. Each one can be checked against a single statement in this lesson, so you can tell whether you have understood the idea rather than simply recognised the words.
Prerequisite knowledge
Before starting, make sure the following terms are familiar. They are not optional vocabulary: the rest of the lesson uses them to connect one statement to the next.
- one-one function — a function in which distinct inputs have distinct images.
- onto function — a function in which every element of the codomain is an image.
- composition — (g∘f)(x) = g(f(x)).
- identity function — a function that maps every element of a set to itself.
- bijective function — a function that is both one-one and onto.
- symmetric relation — a relation R in which (a, b) in R always implies (b, a) in R.
In short, the term one-one function means a function in which distinct inputs have distinct images; the term onto function means a function in which every element of the codomain is an image. If those two descriptions are clear, the remaining statements will read as developments of them rather than as separate facts to memorise.
If a term is still unclear, return to this short list while reading the worked sections. The aim is not to learn a definition by heart, but to know exactly which idea each word is carrying in a sentence.
A simple example from everyday experience
Start with the statements that are already known about Relations and functions. No calculation is needed at this stage; the task is simply to notice what each statement asserts and how two statements can describe the same situation from different sides.
- A function is one-one if distinct elements of the domain have distinct images. A function is onto if every element of the codomain is the image of some element of the domain. The same reasoning appears again in a slightly different form.
- A function has an inverse if and only if it is bijective. The composition (g∘f)(x) equals g(f(x)). This is the point where the algebra and the meaning of the statement meet.
- A relation is reflexive if (a, a) belongs to it for every a in the set. A function is onto if every element of its codomain has at least one pre-image in the domain. Read the two statements together before moving to a calculation.
- The number of possible functions from a set with m elements to a set with n elements is n raised to the power m. The identity function maps every element of a set to itself. A second statement gives the condition that the first one relies on.
- Two sets are equivalent if there is a bijection between them. The inverse of a function f exists only when f is one-one and onto, and it satisfies f of f inverse of x equal to x. The useful step is to keep the given quantity fixed and vary only what the statement changes.
- A relation is symmetric if (a, b) in R implies (b, a) in R, and transitive if (a, b) and (b, c) in R imply (a, c) in R. An equivalence relation is reflexive, symmetric and transitive. Neither statement contradicts the other; they describe the same result at different levels.
- A function f: A → B is bijective when it is both one-one and onto. A binary operation on a set A is a function from A × A into A. The same reasoning appears again in a slightly different form.
- A relation is antisymmetric if (a, b) and (b, a) both in R imply a = b. The identity relation on a set contains all pairs of the form (a, a). This is the point where the algebra and the meaning of the statement meet.
- The composition of two one-one functions is one-one. An equivalence relation partitions a set into disjoint equivalence classes. Read the two statements together before moving to a calculation.
- A relation that is reflexive and transitive is called a preorder. On its own this statement already gives a testable claim about Relations and functions. A second statement gives the condition that the first one relies on.
A harder example
Problem. Let f(x) = 2x + 3 and g(x) = x². Find (g∘f)(1).
The information required is already available in this lesson: the definitions above and the statements about Relations and functions. Work through the given data one step at a time rather than trying to guess the answer.
Scope. The following is deliberately not part of this lesson: Topics outside the chapter heading; Board examination papers and marking schemes. Do not import it as if it had been established here.
Step-by-step solution
Each line below does one job. Reading them in order shows where the given information enters and where the conclusion comes out.
- f(1) = 2 × 1 + 3 = 5
- (g∘f)(1) = g(5) = 25
Result. 25 Notice that the result follows from the earlier lines; it is not an extra fact brought in at the end.
Concept comparison table
The table puts the vocabulary, the common misreadings and the formal statements side by side. Use the left column as a prompt and the right column as the check.
| Term or claim | Meaning / correct form |
|---|---|
| one-one function | a function in which distinct inputs have distinct images. |
| onto function | a function in which every element of the codomain is an image. |
| composition | (g∘f)(x) = g(f(x)). |
| identity function | a function that maps every element of a set to itself. |
| bijective function | a function that is both one-one and onto. |
| symmetric relation | a relation R in which (a, b) in R always implies (b, a) in R. |
| Misconception: Every one-one function is onto. | Correct form: one-one and onto are different properties; f(x) = 2x from N to N is one-one but not onto. |
| Misconception: Composition of functions is always commutative. | Correct form: (f∘g)(x) need not equal (g∘f)(x) in general. |
| Misconception: Every reflexive relation is an equivalence relation. | Correct form: a reflexive relation is an equivalence relation only if it is also symmetric and transitive. |
Notice that the misconception rows are not extra content: each one repairs a specific misreading of the same material. This is why the table is more useful for review than a list of definitions alone.
Common mistakes
These errors are listed because each one sounds plausible until the exact wording of the definition is checked.
- Incorrect: Every one-one function is onto. Correct: one-one and onto are different properties; f(x) = 2x from N to N is one-one but not onto.
- Incorrect: Composition of functions is always commutative. Correct: (f∘g)(x) need not equal (g∘f)(x) in general.
- Incorrect: Every reflexive relation is an equivalence relation. Correct: a reflexive relation is an equivalence relation only if it is also symmetric and transitive.
- Extending the result to Topics outside the chapter heading is outside the scope recorded for this topic; the lesson gives no basis for it.
- Extending the result to Board examination papers and marking schemes is outside the scope recorded for this topic; the lesson gives no basis for it.
A reliable habit is to read the correction aloud and then point to the statement in this lesson that supports it. If you cannot point to one, the correction has not yet been understood.
Summary
- A function is one-one if distinct elements of the domain have distinct images.
- The composition (g∘f)(x) equals g(f(x)).
- The number of possible functions from a set with m elements to a set with n elements is n raised to the power m.
- The inverse of a function f exists only when f is one-one and onto, and it satisfies f of f inverse of x equal to x.
- A function f: A → B is bijective when it is both one-one and onto.
- The identity relation on a set contains all pairs of the form (a, a).
One line to remember: A function is one-one if distinct elements of the domain have distinct images. Everything else in this lesson is an application or a careful restatement of that point.
Check your understanding
Answer the three questions without looking back, then use the answers to see exactly which statement you need to revisit.
- Which statement about Relations and functions is supported by this lesson?
Answer: A function is one-one if distinct elements of the domain have distinct images.
- Complete the sentence: one-one function means …
Answer: a function in which distinct inputs have distinct images.
- A student says: “Every one-one function is onto.” How would you respond using this lesson?
Answer: one-one and onto are different properties; f(x) = 2x from N to N is one-one but not onto.
If an answer cannot be found in the statements above, it is not required by this lesson.
Definitions
- one-one function
- a function in which distinct inputs have distinct images
- onto function
- a function in which every element of the codomain is an image
- composition
- (g∘f)(x) = g(f(x))
- identity function
- A function that maps every element of a set to itself.
- bijective function
- A function that is both one-one and onto.
- symmetric relation
- A relation R in which (a, b) in R always implies (b, a) in R.
Key facts
- A function is one-one if distinct elements of the domain have distinct images.
- A function is onto if every element of the codomain is the image of some element of the domain.
- A function has an inverse if and only if it is bijective.
- The composition (g∘f)(x) equals g(f(x)).
- A relation is reflexive if (a, a) belongs to it for every a in the set.
- A function is onto if every element of its codomain has at least one pre-image in the domain.
- The number of possible functions from a set with m elements to a set with n elements is n raised to the power m.
- The identity function maps every element of a set to itself.
- Two sets are equivalent if there is a bijection between them.
- The inverse of a function f exists only when f is one-one and onto, and it satisfies f of f inverse of x equal to x.
- A relation is symmetric if (a, b) in R implies (b, a) in R, and transitive if (a, b) and (b, c) in R imply (a, c) in R.
- An equivalence relation is reflexive, symmetric and transitive.
- A function f: A → B is bijective when it is both one-one and onto.
- A binary operation on a set A is a function from A × A into A.
- A relation is antisymmetric if (a, b) and (b, a) both in R imply a = b.
- The identity relation on a set contains all pairs of the form (a, a).
- The composition of two one-one functions is one-one.
- An equivalence relation partitions a set into disjoint equivalence classes.
- A relation that is reflexive and transitive is called a preorder.
- Topics outside the chapter heading
- Board examination papers and marking schemes
Common mistakes and corrections
Common mistake
Every one-one function is onto.
Correction
One-one and onto are different properties; f(x) = 2x from N to N is one-one but not onto.
Common mistake
Composition of functions is always commutative.
Correction
(f∘g)(x) need not equal (g∘f)(x) in general.
Common mistake
Every reflexive relation is an equivalence relation.
Correction
A reflexive relation is an equivalence relation only if it is also symmetric and transitive.
Worked examples
Let f(x) = 2x + 3 and g(x) = x². Find (g∘f)(1).
f(1) = 2 × 1 + 3 = 5
(g∘f)(1) = g(5) = 25
25
Let f(x) = 2x + 1 and g(x) = x². Find (f ∘ g)(3) and (g ∘ f)(3).
(f ∘ g)(3) = f(g(3)) = f(9) = 2 × 9 + 1 = 19.
(g ∘ f)(3) = g(f(3)) = g(7) = 7² = 49.
(f ∘ g)(3) = 19 and (g ∘ f)(3) = 49.
Outside the scope of this topic
- Topics outside the chapter heading
- Board examination papers and marking schemes
Source: data/global-olgu/india/in-c12-math-relations-and-functions.json