Está en la página 1de 9

Jaime Avella

Juan Camilo Galvez

1)
Usando Richardson

luego hallamos la derivada de 𝑥 𝑥

El error que tenemos al usar el método de Richardson es


Jaime Avella
Juan Camilo Galvez

2)

Se obtiene la ecuación que relaciona esos datos:

T(s) X(m)

0 0

0,08 0,25

0,15 0,50

*Con Taylor:
h = 0,08 xo = 0
Velocidad:

𝑓(𝑥𝑜 + ℎ) − 𝑓(𝑥𝑜)
𝑓′(𝑥𝑜) =

𝑓(0.08) − 𝑓(0)
𝑓′(𝑥𝑜) =
0.08
0,25 − 0
𝑓′(𝑥𝑜) =
0,08
′ (𝑥𝑜)
𝑓 = 3,125
𝑚
𝑣 = 3,125
𝑠

𝑓(𝑥1 + ℎ) − 𝑓(𝑥1)
𝑓′(𝑥1) =

𝑓(0.08 + 0.07) − 𝑓(0.08)
𝑓′(𝑥1) =
0.07
0,50 − 0.25
𝑓′(𝑥1) =
0,07

𝑓 ′ (𝑥1) = 3,57
𝑚
𝑣 = 3,57
𝑠
Jaime Avella
Juan Camilo Galvez

H2=0.07
Aceleración:
𝒇(𝒙𝟏 + 𝒉𝟐 ) − 𝟐𝒇(𝒙𝟏 ) + 𝒇(𝒙𝟏 − 𝒉𝟏 )
𝒇′′(𝑿𝟏 ) ≃
𝟐
(𝒉𝟐 + 𝒉𝟏 )
𝒇(𝟎. 𝟎𝟖 + 𝟎, 𝟎𝟕) − 𝟐 ∗ 𝒇(𝟎. 𝟎𝟖) + 𝒇(𝟎. 𝟎𝟖 − 𝟎, 𝟎𝟖)
𝑓′′(𝑥1) =
(𝟎, 07 + 0.08)𝟐
𝟎. 𝟓𝟎 − 𝟓𝟎 + 𝟎
𝑓′′(𝑥1) =
𝟎, 𝟎𝟐𝟐𝟓
𝑚
𝑎=0 2
𝑠

3)
𝑏 9 3
∫𝑎 𝑓(𝑥)𝑑𝑥 = 4 ∗ ℎ ∗ 𝑓(𝑥1) + 4 ∗ ℎ ∗ 𝑓(𝑥2)
Solución:
Para K=0, se tiene:
𝑓(𝑥) = 𝑥 0 = 1
𝑏
∫ 1 ∗ 𝑑𝑥 = 𝑥]𝑏𝑎 = 𝑏 − 𝑎
𝑎
se tiene que:
9 𝑏−𝑎 3 𝑏−𝑎 9 ∗ (𝑏 − 𝑎) + 3 ∗ (𝑏 − 𝑎) 12 ∗ (𝑏 − 𝑎)
∗ ∗1+ ∗ ∗1 = = =𝑏−𝑎
4 3 4 3 12 12
𝑏 9 𝑏−𝑎 3 𝑏−𝑎
Como el resultado de la integral de ∫𝑎 1 ∗ 𝑑𝑥 y el de la aproximación: 4 ∗ 3 ∗ 1 + 4 ∗ 3 ∗ 1
son iguales se continua con el siguiente grado de precisión de la fórmula de cuadratura
Se tiene K=1:
𝑓(𝑥) = 𝑥
𝑏 𝑏
𝑥2 𝑏 2 − 𝑎2
∫ 𝑥 ∗ 𝑑𝑥 = ] =
𝑎 2 𝑎 2
Y para x1:
𝑏−𝑎 3∗𝑎+𝑏−𝑎 𝑏+2∗𝑎
𝑥1 = 𝑎 + ℎ = 𝑎 + = =
3 3 3
Entonces:

9 3 9 𝑏−𝑎 𝑏+2∗𝑎 3 𝑏−𝑎


