Está en la página 1de 15

1.

Plantee y solucione tres ejercicios sobre Diferenciación Numérica


explicando paso a paso el procedimiento utilizado.

2. Solucione el siguiente ejercicio utilizando la Regla del Trapecio. (n= 4)

1 𝑥2 33
∫0 2+𝑥 1/2
𝑑𝑥 ∫1 √𝑥 (𝑒 𝑥 )𝑑𝑥

33 1 𝑥2
∫1 √𝑥 (𝑒 𝑥 )𝑑𝑥 ∫0 1 𝑑𝑥
2+𝑥 2

33
Primero se solucionará ∫1 √𝑥 (𝑒 𝑥 )𝑑𝑥, el paso para este caso con a=1 y b=3 es:

𝑏−𝑎 2 1
ℎ= = =
𝑛 4 2

Teniendo que 𝑥𝑖 = 𝑎 + 𝑖 ∗ ℎ y la sumatoria va de [1, n-1]= [1,3]

1 3 1
𝑥1 = (1 + 1) = 𝑥2 = (1 + 2 ) = 2
2 2 2

1 5
𝑥3 = (1 + 3) =
2 2

3 5
𝑓(1) + 2 (𝑓 ( ) + 𝑓(2) + 𝑓 ( )) + 𝑓(3)
2 2
𝐼 = (3 − 1)
2(4)
( )

La función evaluada en esos valores equivale a:


3
3 2,718 + 2 ∗ (5,13 + 9,309 + 16,534) + 28,96
∫ √𝑥 (𝑒 𝑥 )𝑑𝑥 ≈ 2 ( ) = 23,406
1 8

Solución para la segunda integral:

1
𝑥2
∫ 1 𝑑𝑥
0 2 + 𝑥2

Tenemos la segunda función:

∫ ₁³ ∛x · eˣ dx

Calculamos el Δx y creamos la partición.

Δx = b − a/n

Δx = (3 − 1)/4

Δx = 1/2

P = {1,3/2, 2, 5/2,3}

Ahora, evaluamos la función en todos los puntos, tenemos:

f (1) = 2.71
f (3/2) = 5.13
f (2) = 9.31
f (5/2) = 16.53
f (3) = 28.97

El método de trapecio consiste en resolver la siguiente fórmula:

Con a = 0 y b = 1
𝑏−𝑎 1
ℎ= =
𝑛 4

1 2 1
𝑥1 = 0 + 1 ∗ ℎ = 𝑥2 = 2 ∗ ℎ = =
4 4 2

3
𝑥3 = 3 ∗ ℎ =
4

1 1 3
𝑓(0) + 2 ∗ (𝑓 ( ) + 𝑓 ( ) + 𝑓 ( )) + 𝑓(1)
4 2 4
𝐼 = (1 − 0) ∗
2∗4
( )

Función evaluada y respuesta.

1
1
𝑥2 0 + 2 ∗ (0,025 + 0,0923 + 0,1962) +
∫ 3 = 0,12
1 𝑑𝑥 ≈
8
0 2 + 𝑥2

3. Soluciones los siguientes ejercicios utilizando la Regla de Simpson 1/3 y 3/8.


(n= 4)

3 3 2
∫1 𝑒 𝑥 𝑑𝑥 ∫1 𝑒 𝑥 ln(𝑥) 𝑑𝑥

Hacemos uso de la regla

∫ ₐᵇ f(x) dx = (Δx/3) · [f(x₁) + 4f(x₂) + 2f(x₃) + 4f(x₅) +. . . . + f(xn)]

∫ ₁³ e^(x³) dx

Δx = (3 − 1)/4

Δx = 1/2
P = (1,3/2, 2,5/2,3)

Evaluamos la función

F (1) = 2.71

F (3/2) = 29.23

F (2) = 2980.9

F (5/2) = 6107328.50

F (3) = 5.32x10¹¹

Donde

I = (1/2) / (3) · [ 2.71 + 4 · (29.23) + 2 · (2980.9) + 4 · (6107328.50) + 5.32x10¹¹]

I = 5.23x10¹¹

el valor de la integral en ese intervalo es de 5.23x10¹¹.

Luego

∫ ₁² eˣ · ln(x) dx

Δx = (2 − 1)/4

Δx = 1/4

P = (1, 5/4, 3/2, 7/4, 2)

