Difference Between Rational and Irrational Number

# Difference Between Rational and Irrational Number

Vikram Singh
Assistant Manager - Content
Updated on Jul 30, 2024 16:12 IST

Want to explore the difference between Rational and Irrational Numbers or look for the solution to whether pi is a rational number or an irrational number? Then, this blog is for you.

Numbers are an integral part of our lives that are used to quantify, measure, and calculate everything from the amount of time we spend on our smartphones to the distance between two celestial bodies. But all these numbers are different.

In mathematics, numbers are broadly classified into real and complex numbers, and real numbers are further classified as rational or irrational; understanding the difference between them is fundamental to many mathematical concepts and calculations.

One of the most confusing questions asked to check whether you are familiar with rational and irrational numbers is:

## "Is pi a rational or irrational number?"

Let's explore the difference between them.

Table of Content

## Difference Between Rational Number and Irrational Number

 Parameter Rational Number Irrational Number Definition A number of the form p/q, where p and q are integers, and q is not equal to 0. A number that can not be expressed as p/q (i.e., the ratio of two numbers) Nature Rational numbers are generally finite or recurring in nature. Irrational numbers are non-terminating and non-repeating in nature. Countability Countable Uncountable Arithmetic Operation When arithmetic operations are performed over two rational numbers, the result is always a rational number. When arithmetic operations are performed over two irrational numbers, the result may or may not be irrational. Example 22/7, 3.14, 1 pi, e, 3.1415926……
Difference between Eigenvalue and Eigenvector
Let A be a square matrix of order ‘n-by-n.’ A scalar k is called a eigenvalue of A, if there exist a non-zero vector v satisfying Av = kv, then...read more
Difference Between Rational and Irrational Number
Numbers are an integral part of our lives that are used to quantify, measure, and calculate everything from the amount of time we spend on our smartphones to the distance...read more
Difference between Permutation and Combination
In mathematics, Permutation and Combination are one of the most confusing topics as they are closely related. Permutation counts the number of different arrangements from n objects; on the other...read more

## What is a Rational Number?

A number that can be expressed as a fraction of two integers (where the denominator is not equal to zero) is called a rational number. In simple terms, any number that can be expressed as p/q, where p and q are integers, and q is not equal to zero, is known as a rational number.

A rational number can also be expressed as a decimal expression, but these decimal expressions must be terminated or repeated.

Example: 22/7, 3.45, 3.14145

Note: Integers, natural numbers, and whole numbers are subsets of the rational number.

Linear Programming Problem (LPP)
Linear Programming problem or LPP is a method to find the optimum solution of set of parameters that are represented in linear form. In this article, we will discuss all...read more
Transportation Problem: Definition, Formulation, and Types
Transportation problems are used to find the minimum cost of transportation of goods from m source to n destination. In this article we will learn transportation problem, formulation, types and...read more
The Mean Value Theorem in Data Science: A Comprehensive Guide
Mean value theorem or Lagrange mean value theorem states that if f(x) is a continuous and differentiable function over an interval (a, b), then there exists at least one c...read more

### Properties of a Rational Number

If a, b, and c are three rational numbers, then

• Closure:  Rational numbers are closed under addition, subtraction, multiplication, and division, i.e., a + b, a - b, a * b, and a/b belonging to a rational number.
• Commutativity:
• a + b = b + a
• a * b = b * a
• Associativity
• a + (b + c) = (a + b) + c
• a * (b * c) = (a * b) * c
• Identity: Rational numbers have additive and multiplicative identities, which are 0 and 1, i.e.,
• a + 0 = 0 + a = a
• a * 1 = a = 1 * a
• Inverse: Rational numbers have additive and multiplicative Inverse.
• Additive inverse of a/b is -a/b
• Multiplicative Inverse of a/b is b/a.
• Distributive
• a * (b + c) = a * b + a * c
• (a + b) * c = a * c + b * c

Note: One of the most important properties of a rational number is that it is dense in nature, i.e., Between two rational numbers, an irrational number always exists. This property helps to approximate the irrational number with the help of a rational number to the desired degree of accuracy.

Difference Between Scalars and Vectors
A physical quantity with magnitude and no direction is known as a scalar quantity, and a physical quantity with magnitude and direction is known as a vector quantity. In this...read more
How Vectors are Used in Machine Learning
Vectors are mathematical objects that contain both magnitude and direction, and they can be represented by the directed line segments (lines having directions) whose lengths are their magnitude. It is...read more
Cross Product of two Vectors
Cross product is a binary operation (multiplication) that is performed on two vectors, and the resultant vector is perpendicular to both the given vectors. In this article, we will discuss...read more

