MatheramaMatherama
← Matrices and Determinants
Matrices and Determinants·Section 2·43 min read

Introduction to Matrices

Definition§

A matrix A\mathbf{A} is a structured array of elements, either real or complex numbers, arranged in horizontal rows and vertical columns. Formally, an m×nm \times n matrix is represented as:

A=[a11a12…a1na21a22…a2n⋮⋮⋱⋮am1am2…amn]\mathbf{A} = \begin{bmatrix} a_{11} & a_{12} & \dots & a_{1n} \\ a_{21} & a_{22} & \dots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \dots & a_{mn} \end{bmatrix}

where aija_{ij} denotes the element located in the ii-th row and jj-th column. Here, mm is the number of rows (horizontal), and nn is the number of columns (vertical), determining the matrix's dimension as m×nm \times n.

Key Points:§

  1. Rows and Columns: The rows of a matrix are the horizontal lines of elements, while the columns are the vertical lines. For instance, in a 2×32 \times 3 matrix:

    B=[b11b12b13b21b22b23]\mathbf{B} = \begin{bmatrix} b_{11} & b_{12} & b_{13} \\ b_{21} & b_{22} & b_{23} \end{bmatrix}

    B\mathbf{B} has 2 rows and 3 columns.

  2. Dimensions: The dimension m×nm \times n of a matrix specifies its structure. For example:

    • A 1×31 \times 3 matrix:

      C=[c11c12c13]\mathbf{C} = \begin{bmatrix} c_{11} & c_{12} & c_{13} \end{bmatrix}

      is a single row with three elements.

    • A 3×13 \times 1 matrix:

      D=[d11d21d31]\mathbf{D} = \begin{bmatrix} d_{11} \\ d_{21} \\ d_{31} \end{bmatrix}

      is a single column with three elements.

    • A 2×22 \times 2 matrix:

      E=[e11e12e21e22]\mathbf{E} = \begin{bmatrix} e_{11} & e_{12} \\ e_{21} & e_{22} \end{bmatrix}

      has 2 rows and 2 columns.

  3. No Vacant Slots: Every position within a matrix must be filled with an element aija_{ij}. It is illegal and invalid for any slot in the matrix to be vacant. Each entry is essential, and the matrix is not defined if any element is missing. This requirement distinguishes matrices from sets, as matrices cannot be empty.

  4. Minimum Size: The smallest possible matrix is a 1×11 \times 1 matrix, such as:

    F=[f11]\mathbf{F} = \begin{bmatrix} f_{11} \end{bmatrix}

    which contains a single element.

In summary, a matrix is a well-defined array with every slot filled by an element, and it must have at least one row and one column. The arrangement of elements into rows and columns gives the matrix its dimension, which is a fundamental characteristic of its structure.

Consider a 3×43 \times 4 matrix G\mathbf{G}, where the matrix has 3 rows and 4 columns. Each element in the matrix is distinct and denoted by specific numerical values. The matrix is represented as:

G=[7135928141141126]\mathbf{G} = \begin{bmatrix} 7 & 13 & 5 & 9 \\ 2 & 8 & 14 & 11 \\ 4 & 1 & 12 & 6 \end{bmatrix}

In this matrix:

  • The first row consists of the elements 7,13,5,7, 13, 5, and 99.
  • The second row contains the elements 2,8,14,2, 8, 14, and 1111.
  • The third row includes the elements 4,1,12,4, 1, 12, and 66.

Here, the element 88 is located in the second row and second column, denoted as g22=8g_{22} = 8. Similarly, g23=14g_{23} = 14 refers to the element in the second row and third column.

A matrix A\mathbf{A} of dimension m×nm \times n can be compactly represented using the notation:

A=[aij]m×n\mathbf{A} = \left[ a_{ij} \right]_{m \times n}

Here, aija_{ij} denotes the element in the ii-th row and jj-th column of the matrix, where the indices ii and jj satisfy:

1≤i≤mand1≤j≤n1 \leq i \leq m \quad \text{and} \quad 1 \leq j \leq n

This notation indicates that A\mathbf{A} is an m×nm \times n matrix, with mm rows and nn columns. Each element aija_{ij} is uniquely identified by the pair of indices ii and jj, where ii is the row index and jj is the column index.

Different Types of Matrices§

1. Null Matrix

A Null Matrix (or Zero Matrix) is a matrix in which all elements are zero. For any matrix O=[oij]m×n\mathbf{O} = [o_{ij}]_{m \times n}:

oij=0for all1≤i≤m, 1≤j≤no_{ij} = 0 \quad \text{for all} \quad 1 \leq i \leq m, \, 1 \leq j \leq n

Example:

O=[000000]2×3\mathbf{O} = \begin{bmatrix} 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix}_{2 \times 3}

2. Row Matrix

A Row Matrix is a matrix that consists of a single row. For a row matrix R=[r1j]1×n\mathbf{R} = [r_{1j}]_{1 \times n}:

R=[r11r12…r1n]\mathbf{R} = \begin{bmatrix} r_{11} & r_{12} & \dots & r_{1n} \end{bmatrix}

Example:

R=[357]1×3\mathbf{R} = \begin{bmatrix} 3 & 5 & 7 \end{bmatrix}_{1 \times 3}

3. Column Matrix

A Column Matrix is a matrix that consists of a single column. For a column matrix C=[ci1]m×1\mathbf{C} = [c_{i1}]_{m \times 1}:

C=[c11c21⋮cm1]\mathbf{C} = \begin{bmatrix} c_{11} \\ c_{21} \\ \vdots \\ c_{m1} \end{bmatrix}

Example:

C=[468]3×1\mathbf{C} = \begin{bmatrix} 4 \\ 6 \\ 8 \end{bmatrix}_{3 \times 1}

4. Rectangular Matrix

A Rectangular Matrix is a matrix where the number of rows is not equal to the number of columns, i.e., m≠nm \neq n. For a matrix A=[aij]m×n\mathbf{A} = [a_{ij}]_{m \times n} with m≠nm \neq n:

A=[a11a12…a1na21a22…a2n](m=2,n=3)\mathbf{A} = \begin{bmatrix} a_{11} & a_{12} & \dots & a_{1n} \\ a_{21} & a_{22} & \dots & a_{2n} \end{bmatrix} \quad (m = 2, n = 3)

Example:

A=[24681012]2×3\mathbf{A} = \begin{bmatrix} 2 & 4 & 6 \\ 8 & 10 & 12 \end{bmatrix}_{2 \times 3}

5. Square Matrix

A Square Matrix is a matrix in which the number of rows equals the number of columns, i.e., m=nm = n. For a square matrix B=[bij]n×n\mathbf{B} = [b_{ij}]_{n \times n}:

B=[b11b12…b1nb21b22…b2n⋮⋮⋱⋮bn1bn2…bnn]\mathbf{B} = \begin{bmatrix} b_{11} & b_{12} & \dots & b_{1n} \\ b_{21} & b_{22} & \dots & b_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ b_{n1} & b_{n2} & \dots & b_{nn} \end{bmatrix}

Main Diagonal: The main diagonal of a square matrix consists of elements bijb_{ij} where i=ji = j. In a square matrix:

  • Elements above the main diagonal satisfy i<ji < j.
  • Elements below the main diagonal satisfy i>ji > j.

Example:

B=[123456789]3×3\mathbf{B} = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}_{3 \times 3}

In this example, the main diagonal consists of elements 1,5,91, 5, 9, elements above the diagonal are 2,3,62, 3, 6, and elements below the diagonal are 4,7,84, 7, 8.

Further Categorization of Square Matrices§

1. Identity Matrix

An Identity Matrix is a square matrix in which all the elements of the main diagonal are 1, and all other elements are 0. For an identity matrix I=[iij]n×n\mathbf{I} = [i_{ij}]_{n \times n}:

iij={1if i=j0if i≠ji_{ij} = \begin{cases} 1 & \text{if } i = j \\ 0 & \text{if } i \neq j \end{cases}

Example:

I=[100010001]3×3\mathbf{I} = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}_{3 \times 3}

2. Scalar Matrix

A Scalar Matrix is a square matrix in which all the elements of the main diagonal are equal to some constant kk, and all other elements are 0. For a scalar matrix S=[sij]n×n\mathbf{S} = [s_{ij}]_{n \times n}:

