The Wayback Machine - https://web.archive.org/web/20250317143952/https://www.geeksforgeeks.org/relations-and-functions/
Open In App

Relation and Function

Last Updated : 16 Jan, 2025
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Share
Report
News Follow

In mathematics, we often deal with sets of numbers or objects and the ways they are connected to each other. Two important concepts that help us describe these connections are relations and functions.

A relation is simply a connection between two sets of objects. Think of it as a rule that pairs elements from one set with elements from another set. For example, the relationship “is greater than” pairs numbers like 5 and 3 because 5 is greater than 3.

A function, on the other hand, is a special kind of relation. In a function, each element from the first set (called the domain) is connected to exactly unique one element in the second set (called the range). For instance, if you assign a name to each roll number in a class, that is a function because each roll number is paired with one unique name.

Some of the key concepts related to relations and functions are:

Relations in Maths

Functions in Maths

Other Important Topics

Practice for Relations and Functions

Program for Relations and Functions

Relation and Function – FAQs

Define Relation and Function.

Relation is defined between two non-empty set A and B such that Relation is a subset of A ⨯ B. Function is defined as a special relation where element of set A is uniquely related to elements of set B.

What is Domain of Relation and Function?

Domain of Relation and Function is the set of input which gives an output when undergoes a relation. Domain can also be considered as pre-image.

What is Range of Relation and Function?

Range of Relation and Function is the set of output obtained when domain undergoes a relation.

What is the Relation between Codomain and Range?

The relation between Codomain and Range is that the Range is a subset of Codomain.

How to Represent Relation and Function?

Relation and Function can be represented using Roaster Form, Set-Builder Form, Arrow Form and Lattice Form. The details have been discussed under the topic above in the article.

What is the Difference between Relation and Function?

The basic difference between Relation and Function is that in Relation pre-image can be unmapped and two or more image can have same pre-image while in case of Function the all the pre-image must have an image and no two or more image can have the same pre-image.



Next Article

Similar Reads

three90RightbarBannerImg