Vous êtes sur la page 1sur 16

1) Plantee y solucione dos ejercicios sobre diferenciación numérica explicando

paso a paso el procedimiento utilizado.

4
 xe 2 dx
3
0

Solución

Teniendo en cuenta que n = 4


Calculamos:
ba
X 
n
40
X  
4
4
X   1
4

Con este valor obtenido construimos la siguiente tabla que es nuestra


referencia para resolver cada uno de los métodos solicitados

N 0 1 2 3 4
xn 0 1 2 3 4
f xn  0 7,39 9,31 10,66 11,73

Regla del Trapecio

La regla del trapecio se define por la siguiente ecuación:


ba
I   f x dx   f x0   2 f x1   2 f x2   2 f x3     2 f xn1   f xn 
b

a 2n

Ahora reemplazamos con los valores obtenidos:


ba
 f x0   2 f x1   2 f x2   2 f x3   f x4 
4
I  3
xe 2 dx 
0 2n
40
 f 0  2 f 1  2 f 2  2 f 3  f 4
4
I  3
xe 2 dx 
0 24 
4
0  27,39  29,31  210,66  11,73
4
I  3
xe 2 dx 
0 8
1
0  14,78  10,62  21,32  11,73
4
I  3
xe 2 dx 
0 2
1
66,45
4
I  3
xe 2 dx 
0 2
4 66,45
I  3
xe 2 dx 
0 2
4
I  3
xe 2 dx  33,225
0

1 x
0 2x  1
dx

Regla de Simpson 1/3

La regla simple de Simpson 1/3 tiene la siguiente ecuación:

ba ab 
I   f x dx  f a   4 f    f b 
b

a 6   2  

Resolvemos con los valores obtenidos


1 0   0 1 
f 0   4 f   f 1
1 x
I  dx   
0 2x  1 6   2  
dx   f 0   4 f 0,5  f 1
1 x 1
I 
0 2x  1 6
dx  0  40,25  0,33
1 x 1
I 
0 2x  1 6
dx  0  1  0,33
1 x 1
I 
0 2x  1 6
dx  1,33
1 x 1
I 
0 2x  1 6
1 x 1,33
I  dx 
0 2x  1 6
1 x
I  dx  0,2217
0 2x  1

2) Solucione el siguiente ejercicio utilizando la regla del trapecio (n=4)

𝟐
𝒙𝟑
∫ 𝟏 𝒅𝒙
𝟎 𝟏+ 𝒙𝟐
Teniendo en cuenta que n = 4
Calculamos:
ba
X 
n
20
X  
4
2 1
X  
4 2

Con este valor obtenido construimos la siguiente tabla que es nuestra


referencia para resolver cada uno de los métodos solicitados

N 0 1 2 3 4
xn 0 0,5 1 1,5 2
f xn  0 0,073 0,5 1,5170 3,313

Regla del Trapecio


La regla del trapecio se define por la siguiente ecuación:
ba
I   f x dx   f x0   2 f x1   2 f x2   2 f x3     2 f xn1   f xn 
b

a 2n

Ahora reemplazamos con los valores obtenidos:

I 
2
x dx  b  a  f x   2 f x   2 f x   2 f x   f x 
0 1 2 3 4
1
0 2n
1 x 2

I 
2
x dx  2  0  f 0  2 f 0,5  2 f 2  2 f 1,5  f 2
0 1
24
1 x 2

I 
2
x dx  2 0  2 * 0,073  2 * 0,5  2 * 1,5170  3,313
1
0 8
1 x 2

I 
2
x dx  1 7,493
1
0 4
1 x 2

I 
2
x dx  7,493
1
0 4
1 x 2

I 
2
x dx  1,8732
0 1
1 x 2

𝟐
𝟑
∫ √𝒙𝒆𝒙 𝒅𝒙
𝟏

Solución

Teniendo en cuenta que n = 4


Calculamos:
ba
X 
n
2 1
X  
4
1
X 
4
Con este valor obtenido construimos la siguiente tabla que es nuestra
referencia para resolver cada uno de los métodos solicitados