sij={kif i=j0if i≠js_{ij} = \begin{cases} k & \text{if } i = j \\ 0 & \text{if } i \neq j \end{cases}

Example:

S=[500050005]3×3\mathbf{S} = \begin{bmatrix} 5 & 0 & 0 \\ 0 & 5 & 0 \\ 0 & 0 & 5 \end{bmatrix}_{3 \times 3}

3. Diagonal Matrix

A Diagonal Matrix is a square matrix in which all the elements outside the main diagonal are 0. For a diagonal matrix D=[dij]n×n\mathbf{D} = [d_{ij}]_{n \times n}:

dij={diiif i=j0if i≠jd_{ij} = \begin{cases} d_{ii} & \text{if } i = j \\ 0 & \text{if } i \neq j \end{cases}

In diag notation, a diagonal matrix can be represented as:

D=diag(d11,d22,…,dnn)\mathbf{D} = \text{diag}(d_{11}, d_{22}, \dots, d_{nn})

Example:

D=[700030004]3×3\mathbf{D} = \begin{bmatrix} 7 & 0 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 4 \end{bmatrix}_{3 \times 3}

4. Lower Triangular Matrix

A Lower Triangular Matrix is a square matrix in which all the elements above the main diagonal are 0. For a lower triangular matrix L=[lij]n×n\mathbf{L} = [l_{ij}]_{n \times n}:

lij=0for all i<jl_{ij} = 0 \quad \text{for all } i < j

Example:

L=[400250136]3×3\mathbf{L} = \begin{bmatrix} 4 & 0 & 0 \\ 2 & 5 & 0 \\ 1 & 3 & 6 \end{bmatrix}_{3 \times 3}

5. Upper Triangular Matrix

An Upper Triangular Matrix is a square matrix in which all the elements below the main diagonal are 0. For an upper triangular matrix U=[uij]n×n\mathbf{U} = [u_{ij}]_{n \times n}:

uij=0for all i>ju_{ij} = 0 \quad \text{for all } i > j

Example:

U=[123056009]3×3\mathbf{U} = \begin{bmatrix} 1 & 2 & 3 \\ 0 & 5 & 6 \\ 0 & 0 & 9 \end{bmatrix}_{3 \times 3}

When comparing matrices, the concept of "greater than" or "less than" does not apply as it does with individual numbers. Instead, matrices are primarily compared based on equality.

Operations on matrices§

Matrices are fundamental mathematical objects, much like real numbers. When we define any mathematical object, we also define the operations that can be performed on them. For real numbers, we have operations like addition, subtraction, multiplication, and division. Similarly, matrices have their own set of operations, such as addition, multiplication, and scalar multiplication.

Matrix Equality§

Two matrices A=[aij]m×n\mathbf{A} = [a_{ij}]_{m \times n} and B=[bij]m×n\mathbf{B} = [b_{ij}]_{m \times n} are said to be equal if and only if:

  1. Same Dimensions: The matrices must have the same dimensions, i.e., they must have the same number of rows and the same number of columns. Formally, if A\mathbf{A} is m×nm \times n, then B\mathbf{B} must also be m×nm \times n.

  2. Element-wise Equality: Each corresponding element of the two matrices must be equal. That is:

aij=bijfor all1≤i≤mand1≤j≤na_{ij} = b_{ij} \quad \text{for all} \quad 1 \leq i \leq m \quad \text{and} \quad 1 \leq j \leq n

Example of Matrix Equality

Consider two matrices A\mathbf{A} and B\mathbf{B}:

A=[235468],B=[235468]\mathbf{A} = \begin{bmatrix} 2 & 3 & 5 \\ 4 & 6 & 8 \end{bmatrix}, \quad \mathbf{B} = \begin{bmatrix} 2 & 3 & 5 \\ 4 & 6 & 8 \end{bmatrix}

Here, both matrices A\mathbf{A} and B\mathbf{B} are 2×32 \times 3 matrices, and corresponding elements are equal:

a11=b11=2,a12=b12=3,a13=b13=5a_{11} = b_{11} = 2, \quad a_{12} = b_{12} = 3, \quad a_{13} = b_{13} = 5 a21=b21=4,a22=b22=6,a23=b23=8a_{21} = b_{21} = 4, \quad a_{22} = b_{22} = 6, \quad a_{23} = b_{23} = 8

Thus, A=B\mathbf{A} = \mathbf{B}.

Non-Equality

If either the dimensions differ or any corresponding elements do not match, the matrices are not equal. For example, if:

C=[235478]\mathbf{C} = \begin{bmatrix} 2 & 3 & 5 \\ 4 & 7 & 8 \end{bmatrix}

then A\mathbf{A} and C\mathbf{C} are not equal because a22=6a_{22} = 6 and c22=7c_{22} = 7, so a22≠c22a_{22} \neq c_{22}.

Matrix Addition§

Matrix addition is one of the fundamental operations defined for matrices, similar to addition for real numbers. When adding matrices, we combine them element-wise, provided they have the same dimensions.

Definition of Matrix Addition

Given two matrices A=[aij]m×n\mathbf{A} = [a_{ij}]_{m \times n} and B=[bij]m×n\mathbf{B} = [b_{ij}]_{m \times n}, the sum C=A+B\mathbf{C} = \mathbf{A} + \mathbf{B} is a matrix C=[cij]m×n\mathbf{C} = [c_{ij}]_{m \times n} where each element cijc_{ij} is given by:

cij=aij+bijfor all1≤i≤m, 1≤j≤nc_{ij} = a_{ij} + b_{ij} \quad \text{for all} \quad 1 \leq i \leq m, \, 1 \leq j \leq n

This means that the corresponding elements of A\mathbf{A} and B\mathbf{B} are added together to produce the elements of C\mathbf{C}.

Conditions for Matrix Addition

  • Same Dimensions: The matrices A\mathbf{A} and B\mathbf{B} must have the same number of rows and columns. Matrix addition is not defined for matrices of different dimensions.

Example of Matrix Addition

Consider the following matrices A\mathbf{A} and B\mathbf{B}:

A=[123456],B=[789101112]\mathbf{A} = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix}, \quad \mathbf{B} = \begin{bmatrix} 7 & 8 & 9 \\ 10 & 11 & 12 \end{bmatrix}

To find the sum C=A+B\mathbf{C} = \mathbf{A} + \mathbf{B}, we add the corresponding elements:

C=[1+72+83+94+105+116+12]=[81012141618]\mathbf{C} = \begin{bmatrix} 1+7 & 2+8 & 3+9 \\ 4+10 & 5+11 & 6+12 \end{bmatrix} = \begin{bmatrix} 8 & 10 & 12 \\ 14 & 16 & 18 \end{bmatrix}

Properties of Matrix Addition

Matrix addition possesses several important properties that make it a well-defined operation in linear algebra. These properties are analogous to those of addition for real numbers and are essential for understanding how matrices behave under addition.

  1. Commutativity

    Matrix addition is commutative, which means that the order in which matrices are added does not affect the result. Specifically, for any two matrices A\mathbf{A} and B\mathbf{B} of the same dimensions:

    A+B=B+A\mathbf{A} + \mathbf{B} = \mathbf{B} + \mathbf{A}

    Example:

    Let A=[1234]\mathbf{A} = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} and B=[5678]\mathbf{B} = \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix}. Then:

    A+B=[1+52+63+74+8]=[681012]\mathbf{A} + \mathbf{B} = \begin{bmatrix} 1+5 & 2+6 \\ 3+7 & 4+8 \end{bmatrix} = \begin{bmatrix} 6 & 8 \\ 10 & 12 \end{bmatrix} B+A=[5+16+27+38+4]=[681012]\mathbf{B} + \mathbf{A} = \begin{bmatrix} 5+1 & 6+2 \\ 7+3 & 8+4 \end{bmatrix} = \begin{bmatrix} 6 & 8 \\ 10 & 12 \end{bmatrix}

    Since A+B=B+A\mathbf{A} + \mathbf{B} = \mathbf{B} + \mathbf{A}, matrix addition is commutative.

  2. Associativity

    Matrix addition is associative, which means that when adding three matrices, the grouping of the matrices does not affect the result. Specifically, for any three matrices A\mathbf{A}, B\mathbf{B}, and C\mathbf{C} of the same dimensions:

    (A+B)+C=A+(B+C)(\mathbf{A} + \mathbf{B}) + \mathbf{C} = \mathbf{A} + (\mathbf{B} + \mathbf{C})

    Example:

    Let A=[1023]\mathbf{A} = \begin{bmatrix} 1 & 0 \\ 2 & 3 \end{bmatrix}, B=[4567]\mathbf{B} = \begin{bmatrix} 4 & 5 \\ 6 & 7 \end{bmatrix}, and C=[891011]\mathbf{C} = \begin{bmatrix} 8 & 9 \\ 10 & 11 \end{bmatrix}. Then:

    (A+B)+C=[1+40+52+63+7]+C=[55810]+[891011]=[13141821](\mathbf{A} + \mathbf{B}) + \mathbf{C} = \begin{bmatrix} 1+4 & 0+5 \\ 2+6 & 3+7 \end{bmatrix} + \mathbf{C} = \begin{bmatrix} 5 & 5 \\ 8 & 10 \end{bmatrix} + \begin{bmatrix} 8 & 9 \\ 10 & 11 \end{bmatrix} = \begin{bmatrix} 13 & 14 \\ 18 & 21 \end{bmatrix} A+(B+C)=A+[4+85+96+107+11]=A+[12141618]=[1+120+142+163+18]=[13141821]\mathbf{A} + (\mathbf{B} + \mathbf{C}) = \mathbf{A} + \begin{bmatrix} 4+8 & 5+9 \\ 6+10 & 7+11 \end{bmatrix} = \mathbf{A} + \begin{bmatrix} 12 & 14 \\ 16 & 18 \end{bmatrix} = \begin{bmatrix} 1+12 & 0+14 \\ 2+16 & 3+18 \end{bmatrix} = \begin{bmatrix} 13 & 14 \\ 18 & 21 \end{bmatrix}

    Since (A+B)+C=A+(B+C)(\mathbf{A} + \mathbf{B}) + \mathbf{C} = \mathbf{A} + (\mathbf{B} + \mathbf{C}), matrix addition is associative.

  3. Additive Identity

    The additive identity in matrix addition is the zero matrix. For any matrix A\mathbf{A} of dimension m×nm \times n, there exists a zero matrix O=[0]m×n\mathbf{O} = [0]_{m \times n} such that:

    A+O=O+A=A\mathbf{A} + \mathbf{O} = \mathbf{O} + \mathbf{A} = \mathbf{A}

    The zero matrix is a matrix where all elements are zero.

    Example:

    Let A=[2345]\mathbf{A} = \begin{bmatrix} 2 & 3 \\ 4 & 5 \end{bmatrix} and O=[0000]\mathbf{O} = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}. Then:

    A+O=[2+03+04+05+0]=[2345]\mathbf{A} + \mathbf{O} = \begin{bmatrix} 2+0 & 3+0 \\ 4+0 & 5+0 \end{bmatrix} = \begin{bmatrix} 2 & 3 \\ 4 & 5 \end{bmatrix}

    Since A+O=A\mathbf{A} + \mathbf{O} = \mathbf{A}, the zero matrix acts as the additive identity.

  4. Additive Inverse

    For any matrix A\mathbf{A}, there exists an additive inverse matrix −A-\mathbf{A} such that:

    A+(−A)=(−A)+A=O\mathbf{A} + (-\mathbf{A}) = (-\mathbf{A}) + \mathbf{A} = \mathbf{O}

    The additive inverse matrix −A-\mathbf{A} is obtained by negating each element of A\mathbf{A}.

    Example:

    Let A=[3−246]\mathbf{A} = \begin{bmatrix} 3 & -2 \\ 4 & 6 \end{bmatrix}. The additive inverse −A-\mathbf{A} is:

    −A=[−32−4−6]-\mathbf{A} = \begin{bmatrix} -3 & 2 \\ -4 & -6 \end{bmatrix}

    Now, adding A\mathbf{A} and −A-\mathbf{A}:

    A+(−A)=[3+(−3)−2+24+(−4)6+(−6)]=[0000]=O\mathbf{A} + (-\mathbf{A}) = \begin{bmatrix} 3+(-3) & -2+2 \\ 4+(-4) & 6+(-6) \end{bmatrix} = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} = \mathbf{O}

    Since A+(−A)=O\mathbf{A} + (-\mathbf{A}) = \mathbf{O}, −A-\mathbf{A} is indeed the additive inverse of A\mathbf{A}.

    Thus, the sum of matrices A\mathbf{A} and B\mathbf{B} is:

    C=[81012141618]\mathbf{C} = \begin{bmatrix} 8 & 10 & 12 \\ 14 & 16 & 18 \end{bmatrix}

Scalar Multiplication of Matrices§

Scalar multiplication is an operation where a matrix is multiplied by a scalar (a single number). This operation is analogous to multiplying each element of a vector or a list by a number, but it is applied to all elements of a matrix.

Definition of Scalar Multiplication

