Identity Matrix


Identity matrices are presented along with their properties including examples and exercises and their detailed solutions.

Definition of the Identity Matrix

An identity matrix is a square matrix with all diagonal entries equal to 1 and all other entries equal to zero.
These are examples of identity matrices of dimensions 1 × 1 ,    2 × 2 ,    3 × 3 ,    4 × 4 ...
Column of Matrix
One of the most important properties of the identity matrices is that the product of a square matrix A of dimension n × n with the identity matrix In is equal to A .

A In = In A = A

The identity matrix is used to define the inverse of a matrix . Matrices A and B , of dimensions n × n , are inverse of each other, if

A B = B A = In

Properties of the Identity Matrices

In what follows, A is a matrix of dimension n × n .
Some of the most important properties of the identity matrices are given below.

  1.    The product of an identity matrix In by a square matrix A is equal to A .

    A In = In A = A

  2.    The product of an identity matrix In by itself is equal to itself.

    In In ... In = In

  3.    The product of a square matrix A by its inverse A-1 is equal to the identity matrix In.

    A A-1 = A-1 A = In

  4.    The inverse of the identity matrix In is equal to In.

    In-1 = In

  5.    The transpose of the identity matrix In is equal to In.

    InT = In

  6.    The identity matrix is an orthogonal matrix. (Its columns and rows are orthonormal).
  7.    The determinant of an identity matrix is equal to 1 .

    Det (In) = 1



Examples with Solutions

\( \)\( \)\( \)

Example 1


Find \( x \), \( y \) , \( z \) and \( w \) such that   \( \begin{bmatrix} x-2 & y+1 \\ 2z-1 & 2w-2 \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} 2 & 6 \\ 9 & 10 \end{bmatrix} \).

Solution


The product on the left of the matrix equation is of the form \( A I_2 \). According to property \( 1 \), the product of a matrix with an identity matrix is equal to the matrix itself written as \( A I_2 = A \). Hence we can write
\( \begin{bmatrix} x-2 & y+1 \\ 2z-1 & 2w-2 \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} x-2 & y+1 \\ 2z-1 & 2w-2 \end{bmatrix} \)

Which also gives
\( \begin{bmatrix} x-2 & y+1 \\ 2z-1 & 2w-2 \end{bmatrix} = \begin{bmatrix} 2 & 6 \\ 9 & 10 \end{bmatrix} \)
Matrices of the same dimensions are equal if their corresponding entries are equal, hence the equations
\( x - 2 = 2 \)
\( y + 1 = 6 \)
\( 2 z-1 = 9 \)
\( 2 w-2 = 10 \)
Solve the above to obtain:
\( x = 4 \) , \( y = 5 \) , \( z = 5 \) , \( w = 6 \)



Example 2

Simplify the expressions \( A^{-1} (A + I_n) - I_n \) where \( A \) is a matrix of dimension \( n \times n \).

Solution


Use distribution to rewrite the given expression as:
\( A^{-1} (A + I_n) - I_n = A^{-1} A + A^{-1} I_n - I_n \)
Simplify the right side using the properties 3 and 1 above: \( A^{-1} A = I_n \) and \( A^{-1} I_n = A^{-1} \)
\( A^{-1} (A + I_n) - I_n = I_n + A^{-1} - I_n \)
Simplify the right side
\( A^{-1} (A + I_n) - I_n = A^{-1} \)



Example 3


Find matrix \( B \) and its inverse \( B^{-1} \) given that \( A = \begin{bmatrix} 5 & 2 \\ 7 & 3 \end{bmatrix} \) and \( B = \begin{bmatrix} 3 & x \\ y & 5 \end{bmatrix} \) and \( A B = I_2 \).

Solution


Substitute \( A \), \( B \) and the identity matrix \( I_2 \) in the equation \( A B = I_2 \) to obtain
\( \begin{bmatrix} 5 & 2 \\ 7 & 3 \end{bmatrix} \begin{bmatrix} 3 & x \\ y & 5 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \)

Multiply the matrices on the left
\( \begin{bmatrix} 15+2y&5x+10\\ 21+3y&7x+15 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \)

Two matrices of the same dimension are equal if the corresponding entries are equal, hence the equations
\( 15+2y = 1 \) , \( 21+3y = 0 \)
\( 5x+10 = 0 \) , \( 7x+15 = 1 \)

Solve the above equations to find
\( y = - 7 \) and \( x = - 2\)

It can also be shown numerically that
\( B A = I_2 \)
According to property 3 above, matrix \( B = \begin{bmatrix} 3 & -2 \\ -7 & 5 \end{bmatrix} \) and matrix \( A \) are inverse of each other and therefore \( B^{-1} = A = \begin{bmatrix} 5 & 2 \\ 7 & 3 \end{bmatrix} \)



Questions (with solutions given below)



Solutions to the Above Questions



More References and links