Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Taller 5
Plazo: Domingo 3 de Junio, 23:59
Instrucciones:
Nombre Integrantes:
f (x) = 2x + ex arctan(x + 1)
(a) (10 ptos.) Calcule la segunda derivada utilizando la fórmula de tres puntos para x = 1,5 y
h = 0,05.
(b) (10 ptos.) Calcule la primera derivada utilizando el Método de Extrapolación de Richardson
para x = 1,5 y h = 0,1.
Respuesta
(a)
f (xi + h) + f (xi − h) − 2f (xi )
f 00 (xi ) =
h2
f (1,55) + f (1,45) − 2f (1,5)
f 00 (1,5) =
0,052
[21,55 + e1,55 arctan(2,55)] + [21,45 + e1,45 arctan(2,45)] − 2[21,5 + e1,5 arctan(2,5)]
f 00 (1,5) =
0,0025
8,56813 + 7,77651 − 2 ∗ 8,16294
f 00 (1,5) = = 7,504
0,0025
(b)
4 1
D ≈ D(h2 ) − D(h1 )
3 3
f (xi+2 ) − f (xi−2 )
D(h1 ) =
2h1
f (xi+1 ) − f (xi−1 )
D(h2 ) =
2h2
xi−2 = 1,4 f (1,4) = 7,408
xi−1 = 1,45 f (1,45) = 7,777
xi = 1,5 f (1,5) = 8,163
xi+1 = 1,55 f (1,55) = 8,568
xi+2 = 1,6 f (1,6) = 8,993
f (1,6) − f (1,4) 8,993 − 7,048
D(0,1) = = = 7,925
2 ∗ 0,1 0,2
f (1,55) − f (1,45) 8,568 − 7,777
D(0,05) = = = 7,91
2 ∗ 0,05 0,1
4 1
D = (7,91) − (7,925) = 7,905
3 3
Un campesino desea cubrir un campo de cultivo que posee una forma descrita por la curva:
Para esto, se debe calcular el área encerrada por esta curva desde x = 0 hasta x = 3,141. Resuelva
mediante:
b) (5 ptos. c/u) Trapecio Compuesto, Simpson 1/3 Compuesto y Simpson 3/8 Compuesto,
todos con n = 8.
d) (2 ptos. c/u) Considere el valor obtenido en (c) como exacto o verdadero, determine los
errores obtenidos en (a) y (b).
Respuesta
3,141
Z
e2x − sin(3x)dx
0
(a) Trapecio:
h
I= [f (x0 ) + f (x1 )]
2
b−a
= [f (0) + f (3,141)]
2
3,141 − 0
= [e0 − sin(0) + e2∗3,141 − sin(3 ∗ 3,141)]
2
= 1,571 ∗ [1 + 534,856] = 841,562
Simpson 1/3:
b−a 3,141 − 0
h= = = 1,571
2 2
h
I = [f (x0 ) + 4f (x1 ) + f (x2 )]
3
1,571
= [f (0) + 4f (1,571) + f (3,141)]
3
= 0,524 ∗ [1 + 4 ∗ (24,1501) + 534,856] = 331,196
Simpson 3/8:
b−a 3,141 − 0
h= = = 1,047
3 3
3h
I= [f (x0 ) + 3f (x1 ) + 3f (x2 ) + f (x3 )]
8
3 ∗ 1,047
= [f (0) + 3f (1,047) + 3f (2,094) + f (3,141)]
8
= 0,393 ∗ [1 + 3 ∗ 8,11673 + 3 ∗ 65,8921 + 534,856] = 297,564
(b) Calculo de manera previa los 8 a través del h:
b−a 3,141 − 0
h= = = 0,393
8 8
Y los puntos serı́an:
xa = x0 = 0
x1 = 0,393
x2 = 0,786
x3 = 1,179
x4 = 1,572
x5 = 1,965
x6 = 2,358
x7 = 2,751
xb = x8 = 3,141
Trapecio Compuesto:
h
I= [f (xa ) + 2 ∗ f (xa + h) + ... + f (xb )]
2
0,393
= [f (0) + 2 ∗ [f (0,393) + f (0,786) + f (1,179) + f (1,572) + ... + f (2,751)] + f (3,141)]
2
= 0,197 ∗ [1 + 2 ∗ {1,27038 + 4,11011 + 10,955 + 24,1965 + 51,2855 + 111,01 + 244,26} + 534,856]
= 0,197 ∗ [1429,97] = 280,989
h
I= [f (x0 ) + 4 ∗ [f (x1 ) + f (x3 ) + f (x5 ) + f (x7 )] + 2 ∗ [f (x2 ) + f (x4 ) + f (x6 )] + f (x8 )]
3
0,393
= [1 + 4 ∗ {1,27038 + 10,955 + 51,2855 + 244,26} + 2 ∗ {4,11011 + 24,1965 + 111,01} + 534,856]
3
= 0,131 ∗ [2045,57] = 267,97
3h
I= [f (x0 ) + 3 ∗ {f (x1 ) + f (x2 ) + f (x4 ) + f (x5 ) + f (x7 )} + 2 ∗ {f (x3 ) + f (x6 )} + f (x8 )]
8
= 0,147 ∗ [1 + 3 ∗ {1,27038 + 4,11011 + 24,1965 + 51,2855 + 244,26}+
2 ∗ {10,955 + 111,01} + 534,856]
= 0,147 ∗ [1755,15] = 258,666
(c) Como trabajamos con tres subintervalos, es necesario calcular hasta R4,4
Paso 1: Calcular R1,1 con trapecio simple, lo cual se realiza en un punto anterior, dando
como resultado 841,562.
Paso 2: Calcular R2,1 , R3,1 y R4,1 :
h1 = 3,141
h2 = 1,571
h3 = 0,785
h4 = 0,393
1
1 X
R2,1 = [R1,1 + h1 ∗ f (x0 + (2k − 1)h2 )]
2
k=1
= 0,5 ∗ [841,562 + 3,141 ∗ f (0 + (2 ∗ 1 − 1) ∗ 1,571)]
= 0,5 ∗ [841,562 + 3,141 ∗ f (1,571)]
= 0,5 ∗ [841,562 + 3,141 ∗ 24,1501]
= 0,5 ∗ [917,417] = 458,709
2
1 X
R3,1 = [R2,1 + h2 ∗ f (x0 + (2k − 1)h3 )]
2
k=1
= 0,5 ∗ [458,709 + 1,571 ∗ {f (0 + (2 ∗ 1 − 1) ∗ 0,785) + f (0 + (2 ∗ 2 − 1) ∗ 0,785)}]
= 0,5 ∗ [458,709 + 1,571 ∗ {f (0,785) + f (2,355)}]
= 0,5 ∗ [458,709 + 1,571 ∗ {4,0987 + 110,348}]
= 0,5 ∗ [638,505] = 319,253
4
1 X
R4,1 = [R3,1 + h3 ∗ f (x0 + (2k − 1)h4 )]
2
k=1
= 0,5 ∗ [319,253 + 0,785 ∗ {f (0 + (2 ∗ 1 − 1) ∗ 0,393) + f (0 + (2 ∗ 2 − 1) ∗ 0,393)+
f (0 + (2 ∗ 3 − 1) ∗ 0,393) + f (0 + (2 ∗ 4 − 1) ∗ 0,393)}]
= 0,5 ∗ [319,253 + 0,785 ∗ {f (0,393) + f (1,179) + f (1,965) + f (2,751)}]
= 0,5 ∗ [319,253 + 0,785 ∗ {1,27038 + 10,955 + 51,2855 + 244,26}]
= 0,5 ∗ [560,853] = 280,427
Paso 3: Se calculan las columnas R2,2 , R3,2 , R3,3 , R4,2 , R4,3 y R4,4 . Para esto se utiliza la
fórmula:
(d) Trapecio:
267,105 − 841,562
t = ∗ 100 % = 251,068 %
267,105
Simpson 1/3:
267,105 − 331,196
t = ∗ 100 % = 23,9947 %
267,105
Simpson 3/8:
267,105 − 297,564
t = ∗ 100 % = 11,4034 %
267,105
Trapecio Compuesto:
267,105 − 280,989
t = ∗ 100 % = 5,19796 %
267,105
Z7
20
dv
v −3/2
1
(a) (5 ptos. c/u, excepto Trapecio que vale 4 ptos.) Trapecio, Simpson 1/3 y Simpson 3/8.
(b) (5 ptos. c/u) Trapecio Compuesto, Simpson 1/3 Compuesto y Simpson 3/8 Compuesto, con
n = 6.
(d) (2 ptos. c/u) Considere el valor obtenido en (c) como exacto (con 4 puntos), ¿cuáles son los
errores de los valores obtenidos en (a)?
Respuesta
(a) Trapecio:
h
I= [f (x0 ) + f (x1 )]
2
b−a
= [f (1) + f (7)]
2
7−1 20 20
= +
2 1−3/2 7−3/2
= 3 ∗ [20 + 370,41] = 1171,23
Simpson 1/3:
b−a 7−1
h= = =3
2 2
h
I = [f (x0 ) + 4f (x1 ) + f (x2 )]
3
3
= [f (1) + 4f (4) + f (7)]
3
20 20 20
= 1 ∗ −3/2 + 4 ∗
1 3−3/2 7−3/2
= 1 ∗ [20 + 4 ∗ 160 + 370,41] = 1030,41
Simpson 3/8:
b−a 7−1
h= = =2
3 3
3h
I= [f (x0 ) + 3f (x1 ) + 3f (x2 ) + f (x3 )]
8
3∗2
= [f (1) + 3f (3) + 3f (5) + f (7)]
8
= 0,75 ∗ [20 + 3 ∗ 103,9 + 3 ∗ 223,6 + 370,41] = 1029,68
(b) Calculo de manera previa los 6 a través del h:
b−a 7−1
h= = =1
8 6
Y los puntos serı́an:
xa = x0 = 1
x1 = 2
x2 = 3
x3 = 4
x4 = 5
x5 = 6
xb = x6 = 7
Trapecio Compuesto:
h
I= [f (xa ) + 2 ∗ f (xa + h) + ... + f (xb )]
2
1
= [f (1) + 2 ∗ [f (2) + f (3) + f (4) + f (5) + f (6)] + f (7)]
2
= 0,5 ∗ [20 + 2 ∗ {56,57 + 103,92 + 160 + 223,1 + 293,94} + 370,41]
= 0,5 ∗ [2065,47] = 1032,74
h
I= [f (x0 ) + 4 ∗ [f (x1 ) + f (x3 ) + f (x5 )] + 2 ∗ [f (x2 ) + f (x4 )] + f (x6 )]
3
1
= [20 + 4 ∗ {56,57 + 160 + 293,94} + 2 ∗ {103,92 + 223,61} + 370,41]
3
= 0,333 ∗ [3087,51] = 1029,17
3h
I= [f (x0 ) + 3 ∗ {f (x1 ) + f (x2 ) + f (x4 ) + f (x5 )} + 2 ∗ {f (x3 )} + f (x6 )]
8
3∗1
= [f (1) + 3 ∗ {f (2) + f (3) + f (5) + f (6)} + 2 ∗ {f (4)} + f (7)]
8
= 0,375 ∗ [20 + 3 ∗ {56,57 + 103,92 + 223,61 + 293,94} + 2 ∗ {160} + 370,41]
= 0,375 ∗ [2744,53] = 1029,2
(c) Las cuadraturas Gaussianas presentan la forma:
n
X
7−1 7−1 1+7
I= wi f zi +
2 2 2
1