The Wayback Machine - https://web.archive.org/web/20240622233638/https://www.geeksforgeeks.org/identity-matrix/
Open In App

Identity Matrix

Last Updated : 06 May, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

Identity Matrix is a square matrix whose all diagonal elements are equal to 1 and rest all elements are zero. Identity Matrix is also known as Unit Matrix. In simple terms, all diagonal elements are equal to 1 and rest are zero. The main condition for Identity matrix is that it should be a square matrix i.e. the no of rows should be equal to zero.

Identity-Matrix

Identity Matrix

Identity Matrix Definition (Unit Matrix)

A unit matrix, or identity matrix, is a square matrix whose principal diagonal elements are ones, and the rest of the elements of the matrix are zeros. An identity matrix is always a square matrix and is expressed as “I.” For example, “In” is the identity matrix of order n, i.e., it has “n” rows and columns.

It is a scalar matrix as the diagonal elements are same. When the product of any two square matrices is an identity matrix, then the matrices are said to be inverses of each other. The rank of an identity matrix of order “n × n” is n, as it has “n” linearly independent rows (or columns). The matrix given below represents an identity matrix of order “n by n.”

Identity Matrix

Unit matrix of order n × n

Examples of Identity Matrix

A square matrix P = [aij] is said to be an identity matrix when aij = 1 for i = j and aij = 0 for i ≠ j.

⇒ The matrix given below is an identity matrix of order “2 × 2.”

Example 1

⇒ The matrix given below is an identity matrix of order “3 × 3.”

Example 2

Properties of an Identity Matrix

The properties mentioned below are some important properties of an Identity Matrix: 

  • An identity matrix is always a square matrix, i.e., a matrix that has an equal number of rows and columns.
  • The determinant of an identity matrix or unit matrix is always equal to 1, i.e., |I| = 1.

|I| = 1

  • The inverse of an identity matrix or unit matrix is the identity matrix itself.

I-1 = I

  • If an identity matrix of order “n” is multiplied by itself n times, then the resultant matrix will also be a unit matrix of order n.

In = I

  • If any matrix A is multiplied by an identity matrix, then the resultant matrix is A.

AI = IA = A

  • The product of two inverse matrices is an identity matrix.

AA-1 = A-1A = I

Solved Examples on Identity Matrix

Example 1: Determine whether the given matrices are identity matrices or not.

a) A = [Tex]\left[\begin{array}{cc} 1 & 1\\ 1 & 1 \end{array}\right][/Tex]

b) B= [Tex]\left[\begin{array}{ccc} 1 & 0 & 0\\ 0 & 1 & 0\\ 0 & 0 & 1 \end{array}\right][/Tex]

Solution:

a) In matrix A, all the principal diagonal elements are ones, and the rest of the elements are also equal to 1. We know that a unit matrix, or identity matrix, is a square matrix whose all elements are zeros except the main diagonal elements, which are ones. Hence, matrix A is not an identity matrix.

b) In matrix B, all the principal diagonal elements are ones, and the rest of the elements are zeros. So, from the definition of an identity matrix, the given matrix B is an identity matrix.

Example 2: Give an example of an identity matrix that has four rows and four columns.

Solution:

The order of an identity matrix that has four rows and four columns is “4 × 4.” The matrix given below represents an identity matrix of order “4 × 4,” where all the principal diagonal elements are ones, and the rest of the elements are zeros.

I4×4 = [Tex]\left[\begin{array}{cccc} 1 & 0 & 0 & 0\\ 0 & 1 & 0 & 0\\ 0 & 0 & 1 & 0\\ 0 & 0 & 0 & 1 \end{array}\right][/Tex]

Example 3: Find the value of (p − q + r) if the matrix given below is an identity matrix.

Question 1

Solution:

If the given matrix is an identity matrix, then all its principal diagonal elements are ones, and the rest of the elements are zeros.

So, p = 1

q + 1 = 0 ⇒ q = -1

r – 2 = 0 ⇒ r = 2

Now, p − q + r = 1 −(−1) + 2

= 1 + 1 + 2 = 4

Hence, the value of (p − q + r) is 4 if matrix A is an identity matrix.

Example 4: Prove that the inverse of the identity matrix is the identity matrix itself.

Solution:

Let’s consider an identity matrix of order “2 × 2” to prove that the inverse of the identity matrix is the identity matrix itself.

I2 × 2 = [Tex]\left[\begin{array}{cc} 1 & 0\\ 0 & 1 \end{array}\right][/Tex]

We know that the inverse of a matrix A [Tex]\left[\begin{array}{cc} a & b\\ c & d \end{array}\right]   [/Tex] = Adj A/ (ad – bc)

where Adj A = [Tex]\left[\begin{array}{cc} d & -b\\ -c & a \end{array}\right][/Tex]

I-1 = 1/ (1 – 0) [Tex]\left[\begin{array}{cc} 1 & 0\\ 0 & 1 \end{array}\right][/Tex]

I-1 = [Tex]\left[\begin{array}{cc} 1 & 0\\ 0 & 1 \end{array}\right]   [/Tex] = I

