Lesson Explainer: Matrix Operations | Nagwa Lesson Explainer: Matrix Operations | Nagwa

Lesson Explainer: Matrix Operations Mathematics

In this explainer, we will learn how to combine the operations of addition, subtraction, scalar multiplication, and transposing matrices.

Let us begin by recalling the notation for a matrix that is useful for defining matrix operations. If we denote 𝑎 for integers 𝑖=1,2,,𝑚 and 𝑗=1,2,,𝑛 to be a sequence of numbers, then (𝑎)× denotes the 𝑚×𝑛 matrix whose entry in the 𝑖th row and 𝑗th column is given by 𝑎. If the order of the matrix is clear from the context, we can omit 𝑚×𝑛 from the notation to write (𝑎).

Using this notation, we will recall a few matrix operations to be used in this explainer. At the simplest level, two matrices of the same order can be combined with two of the most familiar mathematical tools: addition and subtraction of matrices.

Definition: Matrix Addition and Subtraction

Given a pair of matrices of the same order, we can add or subtract these matrices by adding or subtracting each corresponding entry. In other words, let 𝐴=(𝑎)× and 𝐵=𝑏×. Then, 𝐴+𝐵=𝐶,𝐴𝐵=𝐷, where 𝐶=(𝑐)× and 𝐷=𝑑× satisfying 𝑐=𝑎+𝑏,𝑑=𝑎𝑏.

There is also scalar multiplication to a matrix, which mimics our understanding of the multiplication of real numbers.

Definition: Scalar Multiplication of Matrices

Given a scalar and a matrix, the scalar multiplication of a matrix is computed by multiplying the scalar by each entry of the matrix. In other words, let 𝐴=(𝑎)× and 𝑐 be a scalar. Then, 𝑐𝐴=𝐸, where 𝐸=(𝑒)× with 𝑒=𝑐𝑎.

When we combine matrix addition, subtraction, and scalar multiplication, we should be cautious to follow the correct order of operations. The order of matrix operations is analogous to the order of operations in real numbers.

How To: Ordering Matrix Operations Involving Matrix Addition, Subtraction, and Scalar Multiplication

A combination of matrix operations involving matrix addition, subtraction, and scalar multiplication is evaluated in the following order:

  1. Compute the operation within parentheses.
  2. Compute the scalar multiplication.
  3. Compute the matrix addition.
  4. Compute the matrix subtraction.

We can see that the order of matrix operations involving these operations is analogous to that of real number operations, which is often known as PEMDAS (parentheses, exponents, multiplication, division, addition, subtraction). The operations listed above only contain parentheses, multiplication, addition, and subtraction.

In our first example, we will combine matrix addition and scalar multiplication.

Example 1: Finding the Sum of Two Matrices with Scalar Multiplication

Given that 𝐴=7542,𝐵=1072, what is 13(𝐴+𝐵)?

Answer

Recall that when combining matrix operations, we must first compute the expression inside the parentheses. Hence, to compute 13(𝐴+𝐵), we need to first find the matrix addition 𝐴+𝐵. Recall that we can add a pair of matrices of the same order by adding each corresponding entry in the matrices. We can see that both 𝐴 and 𝐵 are 2×2 matrices, which means that they are of the same order. Hence, the addition 𝐴+𝐵 is well defined and is given by 𝐴+𝐵=7542+1072=7+15+04+722=6534.

Now that we have obtained matrix 𝐴+𝐵, we can multiply this matrix by the scalar 13 to finish our computation. Recall that scalar multiplication to a matrix is performed by multiplying the scalar by each entry of the matrix. This gives us 13(𝐴+𝐵)=136534=13×(6)13×513×313×(4)=253143.

Hence, 13(𝐴+𝐵)=253143.

Let us consider another example of combining matrix addition, subtraction, and scalar multiplication by following the correct order of operations.

Example 2: Applying Operations on Matrices Involving Scalar Multiplication to Find an Unknown Matrix

Given that 𝑋=321588,𝑌=189972,𝑍=387085, what is the matrix 3𝑋+𝑌3𝑍?

Answer

In this example, we need to compute an expression that involves scalar multiplication, addition, and subtraction of matrices. Recall that a combination of matrix operations involving matrix addition, subtraction, and scalar multiplication is evaluated in the following order:

  1. Compute the operation within parentheses.
  2. Compute the scalar multiplication.
  3. Compute the matrix addition.
  4. Compute the matrix subtraction.

