# Pet food mixture — Cramer’s rule

Source: https://cca.twango.dev/Precalculus-Honors/homework/misc/ws-pet-food

# Pet food mixture — Cramer’s rule

> [!note] Source scope
> This is a handwritten solution page. The original assignment prompt and the definitions of $P,F,C$ are absent. The final answer names Pet Pellets and Chow; the first food name looks like “KO” but cannot be read confidently.

## Requirements and system

| Requirement | $P$ (mg) | $F$ (mg) | $C$ (mg) |
| --- | ---: | ---: | ---: |
| Hamster | 340 | 280 | 440 |
| Gerbil | 480 | 360 | 680 |
| Total | 820 | 640 | 1120 |

**Student work:**

$$
\begin{aligned}
10x+0y+20z&=820,\\
10x+20y+10z&=640,\\
5x+10y+30z&=1120.
\end{aligned}
$$

## Determinants

The work expands along the first row:

$$
\begin{aligned}
D&=\begin{vmatrix}10&0&20\\10&20&10\\5&10&30\end{vmatrix}\\
 &=10\begin{vmatrix}20&10\\10&30\end{vmatrix}
  +20\begin{vmatrix}10&20\\5&10\end{vmatrix}=5000.
\end{aligned}
$$

$$
\begin{aligned}
D_x&=\begin{vmatrix}820&0&20\\640&20&10\\1120&10&30\end{vmatrix}\\
 &=820\begin{vmatrix}20&10\\10&30\end{vmatrix}
  +20\begin{vmatrix}640&20\\1120&10\end{vmatrix}=90000.
\end{aligned}
$$

$$
\begin{aligned}
D_y&=\begin{vmatrix}10&820&20\\10&640&10\\5&1120&30\end{vmatrix}\\
 &=10\begin{vmatrix}640&10\\1120&30\end{vmatrix}
  -820\begin{vmatrix}10&10\\5&30\end{vmatrix}
  +20\begin{vmatrix}10&640\\5&1120\end{vmatrix}=35000.
\end{aligned}
$$

$$
\begin{aligned}
D_z&=\begin{vmatrix}10&0&820\\10&20&640\\5&10&1120\end{vmatrix}\\
 &=10\begin{vmatrix}20&640\\10&1120\end{vmatrix}
  +820\begin{vmatrix}10&20\\5&10\end{vmatrix}=160000.
\end{aligned}
$$

## Answer

$$x=\frac{D_x}{D}=18,\quad y=\frac{D_y}{D}=7,\quad z=\frac{D_z}{D}=32.$$

The original boxed answer is:

- 18 grams of **[first food name unclear]**;
- 7 grams of Pet Pellets;
- 32 grams of Chow.

## Original work

[[../../assets/ws-pet-food.jpg|Original photographed page]]
