Matrix subtraction calculator

Created with Sketch.

Matrix subtraction calculator

Matrix subtraction calculator

Sure, here’s a matrix subtraction calculator:

Matrix Subtraction Calculator

Please enter the dimensions of the matrices and their elements below.

Dimensions of Matrix A:
Rows: 3
Columns: 3

Matrix A:
[ 1 2 3 ]
[ 4 5 6 ]
[ 7 8 9 ]

Dimensions of Matrix B:
Rows: 3
Columns: 3

Matrix B:
[ 9 8 7 ]
[ 6 5 4 ]
[ 3 2 1 ]

Matrix A – B:
[ -8 -6 -4 ]
[ -2 0 2 ]
[ 4 6 8 ]

To subtract two matrices, you must subtract the corresponding elements of the matrices. The resulting matrix will have the same dimensions as the original matrices.

For example, suppose you want to subtract matrix A from matrix B:

 

[ 2 5 ] [ 7 4 ]
A = [ 1 3 ] B = [ 9 6 ]

To perform the subtraction, you simply subtract the corresponding elements of A and B:

 

[ 2-7 5-4 ] [ -5 1 ]
A – B = [ 1-9 3-6 ] = [-8 -3 ]

So the resulting matrix is:

 

[ -5 1 ]
C = [ -8 -3 ]