## What is an Irrational Number?

A number that can’t be expressed as a fraction of two integers, in simple terms, any real number that is not rational is irrational. Irrational numbers are generally expressed as non-terminating and non-repeating decimals.

Example: sqrt(2), pi, e (euler coefficient)

### Properties of an Irrational Number

• Addition and Subtraction of two irrational numbers may or may not be irrational.

Example:

1. sqrt(2) + sqrt(2) = 2sqrt(2)
2. (2 + sqrt(2)) + (2 - sqrt(2)) = 4
3. Multiplication of two irrational numbers may or may not be an irrational number.

Example:

sqrt(2) * sqrt(3) = sqrt(6)

sqrt(2) * sqrt(2) = 2

• Irrational numbers are uncountable, i.e., infinitely many rational numbers that can't be listed in a finite sequence.
• Similar to rational numbers, irrational numbers can be expressed as decimal numbers, but these decimals are non-terminating and non-repeating.
• Many irrational numbers (Such as pi, e, etc) are not the solution to any polynomial equation with rational coefficients, i.e., many irrational numbers are transcendental.
Function in Mathematics: Definition, Types, and Examples
A relation from a non-empty set A to a non-empty set B is said to be a function from A to B if and only if every element of the...read more
Understanding Set Theory – What, Where, Why, and How do we use it in Data Science
Set in mathematics is a well-defined collection of objects that doesn’t vary from person to person. In this article, we will briefly discuss set theory, its representation, subset, cardinality, union...read more
Taylor Series Approximation: Definition, Formula, and Example
Let f(x) be a continuous and infinitely differentiable function (i.e., a function that can be differentiated infinite times), then the taylor series of f(x) is a series expansion of f(x) about a point x = a. In...read more

## Key Difference Between Rational and Irrational Numbers

• Rational numbers can be expressed as fractions of two integers, while irrational numbers can not.
• Rational numbers can be expressed as terminating and repeating decimals, whereas irrational numbers have infinite non-repeating decimal representation.
• Irrational numbers are uncountable, while rational numbers are countable.
• Arithmetic operations over a rational number are always rational, whereas when we perform an arithmetic operation over an irrational number may or may not be irrational.

Until now, we clearly understand rational and irrational numbers, so it’s time to discuss the elephant in the room.

## Is pi a rational and irrational number?

pi is the ratio of the circumference of a circle and the diameter of a circle. It is a constant value that is equal to 3.14159265359…… which is a non-terminating and non-repeating decimal form. Hence, pi is an irrational number.

We often get confused with the popular approximation of pi, i.e., 22/7, which is a rational number. But keep in mind this is not the actual value of pi. 22/7 is a rational number that is close to the actual value but not exact.

Conclusion

In conclusion, rational and irrational numbers are two different types of real numbers. A rational number can be expressed as a fraction, whereas an irrational number can not be expressed in fraction form. In this article, we have discussed what a rational number is, what an irrational number is, and the difference between them. Later in the article, we also discussed whether pi is a rational number or an irrational number.

Hope you will like the article.
Keep Learning!!

Keep Sharing!!

Difference Between Distance and Displacement
Distance and Displacement are two important concepts in Physics as well as Mathematics. Distance is the total length of an object’s path; it is a scalar quantity. In contrast, Displacement...read more
Difference Between Scalars and Vectors
A physical quantity with magnitude and no direction is known as a scalar quantity, and a physical quantity with magnitude and direction is known as a vector quantity. In this...read more
How Vectors are Used in Machine Learning
Vectors are mathematical objects that contain both magnitude and direction, and they can be represented by the directed line segments (lines having directions) whose lengths are their magnitude. It is...read more
Differential Calculus for Data Science
Differentiation is the process of finding the derivative of a function. The derivative of a function measures the rate of change of a function. In this article, we will discuss...read more
Understanding Set Theory – What, Where, Why, and How do we use it in Data Science
Set in mathematics is a well-defined collection of objects that doesn’t vary from person to person. In this article, we will briefly discuss set theory, its representation, subset, cardinality, union...read more
Cross Product of two Vectors
Cross product is a binary operation (multiplication) that is performed on two vectors, and the resultant vector is perpendicular to both the given vectors. In this article, we will discuss...read more
Transpose of a Matrix
Transpose of a matrix is a matrix flipped over its main diagonal, switching the matrix’s rows and column indices. In this article, we will briefly discuss what transpose of a...read more
In Machine Learning Algorithms, we use distance metrics such as Euclidean, Manhattan, Minkowski, and Hamming.
In this article, we will briefly discuss one such metric, i.e., Manhattan Distance.
A skew-symmetric matrix is a square matrix whose transpose is equal to its negative. In other words, it is a matrix that satisfies the condition A^T = -A. This type...read more