Since the given expression in our example does not involve any parentheses, we begin by finding the scalar multiplications 3𝑋 and 3𝑍. Recall that scalar multiplication to a matrix is performed by multiplying the scalar by each entry of the matrix. This gives us 3𝑋=3×(3)3×(2)3×13×53×(8)3×(8)=963152424,3𝑍=3×33×(8)3×(7)3×03×(8)3×5=9242102415.

Now that we have computed the scalar multiplication, we can consider matrix addition in the expression 3𝑋+𝑌3𝑍. The addition in this expression is 3𝑋+𝑌. Recall that we can add or subtract a pair of matrices of the same order by adding or subtracting each corresponding entry in the matrices. We can see that the matrices 3𝑋 and 𝑌 are 3×2 matrices, which means that the matrix addition is well defined and is given by 3𝑋+𝑌=963152424+189972=9+(1)6+83+(9)15+(9)24+724+(2)=102661726.

Finally, we can finish the computation by considering matrix subtraction. We can see that 3𝑋+𝑌 and 3𝑍 are both 3×2 matrices. Hence, the subtraction 3𝑋+𝑌3𝑍 is well defined and is given by 3𝑋+𝑌3𝑍=1026617269242102415=1092(24)6(21)6017(24)2615=1926156741.

Hence, 3𝑋+𝑌3𝑍=1926156741.

In the next example, we will solve a matrix equation to find an unknown matrix in an equation.

Example 3: Finding an Unknown Matrix in an Equation

Fill in the blank: If 3𝑋+30912=𝑂, then 𝑋=.

  1. 1034
  2. 1034
  3. 30912
  4. 30912

Answer

In this example, we need to find the unknown matrix 𝑋 from the given equation. Recall that 𝑂, which is on the right-hand side of the given equation, is the zero matrix of certain order.

The left-hand side of the equation is given by the addition of two matrices. We know that we can only add matrices of the same order, and the second matrix in the addition is a 2×2 matrix. Hence, matrix 3𝑋 must also be a 2×2 matrix. Matrix 3𝑋 is obtained by scalar multiplication to matrix 𝑋. Since scalar multiplication does not change the order of a matrix, matrix 𝑋 is also of order 2×2. We know that adding two matrices of the same order preserves the order of the matrix. This means that the zero matrix on the right-hand side of the equation is a 2×2 matrix.

We can find the unknown matrix 𝑋 using two different methods, as we will demonstrate below.

Method 1

We can denote 𝑋=(𝑥) to write 3𝑥𝑥𝑥𝑥+30912=0000.

On the left-hand side of this equation, we have scalar multiplication and matrix addition. We recall that scalar multiplication should be computed before matrix addition, so let us first find the scalar multiplication 3𝑋. Recall that scalar multiplication to a matrix is performed by multiplying the scalar by each entry of the matrix. This gives us 3𝑥𝑥𝑥𝑥=3𝑥3𝑥3𝑥3𝑥.

Substituting this expression into our equation gives 3𝑥3𝑥3𝑥3𝑥+30912=0000.

Next, we need to compute the matrix addition on the left-hand side of this equation. Recall that we can add a pair of matrices of the same order by adding each corresponding entry in the matrices. We can see that both matrices are of order 2×2, so the addition is well defined and is given by 3𝑥3𝑥3𝑥3𝑥+30912=3𝑥33𝑥3𝑥+93𝑥+12.

Substituting this expression on the left-hand side of the equation gives 3𝑥33𝑥3𝑥+93𝑥+12=0000.

Recall that two matrices of the same order are equal to each other if the corresponding entries in each matrix are equal. This gives us four equations: 3𝑥3=0,3𝑥=0,3𝑥+9=0,3𝑥+12=0.

We can rearrange each equation to obtain 3𝑥=3𝑥=1,𝑥=0,3𝑥=9𝑥=3,3𝑥=12𝑥=4.

This gives all entries of 𝑋, which means 𝑋=1034.

Method 2

Alternatively, we can solve the matrix equation by applying matrix operations directly to the equation so that the left-hand side of the equation is equal to 𝑋. We begin with the equation 3𝑋+30912=0000.