N 0 1 2 3 4
xn 1 1,25 1,5 1,75 2
f xn  2,7182 3,7598 5,1302 6,9347 9,3096

Regla del Trapecio

La regla del trapecio se define por la siguiente ecuación:


ba
I   f x dx   f x0   2 f x1   2 f x2   2 f x3     2 f xn1   f xn 
b

a 2n

Ahora reemplazamos con los valores obtenidos:


ba
 f x0   2 f x1   2 f x 2   2 f x3   f x 4 
2
I   3 xe x dx 
0 2n
2 1
 f 1  2 f 1,25  2 f 1,5  2 f 1,75  f (2)
2
I   3 xe x dx 
0 24

I   3 xe x dx  2,7182  23,7598  25,1302  2(6,9347)  9,3096


2 1
0 8
I   3 xe x dx  2,7182  7,5196  10,2604  13,8694  9,3096
2 1
0 8
I   3 xe x dx  43,6772
2 1
0 8
2 43,6772
I   3 xe x dx 
0 8
2
I  3
xe x dx  5,4596
0

3) Solucione los siguientes ejercicios utilizando la regla de Simpson 1/3 y 3/8


(n=4)

𝟑
𝒆𝒙
∫ 𝒅𝒙
𝟏 𝒙

Regla de Simpson 1/3


Regla de Simpson 3/8

𝑏 (2a + b) (a + 2b)
𝑏−𝑎
𝐼 = ∫ 𝑓(𝑥)𝑑𝑥 ≅ ( 𝑓(a) + 3𝑓 + 3𝑓 + 𝑓(𝑏))
𝑎 8 3 3

Por Regla de Simpson 1/3

Teniendo en cuenta que n = 4

Calculamos:

ba
h
n
3 1
h 
4
2 1
h 
4 2

𝑥0 𝑥1 𝑥2 𝑥3 𝑥4
𝑥𝑛 1 1,5 2 2,5 3
𝑓(𝑥𝑛 ) 2,7182 2,9877 3,6945 4,8729 6,6951
x

I 
3
e dx 
h
 f x 0   2 f x1   2 f x 2   2 f x3   f x 4 
1 x 3
x

I 
3
e dx 
1
 f 1  4 f (1,5)  2 f 2  4 f 2,5  f (3)
1 x 23
x

I 
3
e dx 
1
2,7182  42,9877   23,6945  4(4,8729)  6,6951
1 x 6
x

I 
3
e dx 
1
48,2447
1 x 6
x

I 
3
e dx 
48,2447
1 x 6
x

I 
3
e dx  8,0407
1 x

Por Regla de Simpson 3/8

3
𝑒𝑥 3−1 (2a + b) (a + 2b)
∫ 𝑑𝑥 = ( 𝑓(a) + 3𝑓 + 3𝑓 + 𝑓(𝑏))
1 𝑥 8 3 3

3
𝑒𝑥 2 (2 ∗ 1 + 3) (1 + 2 ∗ 3)
∫ 𝑑𝑥 = ( 𝑓(1) + 3 𝑓 +3𝑓 + 𝑓(3))
1 𝑥 8 3 3

3
𝑒𝑥 2 (2 + 3) (1 + 6)
∫ 𝑑𝑥 = ( 𝑓(1) + 3 𝑓 +3𝑓 + 𝑓(3))
1 𝑥 8 3 3

3
𝑒𝑥 2 5 7
∫ 𝑑𝑥 = ( 𝑓(1) + 3 𝑓 ( ) + 3 𝑓 ( ) + 𝑓(3))
1 𝑥 8 3 3
3
𝑒𝑥 1
∫ 𝑑𝑥 = ( (2,7182) + 3 (3,1766) + 3 (4,4195) + 𝑓(6,6951))
1 𝑥 4

3
𝑒𝑥 1
∫ 𝑑𝑥 = ( (2,7182) + 3 (3,1766) + 3 (4,4195) + (6,6951))
1 𝑥 4
3
𝑒𝑥 1
∫ 𝑑𝑥 = ( 32,2016)
1 𝑥 4
3 𝑥
𝑒
∫ 𝑑𝑥 = 8,0504
1 𝑥

