WOLFRAM NOTEBOOK

WOLFRAM|DEMONSTRATIONS PROJECT

Matrix Addition and Subtraction

rows
1
2
3
4
5
columns
1
2
3
4
5
add
subtract
new matrices
A =
-4
4
4
1
-4
4
-4
-3
4
-5
5
-3
,
B =
-5
5
1
-1
-5
-1
5
4
-3
2
-4
5
A + B =
(-4 + -5)
(4 + 5)
(4 + 1)
(1 + -1)
(-4 + -5)
(4 + -1)
(-4 + 5)
(-3 + 4)
(4 + -3)
(-5 + 2)
(5 + -4)
(-3 + 5)
=
-9
9
5
0
-9
3
1
1
1
-3
1
2
To add or subtract two matrices, do the operation entry by entry.
If there is only one column or only one row, the matrices are vectors.
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.