We want to isolate 𝑋 on the left-hand side of the equation. So, we subtract the second matrix from both sides of the equation to write 3𝑋+3091230912=000030912.

Subtracting a matrix from itself produces a zero matrix. We can also consider the right-hand side of the equation as adding the zero matrix and 1 multiplied by the other matrix. We know that a zero matrix is an additive identity in matrix addition, which means that adding a matrix to a zero matrix does not change the matrix. Hence, we can write this equation as 3𝑋=30912.

Next, we can multiply both sides of the equation by the scalar 13 to obtain 𝑋=1330912.

Finally, we need to find the scalar multiplication on the right-hand side of the equation: 𝑋=13×(3)13×013×913×12=1034.

This is option B.

In the previous example, we solved a matrix equation involving matrix addition, subtraction, and scalar multiplication. These three operations of matrices are analogous to the corresponding operations of real numbers. We can observe that the second method of solving this matrix equation is very similar to the method of solving an analogous real-number equation.

Transposition is a completely new concept for matrices that does not exist for real numbers, and we can combine this operation with the addition, subtraction, and scalar multiplication of matrices to produce problems that are unique to matrix operations.

Definition: Matrix Transposition

If we transpose an 𝑚×𝑛 matrix, we obtain an 𝑛×𝑚 matrix. We can obtain the transpose of a matrix by writing the rows of the matrix as the corresponding columns. Using matrix notation, we can write (𝑎)=(𝑎).××

Where does the transposition fit into the order of matrix operations? We can observe that the transposition of a matrix “looks like” an exponent of a matrix. While transposition is not analogous to taking an exponent, the order of transposition fits in analogously as the order of taking an exponent in real-number operations. Thinking of PEMDAS, we can see that the term “exponents,” hence transposition, is between parentheses and multiplication.

How To: Ordering Matrix Operations Involving Matrix Addition, Subtraction, Scalar Multiplication, and Transposition

A combination of matrix operations involving matrix addition, subtraction, scalar multiplication, and transposition is evaluated in the following order:

  1. Compute the operation within parentheses.
  2. Compute the transposition.
  3. Compute the scalar multiplication.
  4. Compute the matrix addition.
  5. Compute the matrix subtraction.

In the next example, we will combine the transposition and subtraction of matrices.

Example 4: Combining Matrix Transposition and Subtraction

Fill in the blank: 64325341=.

  1. 1861
  2. 11003
  3. 𝑂
  4. 𝐼

Answer

In this example, we need to compute the matrix subtraction and transposition. Recall that the matrix transposition should be computed before the matrix subtraction. So, let us begin by finding the transpose of the second matrix on the left-hand side of the equation. Recall that we can obtain the transpose of a matrix by writing the rows of the matrix as the corresponding columns. This leads to 5341=5431.

Next, let us consider the matrix subtraction: 64325431.

Recall that we can subtract a pair of matrices of the same order by subtracting each corresponding entry in the matrices. We can see that both matrices are 2×2 matrices, which means that the subtraction is well defined. Subtracting corresponding entries, we obtain 654(4)3(3)21=1001.

This completes the stated matrix operations. We can see that the resulting matrix is a diagonal matrix with 1 in each diagonal entry. Recall that such a matrix is an identity matrix and is denoted by 𝐼.

This is option D.

In the next example, we will find an unknown matrix in an equation that involves matrix addition and transposition.

Example 5: Finding an Unknown Matrix in an Equation

Solve for matrix 𝑋 in the matrix equation 𝑋𝐴=2𝐼, where 𝐼 is a unit matrix with size 2×2 and 𝐴=2963.

Answer

In this example, we need to find an unknown matrix in a given equation. We can apply matrix operations directly to the equation to find the unknown matrix 𝑋.

Let us begin by finding the transpose 𝐴 on the left-hand side of the given equation. Recall that we can obtain the transpose of a matrix by writing the rows of the matrix as the corresponding columns. This leads to 2963=2693.

Next, let us find the matrix on the right-hand side of the equation. We are given that 𝐼 is a 2×2 unit matrix, which is also known as an identity matrix. Recall that an identity, or unit, matrix is a diagonal matrix with 1s in the diagonal entries. This means 2𝐼=21001.

