Subtracting Matrices :
In this tutorial you will learn to
subtract two square matrix (2x2 or 3x3). It's very simple to subtract
two matrices. For an example we will consider two matrices A & B,
each with three rows and three columns.
| Matrix A |
|
Matrix B |
| a11 | a12 | a13 |
| a21 | a22 | a23 |
| a31 | a32 | a33 |
| - |
| b11 | b12 | b13 |
| b21 | b22 | b23 |
| b31 | b32 | b33 |
|
The matrix are named A and B. Each cell has been given a number to easily identify the cell.
Say "a11" means cell belonging to first row, first column. "a21" means cell belonging to second row, first column.
To subtract the matrix just subtract the numbers in the similar cells of the two matrices.
Subtract first row, first column value of matrix A (a11) to the first row, first column value of matrix B (b11)
to get the first row, first column value of the result matrix.
| Result Matrix
|
| a11-b11 | a12-b12 | a13-b13 |
| a21-b21 | a22-b22 | a23-b23 |
| a31-b31 | a32-b32 | a33-b33 |
|