Linear Algebra
Matrix Subtraction
Subtract matrix B from A.
Formula
Formula
C = A − B
Variables
| Symbol | Definition | Type & range | Units | Role |
|---|---|---|---|---|
| A, B | matrices of equal size | real matrix | — | input |
Try it yourself
Interactive calculator
Worked examples
Example 1
GivenA = 5, 6; 7, 8, B = 1, 2; 3, 4
Result
| 4 | 4 |
| 4 | 4 |
Example 2
GivenA = 10, 10; 10, 10, B = 1, 2; 3, 4
Result
| 9 | 8 |
| 7 | 6 |