Multiplication and Power of Matrices

The multiplication of matrices, as well as finding the power of a matrix, are presented below using definitions, rules, examples, and practice questions with interactive solutions.

Multiplication of Rows and Columns Matrices

Let \( A \) be a row matrix of order \( 1 \times p \) with entries \( a_{1j} \), and \( B \) be a column matrix of order \( p \times 1 \) with entries \( b_{j1} \). The product \( A B \) is a \( 1 \times 1 \) matrix defined by:

\[ \begin{bmatrix} a_{11} & a_{12} & \dots & a_{1p} \end{bmatrix} \begin{bmatrix} b_{11} \\ b_{21} \\ \vdots \\ b_{p1} \end{bmatrix} = \begin{bmatrix} a_{11}b_{11} + a_{12}b_{21} + \dots + a_{1p}b_{p1} \end{bmatrix} \]

Example 1

Matrices \( A \) and \( B \) are defined by:

\[ A = \begin{bmatrix} 2 & -1 & 3 \end{bmatrix}, \qquad B = \begin{bmatrix} 2 \\ 1 \\ -2 \end{bmatrix}. \]

Find the matrix \( A B \).

View Solution

Multiply matching corresponding elements and add the results:

\[ A B = \begin{bmatrix} (2)(2) + (-1)(1) + (3)(-2) \end{bmatrix} = \begin{bmatrix} 4 - 1 - 6 \end{bmatrix} = \begin{bmatrix} -3 \end{bmatrix}. \]

Multiplication of Matrices

We now apply the idea of multiplying a row by a column to more general matrices. Let \( A \) be an \( m \times p \) matrix and \( B \) be a \( p \times n \) matrix.

Let \( R_1, R_2, \dots, R_m \) be the rows of \( A \) and \( C_1, C_2, \dots, C_n \) be the columns of \( B \), written as:

\[ A = \begin{bmatrix} R_1 \\ R_2 \\ \vdots \\ R_m \end{bmatrix}, \qquad B = \begin{bmatrix} C_1 & C_2 & \dots & C_n \end{bmatrix}. \]

The product \( A B \) is the \( m \times n \) matrix:

\[ A B = \begin{bmatrix} R_1 \cdot C_1 & R_1 \cdot C_2 & \dots & R_1 \cdot C_n \\ R_2 \cdot C_1 & R_2 \cdot C_2 & \dots & R_2 \cdot C_n \\ \vdots & \vdots & \ddots & \vdots \\ R_m \cdot C_1 & R_m \cdot C_2 & \dots & R_m \cdot C_n \end{bmatrix}. \]

Condition: the number of columns of \( A \) must equal the number of rows of \( B \), i.e. \( A \) is \( m \times p \) and \( B \) is \( p \times n \).

Example 2

Find the product:

\[ \begin{bmatrix} 2 & -1 & 0 \\ 1 & 2 & 2 \end{bmatrix} \begin{bmatrix} 2 & -2 \\ 1 & 0 \\ -1 & 2 \end{bmatrix}. \]
View Solution

The left matrix has 2 rows (\( R_1, R_2 \)) and the right matrix has 2 columns (\( C_1, C_2 \)). Their product is:

\[ \begin{bmatrix} R_1 \\ R_2 \end{bmatrix} \begin{bmatrix} C_1 & C_2 \end{bmatrix} = \begin{bmatrix} R_1 \cdot C_1 & R_1 \cdot C_2 \\ R_2 \cdot C_1 & R_2 \cdot C_2 \end{bmatrix}. \]

Expanding:

\[ = \begin{bmatrix} (2)(2) + (-1)(1) + (0)(-1) & (2)(-2) + (-1)(0) + (0)(2) \\ (1)(2) + (2)(1) + (2)(-1) & (1)(-2) + (2)(0) + (2)(2) \end{bmatrix} \] \[ = \begin{bmatrix} 3 & -4 \\ 2 & 2 \end{bmatrix}. \]

Power of a Matrix

