The Wayback Machine - https://web.archive.org/web/20240626140934/https://www.geeksforgeeks.org/relation-in-maths/
Open In App

Relations in Mathematics

Last Updated : 17 Jun, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

Relation in mathematics is defined as the well-defined relationship between two sets. The relation connects the value of the first set with the value of the second set. We represent relation in mathematics using the ordered pair. If we are given two sets Set X and Set Y then the relation between them is represented using the ordered pair (x, y) such that, x Ïĩ X and y Ïĩ Y.

Relations are used in mathematics, statistics, and data sciences. It is an integral part of RDBMS (Relational Database Management Systems) used to search, store, and sort large data.

In this article, we will learn about, Relation in Mathematics, Example of Relation, Types of Relation, and others in detail.

What is Relations?

Relation in Mathematics is defined as the relationship between two sets. If we are given two sets set A and set B and set A has a relation with set B then each value of set A is related to a value of set B through some unique relation. Here, set A is called the domain of the relation, and set B is called the range of the relation.

For example if we are given two sets, Set A = {1, 2, 3, 4} and Set B = {1, 4, 9, 16} then the ordered pair {(1, 1), (2, 4), (3, 9), (4, 16)} represents the relation defined as, R, A: → B {(x, y): y = x2: y Ïĩ B, x Ïĩ A}.

Relations Definition

Relation is defined as the relation between two different sets of information. Suppose we are given two sets containing two different values then a relation defined such that it connects the value of the first set with the value of the second set is called the relation.

Suppose we are given a set A that contains the name of girls of a class and another set B that contains the height of girls then a relation connects set A with set B. In mathematical terms, we can say that,

“A set of ordered pairs is a relation”

Relations Examples

Examples of relation in mathematics include,

Suppose there are two sets X = {4, 36, 49, 50} and Y = {1, -2, -6, -7, 7, 6, 2}. A relation R states that

“(x, y) is in the relation R if x is a square of y” can be represented using ordered pairs,

  • R = {(4, -2), (4, 2), (36, -6), (36, 6), (49, -7), (49, 7)}

Also, the image added below shows two sets A and B, and the relation between them,

Set A = {x, y, z}

Set B = {1, 2, 3}

Relation Example

Representation of Relations

In mathematics or in set theory we can represent the relation using different techniques and the two important ways to represent the set are,

  • Set Builder Notation
  • Roaster Notation

Let’s study them in detail in the article below,

Set Builder Notation

if are relation between two sets is represented using the logical formula then this type of representation is called the set builder notation.

For example, if we are given two sets set X = {2, 4, 6} and set Y = {4, 8, 12}. Then after observing clearly, we can see that each element of set Y is twice each element of set X the relation between them is,

  • R {(a, b): b is twice of a, a ∈ X, b ∈ Y}

Roaster Form

Roaster form is another way of representing a relation. In roaster form, we use ordered pairs to represent the relation.

For example, if we are given two sets set X = {2, 4, 6} and set Y = {4, 8, 12}. Then the relation between set X and set Y is represented using the relation R such that,

  • R = {(2, 4), (4, 8), (6, 12)}

Sets and Relations

Sets are the values that are arranged collectively. And relations are relationship that connects the values of two sets. So sets and relations are connected to each other. For example, if we are given two sets

  • Set A = {-2, -1, 0, 1, 2}
  • Set B = {2, 3, 4, 5, 6}

Then the relation that connects the two sets, set A and set B,

R = {(-2, 2), (-1, 3), (0, 4), (1, 5), (2, 6)}

Types of Relation

Various types of relations defined in mathematics are,

Now let’s learn about them in detail.

Empty Relation

A relation R on a set A is called Empty if the set A is an empty set, i.e. any relation where no element of set A is not related to the element of set B then it is called an empty relation. For example, A = {1, 2, 3} and B = {5, 6, 7} where, R = {(x, y) where x + y = 22}, then it is an empty relation.

Reflexive Relation

A relation R on a set A is called reflexive if (a, a) ∈ R holds for every element a∈ A . i.e. if set A = {a, b} then R = {(a, a), (b, b)} is reflexive relation.

For example, A = {2, 3} then the reflexive relation R on A is,

  • R = {(2, 2), (3, 3)}

Symmetric Relation

A relation R on a set A is called symmetric if (b, a) ∈ R holds when (a, b) ∈ R i.e. The relation R = {(a, b), (b, a)} is a reflexive relation on (a, b)

For example, A = {2, 3} then symmetric relation R on A is,

  • R = {(2, 3), (3, 2)}

Transitive Relation

A relation R on a set A is called transitive if (a, b) ∈ R and (b, c) ∈ R then (a, c) ∈ R for all a,b,c ∈  A i.e.

For example, set A = {1, 2, 3} then transitive relation R on A is,

  • R = {(1, 2), (2, 3), (1, 3)}

Equivalence Relation

A relation is an Equivalence Relation if it is reflexive, symmetric, and transitive. i.e. relation R = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 1), (2, 3), (3, 2), (1, 3), (3, 1)} on set A = {1, 2, 3} is equivalence relation as it is reflexive, symmetric, and transitive.

Universal Relation

Universal relation is a relation in which all elements of set are mapped to other element of set then it is called universal relation. For example, A = {4, 8, 12} and B = {1, 2, 3} then universal relation is, R = {(x, y) where x > y}

Identity Relation

Identity relation is a relation defined such all elements in a set are related to itself. It is defined as, I = {(x, x) : for all x ∈ X}.

For example P = {1, 2, 3} then Identity Relation(I) = {(1, 1), (2, 2), (3, 3)}

Inverse Relation

A relation is called the inverse of any relation if elements of one set is inverse pair of another set. Inverse of a relation R is denoted as R-1. i.e., R-1 = {(y, x): (x, y) ∈ R}.

Graphing Relations

Relations can be easily represents on the graphs and representing them on graphs is an easy way of explaining them. The ordered pair in a relation represents a coordinate that can be plot on cartesian coordinate system. We can easily graph the relation by following the steps added below,

  • Substitue x with random numerical values in the relation.
  • Find the corresponding y value of the respective x value.
  • Write the ordered pair such that, {(x, y)}
  • Plot these points and join them to find the required curve.

The graph of the relation y = x2 is added below,

parabolic-function

Articles related to Relations in Mathematics:

Relations Class 12

Relations and Functions are fundamental concepts in mathematics, especially for higher-level courses like Calculus and Linear Algebra. In Class 12, you’ll delve deeper into these concepts to understand how objects relate to each other and how functions map elements from one set to another.

Resources on Relations Class 12:

Examples on Relations

Example 1: Find the inverse relation of R = {(1, 3), (2, 4), (3, 5)}

Solution:

Inverse relation is defined as R-1 = {(y, x): (x, y) ∈ R}

Given,

R = {(1, 3), (2, 4), (3, 5)}

Inverse relation of R is R-1 then,

  • R-1 = {(3, 1), (4, 2), (5, 3)}

Example 2: Find the inverse relation of R = {(a, x), (b, y), (c, z)}

Solution:

Inverse relation is defined as R-1 = {(y, x): (x, y) ∈ R}

Given,

R = {(a, x), (b, y), (c, z)}

Inverse relation of R is R-1 then,

  • R-1 = {(x, a), (y, b), (z, c)}

Practice Questions on Relations in Mathematics

Q1. Check wether the relation R = {(a, b), (b, c), (c, a), (a, a)} is Equivalence relation on set A = {a, b, c}

Q2. Check wether the relation R = {(1, 1), (1, 3), (1, 1), (2, 2)} is Equivalence relation on set A = {1, 2, 3}

Q3. Find the inverse of the relation R = {(1, 1), (2, 4), (3, 9)}

Q4. Find the inverse of the relation R = {(2, 6), (3, 7), (5, 9)}

Relations in Mathematics – FAQs

What is Relations in Math?

Relation in maths is a relationship between two sets that represents how the value of the first set is connected to the value of the second set.

What are the Types of Relation?

Relations between two sets are of various types and some of them are added below,

  • Empty Relation
  • Reflexive Relation
  • Symmetric Relation
  • Transitive Relation
  • Equivalence Relation
  • Universal Relation
  • Identity Relation
  • Inverse Relation

What is Relations Class 11?

Relation is introduced to students in class 11 in set theory and a relation R in mathematics is defined as the subset of the cartesian product of X × Y, where X and Y are two non-empty sets.

