Para una matriz simétrica definida positiva, se busca una matriz triangular inferior \(L\) tal que \(A=LL^T\). Para una matriz de orden 3,
\[ L=\begin{pmatrix}l_{11}&0&0\\l_{21}&l_{22}&0\\l_{31}&l_{32}&l_{33}\end{pmatrix}. \]
\[ A=\begin{pmatrix}16&8&4\\8&13&6\\4&6&11\end{pmatrix}. \]
Igualando las entradas de \(LL^T=A\):
Por tanto,
\[ L_A=\begin{pmatrix}4&0&0\\2&3&0\\1&4/3&\sqrt{74}/3\end{pmatrix}, \qquad A=L_A L_A^T. \]
\[ B=\begin{pmatrix}9&6&3\\6&20&10\\3&10&14\end{pmatrix}. \]
La función chol() de R devuelve el factor triangular
superior \(R\) que satisface \(B=R^TR\). Su transpuesta es el factor
inferior \(L\) usado en esta tarea.
B <- matrix(c(9, 6, 3,
6, 20, 10,
3, 10, 14), nrow = 3, byrow = TRUE)
R_B <- chol(B)
L_B <- t(R_B)
B
## [,1] [,2] [,3]
## [1,] 9 6 3
## [2,] 6 20 10
## [3,] 3 10 14
L_B
## [,1] [,2] [,3]
## [1,] 3 0 0
## [2,] 2 4 0
## [3,] 1 2 3
round(L_B %*% t(L_B), 10) # Verificación: debe reproducir B
## [,1] [,2] [,3]
## [1,] 9 6 3
## [2,] 6 20 10
## [3,] 3 10 14
El resultado es
\[ L_B=\begin{pmatrix}3&0&0\\2&4&0\\1&2&3\end{pmatrix}, \qquad B=L_B L_B^T. \]
\[ \begin{cases} 4x+2y=8,\\ 2x+5y+2z=14,\\ 2y+5z=17. \end{cases} \]
De la primera ecuación, \(y=4-2x\). Al sustituir en la tercera: \(2(4-2x)+5z=17\), de donde \(z=(9+4x)/5\). Sustituyendo ambas expresiones en la segunda:
\[ 2x+5(4-2x)+2\left(\frac{9+4x}{5}\right)=14 \quad\Longrightarrow\quad x=\frac{3}{2}. \]
Entonces \(y=4-2(3/2)=1\) y \(z=(9+4(3/2))/5=3\). La solución es
\[ \boxed{(x,y,z)=\left(\frac32,1,3\right)}. \]
\[ \begin{cases} 3x+2y+z=8,\\ 3x+10y+5z=28,\\ 3x+10y+14z=45. \end{cases} \]
Se representa el sistema como \(M\mathbf{x}=\mathbf{b}\) y se resuelve con
solve().
M <- matrix(c(3, 2, 1,
3, 10, 5,
3, 10, 14), nrow = 3, byrow = TRUE)
b <- c(8, 28, 45)
solucion <- solve(M, b)
names(solucion) <- c("x", "y", "z")
solucion
## x y z
## 1.000000 1.555556 1.888889
M %*% solucion # Verificacion: debe devolver (8, 28, 45)
## [,1]
## [1,] 8
## [2,] 28
## [3,] 45
La solucion es \((x,y,z)=(1,14/9,17/9)\), es decir, aproximadamente \((1,1.5556,1.8889)\).