The power of a square matrix \( A \) is defined as follows:

  • \( A^0 = I \), where \( I \) is the identity matrix.
  • \( A^n = A \cdot A \cdots A \) (\( n \) times), where \( n \) is a positive integer.

For positive integers \( m \) and \( n \), the standard exponent rules apply:

  • \( A^m \cdot A^n = A^{m+n} \)
  • \( (A^m)^n = A^{m n} \)

Properties of Matrix Multiplication

  1. The product \( A B \) is defined if and only if the number of columns of \( A \) equals the number of rows of \( B \).
  2. In general, matrix multiplication is not commutative: \( A B \neq B A \).
  3. Matrix multiplication is associative: \( (A B) C = A (B C) \), whenever the products are defined.
  4. Matrix multiplication is distributive over addition: \( A (B + C) = A B + A C \) and \( (A + B) C = A C + B C \).
  5. Identity: for any \( n \times n \) matrix \( A \), \( A I_n = I_n A = A \).
  6. For real scalars \( \alpha \) and \( \beta \):
    • \( \alpha(A + B) = \alpha A + \alpha B \)
    • \( \alpha(\beta A) = (\alpha \beta) A \)
    • \( (\alpha + \beta) A = \alpha A + \beta A \)
    • \( \alpha(A B) = (\alpha A) B = A (\alpha B) \)

Questions on Multiplication of Matrices

Part 1

Matrices \( A, B, C, \) and \( E \) have the following orders:

Which of the following products are defined?

  1. \( A B \)
  2. \( A C \)
  3. \( C E \)
  4. \( E C \)
  5. \( (A B) C \)
View Solutions to Part 1
  1. \( A B \): defined — columns of \(A\) (3) = rows of \(B\) (3).
  2. \( A C \): not defined — columns of \(A\) (3) ≠ rows of \(C\) (5).
  3. \( C E \): defined — columns of \(C\) (1) = rows of \(E\) (1); the result is \( 5 \times 5 \).
  4. \( E C \): defined — columns of \(E\) (5) = rows of \(C\) (5); the result is \( 1 \times 1 \).
  5. \( (A B) C \): defined — \( A B \) is \( 2 \times 5 \), and columns (5) = rows of \( C \) (5); the result is \( 2 \times 1 \).

Part 2

Matrices \( A, B, C, D, E, \) and \( F \) are given by:

\[ A = \begin{bmatrix} -1 & 1 & -2 \\ 0 & -2 & 1 \end{bmatrix}, \qquad B = \begin{bmatrix} -1 & 2 & 0 \\ 0 & -3 & 4 \\ -1 & -2 & 3 \end{bmatrix}, \qquad C = \begin{bmatrix} -3 & 2 & 9 & -5 & 7 \end{bmatrix}, \] \[ D = \begin{bmatrix} -2 & 6 \\ -5 & 2 \end{bmatrix}, \qquad E = \begin{bmatrix} 3 \\ 5 \\ -11 \end{bmatrix}, \qquad F = \begin{bmatrix} -1 & 0 & 2 \\ -2 & -3 & 4 \\ 1 & 4 & -3 \end{bmatrix}. \]

Compute the following if possible:

  1. \( A B \)
  2. \( B C \)
  3. \( A D \)
  4. \( E F \)
  5. \( F E \)
View Solutions to Part 2
  1. \( A B \) is defined, and equals: \[ \begin{bmatrix} -1 & 1 & -2 \\ 0 & -2 & 1 \end{bmatrix} \begin{bmatrix} -1 & 2 & 0 \\ 0 & -3 & 4 \\ -1 & -2 & 3 \end{bmatrix} = \begin{bmatrix} 3 & -1 & -2 \\ -1 & 4 & -5 \end{bmatrix}. \]
  2. \( B C \) is not defined — columns of \(B\) (3) ≠ rows of \(C\) (1).
  3. \( A D \) is not defined — columns of \(A\) (3) ≠ rows of \(D\) (2).
  4. \( E F \) is not defined — columns of \(E\) (1) ≠ rows of \(F\) (3).
  5. \( F E \) is defined, and equals: \[ \begin{bmatrix} -1 & 0 & 2 \\ -2 & -3 & 4 \\ 1 & 4 & -3 \end{bmatrix} \begin{bmatrix} 3 \\ 5 \\ -11 \end{bmatrix} = \begin{bmatrix} -25 \\ -65 \\ 56 \end{bmatrix}. \]