We can compute the scalar multiplication by multiplying the scalar 2 by each entry of the matrix. This gives us 2𝐼=2002.

Then, we can write the given equation as 𝑋2693=2002.

Next, we add the matrix 2693 to both sides of the equation 𝑋2693+2693=2002+2693.

Subtracting a matrix from itself produces a zero matrix, which is an additive identity. This means that the left-hand side of the equation above is equal to 𝑋.

The right-hand side of this equation contains matrix addition. Recall that we can add matrices of the same order by adding their corresponding entries. We can see that both matrices on the right-hand side of the equation are 2×2 matrices, so we can compute the matrix addition to obtain 2002+2693=2+20+60+92+3=4695.

This gives us 𝑋=4695.

In the previous examples, we saw how to combine matrix transposition with other matrix operations, such as addition, subtraction, and scalar multiplication. We can recall a few properties of matrix transposition that are helpful in combining these operations.

Property: Distributive Property of Matrix Transposition

Let 𝐴 and 𝐵 be matrices of the same order. Then, (𝐴+𝐵)=𝐴+𝐵,(𝐴𝐵)=𝐴𝐵.

We know that multiplication of real numbers is distributive, which means 𝑎×(𝑏+𝑐)=𝑎×𝑏+𝑎×𝑐,𝑎,𝑏,𝑐.forany

Hence, the matrix transpose behaves like multiplication in that it satisfies the distributive property.

We can also combine matrix transposition with itself. This means that we can apply matrix transposition twice to a matrix. We recall the following result concerning successive applications of matrix transposition.

Property: Successive Applications of Matrix Transposition

Let 𝐴 be a matrix. Then, 𝐴=𝐴.

This statement tells us that successive applications of matrix transposition bring back the original matrix.

In the next example, we will apply the properties of matrix transposition to compute the given expression.

Example 6: Operations on Matrices Involving the Transpose of a Matrix

Given that 𝐵=1373,𝐵𝐵=𝐴, determine the value of 𝑎+𝑎.

Answer

In this example, we need to compute the expression 𝑎+𝑎. We recall that the notation 𝑎 indicates the entry in the 𝑖th row and 𝑗th column of matrix 𝐴. Hence, we need to find the entries 𝑎 and 𝑎 and sum them. To do this, we need to first compute matrix 𝐴.

Matrix 𝐴 is given by the expression 𝐵𝐵. We can simplify this expression by applying the properties of matrix transposition. First, recall the distributive property of matrix transposition. Given matrices 𝐶 and 𝐷 of the same order, we have (𝐶𝐷)=𝐶𝐷.

Applying this property with 𝐶=𝐵 and 𝐷=𝐵, we obtain 𝐵𝐵=𝐵𝐵.

We now recall another property of matrix transposition. For any matrix 𝐶, 𝐶=𝐶.

This means that 𝐵=𝐵, which leads to 𝐵𝐵=𝐵𝐵=𝐵𝐵.

Hence, this leads to 𝐴=𝐵𝐵.

To find matrix 𝐴, we need to first find the transpose 𝐵 and then subtract 𝐵 from this matrix. Recall that we can find the transpose of a matrix by swapping its rows and columns. This gives us 𝐵=1373=1733.

Then, 𝐵𝐵=17331373.

Finally, we need to find the matrix subtraction. Recall that we can subtract matrices of the same order by subtracting the corresponding entries. We can see that both matrices on the right-hand side of the equation are 2×2 matrices, so the matrix subtraction is well defined. Hence, we obtain 17331373=117(3)373(3)=010100.

Therefore, we have 𝐴=010100.

𝑎 is the entry of this matrix in the first row and second column, and 𝑎 is the entry in the second row and first column. From the matrix above, we obtain 𝑎=10,𝑎=10.

Hence, 𝑎+𝑎=10+(10)=0.

In our final example, we will combine matrix addition and transposition.

Example 7: Combining Matrix Addition and Transposition

Complete the following: If 𝐴 and 𝐵 are two matrices with the same size, then 𝐴+𝐵=.

Answer

We will solve this example using two different methods. In the first method, we will find the answer by working out the given matrix operations entry by entry to identify what the result is equal to. In the second method, we will apply the properties of matrix transposition to simplify the given expression.

Method 1

