## Putting It Together: Solving Systems with Matrices Our furniture-making company has two workshops (Atlanta and Boston) that specialize in creating chairs and tables. Suppose we have received an order of 620 chairs and 360 tables. If the production rates for each workshop are given in the table below, how many days should each workshop commit to fulfilling the order keeping in mind that we are striving for efficiency?

 Atlanta Boston Chairs 20 per day 30 per day Tables 15 per day 12 per day

Maximum production rates for chairs and tables at each of the two workshops, Atlanta and Boston.

To make the problem more general, let’s set it up for an arbitrary order of  $C$ chairs and $T$ tables. As discussed at the beginning of this module, this scenario requires us to write a system of linear equations:

$20A+30B=C$

$15A+12B=T$

The system may then be expressed as an equation of matrices,

$\begin{bmatrix} {20} & {30} \\[0.3em] {15} & {12} \\[0.3em] \end{bmatrix} \begin{bmatrix} {A}\\[0.3em] {B}\\[0.3em] \end{bmatrix}=\begin{bmatrix} {C}\\[0.3em] {T}\\[0.3em] \end{bmatrix}$

Now to solve the system for the unknowns $A$ and $B$, we need the inverse of the coefficient matrix. Because the coefficient matrix is 2 by 2, we may use the special shortcut formula for the inverse.

$\begin{bmatrix} {20} & {30} \\[0.3em] {15} & {12} \\[0.3em] \end{bmatrix}^{-1}={\large\frac{1}{(20)(12)-(30)(15)}} \begin{bmatrix} {12} & {-30} \\[0.3em] {-15} & {20} \\[0.3em] \end{bmatrix}$

$={\large\frac{1}{-210}} \begin{bmatrix} {12} & {-30} \\[0.3em] {-15} & {20} \\[0.3em] \end{bmatrix}$

$=\begin{bmatrix} -\frac{2}{35} & \frac{1}{7} \\[0.3em] \frac{1}{14} & -\frac{2}{21} \\[0.3em] \end{bmatrix}$

This means that the required production levels ($A$ and $B$ ) can be found by the matrix multiplication,

$\begin{bmatrix} {A} \\[0.3em] {B} \\[0.3em] \end{bmatrix}= \begin{bmatrix} {20} & {30} \\[0.3em] {15} & {12} \\[0.3em] \end{bmatrix}^{-1} \begin{bmatrix} {C} \\[0.3em] {T} \\[0.3em] \end{bmatrix}=\begin{bmatrix} -\frac{2}{35} & \frac{1}{7} \\[0.3em] \frac{1}{14} & -\frac{2}{21} \\[0.3em] \end{bmatrix} \begin{bmatrix} {C} \\[0.3em] {T} \\[0.3em] \end{bmatrix}$

For example, in the case that $C=620$ and $T=360$, we find:

$\begin{bmatrix} {A} \\[0.3em] {B} \\[0.3em] \end{bmatrix}=\begin{bmatrix} -\frac{2}{35} & \frac{1}{7} \\[0.3em] \frac{1}{14} & -\frac{2}{21} \\[0.3em] \end{bmatrix} \begin{bmatrix} {620} \\[0.3em] {360} \\[0.3em] \end{bmatrix}$

$=\begin{bmatrix} -\frac{2}{35}(620) & \frac{1}{7}(360) \\[0.3em] \frac{1}{14}(620) & -\frac{2}{21}(360) \\[0.3em] \end{bmatrix}$

$=\begin{bmatrix} {16} \\[0.3em] {10} \\[0.3em] \end{bmatrix}$

Therefore, $A=16$ and $B=10$, which means that the Atlanta workshop should work on producing chairs and tables for 16 days and the Boston workshop should take 10 days.

While this may seem like a lot of work just to solve a simple system of equations, the general equation in terms of $C$ and $T$ may now be used for the next order and the order after that! No matter what the particular numbers of chairs and tables required, the same matrix equation can determine how many hours each workshop should run to efficiently produce the furniture.