Part 3

Find \( x \) and \( y \) if:

\[ \begin{bmatrix} x + y & -2 \\ x - y & 1 \end{bmatrix} \begin{bmatrix} 2 & -1 \\ 0 & -2 \end{bmatrix} = \begin{bmatrix} 8 & 0 \\ 12 & -8 \end{bmatrix}. \]
View Solution to Part 3

First compute the product on the left-hand side:

\[ \begin{bmatrix} x + y & -2 \\ x - y & 1 \end{bmatrix} \begin{bmatrix} 2 & -1 \\ 0 & -2 \end{bmatrix} = \begin{bmatrix} 2(x+y) + 0 & -(x+y) + 4 \\ 2(x-y) + 0 & -(x-y) - 2 \end{bmatrix} = \begin{bmatrix} 2x + 2y & -x - y + 4 \\ 2x - 2y & -x + y - 2 \end{bmatrix}. \]

Set this equal to the right-hand side:

\[ \begin{bmatrix} 2x + 2y & -x - y + 4 \\ 2x - 2y & -x + y - 2 \end{bmatrix} = \begin{bmatrix} 8 & 0 \\ 12 & -8 \end{bmatrix}. \]

Equating corresponding entries gives two independent equations:

\[ 2x + 2y = 8 \quad \Rightarrow \quad x + y = 4, \] \[ 2x - 2y = 12 \quad \Rightarrow \quad x - y = 6. \]

(The remaining two entries produce the same two equations.) Adding them:

\[ 2x = 10 \quad \Rightarrow \quad x = 5, \]

and substituting back, \( y = 4 - x = -1 \).

Answer: \( x = 5 \) and \( y = -1 \).

Part 4

Calculate the following power of a matrix:

\[ \left( \begin{bmatrix} 2 & 0 & 0 \\ 0 & 0 & 2 \\ 0 & 2 & 0 \end{bmatrix} \right)^{10}. \]
View Solution to Part 4

Factor out the scalar \( 2 \):

\[ \begin{bmatrix} 2 & 0 & 0 \\ 0 & 0 & 2 \\ 0 & 2 & 0 \end{bmatrix} = 2 \begin{bmatrix} 1 & 0 & 0 \\ 0 & 0 & 1 \\ 0 & 1 & 0 \end{bmatrix}. \]

Now raise the whole expression to the 10th power:

\[ \left( \begin{bmatrix} 2 & 0 & 0 \\ 0 & 0 & 2 \\ 0 & 2 & 0 \end{bmatrix} \right)^{10} = 2^{10} \left( \begin{bmatrix} 1 & 0 & 0 \\ 0 & 0 & 1 \\ 0 & 1 & 0 \end{bmatrix} \right)^{10}. \]

The inner matrix is an elementary matrix that swaps rows 2 and 3. Swapping twice returns to the identity, so:

\[ \begin{bmatrix} 1 & 0 & 0 \\ 0 & 0 & 1 \\ 0 & 1 & 0 \end{bmatrix}^{2} = I_3, \qquad \begin{bmatrix} 1 & 0 & 0 \\ 0 & 0 & 1 \\ 0 & 1 & 0 \end{bmatrix}^{10} = I_3. \]

Therefore:

\[ 2^{10} I_3 = 1024 I_3 = \begin{bmatrix} 1024 & 0 & 0 \\ 0 & 1024 & 0 \\ 0 & 0 & 1024 \end{bmatrix}. \]

Answer: \( \begin{bmatrix} 1024 & 0 & 0 \\ 0 & 1024 & 0 \\ 0 & 0 & 1024 \end{bmatrix} \).

More References and Links