3. Problema dels tres nombres
La suma de tres nombres és \(15\). El doble del primer més el segon, menys el tercer, és \(14\). El primer menys el doble del segon més el triple del tercer és \(0\). Trobeu els tres nombres.
Plantejament. Siguin \(x\) el primer nombre, \(y\) el segon nombre i \(z\) el tercer nombre. Del enunciat resulta el sistema: \[ \begin{cases} x + y + z = 15 \\ 2x + y – z = 14 \\ x – 2y + 3z = 0 \end{cases} \]
Mètode de Cramer. La matriu de coeficients és \(A=\begin{pmatrix} 1 & 1 & 1 \\ 2 & 1 & -1 \\ 1 & -2 & 3 \end{pmatrix}\) i el seu determinant (regla de Sarrus) és: \begin{align*} |A| &= \begin{vmatrix} 1 & 1 & 1 \\ 2 & 1 & -1 \\ 1 & -2 & 3 \end{vmatrix} \\ &= 1 \cdot 1 \cdot 3 + 1 \cdot (-1) \cdot 1 + 1 \cdot 2 \cdot (-2) \\ &\quad – 1 \cdot 1 \cdot 1 – 1 \cdot (-1) \cdot (-2) – 1 \cdot 2 \cdot 3 \\ &= 3 + (-1) + (-4) – 1 – 2 – 6 = -11 \end{align*} Com que \(|A|=-11\neq0\), el sistema és compatible determinat. Substituint cada columna pels termes independents: \begin{align*} |A_{x}| &= \begin{vmatrix} 15 & 1 & 1 \\ 14 & 1 & -1 \\ 0 & -2 & 3 \end{vmatrix} \\ &= 15 \cdot 1 \cdot 3 + 1 \cdot (-1) \cdot 0 + 1 \cdot 14 \cdot (-2) \\ &\quad – 1 \cdot 1 \cdot 0 – 15 \cdot (-1) \cdot (-2) – 1 \cdot 14 \cdot 3 \\ &= 45 + 0 + (-28) – 0 – 30 – 42 = -55 \end{align*} \begin{align*} |A_{y}| &= \begin{vmatrix} 1 & 15 & 1 \\ 2 & 14 & -1 \\ 1 & 0 & 3 \end{vmatrix} \\ &= 1 \cdot 14 \cdot 3 + 15 \cdot (-1) \cdot 1 + 1 \cdot 2 \cdot 0 \\ &\quad – 1 \cdot 14 \cdot 1 – 1 \cdot (-1) \cdot 0 – 15 \cdot 2 \cdot 3 \\ &= 42 + (-15) + 0 – 14 – 0 – 90 = -77 \end{align*} \begin{align*} |A_{z}| &= \begin{vmatrix} 1 & 1 & 15 \\ 2 & 1 & 14 \\ 1 & -2 & 0 \end{vmatrix} \\ &= 1 \cdot 1 \cdot 0 + 1 \cdot 14 \cdot 1 + 15 \cdot 2 \cdot (-2) \\ &\quad – 15 \cdot 1 \cdot 1 – 1 \cdot 14 \cdot (-2) – 1 \cdot 2 \cdot 0 \\ &= 0 + 14 + (-60) – 15 – (-28) – 0 = -33 \end{align*} \begin{gather*} x=\frac{|A_{x}|}{|A|}=\frac{-55}{-11}=5 \\ y=\frac{|A_{y}|}{|A|}=\frac{-77}{-11}=7 \\ z=\frac{|A_{z}|}{|A|}=\frac{-33}{-11}=3 \end{gather*}
Mètode de Gauss. Escrivim la matriu ampliada i l’escalonem amb transformacions elementals per files: \[ \left(\begin{array}{ccc|c} 1 & 1 & 1 & 15 \\ 2 & 1 & -1 & 14 \\ 1 & -2 & 3 & 0 \end{array}\right) \xrightarrow{\substack{F_2 \to F_2 – 2F_1 \\ F_3 \to F_3 – F_1}} \left(\begin{array}{ccc|c} 1 & 1 & 1 & 15 \\ 0 & -1 & -3 & -16 \\ 0 & -3 & 2 & -15 \end{array}\right) \] \[ \left(\begin{array}{ccc|c} 1 & 1 & 1 & 15 \\ 0 & -1 & -3 & -16 \\ 0 & -3 & 2 & -15 \end{array}\right) \xrightarrow{F_3 \to \frac{1}{11}\left(F_3 – 3F_2\right)} \left(\begin{array}{ccc|c} 1 & 1 & 1 & 15 \\ 0 & -1 & -3 & -16 \\ 0 & 0 & 1 & 3 \end{array}\right) \] El sistema equivalent és: \[ \begin{cases} x + y + z = 15 \\ -y – 3z = -16 \\ z = 3 \end{cases} \] Resolent de baix cap amunt: \begin{gather*} z=3 \\ y=\frac{-16 – (-3) \cdot 3}{-1}=\frac{-7}{-1}=7 \\ x=15 – 1 \cdot 7 – 1 \cdot 3=5 \end{gather*}
Solució: \(x=5\), \(y=7\), \(z=3\).∎
Us agrada: M'agrada S'està carregant…