Matrices y vectores en LaTex

TemaLatex
TipoTutoriales

Las matrices y vectores se escriben en el modo matemático. Siguen un formato de tabla asi:

Escribir la matríz

\begin{matrix}
	a & b & c\\
	d & e & f
\end{matrix}
abcdef\begin{matrix} a & b & c\\ d & e & f \end{matrix}

Para ingresar una matriz se escriben cada una de las filas separadas con \\ y para cada fila se escribe su componente en cada una de las columnas separandolo por &.

Para escribir un vector se puede hacer lo mismo. Un vector no es mas que una matriz de una sola columna

\begin{matrix}
	x \\
	y \\
	z \\
\end{matrix}
xyz\begin{matrix} x \\ y \\ z \\ \end{matrix}

Tipos de paréntesis

Para cambiar los tipos de paréntesis de una matriz o vector se usa un envoiroment distinto:

\begin{pmatrix}
	4 & 3 & 3.2 \\
	56 & \lambda & 1\\
	4 & 3 & \pi 
\end{pmatrix}
(433.256λ143π)\begin{pmatrix} 4 & 3 & 3.2 \\ 56 & \lambda & 1\\ 4 & 3 & \pi \end{pmatrix}

\begin{bmatrix}
	4 & 3 & 3.2 \\
	56 & \lambda & 1\\
	4 & 3 & \pi 
\end{bmatrix}
[433.256λ143π]\begin{bmatrix} 4 & 3 & 3.2 \\ 56 & \lambda & 1\\ 4 & 3 & \pi \end{bmatrix}
\begin{Bmatrix}
	4 & 3 & 3.2 \\
	56 & \lambda & 1\\
	4 & 3 & \pi 
\end{Bmatrix}
{433.256λ143π}\begin{Bmatrix} 4 & 3 & 3.2 \\ 56 & \lambda & 1\\ 4 & 3 & \pi \end{Bmatrix}
\begin{vmatrix}
	4 & 3 & 3.2 \\
	56 & \lambda & 1\\
	4 & 3 & \pi 
\end{vmatrix}
433.256λ143π\begin{vmatrix} 4 & 3 & 3.2 \\ 56 & \lambda & 1\\ 4 & 3 & \pi \end{vmatrix}
\begin{Vmatrix}
	4 & 3 & 3.2 \\
	56 & \lambda & 1\\
	4 & 3 & \pi 
\end{Vmatrix}
433.256λ143π\begin{Vmatrix} 4 & 3 & 3.2 \\ 56 & \lambda & 1\\ 4 & 3 & \pi \end{Vmatrix}

Ejemplo de un sistema de ecuaciones

Suponga que tenemos el siguiente sistema de ecuaciones:

\begin{cases}
	3x + 5y + z =4\\
	7x – 2y + 4z =9\\
	-6x + 3y + 2z =6
\end{cases}
{3x+5y+z=47x2y+4z=96x+3y+2z=6\begin{cases} 3x + 5y + z =4\\ 7x – 2y + 4z =9\\ -6x + 3y + 2z =6\end{cases}

Su respectiva representación matricial es:

\begin{bmatrix} %Matriz
	3 & 5 & 1 \\
	7 & -2 & 4\\
	-6 & 3 & 2
\end{bmatrix}

\cdot %Símbolo multiplicar

\begin{Bmatrix} %Vector solución
	x \\
	y \\
	z 
\end{Bmatrix}
=
\begin{Bmatrix} %Vector de términos independentes
	4 \\
	9 \\
	6 
\end{Bmatrix}
[351724632]{xyz}={496}\begin{bmatrix} %Matriz 3 & 5 & 1 \\ 7 & -2 & 4\\ -6 & 3 & 2 \end{bmatrix} \cdot %Símbolo multiplicar \begin{Bmatrix} x \\ y \\ z \end{Bmatrix} = \begin{Bmatrix} 4 \\ 9 \\ 6 \end{Bmatrix}

\begin{Bmatrix} %Vector solución
	x \\
	y \\
	z 
\end{Bmatrix}
=
\begin{bmatrix} %Matriz
	3 & 5 & 1 \\
	7 & -2 & 4\\
	-6 & 3 & 2
\end{bmatrix}^{-1} %Inversa
\cdot %Símbolo multiplicar
\begin{Bmatrix} %Vector de términos independentes
	4 \\
	9 \\
	6 
\end{Bmatrix}
 {xyz}=[351724632]1{496} \begin{Bmatrix} %Vector solución x \\ y \\ z \end{Bmatrix} = \begin{bmatrix} %Matriz 3 & 5 & 1 \\ 7 & -2 & 4\\ -6 & 3 & 2 \end{bmatrix}^{-1} %Inversa \cdot %Símbolo multiplicar \begin{Bmatrix} %Vector de términos independentes 4 \\ 9 \\ 6 \end{Bmatrix}