# Inverse matrix homework

Source: https://cca.twango.dev/Precalculus-Honors/homework/misc/hw-inverse-matrices

# Inverse matrix homework

[[Precalculus-Honors/assets/hw-inverse-matrices.jpg|Original page]]

Student work on the same three systems as [[hw-augmented-matrix|the augmented matrix homework]].

## 1. Two variables

**System:** $x-2y=5$, $2x-3y=10$.

**Student work:**

$$
\begin{bmatrix}1&-2\\2&-3\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix}=\begin{bmatrix}5\\10\end{bmatrix},
$$

$$
\begin{bmatrix}x\\y\end{bmatrix}
=\frac1{(1)(-3)-(2)(-2)}\begin{bmatrix}-3&2\\-2&1\end{bmatrix}\begin{bmatrix}5\\10\end{bmatrix}
=\begin{bmatrix}5\\0\end{bmatrix}.
$$

$$
(x,y)=(5,0).
$$

## 2. Three variables

**System:** $x+y+z=-1$, $3x+5y+4z=2$, $3x+6y+5z=0$.

**Student work:** Write $A\mathbf x=\mathbf b$ with

$$
A=\begin{bmatrix}1&1&1\\3&5&4\\3&6&5\end{bmatrix},\qquad\mathbf b=\begin{bmatrix}-1\\2\\0\end{bmatrix}.
$$

The determinant calculation shown is

$$
(5\cdot5-6\cdot4)-(3\cdot5-3\cdot4)+(3\cdot6-3\cdot5)=1.
$$

The student row-reduces $[A\mid I]$:

$$
\left[\begin{array}{rrr|rrr}1&1&1&1&0&0\\3&5&4&0&1&0\\3&6&5&0&0&1\end{array}\right]
\longrightarrow\left[\begin{array}{rrr|rrr}1&1&1&1&0&0\\0&2&1&-3&1&0\\0&3&2&-3&0&1\end{array}\right]
$$

$$
\longrightarrow\left[\begin{array}{rrr|rrr}1&1&1&1&0&0\\0&1&1/3&-2&1&-1/3\\0&3&2&-3&0&1\end{array}\right]
\longrightarrow\left[\begin{array}{rrr|rrr}1&0&2/3&3&-1&1/3\\0&1&1/3&-2&1&-1/3\\0&3&2&-3&0&1\end{array}\right]
$$

$$
\longrightarrow\left[\begin{array}{rrr|rrr}1&0&2/3&3&-1&1/3\\0&1&0&-2&1&-1/3\\0&0&1&3&-3&2\end{array}\right]
\longrightarrow\left[\begin{array}{rrr|rrr}1&0&2/3&3&-1&1/3\\0&1&0&-3&2&-1\\0&0&1&3&-3&2\end{array}\right].
$$

> [!note] Correction to an intermediate row
> The penultimate matrix sets the second row's third entry to zero before updating its right-hand entries. That intermediate display is inconsistent. The later final inverse and solution are correct.

$$
A^{-1}=\begin{bmatrix}1&1&-1\\-3&2&-1\\3&-3&2\end{bmatrix},\qquad
\mathbf x=A^{-1}\mathbf b=\begin{bmatrix}1\\7\\-9\end{bmatrix}.
$$

$$
(x,y,z)=(1,7,-9).
$$

## 3. Four variables

**System:**

$$
a-2b-c-2d=0,\quad3a-5b-2c-3d=1,\quad2a-5b-2c-5d=-1,\quad-a+4b+4c+11d=2.
$$

**Student work:**

$$
A=\begin{bmatrix}1&-2&-1&-2\\3&-5&-2&-3\\2&-5&-2&-5\\-1&4&4&11\end{bmatrix},\qquad
\mathbf b=\begin{bmatrix}0\\1\\-1\\2\end{bmatrix}.
$$

The inverse is annotated “from calculator”; its determinant denominator is annotated “is equal to 1 (see prev. matrix hw).”

$$
A^{-1}=\begin{bmatrix}-24&7&1&-2\\-10&3&0&-1\\-29&7&3&-2\\12&-3&-1&1\end{bmatrix}.
$$

$$
\begin{bmatrix}a\\b\\c\\d\end{bmatrix}=A^{-1}\mathbf b=\begin{bmatrix}2\\1\\0\\0\end{bmatrix},\qquad(a,b,c,d)=(2,1,0,0).
$$