∗ ℎ ∗ 𝑥1 + ∗ ℎ ∗ 𝑥2 = ∗ ∗ + ∗ ∗𝑏
4 4 4 3 3 4 3
9 3 1 1
∗ ℎ ∗ 𝑥1 + ∗ ℎ ∗ 𝑥2 = ∗ (𝑏 − 𝑎) ∗ (𝑏 + 2 ∗ 𝑎) + ∗ (𝑏 2 − 𝑎 ∗ 𝑏)
4 4 4 4
9 3 1 2
∗ ℎ ∗ 𝑥1 + ∗ ℎ ∗ 𝑥2 = (𝑏 + 2 ∗ 𝑎 ∗ 𝑏 − 𝑎 ∗ 𝑏 − 2 ∗ 𝑎2 + 𝑏 2 − 𝑎 ∗ 𝑏
4 4 4
9 3 2 𝑏 2 − 𝑎2
∗ ℎ ∗ 𝑥1 + ∗ ℎ ∗ 𝑥2 = (𝑏 2 − 𝑎2 ) =
4 4 4 2
Jaime Avella
Juan Camilo Galvez

𝑏 9 3
Como los resultados ∫𝑎 𝑥 ∗ 𝑑𝑥 y 4 ∗ ℎ ∗ 𝑥1 + 4 ∗ ℎ ∗ 𝑥2 son iguales se procede con el siguiente
grado de precisión de la fórmula de cuadratura.

Se tiene k=2
𝑓(𝑥) = 𝑥 2
𝑏 𝑏
2
𝑥3 𝑏 3 − 𝑎3
∫ 𝑥 ∗ 𝑑𝑥 = ] =
𝑎 3 𝑎 3
Y para x1:
𝑏−𝑎 3∗𝑎+𝑏−𝑎 𝑏+2∗𝑎
𝑥1 = 𝑎 + ℎ = 𝑎 + = =
3 3 3
Entonces:
9 2
3 2
9 𝑏−𝑎 𝑏+2∗𝑎 2 3 𝑏−𝑎
∗ ℎ ∗ (𝑥1) + ∗ ℎ ∗ (𝑥2) = ∗ ∗( ) + ∗ ∗ 𝑏2
4 4 4 3 3 4 3
9 3 1 3
∗ ℎ ∗ (𝑥1)2 + ∗ ℎ ∗ (𝑥2)2 = ∗ (𝑏 − 𝑎) ∗ (𝑏 2 + 4𝑎𝑏 + 4𝑎2 ) + ∗ (𝑏 3 − 𝑎𝑏 2 )
4 4 12 12
9 3 1 3
∗ ℎ ∗ (𝑥1)2 + ∗ ℎ ∗ (𝑥2)2 = (𝑏 + 4𝑎𝑏 2 + 4𝑎2 𝑏 − 𝑎𝑏 2 − 4𝑎2 𝑏 − 4𝑎3 + 3𝑏 3 − 3𝑎𝑏 2
4 4 12
9 3 1 𝑏 3 − 𝑎3
∗ ℎ ∗ (𝑥1)2 + ∗ ℎ ∗ (𝑥2)2 = (4𝑏 3 − 4𝑎3 ) =
4 4 12 3
𝑏 2 9 3
Como el resultado de las ecuaciones ∫𝑎 𝑥 ∗ 𝑑𝑥 𝑦 ∗ ℎ ∗ (𝑥1) + ∗ ℎ ∗ (𝑥2)2 son iguales se
2
4 4
procede con el siguiente grado de precisión de la fórmula de cuadratura.

Se tiene K=3
𝑓(𝑥) = 𝑥 3
𝑏 𝑏
3
𝑥4 𝑏 4 − 𝑎4
∫ 𝑥 ∗ 𝑑𝑥 = ] =
𝑎 4 𝑎 4
Y para x1:
𝑏−𝑎 3∗𝑎+𝑏−𝑎 𝑏+2∗𝑎
𝑥1 = 𝑎 + ℎ = 𝑎 + = =
3 3 3
Entonces:
9 3 9 𝑏−𝑎 𝑏+2∗𝑎 3 3 𝑏−𝑎
∗ ℎ ∗ (𝑥1)3 + ∗ ℎ ∗ (𝑥2)3 = ∗ ∗( ) + ∗ ∗ 𝑏3
4 4 4 3 3 4 3
9 3 3 (𝑏 3 + 6𝑎𝑏 2 + 12𝑎2 𝑏 + 8𝑎3 ) 3
∗ ℎ ∗ (𝑥1)3 + ∗ ℎ ∗ (𝑥2)3 = ∗ (𝑏 − 𝑎) ∗ + ∗ (𝑏 4 − 𝑎𝑏 3 )
4 4 4 27 12
9 3 1 4 1 1
∗ ℎ ∗ (𝑥1)3 + ∗ ℎ ∗ (𝑥2)3 = (𝑏 + 6𝑎2 𝑏 2 + 5𝑎𝑏 3 − 4𝑎3 𝑏 − 8𝑎4 ) + 𝑏 4 − 𝑎𝑏 3
4 4 36 4 4
9 3 5 1 1 1 2
∗ ℎ ∗ (𝑥1)3 + ∗ ℎ ∗ (𝑥2)3 = 𝑏 4 + 𝑎2 𝑏 2 − 𝑎𝑏 3 − 𝑎3 𝑏 − 𝑎4
4 4 18 6 9 9 9
𝑏 3 9 3 3 3
Como los resultados de ∫𝑎 𝑥 ∗ 𝑑𝑥 y 4 ∗ ℎ ∗ (𝑥1) + 4 ∗ ℎ ∗ (𝑥2) son diferentes, se dice que el
grado de precisión de la fórmula de cuadratura es 2.
Jaime Avella
Juan Camilo Galvez

