"Relations and Functions" are the most important topics in algebra. Relations and functions – these are the two different words having different meanings mathematically. You might get confused about their difference. Before we go deeper, let's understand the difference between both with a simple example.
An ordered pair is represented as (INPUT, OUTPUT):
The relation shows the relationship between INPUT and OUTPUT. Whereas, a function is a relation which derives one OUTPUT for each given INPUT.
Note: All functions are relations, but not all relations are functions.

In this section, you will find the basics of the topic – definition of functions and relations, special functions, different types of relations and some of the solved examples.
What is a Function?
A function is a relation which describes that there should be only one output for each input (or) we can say that a special kind of relation (a set of ordered pairs), which follows a rule i.e every X-value should be associated with only one y-value is called a function.
For example:
DomainRange-1-31339
Let us also look at the definition of Domain and Range of a function.
DomainIt is a collection of the first values in the ordered pair (Set of all input (x) values).RangeIt is a collection of the second values in the ordered pair (Set of all output (y) values).
Example:
In the relation, {(-2, 3), {4, 5), (6, -5), (-2, 3)},
The domain is {-2, 4, 6} and range is {-5, 3, 5}.
Note: Don't consider duplicates while writing the domain and range and also write it in increasing order.
Types of Functions
In terms of relations, we can define the types of functions as:
One to one function or Injective function: A function f: P → Q is said to be one to one if for each element of P there is a distinct element of Q.
Many to one function: A function which maps two or more elements of P to the same element of set Q.
Onto Function or Surjective function: A function for which every element of set Q there is pre-image in set P
One-one correspondence or Bijective function: The function f matches with each element of P with a discrete element of Q and every element of Q has a pre-image in P.
Read here:
One To One Function
Onto Function
Bijective Function
Special Functions in Algebra
Some of the important functions are as follow:
Constant Function
Identity Function
Linear Function
Absolute Value Function
Inverse Functions
What is the Relation?
It is a subset of the Cartesian product. Or simply, a bunch of points (ordered pairs). In other words, the relation between the two sets is defined as the collection of the ordered pair, in which the ordered pair is formed by the object from each set.
Example: {(-2, 1), (4, 3), (7, -3)}, usually written in set notation form with curly brackets.
Relation Representation
There are other ways too to write the relation, apart from set notation such as through tables, plotting it on XY- axis or through mapping diagram.

Types of Relations
Different types of relations are as follows:
Empty Relations
Universal Relations
Identity Relations
Inverse Relations
Reflexive Relations
Symmetric Relations
Transitive Relations
Let us discuss all the types one by one.
Empty Relation
When there's no element of set X is related or mapped to any element of X, then the relation R in A is an empty relation, and also called the void relation, i.e R= ∅.
For example, if there are 100 mangoes in the fruit basket. There's no possibility of finding a relation R of getting any apple in the basket. So, R is Void as it has 100 mangoes and no apples.
Universal relation
R is a relation in a set, let's say A is a universal relation because, in this full relation, every element of A is related to every element of A. i.e R = A × A.
It's a full relation as every element of Set A is in Set B.
Identity Relation
If every element of set A is related to itself only, it is called Identity relation.
I={(A, A), ∈ a}.
For Example,
When we throw a dice, the total number of possible outcomes is 36. I.e (1, 1) (1, 2), (1, 3)…..(6, 6). From these, if we consider the relation (1, 1), (2, 2), (3, 3) (4, 4) (5, 5) (6, 6), it is an identity relation.
Inverse Relation
If R is a relation from set A to set B i.e R ∈ A X B. The relation R−1 = {(b,a):(a,b) ∈ R}.
For Example,
If you throw two dice if R = {(1, 2) (2, 3)}, R−1= {(2, 1) (3, 2)}. Here the domain is the range R−1 and vice versa.
Reflexive Relation
A relation is a reflexive relation iIf every element of set A maps to itself, i.e for every a ∈ A, (a, a) ∈ R.
Symmetric Relation
A symmetric relation is a relation R on a set A if (a, b) ∈ R then (b, a) ∈ R, for all a & b ∈ A.
Transitive Relation
If (a, b) ∈ R, (b, c) ∈ R, then (a, c) ∈ R, for all a,b,c ∈ A and this relation in set A is transitive.
Equivalence Relation
If a relation is reflexive, symmetric and transitive, then the relation is called an equivalence relation.
How to Convert a Relation into a Function?
A special kind of relation (a set of ordered pairs) which follows a rule i.e every X-value should be associated with only one y-value, then the relation is called a function.
Examples
Example 1: Is A = {(1, 5), (1, 5), (3, -8), (3, -8), (3, -8)} a function?
Solution: If there are any duplicates or repetitions in the X-value, the relation is not a function.
But there's a twist here. Look at the following example:

