Sei sulla pagina 1di 7

1)

Usando Richardson

luego hallamos la derivada de 𝑥 𝑥

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

2)
Se obtiene la ecuación que relaciona esos datos:

f(x) = -0,008*x2+ 0,34*x

X(m) T(s)

0 0

0,25 0,08

0,50 0,15

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

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

𝑓(50) − 𝑓(0,25)
𝑓′(𝑥𝑜) =
0,25
0,15 − 0,08
𝑓′(𝑥𝑜) =
0,25
𝑚
𝑓′(𝑥𝑜) = 0,28
𝑠
𝑚
𝑣 = 0,28
𝑠
Aceleración:
𝑓(𝑥𝑜−ℎ)−2∗𝑓(𝑥𝑜)+𝑓(𝑥𝑜+ℎ)
𝑓′′(𝑥𝑜) =
ℎ2
𝑓(0,25 − 0,25) − 2 ∗ 𝑓(0,25) + 𝑓(0,5)
𝑓′′(𝑥𝑜) =
0,252
0 − 2 ∗ 0,08 + 0,15
𝑓′′(𝑥𝑜) =
0,0625
𝑚
𝑎 = 4,96 2
𝑠
𝑏−𝑎
3) ℎ = 3
𝑥𝑜 = 𝑎 𝑥1 = 𝑎 + ℎ 𝑥2 = 𝑏
𝑏
9 3
∫ 𝑓(𝑥)𝑑𝑥 = ℎ 𝑓(𝑥1) + ℎ 𝑓(𝑥2)
𝑎 4 4
𝑘=0
𝑏
∫ 𝑥 0 𝑑𝑥 = 𝑥 𝑏
𝑎 =𝑏−𝑎
𝑎

𝑏 9 3 𝑏−𝑎
∫𝑎 𝑓(𝑥)𝑑𝑥 = ℎ 𝑓(𝑥1) + ℎ 𝑓(𝑥2) ℎ=
4 4 3
9 𝑏−𝑎 3 𝑏−𝑎
𝑓(𝑥1)𝑘 + 𝑓(𝑥2)𝑘 = 𝑏 − 𝑎
4 3 4 3
3 1
(𝑏 − 𝑎)(𝑎 + ℎ)𝑘 + (𝑏 − 𝑎)(𝑏)𝑘 = 𝑏 − 𝑎
4 4
3 1
(𝑏 − 𝑎)(𝑎 + ℎ)0 + (𝑏 − 𝑎)(𝑏)0 = 𝑏 − 𝑎
4 4
4
𝑏−𝑎 =𝑏−𝑎
4
𝑏−𝑎 =𝑏−𝑎

4) Hallar n y h

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

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

𝜇 ≈ 1.9
𝑓′′(𝜇) ≈ 63

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𝑥)𝑒 𝑥
𝑙𝑉
𝜇 ≈ 1.05
𝑙𝑉
𝑓 (𝜇) ≈ 273.65

1 4
| ℎ 273.65| ≤ 10−6
90

4 90
ℎ ≤ √10−6 ( )
273.65

ℎ ≤ 0.023
𝑏−𝑎 2−0
𝑛= = = 83.515
ℎ 0.023
𝑛 = 84
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

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
end
i=R(J+1,J+1)

-----
Con k =1
𝑏 2 2 2
𝑥 1𝑏 𝑎
∫ 𝑥𝑑𝑥 = − = = (𝑏 2 − 𝑎 2 )
𝑎 2 2 2 2
3 1 1
(𝑏 − 𝑎)(𝑎 + ℎ) 2 + (𝑏 − 𝑎)(𝑏) = (𝑏 2 − 𝑎 2 )
4 4 2
3 𝑏−𝑎 1
(𝑏 − 𝑎)(𝑎 + ) + (𝑏 2 − 𝑎𝑏)
4 3 4
3 𝑏−𝑎 2 𝑏−𝑎 1 2 1
(𝑎𝑏 + )−𝑎 − 𝑎( )) + (𝑏 − 𝑎𝑏)= (𝑏 2 − 𝑎 2 )
4 3 2 4 2
3 𝑏 2 2𝑎𝑏 2
𝑎 2
𝑏 𝑎𝑏 1 2 2
(𝑎𝑏 + − −𝑎 + )+ − = (𝑏 −𝑎 )
4 3 3 3 4 4 2

Potrebbero piacerti anche