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

๐—”ยท๐‘ฅโƒ— = ๐‘โƒ—