𝟒
∫ 𝒆𝒙 𝒍𝒏𝒙 𝒅𝒙
𝟐

Por Regla de Simpson 1/3

Teniendo en cuenta que n = 4

Calculamos:

ba
h
n
42
h 
4
2 1
h 
4 2

𝑥0 𝑥1 𝑥2 𝑥3 𝑥4
𝑥𝑛 2 2,5 3 3,5 4
𝑓(𝑥𝑛 ) 5,1217 11,1627 22,0662 41,4858 75,6891

h
 f x0   2 f x1   2 f x 2   2 f x3   f x 4 
4
I  * ln x.dx 
x
2 e 3
1
 f 2  4 f (2,5)  2 f 3  4 f 3,5  f (4)
4
I  x.dx 
x
2 e * ln
23

x.dx  5,1217  411,1627   222,0662  4(41,4858)  75,6891


4 1
I 
x
2 e * ln
6
x.dx  335,5372
4 1
I 
x
2 e * ln
6
4 335,5372
I  x.dx 
x
2 e * ln
6
4
I  * ln x.dx  55,9228
x
2 e
Por Regla de Simpson 3/8

4 (2a + b) (a + 2b)
4−2
∫ 𝑒 𝑥 𝑙𝑛𝑥 𝑑𝑥 = ( 𝑓(a) + 3𝑓 + 3𝑓 + 𝑓(𝑏))
2 8 3 3

4 (2 ∗ 2 + 4) (2 + 2 ∗ 4)
2
∫ 𝑒 𝑥 𝑙𝑛𝑥 𝑑𝑥 = ( 𝑓(2) + 3 𝑓 +3𝑓 + 𝑓(4))
2 8 3 3
4 (4 + 4) (2 + 8)
2
∫ 𝑒 𝑥 𝑙𝑛𝑥 𝑑𝑥 = ( 𝑓(2) + 3 𝑓 +3𝑓 + 𝑓(4))
2 8 3 3

4
2 8 10
∫ 𝑒 𝑥 𝑙𝑛𝑥 𝑑𝑥 = ( 𝑓(2) + 3 𝑓 ( ) + 3 𝑓 ( ) + 𝑓(4))
2 8 3 3
4
1
∫ 𝑒 𝑥 𝑙𝑛𝑥 𝑑𝑥 = ( (5,1217) + 3 (14,1160) + 3 (33,7493) + 𝑓(75,6891))
2 4

3
1
∫ 𝑒 𝑥 𝑙𝑛𝑥 𝑑𝑥 = ( 5,1217 + 42,348 + 101,2479 + 75,6891)
2 4
4
1
∫ 𝑒 𝑥 𝑙𝑛𝑥 𝑑𝑥 = ( 224,4067)
2 4
4
∫ 𝑒 𝑥 𝑙𝑛𝑥 𝑑𝑥 = 56,1016
2

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


Usando segmentos de longitud 1, ½, y ¼.

𝟐
𝟑
∫ 𝒆𝒙 𝒅𝒙
𝟏
h=1
𝑏 − 𝑎 13 3 2 − 1 13 3
𝐼1 = [ 𝑒 + 𝑒2 ] = [ 𝑒 + 𝑒 2 ] = 1491,83
2 2

h=1/2
𝑏 − 𝑎 13 13 3 2 − 1 13 13 3
2
𝐼2 = [ 𝑒 + 2𝑒 2 + 𝑒 ] = [𝑒 + 2𝑒 2 + 𝑒 2 ] = 746,48
4 4

h=1/4
𝑏 − 𝑎 13 13 13 33 3 1 3 13 13 33 3
𝐼3 = [ 𝑒 + 2 (𝑒 4 + 𝑒 2 + 2𝑒 4 ) + 𝑒 2 ] = [ 𝑒 1 + 2 (𝑒 4 + 𝑒 2 + 2𝑒 4 ) + 𝑒 2 ]
8 8
= 373,87
Nivel 2

4 1
𝐼ℎ2 − 𝐼ℎ2
3 3

