# Identity matrix

##### Intros

##### Examples

###### Lessons

###### Free to Join!

#### Easily See Your Progress

We track the progress you've made on a topic so you know what you've done. From the course view you can easily see what topics have what and the progress you've made on them. Fill the rings to completely master that section or mouse over the icon to see more details.#### Make Use of Our Learning Aids

#### Earn Achievements as You Learn

Make the most of your time as you use StudyPug to help you achieve your goals. Earn fun little badges the more you watch, practice, and use our service.#### Create and Customize Your Avatar

Play with our fun little avatar builder to create and customize your own avatar on StudyPug. Choose your face, eye colour, hair colour and style, and background. Unlock more options the more you use StudyPug.

###### Topic Notes

### Identity Matrix

Having learned about the zero matrix, it is time to study another type of matrix containing a constant specific set of values every time, is time for us to study the identity matrices.

### What is an identity matrix?

An identity matrix is a given square matrix of any order which contains on its main diagonal elements with value of one, while the rest of the matrix elements are equal to zero.

To explain part by part this definition, let us start by reminding you that a square matrix refers to a matrix containing the same amount of rows and columns. The order of a matrix comes from its dimensions, and its main diagonal refers to the array of elements inside the matrix which form an inclined line from the top left corner to the bottom right corner. Given the characteristics of an identity matrix, we can also conclude these type of matrices are also diagonal matrices.

A diagonal matrix is that in which all of its element entries are equal to zero, except for the elements found on its main diagonal. In this case, all of the non-zero entries in the matrix will have a value of one, and that happens to be one of the reasons why the identity matrix is sometimes called the unit matrix too.For the case of matrix linear algebra notation, the identity matrix serves as the equivalent object to the unit in numerical algebra (other reason why is called the unit matrix). In other words, the identity matrix is the equivalent to the unit of one, but in this case it happens to be an algebraic object with dimensions and array organization which can be used in operations with other ordered number arrays (other matrices).

In the next section we will take a look into the properties of the identity matrix, and the unit matrix definition will make much more sense, especially in the case of matrix multiplications including an identity matrix (look at property number 3). Mathematically, the identity matrix is represented as:

And so, in equation 2 we can easily see that I2 refers to an identity matrix with two rows and two columns, which at the same time has only two elements in its main diagonal; a notation of I3 corresponds to an identity matrix of order 3, or one containing three rows and three columns and 3 elements on its main diagonal; and the notation system continues that way for any subindex n.

### Identity matrix properties

- An identity matrix is always an square matrix:

As seen in equations 1 and 2, the order of an identity matrix is always n, which refers to the dimensions nxn (meaning there is always the same amount of rows and columns in the matrix). - An identity matrix is capable of multiplying any matrix with any order (dimensions) as long as it follows the next rules:
- If in the multiplication, the identity matrix is the first factor, then the identity matrix must have dimensions with as many columns as the matrix it is multiplying has rows.
- If the identity matrix is the second factor in the multiplication, the identity matrix must have the same amount of rows as the matrix that is multiplying it has column
- As a result of the first two rules, If an identity matrix is multiplying a square matrix of the same dimensions, the result will also be a square matrix which will be the same as the non-unit matrix of the multiplication, no matter the order in which the matrices are being multiplied with one another.

- If in the multiplication, the identity matrix is the first factor, then the identity matrix must have dimensions with as many columns as the matrix it is multiplying has rows.
- Following the two equations from the second property explained above, from all the identity matrix properties, the main one can be observed clearly in equations 3 and 4: Whenever an identity matrix multiplies another matrix, and the multiplication can be solved (following the rules for matrix multiplication), the result is equal to the non-unit matrix involved. Mathematically speaking:
- Multiplying a matrix times its inverse will result in an identity matrix of the same order as the matrices being multiplied. Mathematically speaking:
- The determinant of the identity matrix In is always 1, and its trace is equal to n.
Although we have not seen what a determinant is so far, for the moment is important to know that the reason a determinant of any identity matrix is equal to one is because the diagonal of these matrices contains only ones and the rest of the elements inside these matrices are zeros. We will introduce the concept of determinant in a later lesson called the determinant of a 2x2 matrix, where the identity matrix determinant will be explained in more detail.

On the other hand, the trace is much simpler to explain. By now you should know that the trace of a matrix refers to the addition of the elements found in its main diagonal. Since an identity matrix has diagonal elements all equal to one, when adding them all in order to obtain the trace, you will always have as many elements as the order of the identity matrix, which is n. Take the next identity matrix as an example: - For our last property we start with a question: is the identity matrix invertible? The answer is yes. We will explain more on this topic through our lesson on about the 2x2 invertible matrix, for now just remember: The inverse of the identity matrix is itself.

### Identity matrix example problems

Making use of the properties learnt in the past section and the identity matrix definition given at the beginning of this lesson, solve the next example problems:

__Example 1__

- $I_{3} \cdot A$

On this case we have an example of the third property of the identity matrix: A multiplication involving an identity matrix and any other matrix, if defined due the rules of matrix multiplication, the result is the non-unit matrix (for this case, matrix A). And so, this multiplication goes as follows: - $2A + 4I_{3}$

For this matrix operation we are computing two cases of scalar multiplication, the second one including a 3x3 identity matrix. Solving such operation goes as: - $-4B + 2I_{2}$

Once more, this operation consists on using an identity matrix for addition of two scalar multiplications, where the second multiplication includes an identity matrix 2x2. We solve them as shown below: - $I_{2} \cdot B$

By the third property, we know the result of this multiplication is matrix B: - $0 \cdot I_{4}$

On this case, we have a scalar multiplication of an identity matrix with the number zero, thus, the result must be a zero matrix as shown below:

__Example 2__

- Having matrices X and Y as shown below:
- Having matrices A and B as shown below:
- Having matrices C and D as shown below:
- Having matrices E and F as shown below:

Before we go, let us recommend you the next little link defining the identity matrix in a concise manner, and this article which relates both topics of matrix multiplication and the identity matrix by talking about the commutative property of the multiplication of any square matrix with an identity matrix of the same order (just as described on the third property in section two of this lesson), and how this doesn't apply to other matrix multiplications.

So, this is it for today, see you in the next lesson!

**identity**matrix is an $n$ by $n$ matrix (written as $I_n$) where all the entries that is diagonal from the top left to the bottom right are all 1's, and the rest of the entries are 0. For example,

are all

**identity**matrices.

remaining today

remaining today