F (1) = 0

F (5/4) = 0.78

F (3/2) = 1.82

F (7/4) = 3.22
F (2) = 5.12

Aplicamos la definición de Simpson

I = (1/4) / (3) · [ 0 + 4 · (0.78) + 2 · (1.82) + 4 · (3.22) + 5.12]

I = 2.06

El valor de la integral en ese intervalo es de 𝟐. 𝟎𝟔.

4. Solucione los siguientes ejercicios utilizando la Integración de Romberg.


Usando segmentos de longitud 1, 1/2 y 1/4.

4 𝑒𝑥 3
∫2 𝑥−1
𝑑𝑥 ∫1 𝑒 2𝑥 ln(2𝑥) 𝑑𝑥

método del Trapecio

𝑛−1

𝐼 = (𝑓(𝑎) + 2 [∑ 𝑓(2 + 𝑖 ∗ ℎ)] + 𝑓(𝑏) )
2
𝑖=1

4 𝑒𝑥
∫2 𝑑𝑥,
𝑥−1

𝑏−𝑎 2
𝑛= = = 2.
ℎ 1

𝑒2 𝑒3 𝑒4
1 + 2( + )
𝐼(ℎ) = (𝑓(2) + 2 ∗ 𝑓(2 + 1) + (𝑓4)) = 2 − 1 3−1 4−1
2 2

7,389 + 2(10,04 + 18,199)


= = 22,834
2

n=4, donde la sumatoria va hasta 4-1=3.


1 2 3
(𝑓(2) + 2 ∗ [𝑓 (2 + ) + 𝑓 (2 + ) + 𝑓 (2 + )] + (𝑓4))
ℎ 1 2 2 2
𝐼( ) =
2 2 2

5 7
(𝑓(2) + 2 [𝑓 ( ) + 𝑓(3) + 𝑓 ( )] + (𝑓4))
2 2
4

(7,389 + 2[8,122 + 10,04 + 13,25] + 18,199)


= 22,103
2

Donde n=8


𝐼( )
4

(7,38 + 2[7,59 + 8,12 + 8,94 + 10,04 + 11,46 + 13,25 + 15,46] + 18,199)


= = 21,895
8


42−1 𝐼 ( ) − 𝐼(ℎ)
𝐼2𝐾 = 𝐼𝑆 = 2
42−1 − 1


4𝐼 ( ) − 𝐼(ℎ)
= 2
3


43−1 𝐼 ( ) − 𝐼(ℎ)
𝐼3𝐾 = 𝐼𝑅 = 2
4 3−1 −1


16𝐼 ( ) − 𝐼(ℎ)
= 2
15

4∗22,103−22,834
= 21,859
3

4∗21,895−22,103
= 21,826
3

16∗21,826−21,859
= 21,8238
15
Segunda integral:

3
∫ 𝑒 2𝑥 ln(2𝑥) 𝑑𝑥
1

𝑏−𝑎 2
𝑛= = = 2.
ℎ 1

1
𝐼(ℎ) = (𝑓(1) + (2)𝑓(1 + 1) + 𝑓(3))
2

(5,122 + 2)75,689 + 722,85


= = 439,68
2

n=4.

1 2 3
(𝑓(1) + 2 [𝑓 (1 + ) + 𝑓 (1 + ) + 𝑓 (1 + )] + 𝑓(3))
ℎ 1 2 2 2
𝐼( ) =
2 2 2

(5,122 + 2[22,066 + 75,689 + 238,86] + 722,85)


= = 350,3
4

n=8

5 3 7 9 5 11
ℎ 1 𝑓(1) + 2 ∗ [𝑓 (4) + 𝑓 (2) + 𝑓 (4) + 𝑓(2) + 𝑓 (4) + 𝑓 (2) + 𝑓 ( 4 )] + 𝑓(3)
𝐼( ) = [ ]
4 4 2

= 326,44

4∗350,3 −439,68
350,3 = 320,506
3

4∗326,445−350,3
326,4 = 318,49
3
(16)318,493 − 320,506
= 318,35
15

5. Solucione paso a paso los siguientes ejercicios de Integrales Múltiples:

1 1
x3
∫ (x 2 + 2y)dx = [ + 2yx]
0 3 0

2
1
∫ + 2y dy
0 3

Usamos el método de Simpson 1/3 con n=4.