1491,83
4 1
∗ 746,48 − 3 ∗ 1491,83 = 498,03
3
746,48
4 1
∗ 373,87 − 3 ∗ 746,48 =249,66
3
373,87

Nivel 3
16 1
𝐼𝑚 − 𝐼𝑙
15 15

16 1
∗ 249,66 − ∗ 498,03 = 233,102
15 15

𝟐
𝟑
∫ 𝒆𝒙 𝒅𝒙 = 𝟐𝟑𝟑, 𝟏𝟎𝟐
𝟏

𝟑
∫ 𝒆𝒙 𝒍𝒏(𝒙)𝒅𝒙
𝟐

h=1
𝑏−𝑎 2 3−2 2
𝐼1 = [ 𝑒 ln(2) + 𝑒 3 ln(3)] = [ 𝑒 ln(2) + 𝑒 3 ln(3)] = 13,59
2 2

h=1/2
𝑏−𝑎 2 1 1
𝐼2 = [ 𝑒 ln(2) + 2 ∗ 𝑒 2 ln ( ) + 𝑒 3 ln(3)]
4 2
1 2 1 1
= [ 𝑒 ln(2) + 2 ∗ 𝑒 2 ln ( ) + 𝑒 3 ln(3)] = 6,22
4 2

h=1/4
𝑏−𝑎 2 1 1 1 1 3 3
𝐼3 = [ 𝑒 ln(2) + 2 (𝑒 4 ln ( ) + 𝑒 2 ln ( ) + 𝑒 4 ln ( )) + 𝑒 3 ln(3)]
8 4 2 4
1 2 1 1 1 1 3 3
= [ 𝑒 ln(2) + 2 (𝑒 4 ln ( ) + 𝑒 2 ln ( ) + 𝑒 4 ln ( )) + 𝑒 3 ln(3)] = 2,51
8 4 2 4

Nivel 2

4 1
𝐼ℎ2 − 𝐼ℎ2
3 3

4 1
13,59 ∗ 6,22 − 3 ∗ 13,59 = 3,76
3

6,22
4 1
∗ 2,51 − 3 ∗ 6,22 =1,27
3
2,51

Nivel 3
16 1
𝐼𝑚 − 𝐼𝑙
15 15

16 1
∗ 1,27 − ∗ 3,76 = 1,104
15 15

𝟑
∫ 𝒆𝒙 𝒍𝒏(𝒙)𝒅𝒙 = 𝟏, 𝟏𝟎𝟒
𝟐

5) Solucione los siguientes ejercicios de integrales multiples compruebe que:

𝟎,𝟓 𝒙𝟐 𝒚
∫ ∫ 𝒆𝒙 𝒅𝒚𝒅𝒙 ≈ 𝟎, 𝟎𝟑𝟑𝟑𝟎𝟓𝟒
𝟎,𝟏 𝒙𝟑

0,5 2 0,5 0,5


𝑦 𝑥 𝑥2 𝑥3 2
= ∫ [𝑥𝑒 𝑥 ] 3 𝑑𝑥 = ∫ [𝑥 ∗ 𝑒𝑥 − 𝑥𝑒 𝑥 ] 𝑑𝑥 = ∫ [𝑥𝑒 𝑥 − 𝑥𝑒 𝑥 ]𝑑𝑥
0,1 𝑥 0,1 0,1

0,5 0,5
2
= ∫ [𝑥𝑒 𝑥 ]𝑑𝑥 − ∫ 𝑥𝑒 𝑥 𝑑𝑥
0,1 0,1

𝒊𝒏𝒕𝒆𝒈𝒓𝒐 𝒑𝒐𝒓 𝒕𝒂𝒃𝒖𝒍𝒂𝒄𝒊𝒐𝒏 𝒔𝒖𝒔𝒕𝒊𝒕𝒖𝒄𝒊𝒐𝒏 𝒔𝒊𝒎𝒑𝒍𝒆

+𝒙 𝒆𝒙 𝒖 𝒙𝟐
-1 𝒆𝒙 du 2x
+0 𝒆𝒙

