ELIAS EBNER

  • Home
  • Blog
  • Courses
  • About

Linear Algebra

  1. Vectors
    1. Scalars
    2. Vectors vs Sets
    3. Addition and Subtraction
    4. Scalar Multiplication
    5. Zero Vectors
    6. Linear Combinations
    7. Real Dot Product
    8. Length of a Vector
    9. Orthogonal Vectors
    10. Parallel Vectors
    11. Angle Between Vectors
    12. Unit Vectors
  2. Matrices
    1. Notation
    2. Indexing
    3. Submatrices
    4. Matrix-by-Vector Product
    5. Addition and Subtraction
    6. Scalar Multiplication
    7. Transpose
    8. Symmetries
    9. Matrix Multiplication
    10. Identity Matrix
    11. Non-Negative Integer Powers
    12. Reverse Order Law of Transposition
  3. Linear Systems
    1. Inverse Matrices
    2. Singular Matrices
    3. Linear Dependence
    4. Solutions
  4. Planes
    1. Vector Cross Product
  5. Gaussian Elimination
Linear Algebra โ€บMatrices โ€บIdentity Matrix

Identity Matrix

Scalars have something called a multiplicative identity. Multiplying any scalar by the multiplicative identity doesnโ€™t change it. In the case of scalars, itโ€™s the number 111.

That is because for any scalar aaa:

1a=a.1a = a.1a=a.

With matrices, there is a similar concept: the identity matrix.

The identity matrix is always a square matrix and is usually denoted by the symbol InI_nInโ€‹, where nnn is the number of rows (and at the same time the number of columns, since it is a square matrix).

InI_nInโ€‹ is also referred to the identity matrix of order nnn.

The identity matrix always has 111s along its main diagonal (the diagonal going from top-left to bottom-right) and 000s in all the other spots. That is

In=[10โ‹ฏ001โ‹ฏ0โ‹ฎโ‹ฎโ‹ฑโ‹ฎ00โ‹ฏ1].I_n = \begin{bmatrix} 1 & 0 & \cdots & 0 \\ 0 & 1 & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \cdots & 1 \end{bmatrix}.Inโ€‹=โ€‹10โ‹ฎ0โ€‹01โ‹ฎ0โ€‹โ‹ฏโ‹ฏโ‹ฑโ‹ฏโ€‹00โ‹ฎ1โ€‹โ€‹.

Just like the scalar identity, multiplying a matrix by the identity matrix does not change it. That is, for some matrix AAA of shape mร—nm \times nmร—n,

AIn=AA I_n = AAInโ€‹=A

and

ImA=A.I_m A = A.Imโ€‹A=A.

The reason for having to use two different sizes for the identity matrix based on whether it is the first or the second operand in the multiplication is because of matrix conformability for multiplication, which I go over in my lesson about matrix multiplication.

Sometimes the subscript with the dimension of the identity matrix is omitted whenever it is possible to deduce the size from context.

Example

Here is a concrete numerical example to illustrate:

Take the matrix

A=[2โˆ’10472].A = \begin{bmatrix} 2 & -1 \\ 0 & 4 \\ 7 & 2 \end{bmatrix}.A=โ€‹207โ€‹โˆ’142โ€‹โ€‹.

Letโ€™s multiply it by

I2=[1001].I_2 = \begin{bmatrix} 1 & 0 \\ 0 & 1 \\ \end{bmatrix}.I2โ€‹=[10โ€‹01โ€‹].

That is

AI2=[2โ‹…1+(โˆ’1)โ‹…02โ‹…0+(โˆ’1)โ‹…10โ‹…1+4โ‹…00โ‹…0+4โ‹…17โ‹…1+2โ‹…07โ‹…0+2โ‹…1]=[2โˆ’10472]\begin{align*} AI_2 &= \begin{bmatrix} 2 \cdot 1 + (-1) \cdot 0 & 2 \cdot 0 + (-1) \cdot 1 \\ 0 \cdot 1 + 4 \cdot 0 & 0 \cdot 0 + 4 \cdot 1 \\ 7 \cdot 1 + 2 \cdot 0 & 7 \cdot 0 + 2 \cdot 1 \end{bmatrix} \\ &= \begin{bmatrix} 2 & -1 \\ 0 & 4 \\ 7 & 2 \end{bmatrix} \end{align*}AI2โ€‹โ€‹=โ€‹2โ‹…1+(โˆ’1)โ‹…00โ‹…1+4โ‹…07โ‹…1+2โ‹…0โ€‹2โ‹…0+(โˆ’1)โ‹…10โ‹…0+4โ‹…17โ‹…0+2โ‹…1โ€‹โ€‹=โ€‹207โ€‹โˆ’142โ€‹โ€‹โ€‹

Notice how

AI2=A.AI_2 = A.AI2โ€‹=A.
Previous
Matrix Multiplication
Next
Non-Negative Integer Powers of Matrices
This website does not collect personal data, does not use cookies, and does not perform any tracking.