Given a matrix A=[aij]m×n\mathbf{A} = [a_{ij}]_{m \times n} and a scalar kk, the scalar multiplication of A\mathbf{A} by kk results in a new matrix B=kA=[bij]m×n\mathbf{B} = k\mathbf{A} = [b_{ij}]_{m \times n} where each element bijb_{ij} is given by:

bij=k⋅aijfor all1≤i≤m, 1≤j≤nb_{ij} = k \cdot a_{ij} \quad \text{for all} \quad 1 \leq i \leq m, \, 1 \leq j \leq n

This means that the scalar kk multiplies every element of the matrix A\mathbf{A}.

Example of Scalar Multiplication

Consider a matrix A\mathbf{A} and a scalar k=3k = 3:

A=[2−1403−5]\mathbf{A} = \begin{bmatrix} 2 & -1 & 4 \\ 0 & 3 & -5 \end{bmatrix}

To find the matrix B=3A\mathbf{B} = 3\mathbf{A}, multiply each element of A\mathbf{A} by 3:

B=3×[2−1403−5]=[3×23×(−1)3×43×03×33×(−5)]=[6−31209−15]\mathbf{B} = 3 \times \begin{bmatrix} 2 & -1 & 4 \\ 0 & 3 & -5 \end{bmatrix} = \begin{bmatrix} 3 \times 2 & 3 \times (-1) & 3 \times 4 \\ 3 \times 0 & 3 \times 3 & 3 \times (-5) \end{bmatrix} = \begin{bmatrix} 6 & -3 & 12 \\ 0 & 9 & -15 \end{bmatrix}

Thus, the resulting matrix B\mathbf{B} is:

B=[6−31209−15]\mathbf{B} = \begin{bmatrix} 6 & -3 & 12 \\ 0 & 9 & -15 \end{bmatrix}

Properties of Scalar Multiplication

Scalar multiplication of matrices has several important properties:

  1. Distributivity Over Matrix Addition:

    k(A+B)=kA+kBk(\mathbf{A} + \mathbf{B}) = k\mathbf{A} + k\mathbf{B}

    Where A\mathbf{A} and B\mathbf{B} are matrices of the same dimensions and kk is a scalar.

  2. Distributivity Over Scalar Addition:

    (k+l)A=kA+lA(k + l)\mathbf{A} = k\mathbf{A} + l\mathbf{A}

    Where kk and ll are scalars and A\mathbf{A} is a matrix.

  3. Associativity of Scalar Multiplication:

    k(lA)=(kl)Ak(l\mathbf{A}) = (kl)\mathbf{A}

    Where kk and ll are scalars and A\mathbf{A} is a matrix.

  4. Multiplication by 1:

    1⋅A=A1 \cdot \mathbf{A} = \mathbf{A}

    Where 11 is the scalar one and A\mathbf{A} is any matrix. This property shows that multiplying any matrix by 1 leaves it unchanged.

  5. Multiplication by 0:

    0⋅A=O0 \cdot \mathbf{A} = \mathbf{O}

    Where 00 is the scalar zero, and O\mathbf{O} is the zero matrix of the same dimensions as A\mathbf{A}. This property shows that multiplying any matrix by 0 results in a zero matrix.

Matrix Subtraction§

Matrix subtraction is defined as the addition of one matrix to the additive inverse (or negative) of another matrix. If you have two matrices A\mathbf{A} and B\mathbf{B}, the subtraction A−B\mathbf{A} - \mathbf{B} is performed by adding A\mathbf{A} to the negative of B\mathbf{B}.

Definition of Matrix Subtraction

Given two matrices A=[aij]m×n\mathbf{A} = [a_{ij}]_{m \times n} and B=[bij]m×n\mathbf{B} = [b_{ij}]_{m \times n}, the subtraction C=A−B\mathbf{C} = \mathbf{A} - \mathbf{B} is defined as:

C=A+(−B)\mathbf{C} = \mathbf{A} + (-\mathbf{B})

Where −B=[−bij]m×n-\mathbf{B} = [-b_{ij}]_{m \times n} is the matrix obtained by negating each element of B\mathbf{B}. The resulting matrix C=[cij]m×n\mathbf{C} = [c_{ij}]_{m \times n} has elements:

cij=aij−bijfor all1≤i≤m, 1≤j≤nc_{ij} = a_{ij} - b_{ij} \quad \text{for all} \quad 1 \leq i \leq m, \, 1 \leq j \leq n

Example of Matrix Subtraction

Consider the matrices A\mathbf{A} and B\mathbf{B}:

A=[58−3724],B=[36−125−4]\mathbf{A} = \begin{bmatrix} 5 & 8 & -3 \\ 7 & 2 & 4 \end{bmatrix}, \quad \mathbf{B} = \begin{bmatrix} 3 & 6 & -1 \\ 2 & 5 & -4 \end{bmatrix}

To find the matrix C=A−B\mathbf{C} = \mathbf{A} - \mathbf{B}, first determine the negative of B\mathbf{B}:

−B=[−3−61−2−54]-\mathbf{B} = \begin{bmatrix} -3 & -6 & 1 \\ -2 & -5 & 4 \end{bmatrix}

Now, add A\mathbf{A} and −B-\mathbf{B}:

C=A+(−B)=[58−3724]+[−3−61−2−54]\mathbf{C} = \mathbf{A} + (-\mathbf{B}) = \begin{bmatrix} 5 & 8 & -3 \\ 7 & 2 & 4 \end{bmatrix} + \begin{bmatrix} -3 & -6 & 1 \\ -2 & -5 & 4 \end{bmatrix}

Perform the element-wise addition:

C=[5+(−3)8+(−6)−3+17+(−2)2+(−5)4+4]=[22−25−38]\mathbf{C} = \begin{bmatrix} 5 + (-3) & 8 + (-6) & -3 + 1 \\ 7 + (-2) & 2 + (-5) & 4 + 4 \end{bmatrix} = \begin{bmatrix} 2 & 2 & -2 \\ 5 & -3 & 8 \end{bmatrix}

Thus, the result of the matrix subtraction A−B\mathbf{A} - \mathbf{B} is:

C=[22−25−38]\mathbf{C} = \begin{bmatrix} 2 & 2 & -2 \\ 5 & -3 & 8 \end{bmatrix}

Matrix Multiplication§

Matrix multiplication can initially seem complex, but it becomes clearer when we break it down with a concrete example. Let's consider two matrices A\mathbf{A} and B\mathbf{B} with the following dimensions and elements:

A=[123456789101112]4×3,B=[142536]3×2\mathbf{A} = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \\ 10 & 11 & 12 \end{bmatrix}_{4 \times 3}, \quad \mathbf{B} = \begin{bmatrix} 1 & 4 \\ 2 & 5 \\ 3 & 6 \end{bmatrix}_{3 \times 2}

To find the product AB\mathbf{AB}, we need to perform the following steps:

Step-by-Step Calculation:

  1. First row of A\mathbf{A} with all columns of B\mathbf{B}:

    • First row of A\mathbf{A}: [1,2,3][1, 2, 3]

    • First column of B\mathbf{B}: [1,2,3][1, 2, 3]

      Dot product=1⋅1+2⋅2+3⋅3=1+4+9=14\text{Dot product} = 1 \cdot 1 + 2 \cdot 2 + 3 \cdot 3 = 1 + 4 + 9 = 14
    • Second column of B\mathbf{B}: [4,5,6][4, 5, 6]

      Dot product=1⋅4+2⋅5+3⋅6=4+10+18=32\text{Dot product} = 1 \cdot 4 + 2 \cdot 5 + 3 \cdot 6 = 4 + 10 + 18 = 32
    • Resulting first row of AB\mathbf{AB}: [14,32][14, 32]

  2. Second row of A\mathbf{A} with all columns of B\mathbf{B}:

    • Second row of A\mathbf{A}: [4,5,6][4, 5, 6]

    • First column of B\mathbf{B}: [1,2,3][1, 2, 3]

      Dot product=4⋅1+5⋅2+6⋅3=4+10+18=32\text{Dot product} = 4 \cdot 1 + 5 \cdot 2 + 6 \cdot 3 = 4 + 10 + 18 = 32
    • Second column of B\mathbf{B}: [4,5,6][4, 5, 6]

      Dot product=4⋅4+5⋅5+6⋅6=16+25+36=77\text{Dot product} = 4 \cdot 4 + 5 \cdot 5 + 6 \cdot 6 = 16 + 25 + 36 = 77
    • Resulting second row of AB\mathbf{AB}: [32,77][32, 77]

  3. Third row of A\mathbf{A} with all columns of B\mathbf{B}:

    • Third row of A\mathbf{A}: [7,8,9][7, 8, 9]

    • First column of B\mathbf{B}: [1,2,3][1, 2, 3]

      Dot product=7⋅1+8⋅2+9⋅3=7+16+27=50\text{Dot product} = 7 \cdot 1 + 8 \cdot 2 + 9 \cdot 3 = 7 + 16 + 27 = 50
    • Second column of B\mathbf{B}: [4,5,6][4, 5, 6]

      Dot product=7⋅4+8⋅5+9⋅6=28+40+54=122\text{Dot product} = 7 \cdot 4 + 8 \cdot 5 + 9 \cdot 6 = 28 + 40 + 54 = 122
    • Resulting third row of AB\mathbf{AB}: [50,122][50, 122]

  4. Fourth row of A\mathbf{A} with all columns of B\mathbf{B}:

    • Fourth row of A\mathbf{A}: [10,11,12][10, 11, 12]

    • First column of B\mathbf{B}: [1,2,3][1, 2, 3]

      Dot product=10⋅1+11⋅2+12⋅3=10+22+36=68\text{Dot product} = 10 \cdot 1 + 11 \cdot 2 + 12 \cdot 3 = 10 + 22 + 36 = 68
    • Second column of B\mathbf{B}: [4,5,6][4, 5, 6]

      Dot product=10⋅4+11⋅5+12⋅6=40+55+72=167\text{Dot product} = 10 \cdot 4 + 11 \cdot 5 + 12 \cdot 6 = 40 + 55 + 72 = 167
    • Resulting fourth row of AB\mathbf{AB}: [68,167][68, 167]

The resulting matrix AB\mathbf{AB} is:

AB=[143232775012268167]4×2\mathbf{AB} = \begin{bmatrix} 14 & 32 \\ 32 & 77 \\ 50 & 122 \\ 68 & 167 \end{bmatrix}_{4 \times 2}

Understanding the Process

In matrix multiplication, each element of the product matrix AB\mathbf{AB} is obtained by taking the dot product of a row vector from A\mathbf{A} with a column vector from B\mathbf{B}. This operation is called the inner product.

For matrix multiplication to be valid, the number of columns in A\mathbf{A} must equal the number of rows in B\mathbf{B}. If this condition is not met, the matrices are not conformable, meaning they cannot be multiplied.