1 𝑥 2 0,5 1 2 1 2
= [𝑥𝑒 − 𝑒 − 𝑒 ] = ( 0,5𝑒 0,5 − 𝑒 0,5 − 𝑒 0,5 ) − (0,1𝑒 0,1 − 𝑒 0,1 − 𝑒 0,1 )
𝑥 𝑥
2 0,1 2 2
= −1,46637 + 1,499678 = 𝟎, 𝟎𝟑𝟑𝟑

𝟏 𝟐𝒙
∫ ∫ (𝒙𝟐 + 𝒚𝟑 )𝒅𝒚 𝒅𝒙 ≈ 𝟏, 𝟎𝟎𝟎𝟏𝟐𝟐
𝟎 𝒙
1 2𝑥
2
𝑦4
∫ [𝑥 𝑦 + ] 𝑑𝑥
0 4 𝑥
1 (2𝑥)4
2 2
𝑥4
= ∫ ((𝑥 ∗ 2𝑥 + ) − (𝑥 𝑥 + )) 𝑑𝑥
0 4 4
1 1
𝑥4 15𝑥 4
= ∫ (2𝑥 + 4𝑥 − 𝑥 − ) 𝑑𝑥 = ∫ (𝑥 3 +
3 4 3
) 𝑑𝑥
0 4 0 4

1 1
15𝑥 4
3
𝑥 4 3𝑥 5 14 3 ∗ 15 04 3 ∗ 05
∫ (𝑥 + ) 𝑑𝑥 = [ + ] =( + )−( + )=1
0 4 4 4 0 4 4 4 4

6) Demostrar que el valor aproximado en x=0,2 de la solución del problema de


valor inicial y=x+y, y(0)=0 usando el método de Euler con h=0,05 y 𝑧0 =
0, es 0,01550625

Método de Euler: Es uno de los métodos usados para encontrar Ecuaciones


Diferenciales Ordinarias 𝑓𝑜𝑟𝑚𝑢𝑙𝑎 𝑦𝑖+1=𝑦𝑖+(𝑥𝑖,𝑦𝑖)ℎ

Solución de la siguiente Ecuación Diferencial:

dy
=𝑥+𝑦 (0)=0 𝑥=0.2 ℎ=0.05 𝑧0=0
𝑑𝑥
≈0,01550625

𝑥1=𝑥0 +ℎ=0+0.05=0.05

𝑦1=𝑦0 +(𝑥0 , 𝑦0 )ℎ=0+𝑓(0,0)0.05

dy
=𝑥+𝑦 𝑑𝑜𝑛𝑑𝑒 (𝑥0 , 𝑦0 )=0+0=0
𝑑𝑥

𝑦1=𝑦0 +((𝑥0 , 𝑦0 )ℎ=0+(0∗0.05)=0

𝑥2=𝑥1+ℎ=0.05+0.05=0.1

𝑦2=𝑦1+(𝑥1,𝑦1)ℎ=0+𝑓(0.05,0)0.05
dy
=𝑥+𝑦 𝑑𝑜𝑛𝑑𝑒 (𝑥1,𝑦1)=0.05+0=0.05
𝑑𝑥

𝑦2=𝑦1+(𝑥1,𝑦1)ℎ=0+(0.05∗0.05 )= 0.0025

𝑥3=𝑥2+ℎ=0.1+0.05=0.15
𝑦3=𝑦2+(𝑥2,𝑦2)ℎ=0.0025+𝑓(0.1 ,0.0025)0.05

dy
=𝑥+𝑦 𝑑𝑜𝑛𝑑𝑒 (𝑥2,𝑦2)=0.1+0.0025=0.1025
𝑑𝑥

𝑦3=𝑦2+(𝑥2,𝑦2)ℎ=0.0025+(0.1025∗0.05)= 0.007625

𝑥4=𝑥3+ℎ=0.15+0.05=0.2

𝑦4=𝑦3+(𝑥3,𝑦3)ℎ=0.007625+𝑓(0.15 ,0.007625)0.05

dy
=𝑥+𝑦 𝑑𝑜𝑛𝑑𝑒 (𝑥2,𝑦2)=0.15+0.007625=0.157625
𝑑𝑥

𝑦4=𝑦3+(𝑥3,𝑦3)ℎ=0.007625+(0.157625∗0.05)=0.01550625

𝑥=0.2 ≈ 𝑦=0,01550625

7) Aplicar el método de Taylor de orden dos a la ecuación 𝑦 ´ =


