# How do I do matrix subtraction?

##### 1 Answer

Oct 20, 2014

Matrix dimensions must be the same to complete matrix subtraction. That means both matrices have to have the same number of rows and columns. To subtract matrices, you subtract each term in the same position. (For example the term in the 3rd row, 1st column of one matrix would be subtracted by the 3rd row, 1st column of the other matrix. Refer to the example below:

Note: _ is used to keep spaces in matrix

Matrix 1:

[3_2_6]

[7_4_5]

[2_1_8]

Matrix 2:

[8_6_5]

[4_2_1]

[3_2_7]

Matrix 1 - Matrix 2:

[(3-8) (2-6) (6-5)]

[(7-4) (4-2) (5-1)]

[(2-3) (1-2) (8-7)]

Answer

[-5_-4_1]

[3**2_4]
[-1_-1**1]