Defining Conformable Matrices

Matrices A\mathbf{A} and B\mathbf{B} are said to be conformable for multiplication if the number of columns in A\mathbf{A} equals the number of rows in B\mathbf{B}. Specifically:

  • If A\mathbf{A} has dimensions m×pm \times p and B\mathbf{B} has dimensions p×np \times n, then the matrices are conformable.
  • The resulting product AB\mathbf{AB} will have dimensions m×nm \times n.

Definition of Matrix Multiplication

Let A=[aij]m×p\mathbf{A} = [a_{ij}]_{m \times p} and B=[bjk]p×n\mathbf{B} = [b_{jk}]_{p \times n} be two conformable matrices. The product AB=[cik]m×n\mathbf{AB} = [c_{ik}]_{m \times n} is defined as:

cik=∑j=1paijbjkc_{ik} = \sum_{j=1}^{p} a_{ij} b_{jk}

This means that each element cikc_{ik} in the resulting matrix AB\mathbf{AB} is the sum of the products of corresponding elements from the ii-th row of A\mathbf{A} and the kk-th column of B\mathbf{B}. In other words:

cik=ai1b1k+ai2b2k+⋯+aipbpk=∑j=1paijbjkc_{ik} = a_{i1}b_{1k} + a_{i2}b_{2k} + \dots + a_{ip}b_{pk} = \sum_{j=1}^{p} a_{ij} b_{jk}

Properties of Matrix Multiplication§

Non-Commutativity of Matrix Multiplication

Matrix multiplication is generally not commutative, meaning that the order in which matrices are multiplied affects the result. There are several reasons why this is the case:

  1. Non-Conformable Matrices:

    One key reason for non-commutativity is that the product AB\mathbf{AB} might be defined, but the reverse product BA\mathbf{BA} may not be, due to the matrices being non-conformable. For example, if A\mathbf{A} is a 3×43 \times 4 matrix and B\mathbf{B} is a 4×54 \times 5 matrix, then AB\mathbf{AB} is defined and will be a 3×53 \times 5 matrix. However, BA\mathbf{BA} is not defined because B\mathbf{B} has 5 columns, and A\mathbf{A} has 3 rows, making them non-conformable for multiplication.

  2. Different Dimensions:

    Even when both AB\mathbf{AB} and BA\mathbf{BA} are defined, their dimensions may differ, which is another reason they may not be equal. Suppose A\mathbf{A} is an m×nm \times n matrix, and B\mathbf{B} is an n×mn \times m matrix. The product AB\mathbf{AB} will be an m×mm \times m matrix, while BA\mathbf{BA} will be an n×nn \times n matrix. If m≠nm \neq n, the dimensions of AB\mathbf{AB} and BA\mathbf{BA} do not match, and they cannot be directly compared.

  3. Square Matrices:

    Even when both matrices are square (i.e., A\mathbf{A} and B\mathbf{B} are both n×nn \times n matrices), the products AB\mathbf{AB} and BA\mathbf{BA} may still not be equal. This is because the elements of the matrices interact differently depending on the order of multiplication.

    Example:

    Consider the square matrices A\mathbf{A} and B\mathbf{B} where:

    A=[1201],B=[3045]\mathbf{A} = \begin{bmatrix} 1 & 2 \\ 0 & 1 \end{bmatrix}, \quad \mathbf{B} = \begin{bmatrix} 3 & 0 \\ 4 & 5 \end{bmatrix}

    First, calculate AB\mathbf{AB}:

    AB=[1⋅3+2⋅41⋅0+2⋅50⋅3+1⋅40⋅0+1⋅5]=[3+80+1045]=[111045]\mathbf{AB} = \begin{bmatrix} 1 \cdot 3 + 2 \cdot 4 & 1 \cdot 0 + 2 \cdot 5 \\ 0 \cdot 3 + 1 \cdot 4 & 0 \cdot 0 + 1 \cdot 5 \end{bmatrix} = \begin{bmatrix} 3 + 8 & 0 + 10 \\ 4 & 5 \end{bmatrix} = \begin{bmatrix} 11 & 10 \\ 4 & 5 \end{bmatrix}

    Next, calculate BA\mathbf{BA}:

    BA=[3⋅1+0⋅03⋅2+0⋅14⋅1+5⋅04⋅2+5⋅1]=[3648+5]=[36413]\mathbf{BA} = \begin{bmatrix} 3 \cdot 1 + 0 \cdot 0 & 3 \cdot 2 + 0 \cdot 1 \\ 4 \cdot 1 + 5 \cdot 0 & 4 \cdot 2 + 5 \cdot 1 \end{bmatrix} = \begin{bmatrix} 3 & 6 \\ 4 & 8 + 5 \end{bmatrix} = \begin{bmatrix} 3 & 6 \\ 4 & 13 \end{bmatrix}

    Here, AB\mathbf{AB} and BA\mathbf{BA} are both 2×22 \times 2 matrices, but:

    AB=[111045],BA=[36413]\mathbf{AB} = \begin{bmatrix} 11 & 10 \\ 4 & 5 \end{bmatrix}, \quad \mathbf{BA} = \begin{bmatrix} 3 & 6 \\ 4 & 13 \end{bmatrix}

    Since AB≠BA\mathbf{AB} \neq \mathbf{BA}, this example illustrates that even when matrices are square and conformable, matrix multiplication is generally not commutative.

Associativity of Matrix Multiplication

Matrix multiplication is associative, meaning that the grouping of matrices during multiplication does not change the final result. Specifically, for any three conformable matrices A\mathbf{A}, B\mathbf{B}, and C\mathbf{C}, we have:

(AB)C=A(BC)(\mathbf{A} \mathbf{B}) \mathbf{C} = \mathbf{A} (\mathbf{B} \mathbf{C})

Proof Outline:

Let A\mathbf{A} be an m×pm \times p matrix, B\mathbf{B} a p×qp \times q matrix, and C\mathbf{C} a q×nq \times n matrix. The product AB\mathbf{A} \mathbf{B} results in an m×qm \times q matrix, and multiplying this by C\mathbf{C} yields an m×nm \times n matrix. Similarly, the product BC\mathbf{B} \mathbf{C} is a p×np \times n matrix, and multiplying this by A\mathbf{A} also results in an m×nm \times n matrix. Since both sides result in matrices of the same dimensions, we proceed to show that their elements are equal.

Consider the element in the ii-th row and jj-th column of the matrix product A(BC)\mathbf{A}(\mathbf{B}\mathbf{C}):

[A(BC)]ij=∑k=1paik(BC)kj[\mathbf{A}(\mathbf{B}\mathbf{C})]_{ij} = \sum_{k=1}^{p} a_{ik} (\mathbf{B}\mathbf{C})_{kj}

Next, express (BC)kj(\mathbf{B}\mathbf{C})_{kj} as the sum of products of elements from B\mathbf{B} and C\mathbf{C}:

(BC)kj=∑r=1qbkrcrj(\mathbf{B}\mathbf{C})_{kj} = \sum_{r=1}^{q} b_{kr} c_{rj}

Substitute this into the original sum:

[A(BC)]ij=∑k=1paik(∑r=1qbkrcrj)[\mathbf{A}(\mathbf{B}\mathbf{C})]_{ij} = \sum_{k=1}^{p} a_{ik} \left(\sum_{r=1}^{q} b_{kr} c_{rj}\right)

This double sum can be written as:

[A(BC)]ij=∑k=1p∑r=1qaikbkrcrj[\mathbf{A}(\mathbf{B}\mathbf{C})]_{ij} = \sum_{k=1}^{p} \sum_{r=1}^{q} a_{ik} b_{kr} c_{rj}

Now, consider the element in the ii-th row and jj-th column of the matrix product (AB)C(\mathbf{A}\mathbf{B})\mathbf{C}:

[(AB)C]ij=∑r=1q(AB)ircrj[(\mathbf{A}\mathbf{B})\mathbf{C}]_{ij} = \sum_{r=1}^{q} (\mathbf{A}\mathbf{B})_{ir} c_{rj}

Express (AB)ir(\mathbf{A}\mathbf{B})_{ir} as:

(AB)ir=∑k=1paikbkr(\mathbf{A}\mathbf{B})_{ir} = \sum_{k=1}^{p} a_{ik} b_{kr}

Substitute this into the sum:

[(AB)C]ij=∑r=1q(∑k=1paikbkr)crj[(\mathbf{A}\mathbf{B})\mathbf{C}]_{ij} = \sum_{r=1}^{q} \left(\sum_{k=1}^{p} a_{ik} b_{kr}\right) c_{rj}

This can also be written as:

[(AB)C]ij=∑k=1p∑r=1qaikbkrcrj[(\mathbf{A}\mathbf{B})\mathbf{C}]_{ij} = \sum_{k=1}^{p} \sum_{r=1}^{q} a_{ik} b_{kr} c_{rj}

Since both [A(BC)]ij[\mathbf{A}(\mathbf{B}\mathbf{C})]_{ij} and [(AB)C]ij[(\mathbf{A}\mathbf{B})\mathbf{C}]_{ij} are expressed as the same double sum:

[A(BC)]ij=[(AB)C]ij[\mathbf{A}(\mathbf{B}\mathbf{C})]_{ij} = [(\mathbf{A}\mathbf{B})\mathbf{C}]_{ij}

Thus, the matrix A(BC)\mathbf{A}(\mathbf{B}\mathbf{C}) is equal to the matrix (AB)C(\mathbf{A}\mathbf{B})\mathbf{C}, proving that matrix multiplication is associative.

Distributivity of Matrix Multiplication

Matrix multiplication is distributive over matrix addition, which means that multiplying a matrix by a sum of matrices gives the same result as multiplying each matrix individually and then adding the results. This distributive property can be expressed in two forms: left distributivity and right distributivity.

1. Left Distributivity

For matrices A\mathbf{A}, B\mathbf{B}, and C\mathbf{C}, where A\mathbf{A} is conformable with both B\mathbf{B} and C\mathbf{C}, the left distributive property states:

A(B+C)=AB+AC\mathbf{A}(\mathbf{B} + \mathbf{C}) = \mathbf{A}\mathbf{B} + \mathbf{A}\mathbf{C}

Proof

Let A\mathbf{A} be an m×pm \times p matrix, and let B\mathbf{B} and C\mathbf{C} both be p×np \times n matrices. Then the sum B+C\mathbf{B} + \mathbf{C} is also a p×np \times n matrix, and A(B+C)\mathbf{A}(\mathbf{B} + \mathbf{C}) is an m×nm \times n matrix.

Consider the (i,j)(i,j)-th element of A(B+C)\mathbf{A}(\mathbf{B} + \mathbf{C}):