21
La integral ∫0 + 2y dy
3

a=0

b=2

b−a 2 1
h= = =
n 4 2

1 1
x1 = (0 + 1) =
2 2

1
x2 = (0 + 2) =1
2

1 3
x3 = (0 + 3) =
2 2
1 3
2 f(0) + 4 (f ( ) + f ( )) + (2)f(1) + f(2)
1 2 2
∫ + 2y dy ≈ (2 − 0)
0 3 (3)4
( )

operamos

1 13 4 10 7
2
1 + + 4 ( + ) + (2)
∫ + 2y dy ≈ 3 3 3 3 3
0 3 6

= 4,6667

Solución para la segunda integral:

y y
2xyz 2
∫ 2xyz dz = [ ] = xyy 2 = xy 3
0 2 0

2x 2x
xy 4 x(2x)4 x(x)4 15x 5
∫ xy 3 dy = [ ] = − =
x 4 x 4 4 4

1
15 5
∫ x dx
0 4

En la primera integral usamos el método de Simpson 1/3 n=4.

Donde

a=0

b=1
b−a 1
h= = :
n 4

1 1
x1 = (0 + 1) =
4 4

1 1
x2 = (0 + 2) =
4 2

1 3
x3 = (0 + 3) =
4 4

15 3645 15 15
1
15 5 0 +4( + )+2( )+
∫ x dx ≈= 4096 4096 128 4 = 𝟎, 𝟔𝟑
0 4 12

6. Solucionar la ecuación de valor inicial 𝑦 , = (√𝑦 )/(2𝑥 + 1) , 𝑦(0) = 4 usando


el Método de Euler con h = 0.5 y considerando que Xo = 0.

xo=0 h = 0.5 y' = (√y )/ ( 2x+1 ) y(0)=4

Los puntos son:

𝑥 = ( 0.5 , 1.0 , 1.5 , 2.0 , 2.5 )

(√𝑦 )
𝑓(𝑥, 𝑦) =
(2𝑥 + 1 )

𝑋𝑜 = 0.

𝑌𝑜 = 4

𝑦𝑛 + 1 = 𝑦𝑛 + ℎ ∗ 𝑓(𝑥𝑛, 𝑦𝑛)
𝑝𝑎𝑟𝑎 𝑛 = 0

𝑥1 = 𝑋𝑜 + ℎ = 0 + 0.5 = 0.5

𝑦1 = 𝑌𝑜 + ℎ ∗ 𝑓(𝑋𝑜, 𝑌𝑜 )

(√4 )
𝑦1 = 4 + 0.5 ∗ = 5
(2 ∗ 0 + 1 )

𝑛 = 1

𝑦2 = 𝑦1 + ℎ ∗ 𝑓(𝑥1, 𝑦1)

(√5 )
𝑦2 = 5 + 0.5 ∗ = 5.5590
( 2 ∗ 0.5 + 1 )

𝑝𝑎𝑟𝑎 𝑛 = 2

(√5.5590 )
𝑦3 = 5.5590 + 0.5 ∗ = 5.9519
(2∗ 1 +1)

𝑝𝑎𝑟𝑎 𝑛 = 3

( √5.9519 )
𝑦4 = 5.9519 + 0.5 ∗ = 6.2568
( 2 ∗ 1.5 + 1 )

𝑛 = 3

( √6.2568 )
𝑦5 = 6.2568 + 0.5 ∗ = 6.5069 .
( 2 ∗ 2 + 1)

𝑛 = 4

( √6.5069)
𝑦6 = 6.5069 + 0.5 ∗ = 6.7194
( 2 ∗ 2.5 + 1 )

7. Aplicar el Método de Taylor de orden dos a la ecuación y´ = Sen(xy), con la


condición inicial: y(0) = 1. Utilizar h = 0.2
𝐷𝑒𝑟𝑖𝑣𝑎𝑚𝑜𝑠 𝑠𝑒𝑛(𝑥𝑦)

𝑦[𝑐𝑜𝑠(𝑥𝑦)] + 𝑥𝑦′[𝑐𝑜𝑠(𝑦𝑥)] = 𝑦′

𝐷𝑒𝑠𝑝𝑒𝑗𝑎𝑚𝑜𝑠 𝑎 𝑦′

𝑦[𝑐𝑜𝑠(𝑥𝑦)] = 𝑦′ − 𝑥𝑦′[𝑐𝑜𝑠(𝑦𝑥)]

