Professional Documents
Culture Documents
Metodos Numericos 6,13,20,27 Ii y 2,9,16,24 Iii
Metodos Numericos 6,13,20,27 Ii y 2,9,16,24 Iii
indique para que valor de k el sistema tendrá una única solución, infinitas soluciones o no
tendrá solución.
2𝑥 + 𝑦 +𝑧 =𝑘
𝑘𝑥 − 𝑦 2𝑧 =1
𝑥+𝑦 −(𝑘 + 4) = −1
Solución:
2 1 1 𝑘
[ 𝑘 −1 2 1] 𝑓1 ↔ 𝑓3
1 1 −(𝑘 + 4) −1
1 1 −(𝑘 + 4) −1
[𝑘 −1 2 1] 𝑓3 = 𝑓3 − 2𝑘𝑓1 ; 𝑓2 = 𝑓2 − 𝑘𝑓1
2 1 1 𝑘
1 1 −𝑘 − 4 −1
[0 −𝑘 − 1 𝑘 2 + 4𝑘 + 2 𝑘 + 1]
0 −1 2𝑘 + 4 𝑘+2
1 1 −𝑘 − 4 −1
[0 −1 2𝑘 + 4 𝑘 + 2] 𝑓2 ↔ 𝑓3
0 −𝑘 − 1 𝑘 2 + 4𝑘 + 2 𝑘+1
1 1 −𝑘 − 4 −1
[0 1 −2𝑘 − 4 −𝑘 − 2]
0 −𝑘 − 1 𝑘 2 + 4𝑘 + 2 𝑘+1
1 0 𝑘+5 𝑘+1
[0 1 −2𝑘 − 4 −𝑘 − 2 ] F2 => F1 – F3
0 0 −𝑘 2 + 7𝑘 + 7 𝑘 2 − 2𝑘 − 1
F3 => F3 +(k+1) F2
Si:
−𝑘 2 + 7𝑘 + 7 = 0
7 √21
𝑘=− −
2 2
7 √21
𝑘=− +
2 2
𝑘 2 − 2𝑘 − 1 = 0
𝑘 = −1
EL SISTEMA NO TIENE SOLUCIÓN:
7 √21
𝑘=− +
2 2
𝑘 ≠ −1
7 √21
𝑘=− ±
2 2
Para ningún valor de k el sistema tendrá infinitas soluciones.
Halamos y de L. Y=b
1 0 0
1 𝑦1 8
− 1 0 𝑦
4 [ 2 ] = [−10]
−4 𝑦3 4
[ 0 15
4]
𝑦1 = 8
1
− 𝑦1 + 𝑦2 = −10
4
1
− (8) + 𝑦2 = −10 𝑦2 = −8
4
−4
𝑦 + 4𝑦3 = 4
15 2
−4 −7
(−8) + 4𝑦3 = 4 𝑦3 =
15 15
𝑦1 8
−8
𝑦 = [𝑦2 ] = [−7 ]
𝑦3
15
Hallamos x de U. x=y
4 −1 0 𝑥1 8
15 −8
[0 −1] [𝑥2 ] = [−7 ]
4 𝑥3
0 0 14 15
−7
𝑥3 = = −0.4666
15
15
𝑥 − 𝑥3 = −8
4 2
15 −7 452
𝑥2 − = −8 𝑥2 = = 2.0088
4 15 225
4𝑥1 − 𝑥2 = 8
452 563
4𝑥1 − =8 𝑥1 = = 2.50222
225 225
−7
𝑥1 15
452
𝑥 = [𝑥2 ] =
𝑥3 225
563
[225]
4 2 5 6 15.3
𝐴 = [2 16 6 4 ] 𝐵 = [40.3]
5 6 32 5 37
6 4 5 16 29.3
4 2 5 6
1
[2 16 6 4] 𝑓2 = − 𝑓 + 𝑓2
5 6 32 5 2 1
6 4 5 16
4 5 2
7 6 5
0 15 1 𝑓3 = − 𝑓 + 𝑓3
2 4 1
5 6 32 5
[6 4 5 16]
4 5 2
7 6
0 15 1 3
2 𝑓4 = − 𝑓 + 𝑓4
7 103 −5 2 1
0
2 4 2
[6 4 5 16 ]
4 5 2
7 6
0 15 1
2 7
7 103 𝑓3 = − 𝑓 + 𝑓3
0 −5 30 2
2 4
−5 2
0 1 7
[ 2 ]
4 2
5
7 6
0 15 1
2 1
374 𝑓4 = − 𝑓 + 𝑓4
0 0 −41 15 2
15
−5 15
0 1 7
[ 2 ]
4 5 2
7 6
0 15 1
2 41
374 −41 𝑓4 = − 𝑓 + 𝑓4
0 0 374 3
15 15
−41 104
[0 0 15 15 ]
4 5 2
7 6
0 15 1
2
−41
374
0 0 15
15 2481
0 0 0
[ 374 ]
4 5 2 1 0 0
7 6 1 0
0 15 1 1 0 0
2 2
𝑈= −41 𝐿= 5 7
374 1
0 0 15 4 30 0
15 2481 3 1 −41 1
0 0 0
[ 374 ] [2 15 374 ]
Hallamos y de y.L=B
1 0 0
1 0
1 0 0 𝑦1 15.3
2
𝑦2
5 7 [𝑦 ] = [40.3]
1 3 37
4 30 0 𝑦
4 29.3
3 1 −41 1
[2 15 374 ]
𝑦1 = 15.3
1
𝑦 + 𝑦2 = 40.3
2 1
1
(15.3) + 𝑦2 = 40.3 𝑦2 = 32.65
2
5 7
𝑦1 + 𝑦2 + 𝑦3 = 37
4 30
5 7
(15.3) + (32.65) + 𝑦3 = 37
4 30
𝑦3 = 10.2566
3 1 −41
𝑦1 + 𝑦2 + 𝑦 + 𝑦4 = 29.3
2 15 374 3
3 1 −41
(15.3) + (32.65) + (10.2566) + 𝑦4 = 29.3
2 15 374
𝑦4 = 5.2976
𝑦1 15.3
𝑦2 32.65
𝑦 = [𝑦 ] = [ ]
3 10.25
𝑦4 5.29
Hallamos x de U. x=y
4 2 5
7 6
0 15 1𝑥1 15.3
2 𝑥2
−41 [ ] = [ 32.65]
374 𝑥3 10.25
0 0 15
15 2481 𝑥4 5.29
0 0 0
[ 374 ]
2481
𝑥4 = 5.29
374
𝑥4 = 0.7974
374 41
𝑥3 − 𝑥4 = 1025
15 15
374 41
𝑥3 − (0.7974) = 10.25
15 15
𝑥3 = 0.4985
7
15𝑥2 + 𝑥3 + 𝑥4 = 32.65
2
7
15𝑥2 + (0.4985) + 5.29 = 32.65
2
𝑥2 = 1.707
𝑥1 = 4.6091
𝑥1 4.6091
𝑥2
𝑥 = [𝑥 ] = [ 1.707 ]
3 0.4985
𝑥4 5.29
20. los lados paralelos de un trapecio miden 15 y 38 cm respectivamente y los lados no paralelos
13 y 20 cm. Calcular la altura del trapecio.
Solución:
132 = 𝑥 2 + 𝑦 2 𝑓1 = 𝑥 2 + 𝑦 2 + 169
202 = 𝑥 2 + (21 − 𝑦)2 𝑓2 = 𝑥 2 + 𝑦 2 − 42𝑦 + 41
Tomamos como puntos iniciales (10,2)
2𝑥 2𝑦 −(𝑥 2 + 𝑦 2 − 169)
𝐽=[ ] 𝑁𝐹 = [ ]
2𝑥 2𝑦 − 42 (𝑥
0 ,𝑦0 )
−(𝑥 2 + 𝑦 2 − 42𝑦 + 41)
𝛿1 = 2.65 , 𝑥 = 12.65
2da INTERACION: (12.65 ,5)
25.3 10 −20.0225
𝐽=[ ] 𝑁𝐹 = [ ]
25.3 −32 −16.0225
𝐽. 𝛿 = 𝑁𝐹
25.3 10 𝛿 −20.0225
[ ] [ 1] = [ ]
25.3 −32 𝛿2 −16.0225
−42𝛿2 = 4
𝛿2 = −0.0952 , 𝑦 = 5 − 0.0952 = 4.9048
25.3𝛿1 + 10𝛿2 = −20.0225
25.3𝛿1 + 10(−0.0952) = −20.0225
𝛿1 = −0.7538 , 𝑥 = 12.65 − 0.7538 = 11.89962
3raINTERACION: (11.8962,4.9048)
23.7924 19.8096 3.4234
𝐽=[ ] 𝑁𝐹 = [ ]
23.7924 −32.1904 −0.5750
𝐽. 𝛿 = 𝑁𝐹
23.7924 19.8096 𝛿1 3.4234
[ ][ ] = [ ]
23.7924 −32.1904 𝛿2 −0.5750
−42𝛿2 = −3.9984
𝛿2 = 0.0952 , 𝑦 = 4.9048 + 0.0952 = 5
23.7924𝛿1 + 9.8096𝛿2 = 3.4234
23.7924𝛿1 + 9.8096(0.0952) = 3.4234
𝛿1 = 0.1046 , 𝑥 = 11.8962 + 0.1046 = 12.0008 = ℎ
Por lo tanto, la altura del trapecio es 12.0008cm
27. hacer un programa para resolver sistema de ecuaciones lineales por el método de gauss (sin
pivoteo)
%método de Gauss-Jordan Sin Pivoteo Parcial
for n=1:length(C(:,1))
if n~=i
C(n,:)=-C(n,i).*C(i,:)+C(n,:);
disp(C)
end
end
end
TERCERA UNIDAD
SOLUCION:
a = -0.83 b = 0.95
3
𝐹(𝑥) = 𝑒 𝑥 . √𝑥 2 + 1
𝑏
𝑑𝑦 2
𝐿𝑐 = ∫ √1 + ( ) 𝑑𝑥
𝑎 𝑑𝑥
0.95 3 2
3 𝑒𝑥 𝑥
𝐿𝑐 = ∫ √1 + (3𝑒 𝑥 𝑥 2 . √𝑥 2 +1+ ) 𝑑𝑥
−0.83 √𝑥 2 + 1
a) La regla del trapecio simple.
ℎ = 𝑏 – 𝑎 = 1.78
ℎ
𝐿𝑐 = [𝐹 (𝑥
⏟ 0 ) + 𝐹 (𝑥
⏟ 1 )]
2
𝑎 𝑏
1.78
𝐿𝑐 = [2.1285 + 13.6289]
2
𝐿𝑐 = 14.0241
b) El método de Simpson 1/3 simple
𝑏 − 𝑎 1.78
ℎ= = = 0.89
2 2
ℎ
𝐿𝑐 = [𝐹(𝑥0 ) + 4𝐹(𝑥1 ) + 𝐹(𝑥2 )]
3
0.89
𝐿𝑐 = [2.1285 + 4(1.0023) + 13.6289]
3
𝐿𝑐 = 11.7282
c) El método de Simpson 3/8 simple.
𝑏 − 𝑎 1.78
ℎ= = = 0.593̂
3 3
𝑥0 = −0.83
𝑥1 = −0.2367
𝑥2 = 0.3566
𝑥3 = 0.95
3ℎ
𝐿𝑐 = [𝐹(𝑥0 ) + 3𝐹(𝑥1 ) + 3𝐹(𝑥2 ) + 𝐹(𝑥3 )]
8
1.78
𝐿𝑐 = [2.1285 + 3(1.0001) + 3(1.2912) + 13.6289]
8
𝐿𝑐 = 5.0355
d) El método de newton cotes con n =4.
1.78
ℎ= = 0.445
4
2
𝑐𝑖 =
45
𝒊 𝒙𝒊 𝑾𝒊 𝑭(𝒙𝒊 )
0 -0.83 7 2,1285
1 -0.385 32 1,0497
2 0.06 12 1,0023
3 0.505 32 1,9649
4 0.95 7 13,6289
∑ 𝑊𝑖 𝐹(𝑥𝑖 ) =218.7959
2
𝐿𝑐 = (0.445)(218.7959)
45
𝐿𝑐 = 4.3273
2𝑥 − (𝑎 + 𝑏) 2𝑥 − 0.12
𝑧= =
𝑏−𝑎 1.78
𝑥 = 0.89𝑧 + 0.06
𝑑𝑥 = 0.89𝑑𝑧
∑ = 3.6582
𝐿𝑐 = 0.89[3.6582]
3. Una manera alternativa 3. El término del coeficiente 3. La regla 3/8 es más exacta que
para obtener la regla del de tercer grado se hace la regla 1/3.Por lo común, se
trapecio consiste en cero durante la prefiere la regla de Simpson 1/3,
integrar el polinomio de integración de la ya que alcanza una exactitud de
interpolación hacia interpolación polinomial. tercer orden con tres puntos en
delante de Newton- En consecuencia, la regla lugar de los cuatro puntos
Gregory. Recuerde que de Simpson 1/3 alcanza requeridos en la versión 3/8.
para la versión de primer una precisión de tercer
grado con el término del orden aun cuando se
error. base en sólo tres puntos.
16. utilice el método de Euler y Euler modificado para encontrar y(0.1) usar h= 0.1
𝑑𝑦
= 𝑥 + 𝑦 + 𝑥𝑦 𝑦(0) = 1
𝑑𝑥
Solución:
1ra iteracion
𝑥0 = 0 , 𝑦0 = 1
𝑥1 = 𝑥0 + ℎ = 0 + 0.1 = 0.1
𝑦1 = 𝑦0 + ℎ𝑓(𝑥0 , 𝑦0 ) = 1 + 0.1(1) = 1.1
2da iteración
3ra iteracion
n 𝑥𝑛 𝑦𝑛
0 0 1
1 0.1 1.1
2 0.2 1.231
3 0.3 1.3987
24. resuelva el ejercicio 22 y 23 por el método de newton raphson, 2 iteraciones e indique si habrá
o no convergencia. Como aseguramos qué el óptimo es máximo o mínimo.
𝑓(𝑥) = 3 + 6𝑥 + 5𝑥 2 + 3𝑥 3 + 4𝑥 4
f’(x)=6+10x+9x2+16x3
f’’(x)=10+18x+48x2
1° Iteración x0=-0.5
1.25
𝑥1 = −0.5 −
13
X1=-0.596
2° Iteración x0=-0.596
−0.15
𝑥2 = −0.596 −
16.32
X1=-0.587
23. f(x,y)=3.5x+2y+x2-x4-2xy-y2
𝜕𝑓
= 3.5 + 2𝑥 − 4𝑥 3 − 2𝑦
𝜕𝑥
𝜕𝑓
= 2 − 2𝑥 − 2𝑦
𝜕𝑦
2
𝐻 = 2 − 12𝑥 −2
−2 −2
1° Iteración
3.5
∇𝑓 =
2
2 −2
𝐻=
−2 −2
0.25 −0.25
𝐻 −1 =
−0.25 −0.25
0 0.25 −0.25 3.5 −0.375
𝑥1 = − ∗ =
0 −0.25 −0.25 2 1.375
2° Iteración
0.2109
∇𝑓 =
0
0.3125 −2
𝐻=
−2 −2
0.4324 −0.4324
𝐻 −1 =
−0.4324 −0.0675
−0.375 0.4324 −0.4324 0.2109 −0.2838
𝑥2 = − ∗ =
1.375 −0.4324 −0.0675 0 1.2838
No hay forma de establecer si es máximo o mínimo.