[A(B+C)]ij=∑k=1paik(bkj+ckj)=∑k=1p(aikbkj+aikckj)[\mathbf{A}(\mathbf{B} + \mathbf{C})]_{ij} = \sum_{k=1}^{p} a_{ik} (b_{kj} + c_{kj}) = \sum_{k=1}^{p} (a_{ik} b_{kj} + a_{ik} c_{kj})

This can be split into two sums:

[A(B+C)]ij=∑k=1paikbkj+∑k=1paikckj=[AB]ij+[AC]ij[\mathbf{A}(\mathbf{B} + \mathbf{C})]_{ij} = \sum_{k=1}^{p} a_{ik} b_{kj} + \sum_{k=1}^{p} a_{ik} c_{kj} = [\mathbf{A}\mathbf{B}]_{ij} + [\mathbf{A}\mathbf{C}]_{ij}

Thus:

[A(B+C)]ij=[AB]ij+[AC]ij[\mathbf{A}(\mathbf{B} + \mathbf{C})]_{ij} = [\mathbf{A}\mathbf{B}]_{ij} + [\mathbf{A}\mathbf{C}]_{ij}

This shows that:

A(B+C)=AB+AC\mathbf{A}(\mathbf{B} + \mathbf{C}) = \mathbf{A}\mathbf{B} + \mathbf{A}\mathbf{C}
2. Right Distributivity

For matrices A\mathbf{A}, B\mathbf{B}, and C\mathbf{C}, where B\mathbf{B} and C\mathbf{C} are conformable with A\mathbf{A}, the right distributive property states:

(A+B)C=AC+BC(\mathbf{A} + \mathbf{B})\mathbf{C} = \mathbf{A}\mathbf{C} + \mathbf{B}\mathbf{C}

Proof

Let A\mathbf{A} and B\mathbf{B} be m×pm \times p matrices, and let C\mathbf{C} be a p×np \times n matrix. Then the sum A+B\mathbf{A} + \mathbf{B} is an m×pm \times p matrix, and (A+B)C(\mathbf{A} + \mathbf{B})\mathbf{C} is an m×nm \times n matrix.

Consider the (i,j)(i,j)-th element of (A+B)C(\mathbf{A} + \mathbf{B})\mathbf{C}:

[(A+B)C]ij=∑k=1p(aik+bik)ckj=∑k=1p(aikckj+bikckj)[(\mathbf{A} + \mathbf{B})\mathbf{C}]_{ij} = \sum_{k=1}^{p} (a_{ik} + b_{ik}) c_{kj} = \sum_{k=1}^{p} (a_{ik} c_{kj} + b_{ik} c_{kj})

This can be split into two sums:

[(A+B)C]ij=∑k=1paikckj+∑k=1pbikckj=[AC]ij+[BC]ij[(\mathbf{A} + \mathbf{B})\mathbf{C}]_{ij} = \sum_{k=1}^{p} a_{ik} c_{kj} + \sum_{k=1}^{p} b_{ik} c_{kj} = [\mathbf{A}\mathbf{C}]_{ij} + [\mathbf{B}\mathbf{C}]_{ij}

Thus:

[(A+B)C]ij=[AC]ij+[BC]ij[(\mathbf{A} + \mathbf{B})\mathbf{C}]_{ij} = [\mathbf{A}\mathbf{C}]_{ij} + [\mathbf{B}\mathbf{C}]_{ij}

This shows that:

(A+B)C=AC+BC(\mathbf{A} + \mathbf{B})\mathbf{C} = \mathbf{A}\mathbf{C} + \mathbf{B}\mathbf{C}

Multiplicative Identity in Matrix Multiplication

In matrix algebra, the multiplicative identity is a matrix that, when multiplied by another matrix, leaves the original matrix unchanged. For a matrix A\mathbf{A} of dimensions m×nm \times n, there are two identity matrices that serve as the left and right identities: Im\mathbf{I}_m and In\mathbf{I}_n.

Left Identity Im\mathbf{I}_m and Right Identity In\mathbf{I}_n
  • Left Identity: The matrix Im\mathbf{I}_m is the m×mm \times m identity matrix, which, when multiplied on the left side of A\mathbf{A}, results in A\mathbf{A}:

    ImA=A\mathbf{I}_m \mathbf{A} = \mathbf{A}
  • Right Identity: The matrix In\mathbf{I}_n is the n×nn \times n identity matrix, which, when multiplied on the right side of A\mathbf{A}, results in A\mathbf{A}:

    AIn=A\mathbf{A} \mathbf{I}_n = \mathbf{A}

Example: A\mathbf{A} is a 2×32 \times 3 Matrix

Consider a matrix A\mathbf{A} with dimensions 2×32 \times 3:

A=[123456]\mathbf{A} = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix}
  • Left Identity I2\mathbf{I}_2:

The left identity matrix I2\mathbf{I}_2 is a 2×22 \times 2 identity matrix:

I2=[1001]\mathbf{I}_2 = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}

Multiplying I2\mathbf{I}_2 on the left of A\mathbf{A}:

I2A=[1001][123456]=[1⋅1+0⋅41⋅2+0⋅51⋅3+0⋅60⋅1+1⋅40⋅2+1⋅50⋅3+1⋅6]=[123456]=A\mathbf{I}_2 \mathbf{A} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix} = \begin{bmatrix} 1 \cdot 1 + 0 \cdot 4 & 1 \cdot 2 + 0 \cdot 5 & 1 \cdot 3 + 0 \cdot 6 \\ 0 \cdot 1 + 1 \cdot 4 & 0 \cdot 2 + 1 \cdot 5 & 0 \cdot 3 + 1 \cdot 6 \end{bmatrix} = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix} = \mathbf{A}
  • Right Identity I3\mathbf{I}_3:

The right identity matrix I3\mathbf{I}_3 is a 3×33 \times 3 identity matrix:

I3=[100010001]\mathbf{I}_3 = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}

Multiplying I3\mathbf{I}_3 on the right of A\mathbf{A}:

AI3=[123456][100010001]=[1⋅1+2⋅0+3⋅01⋅0+2⋅1+3⋅01⋅0+2⋅0+3⋅14⋅1+5⋅0+6⋅04⋅0+5⋅1+6⋅04⋅0+5⋅0+6⋅1]=[123456]=A\mathbf{A} \mathbf{I}_3 = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix} \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix} = \begin{bmatrix} 1 \cdot 1 + 2 \cdot 0 + 3 \cdot 0 & 1 \cdot 0 + 2 \cdot 1 + 3 \cdot 0 & 1 \cdot 0 + 2 \cdot 0 + 3 \cdot 1 \\ 4 \cdot 1 + 5 \cdot 0 + 6 \cdot 0 & 4 \cdot 0 + 5 \cdot 1 + 6 \cdot 0 & 4 \cdot 0 + 5 \cdot 0 + 6 \cdot 1 \end{bmatrix} = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix} = \mathbf{A}

Thus, I2A=A\mathbf{I}_2 \mathbf{A} = \mathbf{A} and AI3=A\mathbf{A} \mathbf{I}_3 = \mathbf{A}, confirming the identity property for non-square matrices.

Square Matrix Case

For a square matrix A\mathbf{A} of size n×nn \times n, there is a single identity matrix In\mathbf{I}_n such that:

InA=AIn=A\mathbf{I}_n \mathbf{A} = \mathbf{A} \mathbf{I}_n = \mathbf{A}

Example:

Consider A=[2345]\mathbf{A} = \begin{bmatrix} 2 & 3 \\ 4 & 5 \end{bmatrix}, a 2×22 \times 2 matrix, and the identity matrix I2\mathbf{I}_2:

I2=[1001]\mathbf{I}_2 = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}

Then:

I2A=[1001][2345]=[2345]=A\mathbf{I}_2 \mathbf{A} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} 2 & 3 \\ 4 & 5 \end{bmatrix} = \begin{bmatrix} 2 & 3 \\ 4 & 5 \end{bmatrix} = \mathbf{A} AI2=[2345][1001]=[2345]=A\mathbf{A} \mathbf{I}_2 = \begin{bmatrix} 2 & 3 \\ 4 & 5 \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} 2 & 3 \\ 4 & 5 \end{bmatrix} = \mathbf{A}

Multiplicative Inverse of a Matrix

The multiplicative inverse of a matrix is a matrix that, when multiplied by the original matrix, results in the identity matrix. The multiplicative inverse exists only for square matrices (matrices with the same number of rows and columns) and only under certain conditions, which we will explore later.

For a square matrix A\mathbf{A}, the inverse is denoted by A−1\mathbf{A}^{-1}. The matrix A−1\mathbf{A}^{-1} is defined by the property:

AA−1=A−1A=I\mathbf{A} \mathbf{A}^{-1} = \mathbf{A}^{-1} \mathbf{A} = \mathbf{I}

where I\mathbf{I} is the identity matrix of the same dimension as A\mathbf{A}.

This means that when you multiply A\mathbf{A} by its inverse A−1\mathbf{A}^{-1}, whether on the left or the right, the result is the identity matrix. We will study more about it in later section.

Powers of a Matrix§

For a square matrix X\mathbf{X} and a natural number n∈Nn \in \mathbb{N}, the power Xn\mathbf{X}^n is defined as the matrix X\mathbf{X} multiplied by itself nn times:

Xn=XX⋯X⏟n times\mathbf{X}^n = \underbrace{\mathbf{X} \mathbf{X} \cdots \mathbf{X}}_{n \text{ times}}

This operation is valid only for square matrices, where the number of rows and columns are equal.

Properties of Matrix Powers

  1. Multiplication of Powers:

    For any natural numbers mm and nn:

    XmXn=Xm+n\mathbf{X}^m \mathbf{X}^n = \mathbf{X}^{m+n}

    This property follows from the definition of matrix multiplication, where multiplying Xm\mathbf{X}^m by Xn\mathbf{X}^n results in a matrix that has m+nm + n factors of X\mathbf{X}.

  2. Power of a Power:

    For any natural numbers mm and nn:

    (Xm)n=Xmn(\mathbf{X}^m)^n = \mathbf{X}^{mn}

    This means that taking the nn-th power of Xm\mathbf{X}^m is equivalent to multiplying the matrix X\mathbf{X} by itself mnmn times.

These properties are analogous to the properties of exponents for real numbers, but they hold within the context of matrix multiplication, which requires X\mathbf{X} to be a square matrix.

Expanding Powers of Matrix Sums§

Given two square matrices A\mathbf{A} and B\mathbf{B}, the expansion of powers of their sum or difference follows the rules of matrix multiplication, keeping in mind that, in general, AB≠BA\mathbf{A} \mathbf{B} \neq \mathbf{B} \mathbf{A}. Here’s how these expansions work:

1. Expansion of (A+B)2(\mathbf{A} + \mathbf{B})^2

