Relations and Functions

What is Relations and Functions Class 12: Definition & Concepts

By ConceptScroll Team · Published on 19 June 2026 · 4 min read

What is Relations and Functions Class 12? This chapter in NCERT Mathematics defines relations as connections between sets and functions as special relations with unique outputs. Understanding these concepts is crucial for Class 12 Maths exams.

Understanding Relations: Definition and Examples

A relation between two sets $A$ and $B$ is a subset of the Cartesian product $A \times B$. It pairs elements from $A$ with elements from $B$. For example, if $A = \{1, 2\}$ and $B = \{x, y\}$, then a relation $R$ could be $\{(1, x), (2, y)\}$.

Relations can be:

  • Reflexive: Every element relates to itself
  • Symmetric: If $a$ relates to $b$, then $b$ relates to $a$
  • Transitive: If $a$ relates to $b$ and $b$ relates to $c$, then $a$ relates to $c$

These properties help classify relations further, especially in equivalence relations and orderings.

Functions in Class 12: What Makes a Relation a Function?

A function is a special kind of relation where each element of the domain is related to exactly one element of the codomain. Formally, for a function $f: A \to B$, every $a \in A$ has a unique $b \in B$ such that $(a, b) \in f$.

Key terms:

  • Domain: The set $A$ from which inputs are taken
  • Codomain: The set $B$ where outputs lie
  • Range: The actual set of outputs from $A$

Example:

If $f(x) = x^2$ where $x \in \mathbb{R}$, then for every real number input, there is a unique square output. Hence, $f$ is a function.

Want to test yourself on Relations and Functions? Try our free quiz →

Types of Functions: One-One, Onto, and Many-One Explained

Functions are classified based on how elements in the domain and codomain relate:

Function TypeDefinitionExample
One-One (Injective)Different inputs map to different outputs$f(x) = 2x + 3$
Onto (Surjective)Every element in codomain is mapped by some input$f(x) = x^3$ (from $\mathbb{R}$ to $\mathbb{R}$)
Many-OneDifferent inputs may map to the same output$f(x) = x^2$

Understanding these helps in solving problems related to inverse functions and composition.

Composition of Functions: Combining Two Functions

The composition of two functions $f: A \to B$ and $g: B \to C$ is a function $g \circ f: A \to C$ defined by:

$$ (g \circ f)(x) = g(f(x)) $$

Example:

Let $f(x) = 2x$ and $g(x) = x + 3$. Then,

$$(g \circ f)(x) = g(f(x)) = g(2x) = 2x + 3$$

Composition is associative but not commutative, meaning $g \circ f \neq f \circ g$ in general.

Inverse Functions: Reversing the Mapping

An inverse function $f^{-1}$ reverses the effect of $f$. If $f: A \to B$ is one-one and onto, then $f^{-1}: B \to A$ exists such that:

$$ f^{-1}(f(x)) = x \quad \text{for all } x \in A $$

Example:

If $f(x) = 3x + 2$, then inverse $f^{-1}(y) = \frac{y - 2}{3}$.

Note: Only bijective functions have inverses.

Real-Life Applications of Relations and Functions

Relations and functions are everywhere:

  • Computer Science: Functions represent algorithms and mappings
  • Economics: Demand and supply functions
  • Physics: Functions describe motion, force, etc.
  • Daily Life: Assigning seats in a classroom (relation), calculating electricity bills (function)

Understanding these concepts helps in solving practical problems and developing logical thinking.

Frequently asked questions

What is the difference between a relation and a function?

A relation pairs elements of two sets, but a function assigns exactly one output to each input.

Can a function have more than one output for an input?

No, by definition, each input in a function has only one unique output.

What is the domain and range of a function?

Domain is the set of all inputs, and range is the set of all actual outputs of the function.

How do you find the inverse of a function?

To find the inverse, solve the function equation for $x$ in terms of $y$ and swap variables.

Are all functions invertible?

No, only bijective (one-one and onto) functions have inverses.

What is the composition of functions?

Composition applies one function to the result of another, written as $(g \circ f)(x) = g(f(x))$.

Ready to ace this chapter?

Get the full Relations and Functions chapter — interactive notes, diagrams, worked solutions, polls and a free practice quiz — in the ConceptScroll app.

Open in ConceptScroll →

Study smarter with ConceptScroll

Daily NCERT-aligned reels, AI doubt solving and chapter quizzes — all free.

Start learning free