Está en la página 1de 6

1.

Si p es un polinomio interpolador de lagrange que pasa por los puntos (x0,y0) y (x1, y1)
pruebe que :

( y ¿ ¿ 0− y 1)
p ( x) = ( x−x 1 ) + y 1 ¿
( x 0−x 1 )
n
p ( x ) =∑ f (x k )l k( x)
k=0

1
p1 ( x )=∑ f ( x k ) l k (x )=f ( x 0 ) l 0 ( x )+ f ( x 1 ) l 1 ( x )
k=0

( x −x1 )
l 0 ( x )=
( x 0−x 1 )

( x−x 0 )
l 1 ( x )=
( x1 −x0 )

( x−x 1 ) ( x−x 0 ) y 0∗( x−x 1 ) ( x−x 0 )


p ( x ) =f ( x 0 ) + f ( x1) = + y1
( x 0 −x1 ) ( x1−x 0 ) ( x 0 −x1 ) ( x 1−x 0 )
y 0∗( x−x 1 )− y 1∗( x−x 0 ) + x1 y 1 – x1 y 1 y 0∗( x−x 1 )− y 1 x− y 1 x 0 + x1 y 1 – x1 y 1
p ( x) = =
( x0 −x1 ) ( x 0−x 1 )
y 0∗( x−x 1 )−( y 1 x−x 1 y 1 ) +( y 1 x 0 – x 1 y 1 ) y 0∗( x−x 1 )−( x−x 1 ) y 1 ( x 0 – x 1) y 1
p ( x) = = +
( x0 −x1 ) ( x 0 −x1 ) ( x 0−x 1 )
( y ¿ ¿ 0− y 1)
p ( x) = ( x−x 1 ) + y 1 ¿
( x 0−x 1 )
1
2. halle el polinomio interpolador de LaGrange para aproxima f ( x )= usando nodos 2
x +1
1
1 1
x0=0, x1=0.5, x2=1, x3=1.5. Use dicho polinomio para aproximar el numero y ∫ 2 dx
3 0 x +1

Trabaje con seis dígitos de precisión.


n
p ( x ) =∑ f (x k )l k( x)
k=0

3
p3 ( x ) =∑ f ( x k ) l k ( x )=f ( x 0 ) l 0 ( x )+ f ( x 1 ) l 1 ( x ) + f ( x 2 ) l 2( x )+ f (x 3)l 3 ( x )
k=0
2
x−xi
l k ( x ) =∏
i=0 xk −xi
i ≠0

( x−0.5 ) ( x−1 ) ( x−1.5) −4 x 3 2 11 x


l 0 ( x )= = +4 x − +1
( 0−0.5 ) ( 0−1 ) (0−1.5) 3 3

( x−0 ) ( x−1 ) (x−1.5) 3 2


l 1 ( x )= =4 x −10 x +6 x
( 0.5−0 )( 0.5−1 ) (0.5−1.5)

( x −0 ) ( x−0.5 ) ( x−1.5)
l 2 ( x )= =(−4 ) x3 +8 x 2−3 x
( 1−0 )( 1−0.5 ) (1−1.5)

( x−0 ) ( x−0.5 ) (x−1) 4x


3
2 2x
l 3 ( x )= = −2 x +
( 1.5−0 )( 1.5−0.5 ) (1.5−1) 3 3

f ( x 0 ) =1 , f ( x1 ) =0.8 , f ( x 2 )=0.5 , f ( x3 ) =0.307692

P3(x) = 1*(-1.333333x3 +4x2 - 3.666667x +1)+ 0.8*(4x3 - 10 x2 +6x) + 0.5*(-4x3 +8x2 -3x)
+0.307692*(1.333333x3 -2x2 +0.666667x)

P3(x) = -1.333333x3 +4x2 - 3.666667x +1 + 3.2x3 - 8x2 +4.8x -2x3+4x2 -1.5x +0.410256x3 -
0.615384x2 +0.205128x

P3(x) =(-1.333333+3.2 – 2 +0.410256)x3 +(4 – 8 + 4 - 0.615384)x2 +(- 3.666667 +4.8 - 1.5


+0.205128) x +1

