A. Matrix - JulTob/Mathematics GitHub Wiki
Matrices
A matrix is a rectangular array of elements arranged in horizontal rows and vertical columns, and usually enclosed in brackets.
Matrices are designated by boldface uppercase letters.
A general matrix ๐จ having r rows and c columns may be written
\color{Aqua}
๐จ=
\begin{bmatrix}
a_{11} & a_{12} & ... & a_{1c} \\
a_{21} & a_{22} & ... & a_{2c} \\
... & ... & โฑ & ๏ธ \\
a_{r1} & a_{r2} & ... & a_{rc}
\end{bmatrix}
A matrix having $r$ rows and $c$ columns has order (or size) " $r$ by $c$." usually written $rรc$.
We can refer to a matrix at any general element $a_{ij}$ as $[a_{ij}]$
Square Matrix
A Matrix is a square Matrix if it has the same number of rows and columns.
$rรc$ = $sรs$
Is usually denoted by a single subscript for size
$๐จ_s$
Transpose
The transpose ๐จแต of a Matrix ๐จ is obtained by switching the element in (row $i$, column $j$) for the element in (row $j$, column $i$).
\color{#8ab4ff}
๐จแต=
\begin{bmatrix}
a_{11} & a_{21} & ... & a_{r1} \\
a_{12} & a_{22} & ... & a_{r2} \\
... & ... & โฑ & ๏ธ \\
a_{1c} & a_{2c} & ... & a_{cr}
\end{bmatrix}
$[a_{ij}]แต = [a_{ji}]$
\color{#00cdff}
๐ฉ =
\begin{bmatrix}
1 & 2 & 3 & 4 \\
5 & 6 & 7 & 8
\end{bmatrix}
ใใใ
๐ฉแต =
\begin{bmatrix}
1 & 5 \\
2 & 6 \\
3 & 7 \\
4 & 8
\end{bmatrix}
SPECIAL MATRICES
The Zero Matrix
for all r,c $[a_{rc}] = 0$
\color{#00e0ff}
๐_{โโจฏโ} =
\begin{bmatrix}
0 & 0 \\
0 & 0
\end{bmatrix}
Symmetric Matrices
for all r, c $[a_{rc}] = [a_{cr}]$
\color{#00f8ec}
S_{โโจฏโ} =
\begin{bmatrix}
1 & {\color{yellow}2} & {\color{gold}3} \\
{\color{yellow}2} & 4 & {\color{orange}5} \\
{\color{gold}3} & {\color{orange}5} & 6
\end{bmatrix}
Diagonal Matrix
Is a square matrix in wich all elements that are not part of its diagonal are equal to zero.
For $cโ r โน a_{cr}=0$
Example:
\color{#7affcc}
\begin{bmatrix}
1 & {\color{red}0} & {\color{red}0} \\
{\color{red}0} & 4 & {\color{red}0} \\
{\color{red}0} & {\color{red}0} & 6
\end{bmatrix}
Powers of Diagonal Matrices
For all diagonal matrices we have that
\color{#a3f09e}
\begin{bmatrix}
a_{11} & 0 & โฆ & 0 \\
0 & a_{22} & โฆ & 0 \\
โฆ & โฆ & โฑ & ๏ธ \\
0 & 0 & โฆ & a_{nn}
\end{bmatrix} ^p
=
\begin{bmatrix}
a_{11}^p & 0 & โฆ & 0 \\
0 & a_{22}^p & โฆ & 0 \\
โฆ & โฆ & โฑ & ๏ธ \\
0 & 0 & โฆ & a_{nn}^p
\end{bmatrix}
The Identity Matrix
for r=c $[a_{rc}] = 1$, else $[a_{rc}] = 0$,
\color{#00eeff}
๐_{โโจฏโ} =
\begin{bmatrix}
1 & 0 \\
0 & 1
\end{bmatrix}
- For all $A_n ยท I_n = A_n$
- For all $I_n ยท A_n = A_n$
- $๐_{r} ยท A_{rโจฏc} = A_{rโจฏc}$
- $A_{rโจฏc} ยท ๐_{c} = A_{rโจฏc}$
Inverse Matrices
If two square matrices, $A_n$ and $B_n$, are such as
\color{#c7de7a}
A_nยทB_n = I_n
Matrices
The array of mรn
(real) numbers ๐แตขโฑผ
consisting of m rows and n columns
๐ =
โ ๐โโ ๐โโ โฆ ๐โ๐ โ
โข ๐โโ ๐โโ โฆ ๐โ๐ โฅ
โข โฆ โฆ โฑ โฆ โฅ
โ ๐๐โ ๐๐โ โฏ ๐๐๐ โ
is called an mรn
matrix with the numbers ๐แตขโฑผ
as its elements.
The following notation will be used for a matrix:
The Matrix:
๐โฃ
The element:
๐(i,j) {i = 1, 2, โฏ , m; j = 1, 2, โฏ , n}
๐แตขโฑผ
where subscripts i and j denote the rows and columns position, respectively.
Espacio de Matrices
$๐_{mโจฏn} (๐)$ es el conjunto de matrices de tamaรฑo $mโจฏn$ cuyas entradas son elements de $๐$
The set of all matrices of size mรn
with elements from the set $๐$ is denoted by:
๐โโโ(๐)
Matriz Cuadrada
Una matrix con $m=n$
Traza de la Matriz
Es la suma de los elements de su diagonal
tr( Aโฃ ) = โA(i,i)
Transpose
By interchanging a matrix's rows and columns, we get the transpose of the matrix denoted by Aแต. Thus we write Aแต(i,j) = A(j,i).
Matriz simรฉtrica
si A=Aแต
Matriz Antisimรฉtrica
si -A=Aแต
Matriz Transpuesta Conjugada
Aแตแถ : Aแตแถ(i,j) = complejoConjugado(A(j,i))
Matriz Hermรญtica
Matriz Cuadrada.
A(i,j) = Aแตแถ
Matric triangular superior
si A(i<j,j)=0
Matric triangular inferior
si A(i>j,j)=0
Matriz Diagonal
si A(iโ j,j)=0
โใ๐โโ 0 0 ใโ
โขใ0 ๐โโ 0 ใ โฅ
โใ0 0 ๐โโใโ
Matriz Identidad
Aโฃ ยท Iโฃ = Aโฃ
si A(i=j,j):= 1; else :=0
โใ1 0ใใใ0ใโ
โขใ0 1ใใใ0ใโฅ
โใ0 0ใใใ1ใโ
Matriz Nula
Aโฃ = 0โฃ
si A(i,j) :=0
โใ0 0ใใใ0ใโ
โขใ0 0ใใใ0ใโฅ
โใ0 0ใใใ0ใโ
Matriz Nula de Orden n
Ceros en la diagonal principal.
Fila / Columna nula
Si todas las entradas de la Fila/Columna son $0$
Submatriz
La matriz obtenida a partir de la eliminaciรณn de filas o columnas de otra matriz raiz.
Inversa de una Matriz
Sea ๐ una matriz cuadrada $nรn$. Si existe una matriz $๐^{-1}$ tal que
\color{Silver}
๐ ๐^{-1} = ๐_n
Entonces decimos que $๐^{-1}$ es la Matriz Inversa de $๐$
Para una matriz $2ร2$ tenemos que para
\color{Silver}
๐ = \begin{bmatrix}
a & b \\
c & d
\end{bmatrix}
entonces
\color{Silver}
๐^{-1} = \frac{1}{\color{Gold}ad-bc}
\begin{bmatrix}
d & -b \\
-c & a
\end{bmatrix}
Si ${\color{Gold}ad-bc} = 0$, entonces ๐ no tiene inversas.
Matrix Algebra
Ante el sistema:
a11 x + a12 y + a13 z + a14 t = C1
a21 x + a22 y + a23 z + a24 t = C2
a31 x + a32 y + a33 z + a34 t = C3
a41 x + a42 y + a43 z + a44 t = C4
Se puede expresar en forma de Matriz
(A) = โ a11 a12 a13 a14 โ
โ a21 a22 a23 a24 โ
โ a31 a32 a33 a34 โ
โ a41 a42 a43 a44 โ
Rango de una matriz
Nรบmero de filas y columnas de una matriz, si es cuadrada ha de ser รบnico, mismo nยบ de filas y de columnas.
ran(A) = 4 รณ 2x2
Se pueden calcular las incรณgnitas de una matriz sustituyendo la columna propia (es decir, la parte de la matriz que corresponde a los valores de la incรณgnita) por los resultados de las determinaciones, dividiendo la matriz resultante entre la matriz inicial.
x = | C1 a12 a13 a14 |
| C2 a22 a23 a24 |
| C3 a32 a33 a34 |
| C4 a42 a43 a44 |
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|A|
Para diferenciar si una matriz representa un sistema compatible debemos observar si al tomarla con los resultados (Cn) mantiene el mismo rango. Para esto debemos calcular el determinante de ambas, equivalente al rango.
El determinante de una matriz se calcula en estrella: Se suman los que tengan direcciรณn \ y se restan los de /
Si el determinante es igual a cero la inversa no existe (A^-1)
Tambiรฉn se puede sacar el determinante por partes, si se trata de una matriz triangular. en este caso el determinante de a11 se multiplicarรญa por el determinante de la matriz marcada en magenta, pudiendo ser cualquiera de los dos casos de ser a12 y a13 valor de 0 รณ a21 a31 a41 valor 0. Esto se puede obtener por varias transformaciones de Gauss, pero hay que tener en cuenta las transformaciones (las independientes de las filas, el cambio de posiciรณn entonces se multiplica por (-1)).
Operaciones con matrices
Para sumar matrices se suma el a11 con el b11 en la posiciรณn 11, y lo mismo con todos en las posiciones ixj.
Ademรกs:
(A+B)+C=A+(B+C)
A+B=B+A
Para Multiplicar Matrices tienen que tener la primera el mismo nรบmero de filas que la segunda columnas, de la misma longitud. De esta dimensiรณn serรก la matriz resultante.
AxB >> |2x3| x |3x2|=|2x2|
| a11 a12 a13| | b11 b12 |
| a21 a22 a23| x| b21 b22 | =
| b31 b32 |
| (a11xb11+a12xb21+a13xb31)11 (a11xb12+a12xb22+a13xb32)12 |
| (a21xb11+a22xb21+a23xb31)21 (a21xb12+a22xb22+a23xb32)22 |
Importante: AxB=/=BxA, en este caso estรก indeterminada.
Sistemas de ecuaciones con incรณgnitas
โญ a11 a12 a13 a14 โC1 โฎ
โ a21 a22 a23 a24 โC2 โ
โ a31 a32 a33 a34 โC3 โ
โฐ a41 a42 a43 a44 โC4 โฏ
Tipos
-
Incompatible: No tiene soluciรณn
-
Compatible: Tiene soluciรณn.
- Determinadas: Si tiene una soluciรณn
- Indeterminadas: Si tiene infinitas soluciones.
Resoluciรณn por Gauss.
Se hace uso de la matriz unidad o Identidad
| 1 0 0 0|
| 0 1 0 0| Identidad de orden 4
| 0 0 1 0|
| 0 0 0 1|
Hay que transformar, mediante mรฉtodos elementales de matrices, la matriz A y la Identidad simultรกneamente
Matrices:
Linear relations between variables.
๐โเผโ=
โโโโโฌโโโโโ
โ๐บโโ โ ๐บโโโ
โโโโโผโโโโโค
โ๐บโโโ ๐บโโโ
โโโโโผโโโโโค
โ๐บโโโ ๐บโโโ
โโโโโดโโโโโ
๐ ๐ต๐๐๐๐แณต๐ฒ๐๐๐๐๐๐๐
๐โเผโ โ๐โเผโ=
โโโโโโโโโโโโโโโโโโโฌโโโโโ
โ๐ฏโโ โ ๐ฏโโโ
โโโโโโโโโโโโโโโโโโโผโโโโโค
โ๐ฏโโ โ ๐ฏโโโ
โโโโโโโโโโโโโโโโโโโดโโโโโ
โโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโฆโโ
โ๐บโโโ ๐บโโโโ ๐บโโ ๐ฏโโ + ๐บโโ ๐ฏโโโ. โ
โโโโโผโโโโโคโ โโโโโโโโโโโโโโโโโโโฌโโฃ
โ๐บโโโ ๐บโโโโ โ โ
โโโโโผโโโโโคโ โโโโโโโโโโโโโโโโโโโฌโโฃ
โ๐บโโโ ๐บโโโโ. โ.โ
โโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโฉโโ
c๐แณต๐=๐บ(fila)โข๐ป(columna)
Producto vector punto de la fila de ๐ con la columna de ๐ก
Matrices
Given two natural numbers m, n, a m ร n matrix with real coefficients is a table of mn real numbers placed on m rows and n columns. For example:
\begin{pmatrix}
5 & 6 & 0 \\
4 & 3 & -1
\end{pmatrix}
is a 2ร3 matrix.
If m = n the matrix is said to be square of order n. For example
\begin{pmatrix}
1 & 0 \\
2 & 3
\end{pmatrix}
is a square matrix of order 2.
We denote by $M_{m,n}(โ)$ the set of $m ร n$ matrices with real coefficients and simply by $M_n(โ)$ the set of square matrices of order $n$ with real coefficients.
Given a matrix $A$, the number that appears in the $i-th$ row and $j-th$ column of A is called the A(i,j) element.
Operaciones con Matrices
- $A = B$ โบ $A(i,j) = B(i,j) โ for โ โi,j$
- Cross Product $A_{ms}โจฏB_{sn} = C_{mn}$
- $c_{ij} = โ{h=1}^s a{ih}ยทb_{hj}$
Matrix form of a system
We can express a system
\left\{\begin{matrix}
a_{11}x_1 + a_{12}x_2 +a_{13}x_3 + ... + a_{1n}x_n = b_1 \\
a_{21}x_1 + a_{22}x_2 +a_{23}x_3 + ... + a_{2n}x_n = b_2
\\
... \\
a_{m1}x_1 + a_{m2}x_2 +a_{m3}x_3 + ... + a_{mn}x_n = b_m
\end{matrix}\right.
as
\begin{pmatrix}
a_{11} & a_{12} & ... & a_{1n} \\
a_{21} & a_{22} & ... & a_{2n} \\
... \\
a_{m1} & a_{m2} & ... & a_{mn}
\end{pmatrix}
\begin{pmatrix} x_1 \\ x_2 \\ ... \\ x_m \end{pmatrix}
=
\begin{pmatrix}
b_1 \\ b2 \\ ... \\ b_m
\end{pmatrix}
That we synthesize using algebra as
๐ยท๐ฅโ = ๐โ