Expanding (A+B)2(\mathbf{A} + \mathbf{B})^2 gives:

(A+B)2=(A+B)(A+B)(\mathbf{A} + \mathbf{B})^2 = (\mathbf{A} + \mathbf{B})(\mathbf{A} + \mathbf{B})

Expanding this product using the distributive property:

(A+B)(A+B)=A2+AB+BA+B2(\mathbf{A} + \mathbf{B})(\mathbf{A} + \mathbf{B}) = \mathbf{A}^2 + \mathbf{A}\mathbf{B} + \mathbf{B}\mathbf{A} + \mathbf{B}^2

Since AB\mathbf{A} \mathbf{B} and BA\mathbf{B} \mathbf{A} are generally not equal, we cannot combine or simplify these terms further. The final expression is:

(A+B)2=A2+AB+BA+B2(\mathbf{A} + \mathbf{B})^2 = \mathbf{A}^2 + \mathbf{A}\mathbf{B} + \mathbf{B}\mathbf{A} + \mathbf{B}^2

2. Expansion of (A+B)(A−B)(\mathbf{A} + \mathbf{B})(\mathbf{A} - \mathbf{B})

Expanding (A+B)(A−B)(\mathbf{A} + \mathbf{B})(\mathbf{A} - \mathbf{B}) gives:

(A+B)(A−B)=A2−AB+BA−B2(\mathbf{A} + \mathbf{B})(\mathbf{A} - \mathbf{B}) = \mathbf{A}^2 - \mathbf{A}\mathbf{B} + \mathbf{B}\mathbf{A} - \mathbf{B}^2

Again, because AB\mathbf{A} \mathbf{B} and BA\mathbf{B} \mathbf{A} are not necessarily equal, this expression cannot be simplified further.

3. Expansion of (A+B)3(\mathbf{A} + \mathbf{B})^3

To expand (A+B)3(\mathbf{A} + \mathbf{B})^3, we proceed similarly:

(A+B)3=(A+B)(A+B)2(\mathbf{A} + \mathbf{B})^3 = (\mathbf{A} + \mathbf{B})(\mathbf{A} + \mathbf{B})^2

Using the expansion from (A+B)2(\mathbf{A} + \mathbf{B})^2:

(A+B)3=(A+B)(A2+AB+BA+B2)(\mathbf{A} + \mathbf{B})^3 = (\mathbf{A} + \mathbf{B})(\mathbf{A}^2 + \mathbf{A}\mathbf{B} + \mathbf{B}\mathbf{A} + \mathbf{B}^2)

Now distribute (A+B)(\mathbf{A} + \mathbf{B}):

(A+B)(A2+AB+BA+B2)=A3+A2B+ABA+AB2+BA2+BAB+B2A+B3(\mathbf{A} + \mathbf{B})(\mathbf{A}^2 + \mathbf{A}\mathbf{B} + \mathbf{B}\mathbf{A} + \mathbf{B}^2) = \mathbf{A}^3 + \mathbf{A}^2\mathbf{B} + \mathbf{A}\mathbf{B}\mathbf{A} + \mathbf{A}\mathbf{B}^2 + \mathbf{B}\mathbf{A}^2 + \mathbf{B}\mathbf{A}\mathbf{B} + \mathbf{B}^2\mathbf{A} + \mathbf{B}^3

This expanded form cannot be simplified further due to the non-commutativity of matrix multiplication.

Summary

When working with powers of sums or differences of matrices, the lack of commutativity (i.e., AB≠BA\mathbf{A} \mathbf{B} \neq \mathbf{B} \mathbf{A}) prevents us from simplifying the expressions as we might with real numbers. Instead, we must expand and maintain all terms, acknowledging that products like AB\mathbf{A} \mathbf{B} and BA\mathbf{B} \mathbf{A} are distinct and cannot be combined.

Commutativity of Matrices§

Two matrices A\mathbf{A} and B\mathbf{B} are said to be commutative if their product does not depend on the order of multiplication, i.e., if:

AB=BA\mathbf{A} \mathbf{B} = \mathbf{B} \mathbf{A}

This property is quite special because, in general, matrix multiplication is not commutative.

When Matrices A\mathbf{A} and B\mathbf{B} Are Not Commutative

If A\mathbf{A} and B\mathbf{B} are not commutative (i.e., AB≠BA\mathbf{A} \mathbf{B} \neq \mathbf{B} \mathbf{A}), then when you square the product AB\mathbf{AB}, you must explicitly multiply as follows:

(AB)2=(AB)(AB)=ABAB(\mathbf{AB})^2 = (\mathbf{AB})(\mathbf{AB}) = \mathbf{A} \mathbf{B} \mathbf{A} \mathbf{B}

In this case, you cannot simplify ABAB\mathbf{A} \mathbf{B} \mathbf{A} \mathbf{B} further because A\mathbf{A} and B\mathbf{B} do not commute.

When Matrices A\mathbf{A} and B\mathbf{B} Are Commutative

If A\mathbf{A} and B\mathbf{B} are commutative (i.e., AB=BA\mathbf{A} \mathbf{B} = \mathbf{B} \mathbf{A}), the product (AB)2(\mathbf{AB})^2 simplifies similarly to the way powers work for real numbers:

(AB)2=(AB)(AB)=ABAB(\mathbf{AB})^2 = (\mathbf{AB})(\mathbf{AB}) = \mathbf{A} \mathbf{B} \mathbf{A} \mathbf{B}

Given that AB=BA\mathbf{A} \mathbf{B} = \mathbf{B} \mathbf{A}, you can rewrite this as:

ABAB=A(BA)B=A(AB)B=(AA)(BB)=A2B2\mathbf{A} \mathbf{B} \mathbf{A} \mathbf{B} = \mathbf{A} (\mathbf{B} \mathbf{A}) \mathbf{B} = \mathbf{A} (\mathbf{A} \mathbf{B}) \mathbf{B} = (\mathbf{A} \mathbf{A}) (\mathbf{B} \mathbf{B}) = \mathbf{A}^2 \mathbf{B}^2

Thus, when A\mathbf{A} and B\mathbf{B} commute, the square of the product AB\mathbf{AB} simplifies to A2B2\mathbf{A}^2 \mathbf{B}^2, just like the multiplication of real numbers.

When two matrices A\mathbf{A} and B\mathbf{B} are commutative, i.e., AB=BA\mathbf{A} \mathbf{B} = \mathbf{B} \mathbf{A}, for any natural number nn, the following holds:

ABn=BnA\mathbf{A} \mathbf{B}^n = \mathbf{B}^n \mathbf{A}

Proof

Given that A\mathbf{A} and B\mathbf{B} are commutative matrices, i.e., AB=BA\mathbf{A} \mathbf{B} = \mathbf{B} \mathbf{A}, we want to prove that ABn=BnA\mathbf{A} \mathbf{B}^n = \mathbf{B}^n \mathbf{A} for any natural number nn.

We start by expanding ABn\mathbf{A} \mathbf{B}^n:

ABn=ABB⋯B⏟n times\mathbf{A} \mathbf{B}^n = \mathbf{A} \underbrace{\mathbf{B} \mathbf{B} \cdots \mathbf{B}}_{n \text{ times}}

We can proceed by moving the matrix A\mathbf{A} through each B\mathbf{B}, using the commutative property AB=BA\mathbf{A} \mathbf{B} = \mathbf{B} \mathbf{A}:

  1. First, move A\mathbf{A} past the first B\mathbf{B}:

    ABn=(AB)Bn−1=(BA)Bn−1=BABn−1\mathbf{A} \mathbf{B}^n = (\mathbf{A} \mathbf{B}) \mathbf{B}^{n-1} = (\mathbf{B} \mathbf{A}) \mathbf{B}^{n-1} = \mathbf{B} \mathbf{A} \mathbf{B}^{n-1}
  2. Next, move A\mathbf{A} past the second B\mathbf{B}:

    BABn−1=B(AB)Bn−2=B(BA)Bn−2=B2ABn−2\mathbf{B} \mathbf{A} \mathbf{B}^{n-1} = \mathbf{B} (\mathbf{A} \mathbf{B}) \mathbf{B}^{n-2} = \mathbf{B} (\mathbf{B} \mathbf{A}) \mathbf{B}^{n-2} = \mathbf{B}^2 \mathbf{A} \mathbf{B}^{n-2}
  3. Continue this pattern, moving A\mathbf{A} past each remaining B\mathbf{B}:

    B2ABn−2=B3ABn−3=⋯=Bn−1AB=BnA\mathbf{B}^2 \mathbf{A} \mathbf{B}^{n-2} = \mathbf{B}^3 \mathbf{A} \mathbf{B}^{n-3} = \cdots = \mathbf{B}^{n-1} \mathbf{A} \mathbf{B} = \mathbf{B}^n \mathbf{A}

Thus, we have shown that:

ABn=BnA\mathbf{A} \mathbf{B}^n = \mathbf{B}^n \mathbf{A}

This proves the property without using mathematical induction, simply by following the pattern of moving A\mathbf{A} through each B\mathbf{B}.

Proof Using Mathematical Induction:

If you're familiar with mathematical induction, here’s a formal proof using that method:

Base Case:

For n=1n = 1, we have:

AB1=AB\mathbf{A} \mathbf{B}^1 = \mathbf{A} \mathbf{B}

Given that AB=BA\mathbf{A} \mathbf{B} = \mathbf{B} \mathbf{A}, the base case holds:

AB=BA\mathbf{A} \mathbf{B} = \mathbf{B} \mathbf{A}

Inductive Step:

Assume that ABk=BkA\mathbf{A} \mathbf{B}^k = \mathbf{B}^k \mathbf{A} holds for some k≥1k \geq 1. We need to show that:

ABk+1=Bk+1A\mathbf{A} \mathbf{B}^{k+1} = \mathbf{B}^{k+1} \mathbf{A}

Starting with the left-hand side:

ABk+1=A(BBk)\mathbf{A} \mathbf{B}^{k+1} = \mathbf{A} (\mathbf{B} \mathbf{B}^k)

Using the commutative property AB=BA\mathbf{A} \mathbf{B} = \mathbf{B} \mathbf{A} and the inductive hypothesis ABk=BkA\mathbf{A} \mathbf{B}^k = \mathbf{B}^k \mathbf{A}, we get:

ABk+1=(AB)Bk=(BA)Bk=B(ABk)=B(BkA)=Bk+1A\mathbf{A} \mathbf{B}^{k+1} = (\mathbf{A} \mathbf{B}) \mathbf{B}^k = (\mathbf{B} \mathbf{A}) \mathbf{B}^k = \mathbf{B} (\mathbf{A} \mathbf{B}^k) = \mathbf{B} (\mathbf{B}^k \mathbf{A}) = \mathbf{B}^{k+1} \mathbf{A}