P3(x)= 0.276923x3 -0.615384x2 -0.161539x +1


1
1
Aproximar el número
3
y ∫ x 21+1 dx
0

P3 (1/3)= 0.276923 (1/3)3 -0.615384 (1/3)2 -0.161539 (1/3) +1= 0.8880


1 1

∫ x 21+1 dx=∫(0.276923 x 3 ¿−0.615384 x 2−0.161539 x +1)dx=0.78333325¿


0 0

3. Dada la función f se conocen los siguientes datos:

XK 0 1 2 3
F(XK) 2 -2 -1 0
3
Determine el valor aproximado de ∫ f (x )dx a partir de un polinomio de interpolación de
0
lagrange.
Solución.
n
p ( x ) =∑ f (x k )l k( x)
k=0

3
p3 ( x ) =∑ f ( x k ) l k ( x )=f ( x 0 ) l 0 ( x )+ f ( x 1 ) l 1 ( x ) + f ( x 2 ) l 2( x )+ f (x 3)l 3 ( x )
k=0

2
x−xi
l k ( x ) =∏
i=0 xk −xi
i ≠0

( x−1 )( x−2 ) (x−3) −x 3 2 11 x


l 0 ( x )= = +x − +1
( 0−1 ) ( 0−2 ) (0−3) 6 6

( x −0 ) ( x−2 ) (x−3) x 3 5 x 2
l 1 ( x )= = − +3x
( 1−0 ) ( 1−2 ) (1−3) 2 2

( x −0 ) ( x−1 ) (x−3) −x 3 3x
l2 ( x )= = + 2 x 2−
( 2−0 ) ( 2−1 ) (2−3) 2 2

( x−0 ) ( x−1 ) ( x−2) x 3 x 2 x


l3 ( x)= = − +
(3−0 ) ( 3−1 )(3−2) 6 2 3

f ( x 0 ) =2 , f ( x 1) =−2 , f ( x 2 )=−1 , f ( x 3 )=0

( ) ( ) ( ) ( )
3 3 2 3 3 2
−x 11 x x 5x −x 3x x x x
p3 ( x )=2∗ + x 2− +1 −2∗ − + 3 x −1∗ +2 x 2− +0∗ − +
6 6 2 2 2 2 6 2 3
3 3
−x 11 x x 3x
p3 ( x )= +2 x 2− +2−x3 +5 x 2−6 x + −2 x2 + +0
3 3 2 2

−5 x3 2 49 x
p3 ( x ) = +5 x − +2
6 6

4. La viscosidad u de un fluido depende de la temperatura T del fluido de acuerdo con la


siguiente tabla:

xk 5 20 30 50 55
U(N-
seg/m2) 0,08 0,015 0,09 0,006 0,0055
Con base en la tabla halle el polinomio interpolador de newton P4 y empléelo para
encontrar un estimativo para la viscosidad T= 25. Exhiba el procedimiento para calcular
todas las diferencias divididas, la tabla de diferencias divididas y el polinomio P 4
completamente desarrollado. Trabaje con ocho dígitos de precisión.

a0=f(x0) =0,08

f(x1)=0,015

f(x2)=0,09

f(x3)=0,006

f(x4)=0,0055

a1 = (f[x1]-f[x0])/(x1- x0) = f [x0, x1] =(0,015-0,08)/(20- 5)= -0,00433333

f [x1, x2]= (f[x2]-f[x1])/(x2- x1) =(0,09-0,015)/(30- 20)= 0,0075

f [x2, x3]= (f[x3]-f[x2])/(x3- x2) =(0,006-0,09)/(50- 30)= -0,0042

f [x3, x4]= (f[x4]-f[x3])/(x4- x3) =(0,0055-0,006)/(55- 50)= -0,0001

a2= (f [x1, x2]- f [x0, x1])/(x2- x0)= f[ x0, x1, x2]=(0,0075 - (-0,00433333))/(30- 5)= 0,00047333

f[ x1, x2, x3]= (f [x2, x3]- f [x1, x2])/(x3- x1)= (-0,0042-0,0075)/(50- 20)= -0,00039

