Una persona inverteix \(20\,000\) € en tres productes: un dipòsit que rendeix un \(2\) % anual, un fons que rendeix un \(5\) % i unes accions que rendeixen un \(8\) %. Després d’un any ha obtingut \(820\) € d’interessos. Sabent que la quantitat invertida al dipòsit és igual a la suma de les invertides al fons i a les accions, determineu quant ha invertit en cada producte.
Plantejament. Siguin \(x\) els milers d’euros invertits al dipòsit, \(y\) els milers d’euros invertits al fons i \(z\) els milers d’euros invertits en accions. Del enunciat resulta: \begin{gather*} x+y+z=20 \\ 0{,}02x+0{,}05y+0{,}08z=0{,}82 \\ x=y+z \end{gather*} Simplificant, s’obté el sistema: \[ \begin{cases} x + y + z = 20 \\ 2x + 5y + 8z = 82 \\ x – y – z = 0 \end{cases} \]
Mètode de Cramer. La matriu de coeficients és \(A=\begin{pmatrix} 1 & 1 & 1 \\ 2 & 5 & 8 \\ 1 & -1 & -1 \end{pmatrix}\) i el seu determinant (regla de Sarrus) és: \begin{align*} |A| &= \begin{vmatrix} 1 & 1 & 1 \\ 2 & 5 & 8 \\ 1 & -1 & -1 \end{vmatrix} \\ &= 1 \cdot 5 \cdot (-1) + 1 \cdot 8 \cdot 1 + 1 \cdot 2 \cdot (-1) \\ &\quad – 1 \cdot 5 \cdot 1 – 1 \cdot 8 \cdot (-1) – 1 \cdot 2 \cdot (-1) \\ &= (-5) + 8 + (-2) – 5 – (-8) – (-2) = 6 \end{align*} Com que \(|A|=6\neq0\), el sistema és compatible determinat. Substituint cada columna pels termes independents: \begin{align*} |A_{x}| &= \begin{vmatrix} 20 & 1 & 1 \\ 82 & 5 & 8 \\ 0 & -1 & -1 \end{vmatrix} \\ &= 20 \cdot 5 \cdot (-1) + 1 \cdot 8 \cdot 0 + 1 \cdot 82 \cdot (-1) \\ &\quad – 1 \cdot 5 \cdot 0 – 20 \cdot 8 \cdot (-1) – 1 \cdot 82 \cdot (-1) \\ &= (-100) + 0 + (-82) – 0 – (-160) – (-82) = 60 \end{align*} \begin{align*} |A_{y}| &= \begin{vmatrix} 1 & 20 & 1 \\ 2 & 82 & 8 \\ 1 & 0 & -1 \end{vmatrix} \\ &= 1 \cdot 82 \cdot (-1) + 20 \cdot 8 \cdot 1 + 1 \cdot 2 \cdot 0 \\ &\quad – 1 \cdot 82 \cdot 1 – 1 \cdot 8 \cdot 0 – 20 \cdot 2 \cdot (-1) \\ &= (-82) + 160 + 0 – 82 – 0 – (-40) = 36 \end{align*} \begin{align*} |A_{z}| &= \begin{vmatrix} 1 & 1 & 20 \\ 2 & 5 & 82 \\ 1 & -1 & 0 \end{vmatrix} \\ &= 1 \cdot 5 \cdot 0 + 1 \cdot 82 \cdot 1 + 20 \cdot 2 \cdot (-1) \\ &\quad – 20 \cdot 5 \cdot 1 – 1 \cdot 82 \cdot (-1) – 1 \cdot 2 \cdot 0 \\ &= 0 + 82 + (-40) – 100 – (-82) – 0 = 24 \end{align*} \begin{gather*} x=\frac{|A_{x}|}{|A|}=\frac{60}{6}=10 \\ y=\frac{|A_{y}|}{|A|}=\frac{36}{6}=6 \\ z=\frac{|A_{z}|}{|A|}=\frac{24}{6}=4 \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 & 20 \\ 2 & 5 & 8 & 82 \\ 1 & -1 & -1 & 0 \end{array}\right) \xrightarrow{\substack{F_2 \to \frac{1}{3}\left(F_2 – 2F_1\right) \\ F_3 \to \frac{1}{2}\left(F_3 – F_1\right)}} \left(\begin{array}{ccc|c} 1 & 1 & 1 & 20 \\ 0 & 1 & 2 & 14 \\ 0 & -1 & -1 & -10 \end{array}\right) \] \[ \left(\begin{array}{ccc|c} 1 & 1 & 1 & 20 \\ 0 & 1 & 2 & 14 \\ 0 & -1 & -1 & -10 \end{array}\right) \xrightarrow{F_3 \to F_3 + F_2} \left(\begin{array}{ccc|c} 1 & 1 & 1 & 20 \\ 0 & 1 & 2 & 14 \\ 0 & 0 & 1 & 4 \end{array}\right) \] El sistema equivalent és: \[ \begin{cases} x + y + z = 20 \\ y + 2z = 14 \\ z = 4 \end{cases} \] Resolent de baix cap amunt: \begin{gather*} z=4 \\ y=14 – 2 \cdot 4=6 \\ x=20 – 1 \cdot 6 – 1 \cdot 4=10 \end{gather*}
Solució: \(x=10\), \(y=6\), \(z=4\). Ha invertit \(10\,000\) € al dipòsit, \(6\,000\) € al fons i \(4\,000\) € en accions.∎