Linear Algebra

Matrix Subtraction

Subtract matrix B from A.

Formula

Formula
C = A − B

Variables

SymbolDefinitionType & rangeUnitsRole
A, B matrices of equal size real matrix input

Try it yourself

Interactive calculator
rows separated by ';' , values by commas
rows separated by ';' , values by commas
Result

Worked examples

Example 1
GivenA = 5, 6; 7, 8, B = 1, 2; 3, 4
Result
44
44
Example 2
GivenA = 10, 10; 10, 10, B = 1, 2; 3, 4
Result
98
76