Solve matrix equations by undoing operations while preserving dimensions and multiplication order. In AX = B, an invertible A is removed by multiplying on the left by its inverse.

Free solving matrix equations practice: topic practice PDF, additional practice PDF, topic quiz. The original short practice below includes explained solutions.

Rules and restrictions

For matching shapes, \(A+X=B\) gives \(X=B-A\), and \(kX+A=B\) gives \(X=(B-A)/k\) when \(k\ne0\). For \(AX=B\), use \(X=A^{-1}B\); for \(XA=B\), use \(X=BA^{-1}\). These inverse steps require square, invertible A.

Worked examples

Example 1

Solve \(X-\begin{bmatrix}1&2\\3&4\end{bmatrix}=\begin{bmatrix}0&-1\\2&5\end{bmatrix}\).

Add the subtracted matrix to both sides. Entrywise sums give \(X=\begin{bmatrix}1&1\\5&9\end{bmatrix}\). Subtracting \(\begin{bmatrix}1&2\\3&4\end{bmatrix}\) from this result gives the stated right side.

Example 2

Solve \(AX=B\) for \(A=\begin{bmatrix}2&1\\1&1\end{bmatrix}\), \(B=\begin{bmatrix}7\\4\end{bmatrix}\).

The determinant of A is \(2(1)-1(1)=1\), so \(A^{-1}=\begin{bmatrix}1&-1\\-1&2\end{bmatrix}\). Multiply on the left: \(X=A^{-1}B=\begin{bmatrix}7-4\\-7+8\end{bmatrix}=\begin{bmatrix}3\\1\end{bmatrix}\). Check: \(2(3)+1=7\), \(3+1=4\).

Try these before opening the solutions

  1. Solve \(2X=\begin{bmatrix}8\\-6\end{bmatrix}\).
  2. Solve \(X+\begin{bmatrix}-1&3\end{bmatrix}=\begin{bmatrix}2&2\end{bmatrix}\).
  3. Solve \(\begin{bmatrix}1&0\\2&1\end{bmatrix}X=\begin{bmatrix}3\\8\end{bmatrix}\).
  4. Does singular A always make \(AX=B\) impossible?
Show step-by-step solutions
  1. Divide each entry by 2: \(X=\begin{bmatrix}4\\-3\end{bmatrix}\).
  2. Subtract the known row: \(X=\begin{bmatrix}2-(-1)&2-3\end{bmatrix}=\begin{bmatrix}3&-1\end{bmatrix}\).
  3. Writing \(X=\begin{bmatrix}u\\v\end{bmatrix}\) gives \(u=3\) and \(2u+v=8\). Substitute to obtain \(6+v=8\), \(v=2\). Thus \(X=\begin{bmatrix}3\\2\end{bmatrix}\).
  4. No. The inverse shortcut is unavailable, but the equation may have no solution or multiple solutions depending on B. For example, \(0X=0\) holds for every compatible X, whereas \(0X=B\ne0\) is impossible.

Common mistakes

Matrix multiplication is not generally commutative. Do not move an inverse across X or divide entry by entry by a matrix.

Related skills

Solving Matrix Equations worksheets; Adding and Subtracting Matrices lesson; Matrix Multiplication lesson; Finding Matrix Determinants lesson.