We know that adding a superscript 𝑇 indicates transposing the matrix, so the given expression combines matrix addition and transposition. Recall that a combination of matrix operations involving matrix addition, subtraction, scalar multiplication, and transposition is evaluated in the following order:

  1. Compute the operation within parentheses.
  2. Compute the transposition.
  3. Compute the scalar multiplication.
  4. Compute the matrix addition.
  5. Compute the matrix subtraction.

In this example, the expression 𝐴+𝐵 is inside the parentheses, so we need to find this expression first. This expression is also a combination of transposition and addition. Hence, we need to

  1. transpose matrices 𝐴 and 𝐵 to find 𝐴 and 𝐵,
  2. add the transposed matrices to find 𝐴+𝐵,
  3. transpose the resulting sum to find 𝐴+𝐵.

Let us begin by recalling the notation for a matrix that is useful for defining matrix operations. If we denote 𝑎 for integers 𝑖=1,2,,𝑚 and 𝑗=1,2,,𝑛 to be a sequence of numbers, then (𝑎)× denotes the 𝑚×𝑛 matrix whose entry in the 𝑖th row and 𝑗th column is given by 𝑎.

Since matrices 𝐴 and 𝐵 have the same size, we will say that they are both 𝑚×𝑛 matrices. Hence, we denote 𝐴=(𝑎),𝐵=𝑏.××

Let us find the transpose of these matrices. We know that the transpose of an 𝑚×𝑛 matrix is an 𝑛×𝑚 matrix obtained by swapping its rows and columns. This means 𝐴=(𝑎),𝐵=𝑏.××

Next, we need to find the sum 𝐴+𝐵. Recall that we can add a pair of matrices of the same order by adding each corresponding entry in the matrices. We can see that both 𝐴 and 𝐵 are 𝑛×𝑚 matrices, so the addition 𝐴+𝐵 is well defined and is given by 𝐴+𝐵=(𝑐),𝑐=𝑎+𝑏.×where

Finally, we can transpose this matrix by swapping its rows with its columns: 𝐴+𝐵=(𝑐).×

Since we know 𝑐=𝑎+𝑏, we can find 𝑐 by swapping 𝑗 and 𝑖, which leads to 𝑐=𝑎+𝑏.

This means 𝐴+𝐵=𝑎+𝑏.×

But we also know that the matrix on the right-hand side of this equation can be obtained by adding 𝐴 and 𝐵. In other words, 𝐴+𝐵=𝑎+𝑏.×

This means 𝐴+𝐵=𝐴+𝐵.

Method 2

Recall the distributive property of matrix transposition. Given any two matrices 𝐶 and 𝐷 of the same order, (𝐶+𝐷)=𝐶+𝐷.

In this example, 𝐶=𝐴 and 𝐷=𝐵. We know that matrices 𝐴 and 𝐵 are of the same order, say 𝑚×𝑛. As noted in the previous method, the transposed matrices 𝐴 and 𝐵 are both of order 𝑛×𝑚, which means that they have the same order. Hence, 𝐴+𝐵=𝐴+𝐵.

Next, we recall that the successive application of matrix transposition results in the original matrix. This means 𝐴=𝐴,𝐵=𝐵.

Substituting these expressions into the equation above, we can write 𝐴+𝐵=𝐴+𝐵.

Let us finish by recapping a few important concepts from the explainer.

Key Points

  • Given matrices 𝐴=(𝑎)× and 𝐵=𝑏× and a scalar 𝑐, we define matrix addition, subtraction, scalar multiplication, and transposition as follows: (𝑎)+𝑏=𝑎+𝑏,(𝑎)𝑏=𝑎𝑏,𝑐(𝑎)=(𝑐𝑎),(𝑎)=(𝑎).××
  • A combination of matrix operations involving matrix addition, subtraction, scalar multiplication, and transposition is evaluated in the following order:
    1. Compute the operation within parentheses.
    2. Compute the transposition.
    3. Compute the scalar multiplication.
    4. Compute the matrix addition.
    5. Compute the matrix subtraction.
  • For any matrices 𝐴 and 𝐵 of the same order, the useful properties of matrix transposition are (𝐴+𝐵)=𝐴+𝐵,(𝐴𝐵)=𝐴𝐵,𝐴=𝐴.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy