VOOZH about

URL: https://www.geeksforgeeks.org/maths/practice-questions-on-subtraction-of-matrices/

⇱ Practice Questions on Subtraction of Matrices - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Practice Questions on Subtraction of Matrices

Last Updated : 23 Jul, 2025

Subtraction of Matrices is one of the operations that are performed between two matrices. It is similar to addition of matrices. This article provides practice questions on subtraction of matrices along with solved examples and concepts related to it. This article serves as a one stop solution for practicing problems related to subtraction of matrices to ace the exam.

Important Formulas for Subtraction of Matrices

Suppose, A and B are two matrices of the same dimension m x n, then the subtraction of two matrices is given by matrix C of the dimension m x n

C = A - B, where

cij = aij - bij

for all i = 1, 2, 3, ...,m and j = 1, 2, 3...,n.

Commutative Property of Subtraction of matrices

A - B ≠ B - A

Associative Property of Subtraction of matrices

(A - B) - C ≠ A - (B - C)

Practice Questions on Subtraction of Matrices with Solution

These Practice Questions on Subtraction of Matrices will help you to understand subtraction operations on the matrices.

1. Given matrices A and B where

A = and B =

find the matrix C = A - B.

To find the subtraction of matrix A and B is C

c11 = a11 - b11 = 1 - 2 = -1

c12 = a12 - b12 = 3 - 4 = -1

C21 = a21 - b21 = 5 - 6 = -1

c22 = a22 - b22 = 7 - 8 = -1

The resulting matrix C is

C =

2. Let A = and B =

Compute the elements of matrix C = A - B.

To find the elements of matrix C

c11 = a11 - b11 = 0 - 5 = -5

c12 = a12 - b12 = -1 - 3 = -4

c21 = a21 - b21 = 3 + 3 = 6

c22 = a22 - b22 = 2 - 4 = -2

The resulting matrix C is

C =

3. Verify the commutative property for matrices

A = and B =

To verify the commutative property for matrices follow these steps

First we calculate A - B

c11 = a11 - b11 = 1 - 4 = -3

c12 = a12 - b12 = 3 - 3 = 0

c21 = a21 - b21 = 2 - 2 = 0

c22 = a22 - b22 = 4 - 1 = 3

The resulting matrix C1 is

C1 =

Now, we calculate B - A

c11 = a11 - b11 = 4 - 1 = 3

c12 = a12 - b12 = 3 - 3 = 0

c21 = a21 - b21 = 2 - 2 = 0

c22 = a22 - b22 = 1 - 4 = -3

The resulting matrix C is

C2 =

So, C1 and C2 are not equal so, it follow the commutative property.

4. Given Matrices are

A = and B =

Show that A + B B + A.

First we calculate A - B

c11 = a11 - b11 = -1 - 3 = -4

c12 = a12 - b12 = 0 - 1 = -1

?21 = ?21 - ?21 = 4 + 2 = 6

?22 = ?22 - ?22 = 5 - 6 = -1

The resulting matrix C1 is

C1 =

Now, we calculate B - A

c11 = b11 - a11 = 3 + 1 = 4

c12 = b12 - a12 = 1 - 0 = 1

?21 = b21 - a21 = -2 - 5 = -7

?22 = b22 - a22 = 6 - 5 = 1

The resulting matrix C2 is

C2 =

So, C1 and C2 are not equal. Therefore it follows the commutative property.

5. Given Matrices are

A = , B = and C =

Verify the associative property (A - B) - C ≠ A - (B - C).

First we calculate A - B

e11 = a11 - b11 = 2 - 3 = -1

e12 = a12 - b12 = 1 - 5 = -4

e21 = ?21 - ?21 = 0 - 6 = -6

e22 = ?22 - ?22 = -1 - 7 = -8

The resulting matrix E1 is

E1 =

(A - B) - C

d11 = e11 - c11 = -1 -4 = -5

d12 = e12 - c12 = -4 -8 = -12

d21 = e21 - c21 = -6 - 2 = -8

d22 = e22 - c22 = -8 - 3 = -11

So, (A - B) - C =

Now, we calculate B - C

e11 = b11 - c11 = 3 - 4 = -1

e12 = b12 - c12 = 5 - 8 = -3

e21 = b21 - c21 = 6 - 2 = 4

e22 = b22 - c22 = 7 - 3 = 4

The resulting matrix E2 is

E2 =

A - (B - C)

d11 = a11 - e11 = 2 + 1 = 3

d12 = a12 - e12 = 1 + 3 = 4

d21 = a21 - e21 = 0 - 4 = -4

d22 = a22 - e22 = -1 - 4 = -5

So, A - (B - C) =

So, (A - B) - C ≠ A - (B - C).

6. If A = , B = and C = ,

Prove that matrix addition is associative by calculating both (A - B) - C and A - (B - C).

First we calculate A - B

e11 = a11 - b11 = 1 - 0 = 1

e12 = a12 - b12 = 4 - 2 = 2

e21 = a21 - b21 = 5 - 3 = 2

e22 = a22 - b22 = 7 - 6 = 1

The resulting matrix E1 is

E1 =

(A - B) - C

d11 = e11 - c11 = 1 - 2 = -1

d12 = e12 - c12 = 2 - 1 = 1

d21 = e21 - c21 = 2 - 4 = -2

d22 = e22 - c22 = 1 - 5 = -4

So, (A - B) - C =

Now, we calculate B - C

e11 = b11 - c11 = 0 - 2 = -2

e12 = b12 - c12 = 2 - 1 = 1

e21 = b21 - c21 = 3 - 4 = -1

e22 = b22 - c22 = 6 - 5 = 1

The resulting matrix E2 is

E2 =

A - (B - C)

d11 = a11 - e11 = 1 + 2 = 3

d12 = a12 - e12 = 4 - 1 = 3

d21 = a21 - e21 = 5 - 7 = -2

d22 = a22 - e22 = 7 - 11 = -4

So, A - (B - C) =

So, (A - B) - C ≠ A - (B - C).

7. Given matrix A = and the zero matrix 0 = , show that A - 0 = A.

A - 0 = -

c11 = a11 - 011 = 6 - 0 = 6

c12 = a12 - 012 = 8 - 0 = 8

c21 = a21 - 021 = 7 - 0 = 7

c22 = a22 - 022 = 9 - 0 = 9

So, Subtraction of matrix A and 0 is

So, it is equal to A matrix.

8. Given matrix A = , find the result of A - zero matrix.

A - 0 = -

c11 = a11 - 011 = -3 - 0 = -3

c12 = a12 - 012 = 5 - 0 = 5

c21 = a21 - 021 = 7 - 0 = 7

c22 = a22 - 022 = 2 - 0 = 2

So, Subtraction of matrix A and 0 is

9. Given matrix A = , find the additive inverse −A and verify that A + (−A) = 0

Additive inverse -A =

So, A + (-A) = +

=

So, A + (-A) = 0.

10. Given matrix A = , find the additive inverse −A and verify that A + (−A) = 0.

Additive inverse -A =

So, A + (-A) = +

=

So, A + (-A) = 0.

Practice Questions on Subtraction of Matrices

These Practice Questions on Subtraction of Matrices are to test your understanding of the concept.

1. Given matrices A = and B = , find the matrix C = A - B.

2. Given matrices A = and B = , find the matrix C = A - B.

3. Verify the commutative property for matrices A = and B =

4. Given Matrices are A = and B =

Show that A + B ≠ B + A.

5. Given Matrices are

A = , B = and C =

verify the associative property (A - B) - C ≠ A - (B - C).

6. If A =, B = and C =

Prove that matrix subtraction is associative by calculating both (A - B) - C and A - (B - C).

7. Given matrix A = and the zero matrix 0 = , show that A - 0 = A.

8. Given matrix A =, find the result of A - zero matrix.

9. Given matrix A = , find the additive inverse −A and verify that A + (−A) = 0.

10. Given matrix A = , find the additive inverse −A and verify that A + (−A) = 0.

Comment

Explore