𝑓𝑎𝑐𝑡𝑜𝑟𝑖𝑧𝑎𝑚𝑜𝑠

𝑦′ [ 1 − 𝑥𝑐𝑜𝑠(𝑥𝑦)] = 𝑦[𝑐𝑜𝑠(𝑥𝑦)]

𝑦[𝑐𝑜𝑠(𝑥𝑦)]
𝑦′ =
[ 1 − xcos(xy)

Aplicamos el Método de Taylor

𝑦ₐ₊₁ = 𝑦ₐ [𝑐𝑜𝑠(𝑥𝑦)]ℎ²/ 2[ 1 − 𝑥𝑐𝑜𝑠(𝑥𝑦)]

1 𝑐𝑜𝑠1 ∗ 0,2
𝑦(1) =
2∗1

𝑦(1) = 0,1

0,1 𝑐𝑜𝑠2 ∗ 0,4


𝑦(2) =
2 ∗ 0,001

𝑦(2) = 20

8. Solucionar el siguiente problema de valor inicial utilizando el Método de Runge-


Kutta de segundo orden.
Se halla el valor de y(1) y h=0,2.

1 2
𝑦𝑖+1 = 𝑦𝑖 + ( 𝑘1 + 𝑘2) ℎ
3 3

𝑘1 = 𝑓(𝑥𝑖, 𝑦𝑖)

3 3
𝑘2 = 𝑓(𝑥𝑖 + ℎ, 𝑦𝑖 + 𝑘1ℎ)
4 4

𝑘1 = (𝑦𝑖 + 1)(𝑥𝑖 + 1)cos(𝑥𝑖 2 + 2𝑥𝑖)

𝑋0 = 0

𝑦0 = 4

𝑘1 = (𝑦𝑜 + 1)(𝑥𝑜 + 1) cos(𝑥𝑜 2 + 2 ∗ 𝑥𝑜) = 5

3 3
𝑘2 = 𝑓 (0 + (0,2), 4 + (5)(0,2))
4 4

= 6,27159

1 2
𝑦1 = 4 + ( ∗ 5 + (6,27159)) 0,2 = 5,1695
3 3

𝑋1 = 0,2

𝑦1 = 5,1695

𝑘1 = (𝑦1 + 1)(𝑥1 + 1) 𝑐𝑜𝑠(𝑥12 + 2(𝑥1 ) = 6,6982

3 3
𝑘2 = 𝑓 (0,2 + (0,2) , 5,1695 + (6,6982)(0,2)) = 6,5897
4 4

1 2
𝑦2 = 5,1695 + ( (6,6982) + ∗ 6,5897) 0,2 = 6,49467
3 3

𝑋2 = 0,4

𝑦2 = 6,49467
𝑘1 = (𝑦2 + 1)(𝑥2 + 1) 𝑐𝑜𝑠(𝑥22 + (2)𝑥2) = 6,01768

3 3
𝑘2 = 𝑓 (0,4 + (0,2) , 6,49467 + (6,01768) ∗ (0,2)) = 2,18018
4 4

1 2
𝑦3 = 6,49467 + ( (6,01768) + (2,18018)) (0,2) = 7,1865
3 3

𝑥3 = 0,6

𝑦3 = 7,1865

K1 = (y3 + 1)(x3 + 1) cos(x32 + 2 ∗ x3) = 0,1414

3 3
k2 = f (0,6 + (0,2) , 7,1865 + (0,1414)0,2) = −6,7814
4 4

1 2
y4 = 7,1865 + ( (0,1414) + ∗ −6,7814 ) 0,2 = 6,29174
3 3

𝑋4 = 0,8

𝑦4 = 6,29174

𝑘1 = ( 𝑦4 + 1)(𝑋4 + 1) 𝑐𝑜𝑠(𝑥42 + 2(𝑋4 ) = −8,1423

3 3
𝑘2 = 𝑓 (0,8 + (0,2) , 6,29174 + (−8,1423)0,2) = −11,1632
4 4

1 2
𝑦5 = 6,29174 + ( (−8,1423) + (−11,1632 )) 0,2 = 4,2605
3 3

𝑋5 = 1

𝑦5 = 4,2605

𝑦5 = 𝑦(1) = 4,2605

También podría gustarte