Though X-values are getting repeated here, still it is a function because they are associating with the same values of Y.
The point (1, 5) is repeated here twice and (3, -8) is written thrice. We can rewrite it by writing a single copy of the repeated ordered pairs. So, "A" is a function.
Example 2: Give an example of an Equivalence relation.
Solution:
If we note down all the outcomes of throwing two dice, it would include reflexive, symmetry and transitive relations. Then, throwing two dice is an example of an equivalence relation.
Example 3: All functions are relations, but not all relations are functions. Justify.
Solution:
Let's suppose, we have two relations given in below table
A relation which is not a functionA relation that is a functionAs we can see duplication in X-values with different y-values, then this relation is not a function.As every value of X is different and is associated with only one value of y, this relation is a function
Learn more on various Mathematical concepts with BYJU'S and enjoy practising through the most engaging videos.
Download Free PDFs of Daily Practice Problems and Worksheet for Relations and Functions Concept
Daily Practice Problems – SET 1Worksheet – SET 1
Frequently Asked Questions on Relations and Functions
Does the relation define the function?
A relation from a set P to another set Q defines a function if each element of the set P is related to exactly one element of the set Q.
What are relations in Math?
In math, a relation defines the relationship between sets of values of ordered pairs. The set of elements in the first set are called domain which is related to the set of the element in another set, which is called range.
How to determine if a relation is a function?
When each input value of a function generates one and only output, it is called a function. Here, the input values are known as domain and output values are known as the range.
How to graph a function?
If y = x + 2, is a function, then we have to put different values of x to generate y values. Here, x is the input value and y is the output value. Suppose, if x = 0, then y =2, if x = 1, then y = 3, if x = -1, then y = 1, and so on. Now plot these values in a graph and join the points.
Test your knowledge on Relations And Functions

Put your understanding of this concept to test by answering a few MCQs. Click 'Start Quiz' to begin!
Select the correct answer and click on the "Finish" button
Check your score and answers at the end of the quiz
Start Quiz
MATHS Related LinksWhat Is MathematicsProbability For Class 10Division MethodNumber PatternsProgression FormulaArea Of Triangle In Coordinate GeometryTrigonometric EquationsConvert Inches To CmCoprime Numbers ExamplesFormula Of Distance Between Two Points

CBSE Sample Papers
CBSE Sample Papers Class 8 Maths
CBSE Sample Papers Class 9 Maths
CBSE Sample Papers Class 10 Maths
CBSE Sample Papers Class 11 Maths
CBSE Sample Papers Class 12 Maths
CBSE Previous Year Question Papers
CBSE Previous Year Question Papers Class 12 Maths
CBSE Previous Year Question Papers Class 10 Maths
ICSE Sample Papers
ICSE Sample Papers Class 8 Maths
ICSE Sample Papers Class 9 Maths
ICSE Sample Papers Class 10 Maths
ISC Sample Papers Class 11 Maths
ISC Sample Papers Class 12 Maths
ICSE Previous Year Question Papers
ICSE Previous Year Question Papers Class 10
ISC Previous Year Question Papers Class 12 Maths
CBSE Sample Papers
CBSE Sample Papers Class 8 Maths
CBSE Sample Papers Class 9 Maths
CBSE Sample Papers Class 10 Maths
CBSE Sample Papers Class 11 Maths
CBSE Sample Papers Class 12 Maths
CBSE Previous Year Question Papers
CBSE Previous Year Question Papers Class 12 Maths
CBSE Previous Year Question Papers Class 10 Maths
ICSE Sample Papers
ICSE Sample Papers Class 8 Maths
ICSE Sample Papers Class 9 Maths
ICSE Sample Papers Class 10 Maths
ISC Sample Papers Class 11 Maths
ISC Sample Papers Class 12 Maths
ICSE Previous Year Question Papers
ICSE Previous Year Question Papers Class 10
ISC Previous Year Question Papers Class 12 Maths

Join BYJU'S Learning Program
Grade/Exam Class 1 Class 2 Class 3 Class 4 Class 5 Class 6 Class 7 Class 8 Class 9 Class 10 Class 11 Class 12 IAS CAT Bank Exam
Submit
1 Comment
kintu DECEMBER 7, 2020 AT 5:06 PM
very good explanation
REPLY
Leave a Comment
Your Mobile number and Email id will not be published. Required fields are marked *
*
Send OTP
*
Post Comment
COURSES
CBSE
ICSE
CAT
IAS
JEE
NEET
Commerce
JEE Main
NCERT
JEE Advanced
CBSE Sample Papers
CBSE Question Papers
EXAMS
CAT Exam
IAS Exam
UPSC Syllabus
UPSC 2021
Government Exams
Bank Exam
CLASSES
Class 1st - 3rd
Class 4th - 5th
Class 6th - 10th
Class 11th - 12th
EXAM PREPARATION
Free CAT Prep
Free IAS Prep
Maths
Physics
Chemistry
Biology
RESOURCES
Blog
Videos
All Products
DSSL
COMPANY
About Us
Contact Us
Investors
Careers
BYJU'S in Media
Students Stories - The Learning Tree
Faces of BYJU'S – Life at BYJU'S
Social Initiative - Education for All
BYJU'S APP
FREE TEXTBOOK SOLUTIONS
NCERT Solutions
NCERT Exemplar
NCERT Solutions for Class 6
NCERT Solutions for Class 7
NCERT Solutions for Class 8
NCERT Solutions for Class 9
NCERT Solutions for Class 10
NCERT Solutions for Class 11
NCERT Solutions for Class 12
RD Sharma Solutions
RS Aggarwal Solutions
ICSE Selina Solutions
STATE BOARDS
Maharashtra
Gujarat
Tamil Nadu
Karnataka
Kerala
Andhra Pradesh
Telangana
Uttar Pradesh
Bihar
Rajasthan
Madhya Pradesh
West Bengal
FOLLOW US
 
Disclaimer
Privacy Policy
Terms of Services
Sitemap
© 2021, BYJU'S. All rights reserved.
BOOK
Free Class