What are Properties of Relations?

Various properties of the relation are,

  • Reflexive Property
  • Symmetric Property
  • Transitive Property

All these properties are explained in the article above.

What is a Null Relation?

An empty relation in mathematics also called the null relation is a relation where no element of the first set is mapped with the element of the second set.

Is a Relation a Function?

A relation may or may not be a function. A function is a unique relation in which each element of set A is uniquely related to the element of set B which is not the case in Relation. So we can say that each function is a relation but not every relation is a function.

Which Relation is Not a Function?

A relation on two sets set A and set B is not a function if one element of set A is linked with more than one value of set B then it is a relation but not a function example, R {(-1, 1), (1, 1)} is a relation but not a function.



Previous Article
Next Article

Similar Reads

Discrete Mathematics | Types of Recurrence Relations - Set 2
Prerequisite - Solving Recurrences, Different types of recurrence relations and their solutions, Practice Set for Recurrence Relations The sequence which is defined by indicating a relation connecting its general term an with an-1, an-2, etc is called a recurrence relation for the sequence. Types of recurrence relations First order Recurrence relat
4 min read
Discrete Mathematics | Representing Relations
Prerequisite - Introduction and types of Relations Relations are represented using ordered pairs, matrix and digraphs: Ordered Pairs - In this set of ordered pairs of x and y are used to represent relation. In this corresponding values of x and y are represented using parenthesis. Example: {(1, 1), (2, 4), (3, 9), (4, 16), (5, 25)} This represent s
2 min read
Number of possible Equivalence Relations on a finite set
An equivalence relation is Reflexive, Symmetric and Transitive. Before counting the number of possible equivalence relations on a set |A|=n, let us see an example of a equivalence relation and identify Equivalence Classes in it. Let A = {1, 2, 3, 4} be a set and R = {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (3, 4), (4, 3), (4, 4)} be an equivalence
4 min read
How to solve time complexity Recurrence Relations using Recursion Tree method?
The Recursion Tree Method is a way of solving recurrence relations. In this method, a recurrence relation is converted into recursive trees. Each node represents the cost incurred at various levels of recursion. To find the total cost, costs of all levels are summed up. Steps to solve recurrence relation using recursion tree method: Draw a recursiv
3 min read
Minimum Relations Satisfying First Normal Form (1NF)
A relation that does not contain any composite or multivalued attribute, then the relation is in its First Normal Form. Relations that contain a single-valued attribute comes under First Normal Form. In this article, we will be going to discuss the minimum relations satisfying the First Normal Form. Before proceeding to First Normal Form, let's dis
4 min read
Different types of recurrence relations and their solutions
In this article, we will see how we can solve different types of recurrence relations using different approaches. Before understanding this article, you should have idea about recurrence relations and different method to solve them (See : Worst, Average and Best Cases, Asymptotic Notations, Analysis of Loops). Type 1: Divide and Conquer Recurrence
3 min read
Closure of Relations
Prerequisite : Introduction to Relations, Representation of Relations Combining Relations : As we know that relations are just sets of ordered pairs, so all set operations apply to them as well. Two relations can be combined in several ways such as - Union - [Tex]R_{1} \cup R_{2}[/Tex] consists of all ordered pairs from both relations. Duplicate or
7 min read
Finding the candidate keys for Sub relations using Functional Dependencies
We know how to find candidate keys for a relation already, you can check here Finding Attribute Closure and Candidate Keys using Functional Dependencies. But here we will learn to find out the candidate keys for a sub relation which is a little bit different from that of finding out candidate keys for a relation. Let see how to find it. What is Fun
4 min read
Mathematics | Probability
Probability refers to the extent of occurrence of events. When an event occurs like throwing a ball, picking a card from a deck, etc., then there must be some probability associated with that event. In terms of mathematics, probability refers to the ratio of wanted outcomes to the total number of possible outcomes. There are three approaches to the
9 min read
Mathematics | Covariance and Correlation
Covariance and Correlation are two mathematical concepts which are commonly used in the field of probability and statistics. Both concepts describe the relationship between two variables. Covariance - It is the relationship between a pair of random variables where change in one variable causes change in another variable. It can take any value betwe
2 min read