Thus, by the principle of mathematical induction, we conclude that for all n≥1n \geq 1:

ABn=BnA\mathbf{A} \mathbf{B}^n = \mathbf{B}^n \mathbf{A}

This concludes the proof using mathematical induction.

More of these properties

For commutative matrices A\mathbf{A} and B\mathbf{B}:

(AB)n=AnBn(\mathbf{A}\mathbf{B})^n = \mathbf{A}^n \mathbf{B}^n
(A+B)2=A2+2AB+B2(\mathbf{A} + \mathbf{B})^2 = \mathbf{A}^2 + 2\mathbf{A}\mathbf{B} + \mathbf{B}^2
(A−B)2=A2−2AB+B2(\mathbf{A} - \mathbf{B})^2 = \mathbf{A}^2 - 2\mathbf{A}\mathbf{B} + \mathbf{B}^2
(A+B)3=A3+3A2B+3AB2+B3(\mathbf{A} + \mathbf{B})^3 = \mathbf{A}^3 + 3\mathbf{A}^2\mathbf{B} + 3\mathbf{A}\mathbf{B}^2 + \mathbf{B}^3
(A+B)(A−B)=A2−B2(\mathbf{A} + \mathbf{B})(\mathbf{A} - \mathbf{B}) = \mathbf{A}^2 - \mathbf{B}^2

Binomial Theorem for Matrices:

The Binomial Theorem for matrices is an extension of the binomial expansion for real numbers. For any square matrices A\mathbf{A} and B\mathbf{B} that commute:

(A+B)n=∑k=0n(nk)An−kBk(\mathbf{A} + \mathbf{B})^n = \sum_{k=0}^{n} \binom{n}{k} \mathbf{A}^{n-k} \mathbf{B}^k

Here, (nk)\binom{n}{k} denotes the binomial coefficient, and the theorem expands (A+B)n(\mathbf{A} + \mathbf{B})^n into a sum of terms, each involving products of powers of A\mathbf{A} and B\mathbf{B}.

Example: For n=3n = 3, the expansion is:

(A+B)3=(30)A3B0+(31)A2B+(32)AB2+(33)B3(\mathbf{A} + \mathbf{B})^3 = \binom{3}{0} \mathbf{A}^3 \mathbf{B}^0 + \binom{3}{1} \mathbf{A}^2 \mathbf{B} + \binom{3}{2} \mathbf{A} \mathbf{B}^2 + \binom{3}{3} \mathbf{B}^3

Simplifying with the binomial coefficients:

(A+B)3=A3+3A2B+3AB2+B3(\mathbf{A} + \mathbf{B})^3 = \mathbf{A}^3 + 3\mathbf{A}^2 \mathbf{B} + 3\mathbf{A} \mathbf{B}^2 + \mathbf{B}^3

Examples of Commutative Matrices

A classic example of commutative matrices involves the identity matrix I\mathbf{I} and any square matrix A\mathbf{A}. The identity matrix I\mathbf{I} commutes with any square matrix A\mathbf{A}, meaning that AI=IA=A\mathbf{A} \mathbf{I} = \mathbf{I} \mathbf{A} = \mathbf{A}. This commutative relationship allows us to apply algebraic identities similar to those used for real numbers.

For instance, consider the expression (I+A)2(\mathbf{I} + \mathbf{A})^2. We can expand this using the distributive property, keeping in mind that A\mathbf{A} commutes with I\mathbf{I}:

(I+A)2=(I+A)(I+A)=I2+IA+AI+A2(\mathbf{I} + \mathbf{A})^2 = (\mathbf{I} + \mathbf{A})(\mathbf{I} + \mathbf{A}) = \mathbf{I}^2 + \mathbf{I}\mathbf{A} + \mathbf{A}\mathbf{I} + \mathbf{A}^2

Since I2=I\mathbf{I}^2 = \mathbf{I}, and IA=AI=A\mathbf{I}\mathbf{A} = \mathbf{A}\mathbf{I} = \mathbf{A}, this simplifies to:

(I+A)2=I+2A+A2(\mathbf{I} + \mathbf{A})^2 = \mathbf{I} + 2\mathbf{A} + \mathbf{A}^2

Similarly, for the cube of the sum, (I+A)3(\mathbf{I} + \mathbf{A})^3, we expand:

(I+A)3=(I+A)(I+A)2(\mathbf{I} + \mathbf{A})^3 = (\mathbf{I} + \mathbf{A})(\mathbf{I} + \mathbf{A})^2

Substituting the earlier expansion:

(I+A)3=(I+A)(I+2A+A2)(\mathbf{I} + \mathbf{A})^3 = (\mathbf{I} + \mathbf{A})(\mathbf{I} + 2\mathbf{A} + \mathbf{A}^2)

Expanding further, we get:

(I+A)3=I+3A+3A2+A3(\mathbf{I} + \mathbf{A})^3 = \mathbf{I} + 3\mathbf{A} + 3\mathbf{A}^2 + \mathbf{A}^3

Another useful identity involving commutative matrices is I−A2=(I+A)(I−A)\mathbf{I} - \mathbf{A}^2 = (\mathbf{I} + \mathbf{A})(\mathbf{I} - \mathbf{A}). This identity holds because:

(I+A)(I−A)=I2−A2=I−A2(\mathbf{I} + \mathbf{A})(\mathbf{I} - \mathbf{A}) = \mathbf{I}^2 - \mathbf{A}^2 = \mathbf{I} - \mathbf{A}^2

Finally, we can generalize these results using the binomial theorem for matrices. For any natural number nn, the binomial expansion of (I+A)n(\mathbf{I} + \mathbf{A})^n is:

(I+A)n=∑k=0n(nk)In−kAk(\mathbf{I} + \mathbf{A})^n = \sum_{k=0}^{n} \binom{n}{k} \mathbf{I}^{n-k} \mathbf{A}^k

Given that Im=I\mathbf{I}^m = \mathbf{I} for any positive integer mm, this simplifies to:

(I+A)n=∑k=0n(nk)Ak(\mathbf{I} + \mathbf{A})^n = \sum_{k=0}^{n} \binom{n}{k} \mathbf{A}^k

Explicitly, the expansion is:

(I+A)n=(n0)I+(n1)A+(n2)A2+⋯+(nn)An(\mathbf{I} + \mathbf{A})^n = \binom{n}{0} \mathbf{I} + \binom{n}{1} \mathbf{A} + \binom{n}{2} \mathbf{A}^2 + \dots + \binom{n}{n} \mathbf{A}^n

We will see many other matrices later on that commute with each other.

Transpose of a Matrix§

The transpose of a matrix is an operation that involves interchanging the rows and columns of the matrix. If you have a matrix A\mathbf{A}, its transpose is denoted by A⊤\mathbf{A}^\top or AT\mathbf{A}^T.

Definition:

Given a matrix A=[aij]\mathbf{A} = [a_{ij}] of dimensions m×nm \times n (where mm is the number of rows and nn is the number of columns), the transpose of A\mathbf{A}, denoted as A⊤\mathbf{A}^\top, is an n×mn \times m matrix obtained by interchanging the rows and columns of A\mathbf{A}. The elements of A⊤\mathbf{A}^\top are given by:

(A⊤)ij=aji(\mathbf{A}^\top)_{ij} = a_{ji}

This means that the element in the ii-th row and jj-th column of A\mathbf{A} becomes the element in the jj-th row and ii-th column of A⊤\mathbf{A}^\top. In other words, the (i,j)(i,j)-th element of A⊤\mathbf{A}^\top corresponds to the (j,i)(j,i)-th element of A\mathbf{A}.

Example:

Consider the matrix A\mathbf{A}:

A=[123456]\mathbf{A} = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix}

This is a 2×32 \times 3 matrix (2 rows, 3 columns). The transpose of A\mathbf{A}, denoted A⊤\mathbf{A}^\top, is:

A⊤=[142536]\mathbf{A}^\top = \begin{bmatrix} 1 & 4 \\ 2 & 5 \\ 3 & 6 \end{bmatrix}

In this example, the element (1,2)(1,2) in A\mathbf{A}, which is a12=2a_{12} = 2, becomes the element (2,1)(2,1) in A⊤\mathbf{A}^\top, and the element (2,3)(2,3) in A\mathbf{A}, which is a23=6a_{23} = 6, becomes the element (3,2)(3,2) in A⊤\mathbf{A}^\top. This operation demonstrates how rows and columns are interchanged to produce the transpose of the matrix.

Properties of the Transpose of a Matrix

The transpose of a matrix has several important properties that are frequently used in linear algebra. Below are some of the key properties:

1. Double Transpose:

The double transpose of a matrix returns the original matrix. This means that if you transpose a matrix twice, you end up with the same matrix you started with:

(A⊤)⊤=A(\mathbf{A}^\top)^\top = \mathbf{A}
2. Transpose of a Scalar Multiple:

When a matrix is multiplied by a scalar kk, the transpose of this product is equal to the scalar multiplied by the transpose of the matrix:

(kA)⊤=kA⊤(k \mathbf{A})^\top = k \mathbf{A}^\top
3. Transpose of a Sum:

The transpose of the sum of two matrices is equal to the sum of their transposes. This property ensures that transposition distributes over matrix addition:

(A+B)⊤=A⊤+B⊤(\mathbf{A} + \mathbf{B})^\top = \mathbf{A}^\top + \mathbf{B}^\top
4. Transpose of a Product:

The transpose of the product of two matrices reverses the order of multiplication. This means that when transposing a product of matrices, the order of the matrices must be reversed:

(AB)⊤=B⊤A⊤(\mathbf{A} \mathbf{B})^\top = \mathbf{B}^\top \mathbf{A}^\top
5. Transpose Reversal Law for the Product of Three Matrices

The reversal law for the transpose is applicable to the product of three matrices. If A\mathbf{A} is an m×pm \times p matrix, B\mathbf{B} is a p×qp \times q matrix, and C\mathbf{C} is a q×nq \times n matrix, then:

(ABC)⊤=C⊤B⊤A⊤(\mathbf{A} \mathbf{B} \mathbf{C})^\top = \mathbf{C}^\top \mathbf{B}^\top \mathbf{A}^\top

Explanation:

We can prove this step by step:

(ABC)⊤=((AB)C)⊤=C⊤(AB)⊤(\mathbf{A} \mathbf{B} \mathbf{C})^\top = ((\mathbf{A} \mathbf{B}) \mathbf{C})^\top = \mathbf{C}^\top (\mathbf{A} \mathbf{B})^\top

Next, apply the reversal law to the product (AB)⊤(\mathbf{A} \mathbf{B})^\top:

