# Matrix Subtraction Calculator

The calculator will find the difference of two matrices (if possible), with steps shown. It subtracts matrices of any size up to 10x10 (2x2, 3x3, 4x4, etc.).

$\times$
$\times$

If the calculator did not compute something or you have identified an error, or you have a suggestion/feedback, please write it in the comments below.

Calculate $\left[\begin{array}{ccc}1 & 2 & -3\\2 & -3 & -5\\1 & 7 & 1\end{array}\right] - \left[\begin{array}{ccc}2 & -3 & 0\\1 & 1 & 5\\1 & 0 & -1\end{array}\right].$
$\left[\begin{array}{ccc}{\color{Green}1} & {\color{Brown}2} & {\color{GoldenRod}-3}\\{\color{SaddleBrown}2} & {\color{Magenta}-3} & {\color{Chocolate}-5}\\{\color{DarkBlue}1} & {\color{Purple}7} & {\color{Chartreuse}1}\end{array}\right] - \left[\begin{array}{ccc}{\color{Green}2} & {\color{Brown}-3} & {\color{GoldenRod}0}\\{\color{SaddleBrown}1} & {\color{Magenta}1} & {\color{Chocolate}5}\\{\color{DarkBlue}1} & {\color{Purple}0} & {\color{Chartreuse}-1}\end{array}\right] = \left[\begin{array}{ccc}{\color{Green}\left(1\right)} - {\color{Green}\left(2\right)} & {\color{Brown}\left(2\right)} - {\color{Brown}\left(-3\right)} & {\color{GoldenRod}\left(-3\right)} - {\color{GoldenRod}\left(0\right)}\\{\color{SaddleBrown}\left(2\right)} - {\color{SaddleBrown}\left(1\right)} & {\color{Magenta}\left(-3\right)} - {\color{Magenta}\left(1\right)} & {\color{Chocolate}\left(-5\right)} - {\color{Chocolate}\left(5\right)}\\{\color{DarkBlue}\left(1\right)} - {\color{DarkBlue}\left(1\right)} & {\color{Purple}\left(7\right)} - {\color{Purple}\left(0\right)} & {\color{Chartreuse}\left(1\right)} - {\color{Chartreuse}\left(-1\right)}\end{array}\right] = \left[\begin{array}{ccc}-1 & 5 & -3\\1 & -4 & -10\\0 & 7 & 2\end{array}\right]$
$\left[\begin{array}{ccc}1 & 2 & -3\\2 & -3 & -5\\1 & 7 & 1\end{array}\right] - \left[\begin{array}{ccc}2 & -3 & 0\\1 & 1 & 5\\1 & 0 & -1\end{array}\right] = \left[\begin{array}{ccc}-1 & 5 & -3\\1 & -4 & -10\\0 & 7 & 2\end{array}\right]$A