f[ x2, x3, x4]= (f [x3, x4]- f [x2, x3])/(x4- x2)= (-0,0001-(-0,0042))/(55- 30)= 0,000164

a3= f [ x0, x1, x2, x3]= (f [x1, x2,x3]- f [x0, x1,x2])/(x3- x0)= (-0,00039-0,00047333)/(50- 5)= -
0,00001918

f [ x1, x2, x3, x4]= (f [x2, x3,x4]- f [x1, x2,x3])/(x4- x1)= (0,000164-(-0,00039))/(55- 20)=
0,00001582

a4= f [ x0, x1, x2, x3,x4] =( f [ x1, x2, x3, x4]- f [ x0, x1, x2, x3])/( x4- x0)=( 0,00001582-(-
0,00001918))/(55-5)= 0,0000007

f(x0,x1,x2,x3 f(x0,x1,x2,x3,x
Xk f(x0) f(x0,x1) f(x0,x1,x2) ) 4)
0,0800000
5 0        
-
20 0,015 0,00433333      
0,0004733
30 0,09 0,0075 3    
50 0,006 -0,0042 -0,00039 -0,00001918  
55 0,0055 -0,0001 0,000164 0,00001582 0,0000007
P4(x) = a0 + a1* (X-5) +a2*(X-5)*(X-20) + a3(X-5)*(X-20)*(X-30) + a4*(X-5)*(X-20)*(X-30)*(X-
50)

P4(x) = 0.800000000 – 0.00433333*(X-5) +0.00047333*(X-5)*(X-20) – 0.00001918*(X-


5)*(X-20)*(X-30) + 0.00000070*(X-5)*(X-20)*(X-30)*(X-50)

P4(x) = 0.800000000 – 0.00433333X - 0.02166665 +0.00047333X2- 0.01183325X +


0.047333 –0.00001918X3+ 0.0010549X2 – 0.016303X +0.05754 +0.00000070X4-
0.0000735X3+ 0.00252X2- 0.03185X + 0.105

P4(x) 0.0000007*X4- 0.00009268*X3+ 0.00404823*X2 - 0.06431958*X + 0.31153965

Para encontrar un estimativo para la viscosidad T= 25.

F (25) = 0.0000007*(25)4- 0.00009268*(25)3+ 0.00404823*(25)2 - 0.06431958*(25) +


0.31153965

F (25) = 0.059

5. Construya el polinomio de newton que interpole la siguiente tabla. Trabaje con ocho
dígitos de precisión.

x 1 2 3 4 5
f(x) 9 5 7 13 26

Solución:

P(x)= a0+a1(x-x0)+a2(x-x0) (x-x1)+a3(x-x0) (x-x1) (x-x2)+a4(x-x0) (x-x1) (x-x2) (x-x3)

a0=f(x0)=9.00000000

a1 = (f(x1)-f(x0))/(x1- x0) = (f[x1]-f[x0])/(x1- x0) = f [x0, x1]=-4.00000000

a2= (f [x1, x2]- f [x0, x1])/(x2- x0)= f[ x0, x1, x2]=3.00000000

a3= f [ x0, x1, x2, x3] =-0.33333333

a4= f [ x0, x1, x2, x3,x4] =0.20833333

f(x0,x1,x2,x f(x0,x1,x2,x3,x
xk f(x0) f(x0,x1) f(x0,x1,x2) 3) 4)
9,0000000
1 0        
-
5,0000000 4,0000000
2 0 0      
7,0000000 2,0000000 3,0000000
3 0 0 0    
4 13,000000 6,0000000 2,0000000 -  
00 0 0 0,33333333
26,000000 13,000000 3,5000000
5 00 00 0 0,50000000 0,20833333

p 4 ( x )=9+ ( (−4 ) ( x−1 ) ) + ( 3 ( x−1 ) ( x−2 ) )+ ( (−0.33333333 ) ( x−1 )( x−2 )( x−3 ) ) + ( 0.20833333 ( x−1 )( x−2 ) ( x−3 )

P4(x) = 0,20833333* X4 - 2,41666663*X3+ 12,29166653*X2-27,08333313*X +25,9999999

También podría gustarte