Documentos de Académico
Documentos de Profesional
Documentos de Cultura
ELABORADO POR:
Moquegua - Perú
2018
I. MATRICES
OBJETIVO
INTRODUCCIÓN
DEFINICIÓN
MATRIZ
En matemática, una matriz es un arreglo bidimensional de números.
Una matriz se representa por medio de una letra mayúscula(𝐴, 𝐵, …) y sus
elementos con la misma letra en minúscula (𝑎, 𝑏, …), con un doble
subíndice donde el primero indica la fila y el segundo la columna a la
que pertenece.
𝑎11 ⋯ 𝑎1𝑛
𝐴=( ⋮ ⋱ ⋮ )
𝑎𝑚1 ⋯ 𝑎𝑚𝑛
Donde:
𝐴 es una matriz de 𝑚 × 𝑛, cuyos elementos son 𝑎𝑖𝑗 donde 𝑖 va desde 1
hasta 𝑚 y 𝑗 de 1 hasta 𝑛.
SUBMATRIZ
En matemáticas, una submatriz es una matriz formada por la selección
de ciertas filas y columnas de una matriz más grande.
Por ejemplo:
Entonces:
𝑎11
𝐴(1,2; 1,3,4) = ( 𝑎 𝑎13 𝑎14
21 𝑎23 𝑎24 )
Una submatriz 𝐴 formada por filas 1,2 y columnas 1,3,4.
ENTRADA DE MATRICES
Imagen N° 01 – Forma 1
Imagen N° 02 – Forma 2
Una vez que una variable matricial ha sido definida, MATLAB habilita
muchos caminos para insertar, extraer, renumerar y manipular en
general sus elementos. La tabla siguiente presenta diferentes
posibilidades de definición de variables matriciales.
COMANDO DESCRIPCIÓN
FUNCIÓN DESCRIPCIÓN
Matriz 𝑛 × 𝑚 de números
𝑟𝑎𝑛𝑑(𝑛, 𝑚)
aleatorios menores en [0,1]
Matriz 𝑛 × 𝑛 construida a
partir de los enteros de 1 al
𝑚𝑎𝑔𝑖𝑐(𝑛)
𝑛2 con la misma fila,
columna y sumas diagonales.
(𝑛 > 2)
SIMBOLO OPERACIÓN
Suma de matrices
+
𝐴+𝐵 →𝐴+𝐵
Resta de matrices
−
𝐴−𝐵 →𝐴−𝐵
𝑐𝐴 → 𝑐 ∗ 𝐴
∗
Multiplicación de matrices
𝐴𝐵 → 𝐴 ∗ 𝐵, 𝐴 = (𝑎𝑖𝑗) , 𝐵 = (𝑏𝑖𝑗)
𝑛×𝑘 𝑘×𝑚
División a izquierda
\
𝐴−1𝐵 → 𝐴\𝐵 = 𝑖𝑛𝑣 (𝐴) ∗ 𝐵 , 𝐴 = (𝑎𝑖𝑗) inversible
𝑛×𝑛
División a derecha
/
𝐵𝐴−1 → 𝐵\𝐴 = 𝐵 ∗ 𝑖𝑛𝑣 (𝐴) , 𝐴 = (𝑎𝑖𝑗) inversible
𝑛×𝑛
Imagen N° 06 – Declaración de matrices A y B
SÍMBOLO OPERACIÓN
F. TRIGONOMÉTRICAS
FUNCIÓN DESCRIPCIÓN
sin(𝑧) Función seno
𝑠𝑖𝑛ℎ(𝑍) Función seno hiperbólico
𝑎𝑠𝑖𝑛(𝑍) Función arcoseno
𝑎𝑠𝑖𝑛ℎ(𝑍) Función arcoseno hiperbólico
𝑐𝑜𝑠(𝑍) Función coseno
𝑐𝑜𝑠ℎ(𝑍) Función coseno hiperbólico
𝑎𝑐𝑜𝑠(𝑍) Función arcocoseno
𝑎𝑐𝑜𝑠ℎ(𝑍) Función arcocoseno hiperbólico
𝑡𝑎𝑛(𝑍) Función tangente
𝑡𝑎𝑛ℎ(𝑍) Función tangente hiperbólica
𝑎𝑡𝑎𝑛(𝑍) Función arcotangente
𝑎𝑡𝑎𝑛ℎ(𝑍) Función arcotangente hiperbólica
𝑐𝑜𝑡(𝑍) Función cotangente
𝑐𝑜𝑡ℎ(𝑍) Función cotangente hiperbólica
𝑎𝑐𝑜𝑡(𝑍) Función arcocotangente
𝑎𝑐𝑜𝑡ℎ(𝑍) Función arcocotangente hiperbólica
𝑠𝑒𝑐(𝑍) Función secante
𝑠𝑒𝑐ℎ(𝑍) Función secante hiperbólica
𝑎𝑠𝑒𝑐(𝑍) Función arcosecante
𝑎𝑠𝑒𝑐ℎ(𝑍) Función arcosecante hiperbólica
𝑐𝑠𝑐(𝑍) Función cosecante
𝑐𝑠𝑐ℎ(𝑍) Función cosecante hiperbólica
𝑎𝑐𝑠𝑐(𝑍) Función arcocosecante
𝑎𝑐𝑠𝑐ℎ(𝑍) Función arcocosecante hiperbólica
Ejemplos:
FUNCIÓN DESCRIPCIÓN
Ejemplos:
FUNCIÓN DESCRIPCIÓN
𝑎𝑏𝑠(𝑧) Modulo o valor absoluto
𝑎𝑛𝑔𝑙𝑒(𝑍) Argumento
𝑐𝑜𝑛𝑗(𝑍) Complejo conjugado
𝑖𝑚𝑎𝑔(𝑍) Parte imaginaria
𝑟𝑒𝑎𝑙(𝑍) Parte real
Ejemplos:
FUNCIÓN DESCRIPCIÓN
𝑓𝑖𝑥(𝑧) Elimina las partes decimales
𝑓𝑙𝑜𝑜𝑟(𝑍) Redondea los decimales al menor entero más cercano
𝑐𝑒𝑖𝑙(𝑍) Redondea los decimales al mayor entero más cercano
𝑟𝑜𝑢𝑛𝑑(𝑍) Efectúa el redondeo común de decimales
Ejemplo:
8 1 6
Sea 𝐴 = [3 5 7]
4 9 2
Polinomio
𝒑𝒐𝒍𝒚(𝑨) característico de la
matriz 𝐴.
Forma canónica de
𝒋𝒐𝒓𝒅𝒂𝒏(𝑨)
Jordan de la matriz 𝐴.
Autovalores de la
𝒆𝒊𝒈(𝑨)
matriz 𝐴.
Autovalores (diagonal
de 𝐷) y Autovectores
[𝑽, 𝑫] = 𝒆𝒊𝒈(𝑨) (columnas de 𝑉) de
una matriz cuadrada
𝐴.
NORMAS DE UNA MATRIZ
COMANDO DESCRIPCIÓN
Norma 2 de la matriz 𝐴.
𝒏𝒐𝒓𝒎(𝑨) ‖𝑨‖𝟐 = √𝝆(𝑨𝑨𝒕) = √𝝆(𝑨𝒕𝑨)
𝜌: autovalor más grande de la matriz 𝐴𝑡𝐴.
Ejemplo:
8 15 1
Sea 𝐴 = [14 1 2]
4 6 17
OBJETIVO
PLANTEAMIENTO
0 5 10 15 20 25 30
𝐴 = [600 500 400 300 200 100 0]
0 0.8333 1.6667 2.5 3.3333 4.1667 5
1 0 3
𝖥 1
2 0 3
𝐵 =3 0 3
4 0 3
[5 0 3]
DESARROLLO
0 5 10 15 20 25 30
𝐴 = [600 500 400 300 200 100 0]
0 0.8333 1.6667 2.5 3.3333 4.1667 5
Imagen N° 01 – Matriz A
Generamos las filas usando vectores, y luego se forma la matriz 𝐵:
1 0 3
𝖥 1
2 0 3
𝐵= 3 0 3
4 0 3
[5 0 3]
Imagen N° 02 – Matriz B
EJEMPLO 02: MANIPULACIÓN DE MATRICES
OBJETIVO
PLANTEAMIENTO
18 17 16 15 14 13
𝐴 = [12 11 10 9 8 7]
6 5 4 3 2 1
18 17 16 15 14 13
𝐴 = [12 11 10 9 8 7]
6 5 4 3 2 1
Imagen N° 01 – Matriz A
Imagen N° 02 – Vector 𝑣
Creando la matriz 𝑮 de 2 × 4 tal que la primera fila incluya los primeros
dos elementos y los dos últimos elementos de la primera fila de 𝐴 y la
segunda fila de 𝐺 incluya los últimos elementos de la tercera fila de 𝐴.
Imagen N° 03 – Matriz 𝐺
EJEMPLO 03: DETERMINANTE DE MATRICES
OBJETIVO
PLANTEAMIENTO
7 3 10 10
9 −8 10 0
𝐴=[
−8 −5 −7 6 ]
9 1 10 −8
7 3 10 10
9 −8 10 0
𝐴=[ ]
−8 −5 −7 6
9 1 10 −8
Imagen N° 01 – Matriz 𝐴
7 3
9 −8 10 10
det(𝐴) = | 10 0
−8 −5 −7 6 |
9 1 10 −8
−8 10 9 10 0 9 −8 0 9 −8 10
0
det(𝐴) = 7 |−5 −7 6 | − 3 |−8 −7 6 | + 10 |−8 −5 6 | − 10 |−8 −5 −7|
1 10 −8 9 10 −8 9 1 −8 9 1 10
OBJETIVO
PLANTEAMIENTO
2 4 −1 −2 5 0 3 5
0
𝐴 = [3 1 −5] 𝐵 = [−3 2 7] 𝐶 = [2 1 0 ]
0 1 4 −1 6 4 6 −3
9
2 4 −1 −2 5 0 3 5
0
𝐴 = [3 1 −5] 𝐵 = [−3 2 7] 𝐶 = [2 1 0 ]
0 1 −1 6 4 6 −3
4 9
OBJETIVO
PLANTEAMIENTO
cos𝜃 𝑠𝑒𝑛𝜃 0
𝐴 = [−𝑠𝑒𝑛𝜃 𝑐𝑜𝑠𝜃 0]
0 0 1
DESARROLLO
cos𝜃 𝑠𝑒𝑛𝜃 0 I 2 2 I
𝐴 = [−𝑠𝑒𝑛𝜃 𝑐𝑜𝑠𝜃 0] = I √3 1 I
0 0 1
I− 2 2
0I
[ 0 0 1]
Hallemos la inversa de 𝐴:
I 2 2 𝑎 𝑏 1 0 0
I 𝑐
𝐴. 𝐴−1 = I √3 1 I [𝑑 𝑒 𝑓] = [0 1 0]
𝑔 ℎ 𝑖 0 0 1
I[− 2 2
0I
0 0 1]
𝑎 √3𝑑 −√3𝑏 𝑒 √𝟑 1
→𝒅= 𝖠𝒂=
+ = 1 ⟶ 𝑎 = 2 − √3𝑑 + = 1 ⟶ 𝑒 = 2 + √3𝑏 𝟐 2
2 2 2 2
𝑏 √3𝑒 −√3𝑐 𝑓 𝑒 = 2 + √3(−√3𝑒) = 2 − 3𝑒
+ = 0 ⟶ 𝑏 = −√3𝑒 + = 0 ⟶ 𝑓 = √3𝑐
2 2 2 2
𝟏
𝑐 √3𝑓 𝒈 = 𝟎 , 𝒉 = 𝟎, 𝒊 = 𝟏 →𝒆= 𝖠 𝒃 = −√ 𝟑
+ = 0 ⟶ 𝑐 = −√3𝑓 𝟐 2
2 2
𝑑 = √3(2 − √3𝑑) = −3𝑑 + 2√3 𝑓 = √3(−√3𝑓) = −3𝑓
−√3𝑎 𝑑
+ = 0 ⟶ 𝑑 = √3𝑎
2 2 → 𝒇=𝟎 𝖠𝒄= 𝟎
1
−√𝟑
𝑏 𝑎 𝖥2 2 01
𝑐
Entonces: 𝑨−𝟏 = [𝑑 𝑒 𝑓] = I√𝟑 1 I
𝑔 ℎ 𝑖 I2 0I
2
[0 0 1]
OBJETIVO
PLANTEAMIENTO
Hallar una matriz 𝑇, tal que 𝑇−1𝐴𝑇 sea una matriz diagonal 𝐷. Verificar que
𝑇 es una matriz ortogonal.
DESARROLLO
Imagen N° 01 – Matriz 𝐴
Imagen N° 03 – Matriz 𝐷
OBJETIVO
PLANTEAMIENTO
Determinar 𝑋 en 𝐴𝑋 = 𝐵 si:
1 3 8 −3 5
𝐴 = [2 4 11] 𝐵 = [ 1 5]
1 2 5 3 4
DESARROLLO
Para hallar 𝐴𝑋 = 𝐵
Imagen N° 01 - Matrices 𝐴 y 𝐵
Determinante de 𝐴:
Hallando 𝑋:
OBJETIVO
PLANTEAMIENTO
2 1 3
𝑀 =[1 −1 1 ]
1 4 −2
adj(𝐴) = cof(𝐴)𝑇
Donde:
Imagen N° 01 – Matriz 𝑀
Analizando si 𝑀 es inversible:
Imagen N° 02 – Determinante de 𝑀
Imagen N° 04 – Inversa de 𝑀
RECOMENDACIONES
TAREA
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
a. 𝐴2 − 𝐵2
b. (𝐴 + 𝐵)(𝐴 − 𝐵)
II. SISTEMAS DE
ECUACIONES LINEALES
OBJETIVO
INTRODUCCIÓN
Forma matricial:
𝑎11 ⋯ 𝑎1𝑛 𝑥1 𝑏1
[ ⋮ ⋱ ⋮
⋮ ][ ]=[ ⋮ ]
𝑎𝑛1 ⋯ 𝑎𝑛𝑛 𝑥𝑛 𝑏𝑛
𝐴𝑋 = 𝐵
División Izquierda:
División derecha:
Ejemplo:
2 3 −4 𝑥1 3
𝐴 = (1 −1 1 ) , 𝑋 = (𝑥2) y 𝑏 = (−0.5)
4 −7 14 𝑥3 2
Se cumple que: 𝐴𝑋 = 𝑏
𝑋 = 𝑖𝑛𝑣(𝐴) × 𝑏 = 𝐴\𝑏
Siempre y cuando 𝐴 sea inversible:
𝒓𝒓𝒆𝒇([𝑨 , 𝒃])
Donde:
OPERACIONES FILA
Para una matriz 𝐴 se definen tres operaciones elementales por filas.
Cuando se efectúan las operaciones elementales se obtiene una
matriz equivalente y se utiliza el símbolo de equivalencia.
2. Intercambio de filas
Ejemplo:
4 3 8 7
Sea la matriz 𝐴 = ( 1 9 0 2)
−2 5 3 6
2. Intercambio de columnas
Ejemplo:
8 1 6
Sea la matriz 𝐵 = (2 5 9)
4 7 3
OBJETIVO
PLANTEAMIENTO
A 1 2 4
B 4 4 2
C 2 4 3
𝑥 + 4𝑦 + 2𝑧 = 72
2𝑥 + 4𝑦 + 4𝑧 = 104
4𝑥 + 2𝑦 + 3𝑧 = 88
OBJETIVO
PLANTEAMIENTO
2𝑥 + 𝑦 = 11 + 𝑧
{ 𝑥 + 20 = 3𝑦
4𝑥 + 5𝑧 − 8 = −2𝑦
DESARROLLO
2𝑥 + 𝑦 − 𝑧 = 11
{ 𝑥 − 3𝑦 + 0𝑧 = −20
4𝑥 + 2𝑦 + 5𝑧 = 8
2 1 −1 11
𝐴 = (1 −3 0 ) , 𝑏 = (−20)
4 2 5 8
2 1 −1 11
𝐴𝑏 = (1 −3 0 −20)
4 2 5 8
Imagen N° 03 – Rango de 𝐴 y 𝐴𝑏
1 0 0 𝑥
𝐴𝑏 = (0 1 0 𝑦)
0 0 1 𝑧
𝑥
Entonces la solución de 𝑋 = (𝑦)
𝑧
Imagen N° 06 – Comprobación
Por lo tanto:
𝒙=𝟏
𝒚=𝟕
𝒛 = −𝟐
EJEMPLO 03: OPERACIONES
ELEMENTALES FILAS II
OBJETIVO
PLANTEAMIENTO
𝑥
+ 6𝑧 + 5𝑦 = 85
2 5𝑧 + 𝑥 = 57
2𝑦 + 4𝑧 − 86 = 0
𝗅 5 5
DESARROLLO
Primero ordenamos el sistema:
𝑥
+ 5𝑦 + 6𝑧 = 85
2𝑥 + 0𝑦 + 5𝑧 = 57
0𝑥 + 2𝑦 + 4𝑧 86
𝗅 =
5 5
1
5 6 85
l 2 57
𝐴 = I1 0 5I , 𝑏 = (86)
4
0 1 5
𝗁 5)
1
85
5 6
𝐴𝑏 =l2
I1 0 57I
5 86
0 2 4
𝗁 5 5)
Imagen N° 02 – Matriz Aumentada
Imagen N° 03 – Rango de 𝐴 y 𝐴𝑏
1 0 0 𝑥
𝐴𝑏 = (0 1 0 𝑦)
0 0 1 𝑧
𝑥
Entonces la solución de 𝑋 = (𝑦)
𝑧
Veamos en MATLAB:
Imagen N° 06 – Comprobación
Por lo tanto:
𝒙 = −𝟐𝟑𝟖
𝒚 = −𝟑𝟎
𝒛 = 𝟓𝟗
EJEMPLO 04: APLICACIÓN DE SISTEMA
DE ECUACIONES LINEALES
OBJETIVO
PLANTEAMIENTO
𝑓(𝑥) = 𝑎𝑥2 + 𝑏𝑥 + 𝑐
Entonces:
𝒂+𝒃+𝒄=𝟒
Entonces:
𝒂−𝒃+𝒄=𝟐
Entonces:
𝟒𝒂 + 𝟐𝒃 + 𝒄 = 𝟑
Es decir, para que la función 𝒇(𝒙) = 𝒂𝒙𝟐 + 𝒃𝒙 + 𝒄 pase por los puntos 𝑃, 𝑄 y
𝑅 se satisfacen las siguientes ecuaciones:
𝑎 × (1)2 + 𝑏 × 1 + 𝑐 = 4
{𝑎 × (−1)2 + 𝑏 × −1 + 𝑐 = 𝑎 + 𝑏 +𝑐 =4
2 ⟹{𝑎−𝑏+𝑐 =2
𝑎 × (2)2 + 𝑏 × 2 + 𝑐 = 3 4𝑎 + 2𝑏 + 𝑐 = 3
Resolviendo en MATLAB:
2 11
Entonces el valor de 𝑎 = − , 𝑏 = 1 y 𝑐 = y la función es:
3
3 𝟏𝟏
𝟐 𝟐
( )
𝒇 𝒙 = − +𝒙+
𝟑
𝒙 𝟑
EJEMPLO 05: SISTEMA DE ECUACIONES
EN OFERTA Y DEMANDA
OBJETIVO
PLANTEAMIENTO
OBJETIVO
PLANTEAMIENTO
𝑎 − 3𝑏 + 2𝑐 = −3
{ 5𝑎 + 6𝑏 − 𝑐 = 13
4𝑎 − 𝑏 + 3𝑐 = 8
DESARROLLO
es un sistema de ecuaciones, 𝐴 es la matriz de coeficientes del sistema, 𝑥 = (𝑥1, 𝑥2, … , 𝑥𝑛) es el vector columna de las
ctor columna de los términos independientes, entonces la
l sistema se presenta así:
det(𝐴𝑗)
𝑥𝑗 = det(𝐴)
𝑎 − 3𝑏 + 2𝑐 = −3
{ 5𝑎 + 6𝑏 − 𝑐 = 13
4𝑎 − 𝑏 + 3𝑐 = 8
1 −3 2
𝐴 = (5 6 −1)
4 −1 3
𝑎
El vector de incógnitas es 𝑥 = (𝑏)
𝑐
−3
El vector de términos independientes 𝐵 = (13 )
8
Entonces:
𝑨𝒙 = 𝑩
Hallando la determinante de 𝐴:
Hallando 𝑎:
Hallando 𝑏:
Hallando 𝑐:
Por lo tanto, 𝒂 = −𝟐 , 𝒃 = 𝟓 y 𝒄 = 𝟕.
EJEMPLO 07: REGLA DE CRAMER II
OBJETIVO
PLANTEAMIENTO
−2𝑥1 + 3𝑥2 − 𝑥3 = 1
{ 𝑥1 + 2𝑥2 − 𝑥3 = 4
−2𝑥1 − 𝑥2 + 𝑥3= − 3
DESARROLLO
es un sistema de ecuaciones, 𝐴 es la matriz de coeficientes del sistema, 𝑥 = (𝑥1, 𝑥2, … , 𝑥𝑛) es el vector columna de las i
tor columna de los términos independientes, entonces la
sistema se presenta así:
det(𝐴𝑗)
𝑥𝑗 = det(𝐴)
−2𝑥1 + 3𝑥2 − 𝑥3 = 1
{ 𝑥1 + 2𝑥2 − 𝑥3 = 4
−2𝑥1 − 𝑥2 + 𝑥3= − 3
−2 3 −1
𝐴=( 1 2 −1)
−2 −1 1
𝑥1
El vector de incógnitas es 𝑥 = (𝑥2)
𝑥3
1
El vector de términos independientes 𝐵 = ( 4 )
−3
Entonces:
𝑨𝒙 = 𝑩
Hallando la determinante de 𝐴:
Hallando 𝑥1:
Hallando 𝑥2:
Hallando 𝑥3:
Por lo tanto, 𝒙𝟏 = 𝟐 , 𝒙𝟐 = 𝟑 y 𝒙𝟑 = 𝟒.
EJEMPLO 08: SISTEMA DE ECUACIONES CON
VARIABLE MATRIZ
OBJETIVO
PLANTEAMIENTO
5 6 18 15
3𝑋 + 4𝑌 = [ 28 19 26 −19] = 𝐴
−3 −8 13 16
18 10 30 −4
5𝑋 − 3𝑌 = [ 8 22 24 −22] = 𝐵
−5 6 12 17
DESARROLLO
(3𝑋 + 4𝑌 = 𝐴) × 3
(5𝑋 − 3𝑌 = 𝐵) × 4
9𝑋 + 12𝑌 = 3𝐴
20𝑋 − 12𝑌 = 4𝐵
29𝑋 = 3𝐴 + 4𝐵
3 4
𝑋= 𝐴+ 𝐵
29 29
3 4
⟹ 3( 𝐴+ 𝐵) + 4𝑌 = 𝐴
29 29
9 12
⟹ 𝐴+ 𝐵 + 4𝑌 = 𝐴
29 29
9
4𝑌 = 𝐴 − ( 𝐴 + 12 𝐵)
29 29
20 12
4𝑌 = 𝐴− 𝐵
29 29
5 3
𝑌= 𝐴− 𝐵
29 29
Primero declaramos 𝐴 y 𝐵:
Hallando 𝑋:
Hallando 𝑌:
Comprobando:
TAREA 2
RECOMENDACIONES
TAREA_MATLAB_BAS_S7_APELLIDOS
TAREA
3𝑥 + 2𝑦 − 𝑧
2𝑥 − 2𝑦 + 4𝑧 = 1
{ =−2
1
−𝑥 + 𝑦 − 𝑧 = 0
2