## FAQs of Difference Between Rational Number and Irrational Number

What is Rational Number?

A number that can be expressed as a fraction of two integers (where the denominator is not equal to zero) is called a rational number. In simple terms, any number that can be expressed as p/q, where p and q are integers, and q is not equal to zero, is known as a rational number.

A rational number can also be expressed as a decimal expression, but these decimal expressions must be terminated or repeated.

Example: 22/7, 3.45, 3.14145

Note: Integers, natural numbers, and whole numbers are subsets of the rational number.

What is Irrational Number?

A number that can’t be expressed as a fraction of two integers, in simple terms, any real number that is not rational is irrational. Irrational numbers are generally expressed as non-terminating and non-repeating decimals.

Example: sqrt(2)pie (euler coefficient)

What are the properties of Rational Number?

If a, b, and c are three rational numbers, then

• Closure:  Rational numbers are closed under addition, subtraction, multiplication, and division, i.e., a + b, a - b, a * b, and a/b belonging to a rational number.
• Commutativity:
• a + b = b + a
• a * b = b * a
• Associativity
• a + (b + c) = (a + b) + c
• a * (b * c) = (a * b) * c
• Identity: Rational numbers have additive and multiplicative identities, which are 0 and 1, i.e.,
• a + 0 = 0 + a = a
• a * 1 = a = 1 * a
• Inverse: Rational numbers have additive and multiplicative Inverse.
• Additive inverse of a/b is -a/b
• Multiplicative Inverse of a/b is b/a.
• Distributive
• a * (b + c) = a * b + a * c
• (a + b) * c = a * c + b * c

What are the different properties of Rational Number?

• Addition and Subtraction of two irrational numbers may or may not be irrational.

Example:

1. sqrt(2) + sqrt(2) = 2sqrt(2)
2. (2 + sqrt(2)) + (2 - sqrt(2)) = 4
3. Multiplication of two irrational numbers may or may not be an irrational number.

Example:

sqrt(2) * sqrt(3) = sqrt(6)

sqrt(2) * sqrt(2) = 2

• Irrational numbers are uncountable, i.e., infinitely many rational numbers that can't be listed in a finite sequence.
• Similar to rational numbers, irrational numbers can be expressed as decimal numbers, but these decimals are non-terminating and non-repeating.
• Many irrational numbers (Such as pi, e, etc) are not the solution to any polynomial equation with rational coefficients, i.e., many irrational numbers are transcendental.

What is the difference between Rational and Irrational Number?

 Parameter Rational Number Irrational Number Definition A number of the form p/q, where p and q are integers, and q is not equal to 0. A number that can not be expressed as p/q (i.e., the ratio of two numbers) Nature Rational numbers are generally finite or recurring in nature. Irrational numbers are non-terminating and non-repeating in nature. Countability Countable Uncountable Arithmetic Operation When arithmetic operations are performed over two rational numbers, the result is always a rational number. When arithmetic operations are performed over two irrational numbers, the result may or may not be irrational. Example 22/7, 3.14, 1 pi, e, 3.1415926……

How can I identify a rational number?

To identify a rational number, check if it is written as a fraction of two integers. If it can, it is rational. For example, sqrt(3) cannot be expressed as a fraction.

How can I identify an irrational number?

An irrational number will have a decimal expansion that goes on forever without repeating. If you cannot express a number as a fraction of two integers, it is likely irrational. For example, sqrt(3) can not be expressed as a fraction.

What are some common examples of irrational numbers?

Examples of irrational number includes:pi, euler number, square root of non-perfect square, such as sqrt(3) and sqrt(5).

Is the sum of a rational and an irrational number rational or irrational?

The sum of a rational number and an irrational number is always irrational. For example, 2 + sqrt(3) is irrational.

What about the product of a rational and an irrational number?

The product of rational number an irrational number is always an irrational number .for example 3 x sqrt(3).

Vikram Singh
Assistant Manager - Content

Vikram has a Postgraduate degree in Applied Mathematics, with a keen interest in Data Science and Machine Learning. He has experience of 2+ years in content creation in Mathematics, Statistics, Data Science, and Mac... Read Full Bio