Hence proved.

Example 5: For a given matrix A, prove that AI = A.

Solution:

Let’s consider a square matrix A = [Tex]\left[\begin{array}{cc} a & b\\ c & d \end{array}\right]   [/Tex] to prove that AI = A.

AI = [Tex]\left[\begin{array}{cc} a & b\\ c & d \end{array}\right] [/Tex] [Tex]\left[\begin{array}{cc} 1 & 0\\ 0 & 1 \end{array}\right]   [/Tex] 

=  [Tex]\left[\begin{array}{cc} (a\times1+b\times0) & (0\times a+b\times1)\\ (c\times1+d\times0) & (0\times c+d\times1) \end{array}\right][/Tex]

= [Tex]\left[\begin{array}{cc} (a+0) & (0+b)\\ (c+0) & (0+d) \end{array}\right][/Tex]

= [Tex]\left[\begin{array}{cc} a & b\\ c & d \end{array}\right]   [/Tex] = A

Hence, proved.

Identity Matrix – FAQs

What is an identity matrix?

A unit matrix, or identity matrix, is a square matrix whose all elements are zeros except the main diagonal elements which are ones. A square matrix P = [aij] is said to be an identity matrix when aij = 1 for i = j and aij = 0 for i ≠ j.

Is an identity matrix a scalar matrix?

A scalar matrix is a square matrix whose principal diagonal elements are equal, and the rest of the elements of the matrix are zeros. We know that an identity matrix is a square matrix whose principal diagonal elements are ones, and the rest of the elements of the matrix are zeros. So, an identity matrix or a unit matrix is a scalar matrix.

What is the determinant of an identity matrix?

The determinant of an identity matrix or unit matrix is always equal to 1, i.e., |I| = 1.

What is the rank of an identity matrix of order n?

As the identity matrix of order “n × n” has “n” linearly independent rows (or columns), its rank is n.




Similar Reads

Additive Identity vs Multiplicative Identity
Additive Identity and Multiplicative Identity are the two basic algebraic identities widely used in mathematics. Additive identity refers to a unique number which when added to any other number, it returns the same number. Multiplicative identity refers to the number which when multiplied by any number, gives back the original number. Let's know mo
6 min read
Prove the identity: (cos (X - Y))/(cosX.cosY) = 1 + tanX.tanY
Trigonometry is the relation between the angles and sides of a right-angled triangle. In a right angles triangle, there are 3 angles of which one angle is a right angle (90°) and the other two angles are acute angles and there are 3 sides. The side opposite to the right angle is called Hypotenuse. There are 6 ratios between these sides based on the
4 min read
How to ensure identity protection and confidentiality?
Identity Protection and Confidentiality are the two very important concepts of the cyber world. They are majorly concerned with our privacy and security. Identity protection is necessary in order to protect ourselves from identity theft, which everyone might have heard, is happening the most nowadays. Confidentiality is one of the concepts of Infor
12 min read
What is National Identity?
A public character is an individual's personality or feeling of having a place in at least one state or in at least one nation. It is the feeling of "a country as a firm entire, as addressed by unmistakable practices, culture, and language".A national character might allude to the emotional inclination one offers with a gathering about a country, n
3 min read
What is the Multiplicative Identity and Multiplicative Inverse of the complex number?
Complex number is the sum of a real number and an imaginary number. These numbers can be written in the form of a+ib, where a and b both are real numbers. It is denoted by z. Here in complex number form the value 'a' is called the real part which is denoted by Re(z), and 'b' is called the imaginary part Im(z). In complex number form a +bi ‘i’ is an
6 min read
Use Trigonometric Substitution and Trigonometric Identity to determine the Circumference of a Circle of Radius 3.
When any two-dimensional or three-dimensional plane is being intersected and cut then there are curves obtained, which are known as conic sections. In the case of a cone, there are two identical conical shapes, which are also known as capes. The shape of these conical shapes in the cone depends upon the angle that is opting in as a result of the cu
8 min read
Additive Identity and Inverse of Complex Numbers
Additive Inverse is one of the most fundament topics in the stream of Algebra which is a branch of mathematics that deals with variables and numbers. Additive Inverse is also an important topic under the other branches such as Number Theory and Abstract Algebra. This article deals with this concept of Additive Inverse in good detail and also the me
11 min read
Identity Property
Identity Property, also known as the Identity Element or Identity Law, is a fundamental concept in mathematics. It is used primarily in the study of groups, rings or fields in abstract algebra. Identity Property ensures that there exists a special element within a set that leaves other elements unchanged when combined with them using a defined oper
5 min read
Identity Function
An identity function is also known as an identity relation, identity map, or identity transformation. It is one of the many types of functions found in mathematics. It is a function that maps each element in a set to itself, resulting in an output that is identical to the input. In other words, an identity function ensures that each element in the
8 min read
Additive Identity Property Definition and Examples
Additive identity is a fundamental property in mathematics that states that "when we add zero to any number it results in the original number itself." This property is also called the identity property of addition. Additive Property is also called "Additive Property of Zero." In this article, we will learn about, Additive Identity, its formula, app
8 min read