Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Por:
ANDRES IZQUIERDO
MARIA RICO
NATALY POLO
JAHER MENDOZA
DIANA GOMEZ
Docente
Facultad de ingeniería
Santa marta
2012
1. Determine un polinomio:
6 4 2
P ( x ) =a x + b x +c x +d
P ( 0 )=2
P (−1 )=8
2
d
2
[ P ( 0 ) ]=−2
dx
d2
[ P (−1 ) ]=8
d x2
Solución:
d=2 EC 1
6 4
P (−1 )=8 → 2=a (−1 )+b (−1 )+c (−1¿¿ 2)+ d ¿
a+ b+c +d=8 EC 2
2
d
2[
P( x ) ] =30 ax +12 b x +2 c
4 2
dx
d2
[ P(0)] =30 a (0¿¿ 4)+ 12b (0¿¿ 2)+ 2 c=−2 ¿¿
d x2
2 c=−2
c=−1 EC 3
2
d
2[
P(−1) ] =30 a(−1¿¿ 4)+12 b(−1¿¿ 2)+2 c=8 ¿ ¿
dx
a+ b=7 EC 5
30 a+12 b=10 EC 6
De la Ec 5 despejamos a
a=7−b
Reemplazando en EC 6
30(7−b)+12 b=1 0
210−18 b=1 0
200 100
b= =
18 9
Por tanto
Luego
−37 6 100 4 2
P ( x) = x + x −x +2
9 9
1
(0 )
f ( 2 )=( 2+2 ) 2 ==> f (0 ) ( 2 )=2
1 1 1
f ( 1) ( x ) = ( 1)
==> f ( 2 )= =
2 √ (x +2) 2 √(2+ 2) 4
f ( 2) ( x ) =
0 ( 2 √ ( x +2 ) )−1 0+
( 1
2 √ ( x+ 2 ) ) = 2 √−1( x +2) = −1 ==>
4 ( x +2) ( 4 x+ 8 ) ( 2 √( x +2 ) )
2
(2 ( √ ( x +2 ) ) )
−1 −1
f ( 2) ( 2 ) = =
( 4 (2)+ 8 ) ( 2 √( 2+2 ) ) 64
16 √( x +2 ) +1 16 √ ( x+ 2 )+1
0 [ ( 8 x +16 ) ( √( x +2 ) ) ]−
2 √ ( x+2 ) 2 √ ( x +2 ) 16 √( x +2 ) +1
f (3 ) ( x )= = =
[ ( 8 x +16 ) √ ( x +2 ) ]
2
[( 8 x +16 ) √ ( x+2 ) ]
2
[ 2 √( x +2 ) ] [ ( 8 x+ 16 ) (√ ( x+2 ))]
==>
11
f ( 3 ) ( 2 )=
3072
1 1 11
P3 (x)=2+ ( x−2 )− ( x−2)2 + ( x−2)3
4 128 18432
1 1 1 11
F(x) ≈ P3 (x) ==> (x +2)2 ≈2+ ( x−2 )− ( x−2)2+ ( x −2)3
4 128 18432
Por lo tanto:
F (√ 3) ≈ P3 ( √ 3) ==> 1.9318≈1.9324
3. Halle el polinomio de Taylor de grado n=4 de la función f ( x )=∫ cos (t )dt
π
2
respecto a x 0=0 . Use P4 ( x) para aproximar f (0,1).
2
π
2 ()
2
f ( x )=sen ( x )−1
f ( x )=sen ( x )−1 ; f ' ( x ) =cos ( x ) ; f ' ( t )=−sen ( x ) ; f ' ' ( x )=−cos (x )
'' '
f ( x )=sen( x )
Por lo tanto, para hallar P4 ( x) directamente es lo siguiente:
f ( 2) ( x o ) ( 3)
2 f ( xo )
(0 ) (1 )
P4 ( x )=f ( x o ) + f ( x o ) ( x−x o ) + ( x−x o ) + ( x −x o )3
2 6
(4)
+ f ( xo ) 4
24
( x−x o )
1 3
P4 ( x )=[ sen ( 0 )−1 ]+ [ cos ( 0 ) ( x) ] +¿+¿ P4 ( x )=−1 , 0000+ x− x
6
1 3
f ( 0.1 ) ≈ P4 ( 0.1 ) → f ( 0.1 ) ≈−1 ,0000+ ( 0.1 )− ( 0.1 ) → f ( 0.1 )=−0.9002
6
2
4. Dada la función f ( x )=x + .
x
( )( )( ) ( )(
2
)
x−x i x−x1 x−x 2 x−2 x −2.5
L0 ( x ) = ∏ = ∗ = ∗
i=0 x 0 −xi x 0−x 1 x o−x 2 1−2 1−2.5
i≠0
L0 ( x ) =0.666667 x2 −3 x +3.333333
( )( )( )( )(
2
)
x−x i x−x 0 x−x 2 x−1 x−2.5
L1 ( x ) = ∏ = ∗ = ∗
i=0 x 1−x i x1− x0 x 1−x 2 2−1 2−2.5
i ≠1
L1 ( x )=−2 x 2 +7 x−5
( )( )( )(
2
)( )
x−x i x−x 0 x−x 1 x−1 x−2
L2 ( x )= ∏ = ∗ = ∗
i=0 x 1−x i x2 −x0 x 2−x 1 2.5−1 2.5−2
i ≠2
2
L2 ( x )=1.333333 x −4 x+ 2.66 6 667
Ahora terminando el ejercicio se tiene lo siguiente:
1 2
f ( 1.2 ) ≈ P2 ( 1.2 ) → ( 1.2 ) + ≈ 0.3999999(1.2) −1.2 ( 1.2 ) +3.80001 6
(1.2)
¿ 2.033333 ≈ 2.936010
1 2
f ( 1.5 ) ≈ P2 (1.5 ) → ( 1.5 )+ ≈ 0.3999999(1.5) −1.2 0000 ( 1.5 ) +3.80001 6
(1.5)
¿ 2.166667 ≈ 2.9 00010
Use el polinomio interpolador de LaGrange cúbico P3 (x) con nodos x 0=0.5 , x 1=1
, x 2=2 y x 3=2.5 para aproximar f (1.2) y f (1.5).
Aplicando el teorema dicho anteriormente, sólo que ahora n=3 se tiene ahora que:
3
P3 ( x ) =∑ Lk ( x )∗f ( x k )= L0 ( x )∗f ( x o ) + L1 ( x )∗f ( x 1) + L2 ( x )∗f ( x 2 )
k=0
+ L3 ( x )∗f ( x 3 )
( )( )( )( )
3
x−x i x−x1 x−x 2 x−x 3
L0 ( x ) = ∏ = ∗ ∗
i=0 x 0 −xi x 0−x 1 x 0−x 2 x 0−x 3
i≠0
L0 ( x ) = ( 0.5−1
x−1
)∗( 0.5−2
x−2
)∗( 0.5−2.5
x−2.5
)
3 2
L0 ( x ) =−0.66 6667 x +3.6 6 6667 x −6. 33 3333 x
+3.333333
( )( )( )( )
3
x−x i x−x 0 x−x 2 x−x 3
L1 ( x ) = ∏ = ∗ ∗
i=0 x 1−x i x1− x0 x 1−x 2 x1 −x3
i ≠1
L1 ( x ) = ( 1−0.5
x−0.5
)∗( 1−2
x−2
)∗( 1−2.5
x−2.5
)
L1 ( x )=1.3 3 3333 x3 −6.666667 x2 + 9.666667 x
−3.3333 33
( )( )( )( )
3
x−x i x−x 0 x−x 1 x−x 3
L2 ( x ) = ∏ = ∗ ∗
i=0 x 2−x i x2 −x 0 x 2−x 1 x 2−x3
i ≠2
L2 ( x )= ( 2−0.5
x−0.5
)∗( 2−1
x−1
)∗( 2−2.5
x−2.5
)
3 2
L2 ( x )=−1.333333 x +5.333333 x −5.666667 x
+1.66666 7
( )( )( )( )
3
x−x i x−x 0 x−x 1 x −x2
L3 ( x ) = ∏ = ∗ ∗
i=0 x 3−x i x 3−x 0 x3 −x1 x 3−x 2
i ≠3
L3 ( x )= ( 2.5−0.5
x −0.5
)∗( 2.5−1
x−1
)∗( 2.5−2
x−2
)
3 2
L3 ( x )=0.6 66667 x −2.333333 x +2.333333 x
−0.66666 7
Una vez conocido estos polinomios parciales se puede reemplazar en la parte final de
la fórmula con todos los valores conocidos, así:
Ahora al aproximarlo con las funciones evaluadas f ( 1.2 ) y f ( 1.5 ) se tiene que:
1 3
f ( 1.2 ) ≈ P2 ( 1.2 ) → ( 1.2 ) +
≈−0.8000000099(1.2)
(1.2)
2
+ 4.800000 ( 1.2 ) −8.799999 ( 1.2 ) +7.800000
¿ 2.033333 ≈ 2.769600
1 3
f ( 1.5 ) ≈ P2 (1.5 ) → ( 1.5 )+
≈−0.8 00000(1.5)
(1.5)
2
+ 4.800000 ( 1.5 ) −8.799999 (1.5 )+7.800000
¿ 2.166666 ≈ 2.700000
T (℃) 5 20 30 50 55
(
μ N− 2
seg
m ) 0.08 0.015 0.09 0.006 0.0055
SOLUCIÓN: Aquí debemos hallar ese polinomio de grado 4 dado como P4 tal que
P=μ , además adicionalmente siendo T la variable dependiente, y que cumple:
P4 ( x )=a 0+ a1 ( T −T 0 )+ a2 ( T −T 0 )( T −T 1 ) +a 3 ( T −T 0 ) ( T −T 1) ( T −T 2 )
+ a4 ( T −T 0 )( T −T 1 ) ( T −T 2 )( T −T 3 )
f [ T 0 ] =f ( T 0) =f ( 20 ) 0.08 → a0
f [ T 1 ] =f ( T 1 ) =f ( 20 )=0.015
f [ T 2 ] =f ( T 2 ) =f ( 30 )=0.09
f [ T 3 ] =f ( T 3 ) =f ( 50 ) =0.006
f [ T 4 ]=f ( T 4 ) =f ( 55 ) =0.0055
f [ T 1 , T 2 , T 3 ] −f [ T 0 ,T 1 , T 2 ]
(−0.0004 )−(0.0005)
f [ T 0 ,T 1 ,T 2 ,T 3 ]= = =−0.00002
T 3 −T 0 50−5
f [T 2 ,T 3 ,T 4 ] −f [ T 1 , T 2 , T 3 ] (−0.0002 )−(−0.0004)
f [ T 1 ,T 2 ,T 3 ,T 4 ] = =
T 4 −T 1 55−20
f [ T 1 ,T 2 ,T 3 ,T 4 ] =0.000006
Y finalmente en la culminación de esta parte de este procedimiento las quintas
diferencias divididas que es a su vez es a 4:
f [ T 1 ,T 2 ,T 3 ,T 4 ] −f [ T 0 ,T 1 ,T 2 , T 3 ] ( 0.000006 )−(−0.00002)
f [ T 0 ,T 1 ,T 2 ,T 3 ,T 4 ]= =
T 4 −T 0 55−5
¿ 0.0000005
Ya con todos los datos hallados nuestra tabla será de la siguiente manera como sigue:
Tk f [] f [, ] f [, , ] f [, , ,] f [, , , , ]
T0 0.08
T1 0.015 -0.0043
T2 0.09 0.0075 0.0005
T3 0.006 -0.0042 -0.0004 -0.00002
T4 0.0055 0.0001 0.0002 0.000006 0.0000005
Como la respuesta coincide en los intervalos cerrados T 0 y T 1 cuya condición era que
T =25 su respuesta debe estar entre 0.08< μ< 0.0015 .
6. Una función f de la que solo se conocen los datos que están en la siguiente
tabla, tiene un máximo en el intervalo 1,1.3. Halle la ubicación (abscisa)
de dicho máximo a través de un polinomio interpolador de Newton.
Solución:
f [ x 0 ]=f ( x 0 )=f ( 1 )=0,841 a0
f [ x 1 ]=f ( x1 ) =f ( 1.1 )=0,891
f [ x 2 ]=f ( x2 ) =f ( 1.2 )=0,993
f [ x 3 ]=f ( x 3) =f ( 1.3 )=1,000
Después hacemos las segundas diferencias divididas tales como:
f [ x 1 , x 2 ] −f [ x 0 , x 1 ]
(1,02 )−(0,5)
f [ x 0 , x 1 , x 2 ]= = =2,6 → a2
x 2−x 0 1,2−1
f [ x 2 , x 3 ]−f [ x1 , x2 ] ( 0,07 )−(1,02)
f [ x 1 , x 2 , x 3 ]= = =−4,75
x 3−x 1 1,3−1,1
f [ x 1 , x 2 , x 3 ] −f [ x 0 , x1 , x 2 ] (−4,75 )−(2,5)
f [ x 0 , x 1 , x 2 , x 3 ]= = =−24,5 → a3
x 3−x 0 1,3−1
P3 ( x ) =0,277237 5
7. Aplique las formulas cerradas de Newton Cotes (la regla del trapecio, la regla de
Simpson, la regla de los 3/8 de Simpson y la regla de Boole) para aproximar las
integrales:
5
dx
a. ∫
3 √ x2 −4
Los resultados varían demasiado ya que dan las siguientes respuestas:
Regla de trapecio: La fórmula general de la regla de trapecio es la siguiente
b
∫ f ( x ) dx= h2 [ f ( a ) + f (b)] donde a=3y b=5 que a su vez estos están evaluados en la
a
5−3
función por cada una de constantes, y su altura es h= → h=2 , por lo tanto la respuesta
1
sencillamente sería:
5
dx 2
∫ ≈ [ 0,447+0,218 ] ≈ 0,665
3 √ x −4 2
2
b
h
Regla de los Simpsons: Su fórmula dada es ∫ f ( x ) dx= [ f ( x 0 ) + 4 f ( x 1 ) +f ( x 2 ) ] cuando se
a 3
trabajan con nodos 3 nodos como máximo sabiéndose que f ( x 1 ) =0,289 y las demás están
evaluadas f ( x 0 ) y f ( x 2 ) con constantes a y b respectivamente, y h=1. Reemplazando estos
valores se tiene que:
5
dx 1
∫ ≈ [ 0,447+ 4 ( 0.289 ) +0,218 ] ≈ 0,607
3 √ x −4
2 3
∫ dx
=
3 ( 23 ) [ 0,447+3 ( 0.352) +3 ( 0.260 ) +0.218 ] ≈ 0,605 0
3 √ x2 −4 8
∫ dx
=
(
2
2)
1
[7 ( 0,447 ) +32 ( 0,348 ) +12 ( 0,289 )+ 32 ( 0,248 ) +7 ( 0,218 ) ]
3 √ x2 −4 45
5
dx
∫ =0,604 3
3 √ x2 −4
2
b .∫ ln ( x + 1 ) dx
2
∫ f ( x ) dx= h2 [ f ( a ) + f (b)] donde a=0 y b=2 que a su vez estos están evaluados en la
a
2−0
función por cada una de constantes, y su altura es h= → h=2 , por lo tanto la respuesta
1
sencillamente sería:
2
∫ ln ( x2 +1 ) dx ≈ 22 [ 0+1.609438 ] ≈ 1.609438
0
b
h
Regla de los Simpsons: Su fórmula dada es ∫ f ( x ) dx= [ f ( x 0 ) + 4 f ( x 1 ) +f ( x 2 ) ] cuando se
a 3
trabajan con nodos 3 nodos como máximo sabiéndose que f ( x 1 ) =0.060625 y las demás
están evaluadas f ( x 1 ) y f ( x 3 ) con constantes a y b respectivamente, y h=1. Reemplazando
estos valores se tiene que:
2
∫ ln ( x2 +1 ) dx=1,4446
0
∫ ln ( x2 +1 ) dx =
0
8. Aplique
a. la regla compuesta del trapecio con n=8 para aproximar las integrales del ejercicio
8.
5
∫ dx
3 √ x −4
2
b−a 5−3 1
y tales valores como h= → h= → h= . La fórmula reducida de la regla
8 8 4
compuesta de trapecio es:
b
∫ f ( x ) dx= h2 [f ( x 0 ) +2 f ( x 1 ) +2 f ( x 2 ) +2 f ( x 3 ) +2 f ( x 4 ) +2 f ( x 5 ) +2 f ( x 6 ) ¿ + f ( x7 ) ]¿
a
1 13
x 1=x 0 +h → x 1=3+ → x 1= → f ( x 1 )=0,390
4 4
13 1 7
x 2=x 1+ h→ x 2= + → x 2= → f ( x 2) =0,348
4 4 2
7 1 15
x 3=x 2+ h → x 3= + → x 3= → f ( x 3 )=0,315
2 4 4
15 1
x 4 =x3 +h → x 4= + → x 4=4 → f ( x 4 ) =0,289
4 4
1 17
x 5=x 4 +h → x5 =4 + → x 5= → f ( x 5 ) =0,267
4 4
17 1 9
x 6=x 5 +h → x 6= + → x 6= → f ( x 6 )=0,248
4 4 2
9 1 19
x 7=x 6 +h → x 7 = + → x7 = → f ( x7 ) =0,232
2 4 4
5
dx
∫ ≈ 0,6054
3 √ x2 −4
1 13
x 1=x 0 +h → x 1=3+ → x 1= → f ( x1 ) =0,390
4 4
13 1 7
x 2=x 1+ h→ x 2= + → x 2= → f ( x 2) =0,348
4 4 2
7 1 15
x 3=x 2+ h → x 3= + → x 3= → f ( x 3 )=0,315
2 4 4
15 1
x 4 =x3 +h → x 4= + → x 4=4 → f ( x 4 ) =0,289
4 4
1 17
x 5=x 4 +h → x5 =4 + → x 5= → f ( x 5 ) =0,267
4 4
17 1 9
x 6=x 5 +h → x 6= + → x 6= → f ( x 6 )=0,248
4 4 2
9 1 19
x 7=x 6 +h → x 7 = + → x7 = → f ( x7 ) =0,232
2 4 4
5
dx 0,25 1 1
∫ ≈ [ ( 0,447+ 0,218 ) + ( 0,348+0,289+ 0,248 ) + ( 0,390+0,315+0,267+ 0,232 ) ]
3 √ x −4
2 3 6 3
5
dx
∫ ≈ 0,0554+ 0,1475+ 0,401≈ 0,6042
3 √ x2 −4
b. Aplique la regla compuesta del trapecio con n=8 para aproximar las integrales del
ejercicio 8.
2
b−a 2−0 1
∫ ln ( x2 +1 ) dx y tales valores como h= 8
→ h=
8
→ h= . La fórmula reducida
4
0
de la regla compuesta de trapecio es:
b
∫ f ( x ) dx= h2 ¿ ¿
a
+ f ( x7 ) ¿
1 1
x 1=x 0 +h → x 1=0+ → x 1= → f ( x1 ) =0.060625
4 4
1 1 1
x 2=x 1+ h→ x 2= + → x2 = → f ( x 2 ) =0.223143
4 4 2
1 1 3
x 3=x 2+ h → x 3= + → x 3= → f ( x3 ) =0.446287
2 4 4
3 1
x 4 =x3 +h → x 4= + → x 4=1 → f ( x 4 ) =0.693115
4 4
1 5
x 5=x 4 +h → x5 =1+ → x 5= → f ( x 5 )=0.940983
4 4
5 1 3
x 6=x 5 +h → x 6= + → x 6= → f ( x 6 ) =1.178655
4 4 2
1
2
4
∫ ln ( x2 +1 ) dx ≈ 2 ¿
0
+2 ( 0.693115 ) +2 ( 0.940983 ) +2 ( 1.178655 ) +1.609438 ]
2
∫ ln ( x2 +1 ) dx ≈ 18 [8.695054] → 1.086882
0
nodos que en este caso nos dio n=4 , pero ocurren cambios como x 0=a=0 y
b−a 2−0 1
x 2 n=x 2(4 )=x 8=2 y el valor de h= → h= → h=
2n 2( 4) 4
1 1
x 1=x 0 +h → x 1=0+ → x 1= → f ( x1 ) =0.060625
4 4
1 1 1
x 2=x 1+ h→ x 2= + → x2 = → f ( x 2 ) =0.223143
4 4 2
1 1 3
x 3=x 2+ h → x 3= + → x 3= → f ( x3 ) =0.446287
2 4 4
3 1
x 4 =x3 +h → x 4= + → x 4=1 → f ( x 4 ) =0.693115
4 4
1 5
x 5=x 4 +h → x5 =1+ → x 5= → f ( x 5 )=0.940983
4 4
5 1 3
x 6=x 5 +h → x 6= + → x 6= → f ( x 6 ) =1.178655
4 4 2
3 1 7
x 7=x 6 +h → x 7 = + → x 7 = → f ( x 7 ) =1.401799
2 4 4
1
2
4
∫ ln ( x +1 ) dx 2 ¿ ]
2
∫ ln ( x2 +1 ) dx ≈ 18 [17.19804 ] → 2.149755
0
xk 0 1 2 3
fxk 2 -2 -1 0
3
Determine el valor aproximado de ∫ f ( x ) dx a partir de:
0
Un polinomio de interpolación de LaGrange.
La regla del trapecio compuesta.
3
P3 ( x ) =∑ Lk ( x )∗f ( x k )
k=0
P3 ( x ) =L0 ( x )∗f ( x o ) + L1 ( x )∗f ( x 1) + L2 ( x )∗f ( x2 ) + L3 ( x )∗f ( x 3 )
Donde L0 , L1 , L2 y L3 son los siguientes resultados:
( )
3
x−x i
L0 ( x ) = ∏
i=0 x 0 −xi
i≠0
L0 ( x ) = ( 0−1
x−1
)∗( 0−2
x−2
)∗( 0−3
x−3
)
3 2
L0 ( x ) =−0.16667 x + x −1,83333 x +1
( )
3
x−x i
L1 ( x ) = ∏
i=0 x 1−x i
i ≠1
L1 ( x ) = ( 1−0
x−0
)∗( 1−2
x−2
)∗( 1−3
x−3
)
3 2
L1 ( x )=0,5 x −2,5 x +3 x
( )
3
x−x i
L2 ( x ) = ∏
i=0 x 1−x i
i ≠2
L2 ( x ) = ( 2−0
x−0
)∗( x−1
2−1 ) ( 2−3 )
∗
x−3
3 2
L2 ( x )=−0,5 x +2 x −1,5 x
( )
3
x−x i
L3 ( x ) = ∏
i=0 x 1−x i
i ≠3
L3 ( x ) = ( 3−0
x−0
)∗( 3−1
x−1
)∗( 3−2
x−2
)
3 2
L3 ( x )=0.16667 x −0,5 x +0,333333 x
3 2
P3 ( x ) =−0,166666 x +5 x −8,17 x +2
Trapecio compuesta
[ ]
b n−1
∫ f ( x ) dx ≈ h2 f ( a )+ f ( b )+2 ∑ f ( x k )
a k=1
x 0=0
x 3=3
3−0
h= =1
3
x 1=0+1=1
x 2=1+1=1
h4 4
E=( b−a ) f (ξ) ∈ [ a , b ]
180
b−a
Con h= y n el numero de intervalos. Determine cuantos intervalos son
2n
necesarios considerar para calcular la siguiente integral;
4
∫ ( x 4−2 x 3) dx
−4
Solución:
f ´ ( x )=4 x 3−6 x 2
2
f ´ ´ ( x )=12 x −12 x
f ´ ´ ´ ( x )=24 x −12
f ´ ´ ´ ´ ( x )=24
24 h4
8 ≤10−4 h ≤ 9,96
180
8 4
En este caso h= = ≤ 9,96 , lo cual lo cual lleva a la solución de que ya para n=1 se
2n n
alcanza dicho error. Habría que verificar el resultado comparando el resultado real con el
resultado de aplicar Simpson en un intervalo.