cos(𝑥𝑦) 𝑐𝑜𝑛 𝑙𝑎 𝑐𝑜𝑛𝑑𝑖𝑐𝑖𝑜𝑛 𝑖𝑛𝑖𝑐𝑖𝑎𝑙 𝑦(0) = 1. Utilizar h=0,5

Método de Taylor: proporciona la aproximación al valor de una función en un punto


en términos del valor de la función y sus derivadas en otro punto.

´´ (xo)h2 𝑦 ´´´ (xo)h3 𝑦 𝑛 (xo)hn


(𝑥0 + ℎ)= 𝑦(𝑥𝑜)+ 𝑦′(𝑥𝑜)ℎ +
𝑦
+ + ⋯+
2! 3! 𝑛!

Determinar las derivadas de la función hasta el orden dos

𝑦′ = 𝐶𝑜𝑠(𝑥𝑦)
𝑑
𝑦 ′′ = 𝑑𝑥 𝐶𝑜𝑠(𝑥𝑦) = −𝑦𝑆𝑒𝑛(𝑥𝑦′) = −𝑦𝑆𝑒𝑛(𝑥𝐶𝑜𝑠(𝑥𝑦))

Se reemplaza y’ en la función

𝑦′′ = −𝑦𝑆𝑒𝑛(𝑥𝑦′) = −𝑦𝑆𝑒𝑛(𝑥𝐶𝑜𝑠(𝑥𝑦))

Lo siguiente es remplazar los valores de X=0 ; Y=1

𝑦′ = 𝐶𝑜(0 ∗ 1) = 1

𝑦′′ = − (1)𝑆𝑒((0)𝐶𝑜𝑠(0 ∗ 1)) = 0


Se reemplaza los valores calculado en la formula general del método de Taylor

´´ (𝑥 2
(𝑥0 + ℎ)= 𝑦(𝑥𝑜)+ 𝑦′(𝑥𝑜)ℎ + 0 )h
𝑦
2!

´´ (0)0,52
(0+ 0,5)= 𝑦(0)+ 𝑦′(0)0,5 +
𝑦
2!

0∗0∗0,52
(0,5)= 1+ 1*0,5 +
2!

(0,5)= 1,5

8) Plantee y solucione paso a paso un ejercicio por el método de Runge-kutta de


cuarto orden.

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

Para el problema de valores iniciales de


y´ = f(t, y) = t − y , y(0) = 2 , con h = 0.2

En primer lugar debemos encontrar las constantes


𝑘1 = f(𝑡0 , 𝑦0 ) = 𝑓(0,2) = 0 − 2 = −2

h h𝑘1 0,2 0,2 ∗ −2


𝑘2 = f (𝑡0 + , 𝑦0 + ) = f (0 + , 2+ ) = −1,7
2 2 2 2

h h𝑘2 0,2 0,2 ∗ −1,7


𝑘3 = f (𝑡0 + , 𝑦0 + ) = f (0 + , 2+ ) = −1,73
2 2 2 2

𝑘4 = f(𝑡0 + h, 𝑦0 + h𝑘2 ) = f(0 + 0.2, 2 + 0.2 ∗ −1,73) = −1,454


Luego se procede a utilizar la formula

𝑦𝑘 + 1 = 𝑦𝑘 + (𝑘1 + 2𝑘2 + 2𝑘3 + 𝑘4 )
6
Para saber un valor aproximado de y (0.2)


𝑦1 = 𝑦0 + (𝑘1 + 2𝑘2 + 2𝑘3 + 𝑘4 )
6
0,2
=2+ (−2 + 2(−1,7) + 2(−1,73) − 1,454) = 1,6562
6

A continuación utilizaremos el programa Mathematica

Vous aimerez peut-être aussi