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.

Your Input

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].$$$

Solution

$$$\left[\begin{array}{ccc}{\color{SaddleBrown}1} & {\color{Red}2} & {\color{BlueViolet}-3}\\{\color{Peru}2} & {\color{Blue}-3} & {\color{Crimson}-5}\\{\color{Brown}1} & {\color{GoldenRod}7} & {\color{DeepPink}1}\end{array}\right] - \left[\begin{array}{ccc}{\color{SaddleBrown}2} & {\color{Red}-3} & {\color{BlueViolet}0}\\{\color{Peru}1} & {\color{Blue}1} & {\color{Crimson}5}\\{\color{Brown}1} & {\color{GoldenRod}0} & {\color{DeepPink}-1}\end{array}\right] = \left[\begin{array}{ccc}{\color{SaddleBrown}\left(1\right)} - {\color{SaddleBrown}\left(2\right)} & {\color{Red}\left(2\right)} - {\color{Red}\left(-3\right)} & {\color{BlueViolet}\left(-3\right)} - {\color{BlueViolet}\left(0\right)}\\{\color{Peru}\left(2\right)} - {\color{Peru}\left(1\right)} & {\color{Blue}\left(-3\right)} - {\color{Blue}\left(1\right)} & {\color{Crimson}\left(-5\right)} - {\color{Crimson}\left(5\right)}\\{\color{Brown}\left(1\right)} - {\color{Brown}\left(1\right)} & {\color{GoldenRod}\left(7\right)} - {\color{GoldenRod}\left(0\right)} & {\color{DeepPink}\left(1\right)} - {\color{DeepPink}\left(-1\right)}\end{array}\right] = \left[\begin{array}{ccc}-1 & 5 & -3\\1 & -4 & -10\\0 & 7 & 2\end{array}\right]$$$

Answer

$$$\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