C⊤(AB)⊤=C⊤(B⊤A⊤)=C⊤B⊤A⊤\mathbf{C}^\top (\mathbf{A} \mathbf{B})^\top = \mathbf{C}^\top (\mathbf{B}^\top \mathbf{A}^\top) = \mathbf{C}^\top \mathbf{B}^\top \mathbf{A}^\top

Thus, the transpose of the product of three matrices A\mathbf{A}, B\mathbf{B}, and C\mathbf{C} is the product of their transposes in reverse order.

6. Transpose Reversal Law for the Product of Multiple Matrices

The reversal law can be generalized to the product of any number of matrices. If A1,A2,…,An\mathbf{A}_1, \mathbf{A}_2, \ldots, \mathbf{A}_n are matrices, then:

(A1A2⋯An)⊤=An⊤⋯A2⊤A1⊤(\mathbf{A}_1 \mathbf{A}_2 \cdots \mathbf{A}_n)^\top = \mathbf{A}_n^\top \cdots \mathbf{A}_2^\top \mathbf{A}_1^\top

This property shows that when taking the transpose of a product of multiple matrices, you reverse the order of the matrices and take the transpose of each one.

7. Transpose of a Power of a Matrix

The transpose of a power of a matrix is equal to the power of the transpose of the matrix. Specifically, for a square matrix A\mathbf{A} and a natural number nn:

(An)⊤=(A⊤)n(\mathbf{A}^n)^\top = (\mathbf{A}^\top)^n

This means that if you raise a matrix to a power and then transpose the result, it's the same as transposing the matrix first and then raising it to that power. To prove this use put take A1=A2=...=An=AA_1 = A_2 = ... =A_n = A in the previous property.

Trace of a Matrix§

The trace of a square matrix is defined as the sum of its diagonal elements. If A=[aij]\mathbf{A} = [a_{ij}] is an n×nn \times n square matrix, then the trace of A\mathbf{A}, denoted by trace(A)\text{trace}(\mathbf{A}) or tr(A)\text{tr}(\mathbf{A}), is given by:

trace(A)=∑i=1naii\text{trace}(\mathbf{A}) = \sum_{i=1}^{n} a_{ii}

This means that the trace is the sum of all elements aiia_{ii} where the row index ii is equal to the column index ii.

In other words, for a matrix A=[aij]n×n\mathbf{A} = [a_{ij}]_{n \times n}, the trace is calculated as:

trace(A)=a11+a22+⋯+ann=∑i=1naii\text{trace}(\mathbf{A}) = a_{11} + a_{22} + \dots + a_{nn} = \sum_{i=1}^{n} a_{ii}

The trace is only defined for square matrices, as it specifically involves the sum of elements along the main diagonal.

Properties of the Trace of a Matrix

The trace of a matrix has several important properties:

  1. Trace of the Identity Matrix:

    trace(In)=n\text{trace}(\mathbf{I}_n) = n

    The trace of the identity matrix In\mathbf{I}_n of order nn is equal to nn, since all the diagonal elements are 1.

  2. Trace of a Transpose:

    trace(A⊤)=trace(A)\text{trace}(\mathbf{A}^\top) = \text{trace}(\mathbf{A})

    The trace of a matrix is equal to the trace of its transpose, as the diagonal elements remain the same.

  3. Trace of a Scalar Multiple:

    trace(kA)=k trace(A)\text{trace}(k\mathbf{A}) = k \, \text{trace}(\mathbf{A})

    The trace of a scalar multiple of a matrix is the scalar multiplied by the trace of the matrix.

  4. Trace of a Sum:

    trace(A+B)=trace(A)+trace(B)\text{trace}(\mathbf{A} + \mathbf{B}) = \text{trace}(\mathbf{A}) + \text{trace}(\mathbf{B})

    The trace of the sum of two matrices is equal to the sum of their traces.

  5. Trace of a Product:

    If A\mathbf{A} is m×nm \times n and B\mathbf{B} is n×mn \times m, then both AB\mathbf{AB} and BA\mathbf{BA} exist and have dimensions m×mm \times m and n×nn \times n, respectively. In that case, trace(AB)=trace(BA)\text{trace}(\mathbf{AB}) = \text{trace}(\mathbf{BA}).

    Proof:

    trace(AB)=∑i=1m(AB)ii\text{trace}(\mathbf{AB}) = \sum_{i=1}^{m} (\mathbf{AB})_{ii} =∑i=1m∑j=1n(A)ij(B)ji= \sum_{i=1}^{m} \sum_{j=1}^{n} (\mathbf{A})_{ij} (\mathbf{B})_{ji} =∑j=1n∑i=1m(B)ji(A)ij= \sum_{j=1}^{n} \sum_{i=1}^{m} (\mathbf{B})_{ji} (\mathbf{A})_{ij} =∑j=1n(BA)jj= \sum_{j=1}^{n} (\mathbf{BA})_{jj} =trace(BA)= \text{trace}(\mathbf{BA})
  6. Cyclic Property of the Trace

    For matrices A\mathbf{A} of dimensions m×pm \times p, B\mathbf{B} of dimensions p×pp \times p, and C\mathbf{C} of dimensions p×np \times n, the trace function exhibits a cyclic permutation property:

    trace(ABC)=trace(CAB)=trace(BCA)\text{trace}(\mathbf{A} \mathbf{B} \mathbf{C}) = \text{trace}(\mathbf{C} \mathbf{A} \mathbf{B}) = \text{trace}(\mathbf{B} \mathbf{C} \mathbf{A})

    To prove this property, we use the fact that trace(XY)=trace(YX)\text{trace}(\mathbf{XY}) = \text{trace}(\mathbf{YX}).

    Starting with trace(ABC)\text{trace}(\mathbf{A} \mathbf{B} \mathbf{C}), we can group the first two matrices to write it as trace((AB)C)\text{trace}((\mathbf{A} \mathbf{B}) \mathbf{C}). Applying the property trace(XY)=trace(YX)\text{trace}(\mathbf{XY}) = \text{trace}(\mathbf{YX}), this becomes trace(C(AB))\text{trace}(\mathbf{C} (\mathbf{A} \mathbf{B})). By the associative property of matrix multiplication, this simplifies to trace(CAB)\text{trace}(\mathbf{C} \mathbf{A} \mathbf{B}).

    Similarly, we can cyclically permute the matrices further:

    trace(CAB)=trace((CA)B)=trace(B(CA))=trace(BCA)\text{trace}(\mathbf{C} \mathbf{A} \mathbf{B}) = \text{trace}((\mathbf{C} \mathbf{A}) \mathbf{B}) = \text{trace}(\mathbf{B} (\mathbf{C} \mathbf{A})) = \text{trace}(\mathbf{B} \mathbf{C} \mathbf{A})

    Thus, we have shown that:

    trace(ABC)=trace(CAB)=trace(BCA)\text{trace}(\mathbf{A} \mathbf{B} \mathbf{C}) = \text{trace}(\mathbf{C} \mathbf{A} \mathbf{B}) = \text{trace}(\mathbf{B} \mathbf{C} \mathbf{A})

    This proves that the trace of the product of matrices A\mathbf{A}, B\mathbf{B}, and C\mathbf{C} remains invariant under cyclic permutations.

  7. Cyclic Property of the Trace for Multiple Matrices

    The cyclic property of the trace extends to any number of matrices. For matrices A1,A2,…,An\mathbf{A}_1, \mathbf{A}_2, \ldots, \mathbf{A}_n where A1\mathbf{A}_1 is m×p1m \times p_1, A2\mathbf{A}_2 is p1×p2p_1 \times p_2, A3\mathbf{A}_3 is p2×p3p_2 \times p_3, and so on, up to An\mathbf{A}_n being pn−1×mp_{n-1} \times m, the trace of their product has the following property:

    trace(A1A2⋯An)=trace(AnA1A2⋯An−1)=trace(An−1AnA1A2⋯An−2)=⋯\text{trace}(\mathbf{A}_1 \mathbf{A}_2 \cdots \mathbf{A}_n) = \text{trace}(\mathbf{A}_n \mathbf{A}_1 \mathbf{A}_2 \cdots \mathbf{A}_{n-1}) = \text{trace}(\mathbf{A}_{n-1} \mathbf{A}_n \mathbf{A}_1 \mathbf{A}_2 \cdots \mathbf{A}_{n-2}) = \cdots
  8. Trace of AA⊤\mathbf{A}\mathbf{A}^\top and A⊤A\mathbf{A}^\top\mathbf{A}

    For any matrix A\mathbf{A} of dimensions m×nm \times n, the trace of the products AA⊤\mathbf{A} \mathbf{A}^\top and A⊤A\mathbf{A}^\top \mathbf{A} is equal to the sum of the squares of all elements of A\mathbf{A}:

    trace(AA⊤)=trace(A⊤A)=∑i=1m∑j=1naij2\text{trace}(\mathbf{A} \mathbf{A}^\top) = \text{trace}(\mathbf{A}^\top \mathbf{A}) = \sum_{i=1}^{m} \sum_{j=1}^{n} a_{ij}^2

    Proof:

    Given A\mathbf{A} is m×nm \times n, the transpose A⊤\mathbf{A}^\top is n×mn \times m. Therefore, the matrices AA⊤\mathbf{A}\mathbf{A}^\top and A⊤A\mathbf{A}^\top\mathbf{A} are both square, with dimensions m×mm \times m and n×nn \times n respectively. Since both are square matrices, their traces are defined.

    Using the property of trace that trace(XY)=trace(YX)\text{trace}(\mathbf{XY}) = \text{trace}(\mathbf{YX}), we can establish that:

    trace(AA⊤)=trace(A⊤A).\text{trace}(\mathbf{A}\mathbf{A}^\top) = \text{trace}(\mathbf{A}^\top \mathbf{A}).

    To understand why these traces are also the sum of the squares of all elements in A\mathbf{A}, consider the definition of the trace of AA⊤\mathbf{A} \mathbf{A}^\top:

    trace(AA⊤)=∑i=1m(AA⊤)ii\text{trace}(\mathbf{A} \mathbf{A}^\top) = \sum_{i=1}^{m} (\mathbf{A} \mathbf{A}^\top)_{ii} =∑i=1m∑j=1n(A)ij(A⊤)ji= \sum_{i=1}^{m} \sum_{j=1}^{n} (\mathbf{A})_{ij} (\mathbf{A}^\top)_{ji} =∑i=1m∑j=1n(A)ij(A)ij= \sum_{i=1}^{m} \sum_{j=1}^{n} (\mathbf{A})_{ij} (\mathbf{A})_{ij} =∑i=1m∑j=1n(Aij)2= \sum_{i=1}^{m} \sum_{j=1}^{n} (\mathbf{A}_{ij})^2
Section 2 of 10 · Matrices and Determinants

Mark this section complete when you have worked through its proofs.