4) 4) Hallar n y h

a)Trapecio
𝑏−𝑎 2
| ℎ 𝑓′′(𝜇)| ≤ 10−6
12

1
| ℎ2 𝑓′′(𝜇)| ≤ 10−6
6

𝑓′′(𝑥) = 6𝑐𝑜𝑠(3𝑥)𝑒 𝑥 − 8𝑠𝑒𝑛(3𝑥)𝑒 𝑥

𝜇 ≈ 1.9
𝑓′′(𝜇) ≈ 63
Jaime Avella
Juan Camilo Galvez

1
| ℎ2 63| ≤ 10−6
6

6
ℎ ≤ √10−6 ( )
63

ℎ ≤ 3.086𝑥10−4
𝑏−𝑎 2−0
𝑛= = = 6480.7406
ℎ 3.086𝑥10−4
𝑛 = 6481
Trapecio, aproximación al siguiente par o impar.

b)Simpson
𝑏 − 𝑎 4 𝑙𝑉
| ℎ 𝑓 (𝜇)| ≤ 10−6
180
1
| ℎ4 𝑓 𝑙𝑉 (𝜇)| ≤ 10−6
90
𝑓 (𝑥) = 28𝑠𝑒𝑛(3𝑥)𝑒 𝑥 − 96𝑐𝑜𝑠(3𝑥)𝑒 𝑥
𝑙𝑉

𝜇≈2
𝑙𝑉
𝑓 (𝜇) ≈ |−738.91|
𝑓 𝑙𝑉 (𝜇) ≈ 738.91
Jaime Avella
Juan Camilo Galvez

1 4
| ℎ 738.91| ≤ 10−6
90

4 90
ℎ ≤ √10−6 ( )
738.91

ℎ ≤ 0.01868
𝑏−𝑎 2−0
𝑛= = = 107.066
ℎ 0.01868
𝑛 = 108
Simpson aproxima al siguiente número par.

c) Punto medio
𝑏−𝑎 2
| ℎ 𝑓′′(𝜇)| ≤ 10−6
6
1
| ℎ2 𝑓′′(𝜇)| ≤ 10−6
3
𝑓′′(𝑥) = 6𝑐𝑜𝑠(3𝑥)𝑒 𝑥 − 8𝑠𝑒𝑛(3𝑥)𝑒 𝑥

𝜇 ≈ 1.9
𝑓′′(𝜇) ≈ 63
Jaime Avella
Juan Camilo Galvez

1
| ℎ2 63| ≤ 10−6
3

3
ℎ ≤ √10−6 ( )
63

ℎ ≤ 2.182𝑥10−4
𝑏−𝑎 2−0
𝑛= = = 9165.15
ℎ 2.182𝑥10−4
𝑛 = 9166
punto medio aproxima al siguiente número par.

5)

function romberg
global fun
fun=input('ingrese la funcion\n','s');
a=input('ingrese el limite inferior de la integral\n');
b=input('ingrese el limite superior de la integral\n');
n=input('ingrese el numero de intervalos\n');
h=(b-a);
M=1;
J=0;
R=zeros(n,n);
x=a;
f1=eval(fun);
x=b;
f2=eval(fun);
R(1,1)=h*(f1+f2)/2;
while(J<(n-1))
J=J+1;
h=h/2;
s=0
for p=1:M
x=a+h*(2*p-1);
f3=eval(fun)
s=s+f3;
end
R(J+1,1)=(1/2)*(R(J,1))+h*s;
M=2*M
for k=1:J
R(J+1,k+1)=R(J+1,k)+(R(J+1,k)-R(J,k))/(4^k-1)
end
Jaime Avella
Juan Camilo Galvez

end
i=R(J+1,J+1)

También podría gustarte