Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Difference Between Relation and Function: Simple Guide

ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon
SearchIcon
widget title icon
Latest Updates

widget icon
Start Your JEE Practice Here :
JEE Test Series 2026

How do relations and functions compare? Understand definitions, types, and real-life examples for better learning.

The Difference Between Relation And Function is a fundamental concept in algebra and set theory that helps students understand how elements between two sets can be associated. Distinguishing between a relation and a function is vital for analyzing mappings, resolving equations, and building rigorous mathematical arguments.


Academic Perspective on Relations in Mathematics

In mathematics, a relation from set A to set B is any subset of the Cartesian product A × B, consisting of ordered pairs where the first element is from A and the second is from B.


Relations may have any pattern, with one or more elements of A associated with any number of elements in B, without restrictions on uniqueness or repetition. 


$R \subseteq A \times B$


Mathematical Meaning of Functions

A function is a specific type of relation from set A to set B where every element of A (domain) is associated with exactly one element in B (codomain).


This unique mapping ensures that no element in the domain is left unmapped, and no element has multiple outputs. Learn more from Functions And Its Types.


$f: A \to B$, such that for each $a \in A$, there exists a unique $b \in B$ with $f(a) = b$


Comparative Table: Relation vs Function

Relation Function
Any subset of the Cartesian product A × BA specific relation with unique mapping
Ordered pairs can repeat first elementsFirst element appears only once
An input may have multiple outputsEach input has only one output
Not all domain elements require mappingAll domain elements must be mapped
Can represent diverse associationsRepresents functional relationships only
Allows ambiguity in mappingNo ambiguity in mapping
May not satisfy function definitionAlways a relation by definition
Graph may fail vertical line testGraph passes the vertical line test
Domain can be any subset of ADomain is exactly set A
No restrictions on value assignmentsOne unique value per assignment
Examples: {(1,2),(1,3),(2,3)}Examples: {(1,2),(2,3),(3,4)}
Used in equivalence and order relationsUsed in algebra, calculus, analysis
Can be reflexive, symmetric, etc.Can be injective, surjective, bijective
Range can be any subset of codomainRange is determined by the mapping
No “function rule” requiredTypically described by a specific rule
Inverse not always definedInverse exists if function is bijective
May have multiple pairs for one inputEach input has exactly one pair
Represented as R ⊆ A × BRepresented as f: A → B
More general conceptSpecial case of a relation
Applications in classification, logicApplications in modeling, computations

Core Distinctions Highlighted

  • Relation is any mapping, function is unique mapping
  • Every function is a relation, not vice versa
  • Functions require each input to have one output
  • Relations permit a single input with multiple outputs
  • Functions always have the full domain mapped

Illustrative Mathematical Examples

Consider set A = {1, 2}, B = {a, b}. The relation R = {(1, a), (1, b)} is not a function because 1 maps to both a and b. 


For the same sets, the relation f = {(1, a), (2, b)} is a function because each element in A is paired with exactly one element in B.


Uses in Algebra and Other Mathematical Domains

  • Relations classify objects or elements by association
  • Functions model mathematical operations and processes
  • Functions are essential in calculus and analysis
  • Relations support the study of equivalence and order
  • Functions enable solution of equations and modeling

Concise Comparison

In simple words, a relation establishes any association between two sets, whereas a function ensures every input in the domain matches exactly one output in the codomain.


Competitive Exams after 12th Science
tp-imag
bottom-arrow
tp-imag
bottom-arrow
tp-imag
bottom-arrow
tp-imag
bottom-arrow
tp-imag
bottom-arrow
tp-imag
bottom-arrow

FAQs on Difference Between Relation and Function: Simple Guide

1. What is the difference between a relation and a function?

Relation is a set of ordered pairs, while a function is a special type of relation with every input linked to exactly one output.

  • A relation may map an input to multiple outputs.
  • A function always maps each input to one and only one output.
  • All functions are relations, but not all relations are functions.
  • Example: Relation: {(2, 3), (2, 4)}; Function: {(2, 3), (3, 4)}
Understanding this distinction is crucial for exam preparation and mathematical concepts alignment.

2. Define relation with an example.

Relation is a set of ordered pairs showing any association between two sets.

  • Example: Let A = {1, 2} and B = {3, 4}. A possible relation R from A to B is R = {(1, 3), (2, 4)}.
This topic is central to CBSE syllabus and foundational mathematics.

3. Define function with an example.

Function is a relation where each input has only one output.

  • Example: Consider f : A → B, A = {1, 2}, B = {5, 6}. If f = {(1, 5), (2, 6)}, it's a function as each input from A maps to only one output in B.
This definition aligns with CBSE exam pattern and syllabus expectations.

4. What are the key properties of a function?

Functions have specific properties that distinguish them from relations:

  • Every input (domain element) has exactly one output (codomain element).
  • No input is mapped to more than one output.
  • Functions may be one-one (injective), onto (surjective), or both (bijective), as per syllabus.
Understanding these helps in solving related problems for exams.

5. How can you identify if a relation is a function?

A relation is a function if every input has only one output.

  • Check the ordered pairs: No two pairs should have the same first element with different second elements.
  • If a value in the domain is paired with more than one value in the codomain, it is not a function.
This process is frequently tested in CBSE board exams.

6. Can every function be called a relation?

Yes, every function is a relation, but not all relations are functions.

  • A function is a special kind of relation with unique outputs for each input.
  • All functions fulfill the definition of a relation.
This distinction is highlighted in syllabus definitions and exam questions.

7. Give an example of a relation that is not a function.

Example: The relation R = {(1, 2), (1, 3)} is not a function.

  • Here, the input '1' is mapped to both '2' and '3'.
  • Thus, the rule of unique mapping for functions is broken.
This example is important for exam preparations.

8. What are the types of functions as per the CBSE syllabus?

Common types of functions according to the CBSE syllabus include:

  • One-one function (Injective) – Every element of the range is paired with only one element of the domain.
  • Onto function (Surjective) – Every element of the codomain has a preimage in the domain.
  • Many-one function – Two or more domain elements map to the same range element.
  • Constant function – Every element of the domain maps to the same element in the range.
These types are frequently asked in exams.

9. How do you represent a function mathematically?

A function is often represented as f: A → B, where each element of set A (domain) maps to one element of set B (codomain).

  • For example, if f(x) = x + 2 and A = {1,2}, then f(1)=3, f(2)=4.
This representation is key in CBSE mathematics.

10. Why are functions important in mathematics?

Functions provide a systematic way to describe how one quantity depends on another.

  • They help model real-world relationships.
  • They form a basis for advanced topics like calculus, algebra, and more.
  • The concept is widely used in CBSE examinations for problem solving.
Understanding functions is crucial for mathematical reasoning and success in exams.