# Solve the system of equations using matrices?  16x + 5y = 211  and  16x + y = 183

## (Question Restore: portions of this question have been edited or deleted!)

Dec 22, 2017

(B)

#### Explanation:

We have:

$16 x + 5 y = 211$
$16 x + y = 183$

Which we can write in vector matrix form:

$\left(\begin{matrix}16 & 5 \\ 16 & 1\end{matrix}\right) \left(\begin{matrix}x \\ y\end{matrix}\right) = \left(\begin{matrix}211 \\ 183\end{matrix}\right)$

So, pre-multiplying by the inverse matrix we have:

${\left(\begin{matrix}16 & 5 \\ 16 & 1\end{matrix}\right)}^{- 1} \left(\begin{matrix}16 & 5 \\ 16 & 1\end{matrix}\right) \left(\begin{matrix}x \\ y\end{matrix}\right) = {\left(\begin{matrix}16 & 5 \\ 16 & 1\end{matrix}\right)}^{- 1} \left(\begin{matrix}211 \\ 183\end{matrix}\right)$

$\therefore \left(\begin{matrix}x \\ y\end{matrix}\right) = {\left(\begin{matrix}16 & 5 \\ 16 & 1\end{matrix}\right)}^{- 1} \left(\begin{matrix}211 \\ 183\end{matrix}\right)$

Or:

$\boldsymbol{A} \boldsymbol{\underline{x}} = \boldsymbol{\underline{b}} \implies \boldsymbol{\underline{x}} = {\boldsymbol{A}}^{- 1} \boldsymbol{\underline{b}}$

Where

$\boldsymbol{A} = \left(\begin{matrix}16 & 5 \\ 16 & 1\end{matrix}\right)$; $\boldsymbol{\underline{x}} = \left(\begin{matrix}x \\ y\end{matrix}\right)$; $\boldsymbol{\underline{b}} \left(\begin{matrix}211 \\ 183\end{matrix}\right)$

We can find ${\boldsymbol{A}}^{- 1}$, using matrix inversion:

A matrix, $\boldsymbol{A}$, is invertible if and only if its determinant $\left\mid \boldsymbol{A} \right\mid \ne 0$. There are several ways to invert a matrix inclining finding the adjoint, row reduction or even a calculator. I will use the adjoint method, which has several steps;

• Calculating the Matrix of Minors,
• Form the Matrix of Cofactors, $c o f \left(\boldsymbol{A}\right)$
• Form the adjoint matrix, $a \mathrm{dj} \left(\boldsymbol{A}\right)$
• Multiply $a \mathrm{dj} \left(\boldsymbol{A}\right)$ by $\frac{1}{\left\mid \boldsymbol{A} \right\mid}$ to form the inverse ${\boldsymbol{A}}^{-} 1$

At some point we need to calculate $\left\mid \boldsymbol{A} \right\mid$, or $\det \left(\boldsymbol{A}\right)$, and this can also be used to test if the matrix is actually invertible so I prefer to do this first;

$\boldsymbol{A} = \left(\begin{matrix}16 & 5 \\ 16 & 1\end{matrix}\right)$

If we expand about the first row;

$\left\mid \boldsymbol{A} \right\mid = \left(15\right) \left(1\right) - \left(16\right) \left(5\right)$
$\setminus \setminus \setminus \setminus \setminus = 16 - 80$
$\setminus \setminus \setminus \setminus \setminus = - 64$

As $\left\mid \boldsymbol{A} \right\mid \ne 0 \implies \boldsymbol{A}$ is invertible, so we now calculate the matrix of minors by systematically working through each element in the matrix and "strike out" that row and columns and form the determinant of the remaining elements, as follows:

$\text{minors} \left(\boldsymbol{A}\right) = \left(\begin{matrix}1 & 16 \\ 5 & 16\end{matrix}\right)$

We now form the matrix of cofactors, $c o f \left(A\right)$, by taking the above matrix of minors and applying the alternating sign matrix as in

$\left(\begin{matrix}+ & - \\ - & +\end{matrix}\right)$

Where we change the sign of those elements with the minus sign to get;

$c o f \left(\boldsymbol{A}\right) = \left(\begin{matrix}1 & - 16 \\ - 5 & 16\end{matrix}\right)$

Then we form the adjoint matrix by transposing the matrix of cofactors, $c o f \left(A\right)$, so;

$a \mathrm{dj} \left(A\right) = c o f {\left(A\right)}^{T}$
$\setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus = {\left(\begin{matrix}1 & - 16 \\ - 5 & 16\end{matrix}\right)}^{T}$
$\setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus = \left(\begin{matrix}1 & - 5 \\ - 16 & 16\end{matrix}\right)$

And then finally we multiply by the reciprocal of the determinant to get:

${\boldsymbol{A}}^{-} 1 = \frac{1}{\left\mid \boldsymbol{A} \right\mid} a \mathrm{dj} \left(\boldsymbol{A}\right)$
$\setminus \setminus \setminus \setminus \setminus \setminus \setminus = \frac{1}{- 64} \left(\begin{matrix}1 & - 5 \\ - 16 & 16\end{matrix}\right)$

So then we get the solution the linear equations as:

$\boldsymbol{\underline{x}} = {\boldsymbol{A}}^{- 1} \boldsymbol{\underline{b}}$ ..... $\left[\star\right]$

$\therefore \left(\begin{matrix}x \\ y\end{matrix}\right) = \frac{1}{- 64} \left(\begin{matrix}1 & - 5 \\ - 16 & 16\end{matrix}\right) \left(\begin{matrix}211 \\ 183\end{matrix}\right)$
$\setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus = - \frac{1}{64} \left(\begin{matrix}\left(1\right) \left(211\right) + \left(- 5\right) \left(183\right) \\ \left(- 16\right) \left(211\right) + \left(16\right) \left(183\right)\end{matrix}\right)$

$\setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus = - \frac{1}{64} \left(\begin{matrix}- 704 \\ - 448\end{matrix}\right)$

$\setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus \setminus = \left(\begin{matrix}11 \\ 7\end{matrix}\right)$

Hence the solution equation is:

$\left(\begin{matrix}x \\ y\end{matrix}\right) = {\left(\begin{matrix}16 & 5 \\ 16 & 1\end{matrix}\right)}^{- 1} \left(\begin{matrix}211 \\ 183\end{matrix}\right) = \left(\begin{matrix}11 \\ 7\end{matrix}\right)$

Making (B) the coirerct solution