0% encontró este documento útil (0 votos)
51 vistas14 páginas

Actividad Evaluativa Eje 3 Interpolacion Polinominal

1. The document discusses polynomial interpolation and curve fitting. It provides examples of using Langrage interpolation to find interpolation polynomials that pass through given points. 2. It also uses Newton's divided differences to find the interpolation polynomials for the same examples and checks that they match the polynomials found using Langrage interpolation. 3. The document provides the steps and calculations for applying both Langrage and Newton's methods to different sets of data points.

Cargado por

djaimes16
Derechos de autor
© © All Rights Reserved
Nos tomamos en serio los derechos de los contenidos. Si sospechas que se trata de tu contenido, reclámalo aquí.
Formatos disponibles
Descarga como DOCX, PDF, TXT o lee en línea desde Scribd
0% encontró este documento útil (0 votos)
51 vistas14 páginas

Actividad Evaluativa Eje 3 Interpolacion Polinominal

1. The document discusses polynomial interpolation and curve fitting. It provides examples of using Langrage interpolation to find interpolation polynomials that pass through given points. 2. It also uses Newton's divided differences to find the interpolation polynomials for the same examples and checks that they match the polynomials found using Langrage interpolation. 3. The document provides the steps and calculations for applying both Langrage and Newton's methods to different sets of data points.

Cargado por

djaimes16
Derechos de autor
© © All Rights Reserved
Nos tomamos en serio los derechos de los contenidos. Si sospechas que se trata de tu contenido, reclámalo aquí.
Formatos disponibles
Descarga como DOCX, PDF, TXT o lee en línea desde Scribd
Está en la página 1/ 14

INTERPOLACION POLINOMINAL Y AJUSTE DE CURVAS

Presentado por:

DIANA MARCELA JAIMES CRUZ

Curso

ANALISIS NUMERICO

202210-1A-12

FUNDACION UNIVERSITARIA DEL AREA ANDINA

21 de Mayo de 2022

Guamal-Meta
1. Use la interpolación de Langrage para encontrar el polinomio que pasa los por punto.
a. (0.1) (2,3) (3,0)
b. (-1,0) (2,1) (3,1) (5,2)
c. (0,-2) (2,1) (4.4)

1.
a. (0.1) (2.3) (3.0)
X1 Y1 X 2 Y2 X3Y3

( x−2 ) ( x −3 ) ( x−2 ) ( x −3 )
L0 ( x ) = =
( 0−2 ) ( 0−3 ) 6

( x−0 ) ( x−3 ) x ( x−3 )


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

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


L2 ( x ) = =
( 3−0 ) ( 3−2 ) 3

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


f (x) = + +
6 −1 3

2
x 5
= 2
− +1 ,−3 x + 9 x
6 6

49 17 2
f (x) = 1 + x– x
6 6

b. (-1,0) (2.1) (3.1) (5,2)

( x−2 ) ( x−3 )( x−5 ) ( x−2 ) ( x −3 ) ( x −5 )


L0 ( x ) = =
(−1−2 ) (−1−3 )(−1−5 ) (−3 )(−4 ) (−6 )
( x−2 ) ( x −3 ) ( x −5 )
=
−72

( x+1 )( x−3 ) ( x−5 )


L1 ( x ) = ¿ ¿ =
( 3 )(−1 )(−3 )
( x+1 )( x−3 ) ( x−5 )
=
9

( x — 1) ( x+1 )( x−2 ) ( x−5 )


L2 ( x ) = ( 3 — 1 ) (3−2)(3−5) =
( x−2)(x−5) ( 4 ) ( 1 ) (−2 )
( x+1 )( x−2 ) ( x−5 )
=
−8

( x — 1) ( x+1 )( x−2 ) ( x−3 )


L3 ( x ) = ( 5 — 1 )(5−2)(5−3) =
( x−2)(x−3) ( 6 ) ( 3 )( 2 )
( x+1 )( x−2 ) ( x−3 )
=
36

( x−2 ) ( x −3 ) ( x −5 ) ( 1 )( x +1 ) ( x−3 ) ( x−5 ) ( 1 )( x +1 ) ( x−2 ) ( x −5 )


f ( x ) = (0) +¿ + +
−72 9 −8
( 2 )( x +1 ) ( x−2 ) ( x −3 )
36
3 2 3 2
( 3 2
)
f (x) =
x −7 x +7 x +15
+¿
x −6 x +3 x +1 0
+ 2 x −4 x + x+ 6
9 9 36
3 2 3 2 2
x 7 x 7 x 15 x 6 x 3 x 10 3 ¿ 4 x x 6
¿ − + + − + − − +x − ¿+ +
9 9 9 9 8 8 8 8 1 8 18 18 18

1 3 1 2 11 3
f (x) = x- x+ x+
24 4 24 4
c. (0,-2) (2.1) (4,4)

( x−2 ) ( x −4 ) ( x−2 ) ( x −4 )
L0 ( x ) = =
( 0−2 ) ( 0−4 ) 8

( x−0 ) ( x−4 ) x ( x−4 )


L1 ( x ) = =
( 2−0 ) ( 2−4 ) −4

( x−0 )( x−2 ) x ( x−2 )


L2 ( x ) = =
( 4−0 )( 4−2 ) 8

−2 ( x−2 )( x−4 ) 1 ( x ) ( x−4 ) 4 ( x ) ( x−2 )


f (x) = + +
8 −4 8

=
−( x 2−6 x+ 8 ) – x2 −4 x + x2 −2 x
4 4 4
2
x 6 3 8 x2 4 x
2
2
= + 4 + 4 x–4 – + 4 x+ – 4 x
4 4 4
2
−x
f (x) = + 2 x-2
4

2. Utilice las diferencias divididas de Newton para encontrar los polinomios de interpolación
de los puntos del ejercicio, luego compruebe su concordancia con el polinomio de
Langrage.

2a (0,1) (2,3) (3,0)

Datos
n=3

j= 0,1,2

ꭓ0 = 0 f (ꭓ0) = 1 α0 =?

ꭓ1 = 2 f (ꭓ1) = 3 α1 =?

ꭓ2 = 3 f (ꭓ2) = 0 α2 =?

ϳ ꭓi f (ꭓi)
0 0 1 --- ----

1 2 3 1 ----

−4
2 3 0 -3
3

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

f ( x 2 )−f ( x1 ) 0−3 −3
f ¿ ꭓ1 , ꭓ2) = = = = -3
x 2−x 1 3−2 1

f ( x 1 . x 2 )−f ( x 0 . x 1) −3−1 −4
f ¿ ꭓ0, ꭓ1 , ꭓ2 ) = = =
x 2−x 0 3−0 3

α0 = 1 f n ( x ) = α0 + α1 (x - x 0) + α2 (x - x 0)( x - x 1)

α1 = 1

4
α2 = -4/3 f n ( x ) = 1+1( x−0 ¿+ ( x ¿ ( x−2 ¿
3
4 2 8
f n ( x ) = 1+ x− x + x
3 3
11 4
f n ( x ) = 1+ x - x2
3 3

2b (-1,0) (2,1) (3,1) (5,2)

Datos

n=4

ϳ= 0,1,2,3

ꭓ0 = -1 f (ꭓ0) = 0 α0 =?

ꭓ1 = 2 f (ꭓ1) = 1 α1 =?

ꭓ2 = 3 f (ꭓ2) = 3 α2 =?

ꭓ5 = 5 f (ꭓ3) = 2 α3 =?

ϳ χi f ( χ i)
0 -1 0 --- ---- ----

1 2 1 1/5 ---- ----

2 3 3 2 5/9 ----

3 5 2 -1/2 -5/6 -25/108

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

f ( x 2 )−f ( x1 ) 3−1 2
f ¿ ꭓ1 , ꭓ2) = = = =2
x 2−x 1 3−2 1

f ( x 3 )−f ( x 2) 2−3 −1
f ¿ ꭓ2 , ꭓ3) = = =
x 3−x 2 5−3 2
f ¿ ꭓ0., ꭓ1.ꭓ2) = f ¿ ¿
2−1/3 5/3 5
= = =
3−0 3 9

f ¿ ꭓ1, ꭓ2.ꭓ3) = f ¿ ¿
−1
−2 −5/2 −5
= 2 = =
3 6
5−2

f ¿ ꭓ0, ꭓ1.ꭓ2.ꭓ3) = f ¿ ¿
−5 5
− −25
= 6 9 = 108
5−(−1)
1 5 −25
α0 = 0 α1 = α2 = α3 =
3 9 108

f ( x ) = α0 + α1 (ꭓ - x 1) + α2 (ꭓ - x 1) (ꭓ - x 2)+ α3 (ꭓ - x 1) (ꭓ - x 2) (ꭓ - x 3)

1 5 −25
f (x) = 0 + (ꭓ - (-1))+ (ꭓ - (-1))( ꭓ-2)+( )( ꭓ-(-1)( ꭓ-2)( ꭓ-3)
3 9 108
1 5 25
= (ꭓ+1) + (ꭓ+1) (ꭓ-2)- (ꭓ+1) (ꭓ-2) (ꭓ-3)
3 9 108
1 1 1 1 25
= ꭓ + + ꭓ + (ꭓ 2-ꭓ-2)- (ꭓ 3-4 ꭓ2+ꭓ+6)
3 3 3 3 108
1 1 5 5 10 25 3 100 2 25 15 0
f (x) = ꭓ + + ꭓ2 - ꭓ- - ꭓ + ꭓ - ꭓ-
3 3 9 9 9 108 108 108 108
−25 3 40 2 49 13
f (x) = ꭓ + ꭓ - ꭓ-
108 27 108 6

2c (0,-2) (2,1) (4,4)


Datos

n=3

ϳ= 0,1,2

ꭓ0 = -1 f (ꭓ0) = -2 α0 =?

ꭓ1 = 2 f (ꭓ1) = 1 α1 =?

ꭓ2 = 4 f (ꭓ2) = 4 α2 =?

ϳ χi f ( χ i)
0 0 -2 --- ---- ----

1 2 1 3/2 ----

2 4 4 3/2 0

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

f ( x 2 )−f ( x1 ) 4−1 3
f ¿ ꭓ1 , ꭓ2) = = =
x 2−x 1 4−2 2

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

f ¿ ꭓ0 , ꭓ1, ꭓ2) = = 2 2 =0
x 2−x 0
4−0

3
α0 = -2 α1 = α2 =0
2
3
f ( x ) = -2 + (ꭓ -0) + 0 (ꭓ -0) (ꭓ -2)
2
3
f (x) = ꭓ-2
2
3. Dada la tabla

x 0 1 4
Y (x) 1 -3 5

Realizar una interpolación lineal, una cuadrática y luego calcular los valores para x=0.2 y x= 3. A
continuación, utilice un programa libre para dibujar la nueva cuerva.

Interpolación Lineal:

Y 1−Y 0
f (x) = Y 0 + (ꭓ - x 0)
x 1−x 0

( x 0 ,Y 0 )=( 0 , 1 )
( x 1 ,Y 1 ) =( 1 ,−3 )
−3−0
f ( x ) = 0+ ¿)
1−0
f ( x ) = -3 ꭓ

Interpolación Cuadrática

( x 1 ,Y 1 ) =( 0 , 1 )
( x 2 ,Y 2 ) =( 1 ,−3 )
( x 3 ,Y 3 ) =( 4 ,5 )
f ( x )=a+b ( x−x 1 ) +c (x− x1 )¿

f ( x )=a+b ( x−0 )+ c ( x−0 ) ( x−(−3 ) )

f ( x )=a+b x +cx ( x+ 3 )

f ( 0 )=a+ b ( 0 ) +c ( 0 ) ( 0+3 ) =1
a=1
f ( 1 ) =a+b ( 1 ) + c ( 1 ) ( 1+ 3 )=−3
¿ 1+b+ 4 c=−3
b+ 4 c =−4

f ( 4 )=1+b ( 4 ) +c ( 4 )( 4+3 )=5


¿ 4 b+28 c=4
b+ 7 c=1

5
−b−4 c=4 b=−4−4( )
3
−b−7 c=1 b=−32/3
3 c=5
c=3 /5

−32 5
f ( x ) = 1 +( ) x0 + ꭓ +x3
3 3
32 5 2
f (x) = 1 - ꭓ + x +5 ꭓ
3 3
5 2 17
f (x) = x - ꭓ +1
3 3
5 17 −1
f (0 , 2) = ( 0 , 2) – ( 0 , 2 ) +1=
3 3 15
5 17
f (3) = ( 3) – ( 3 )+1=−1
3 3
4. Considere la siguiente tabla que muestra el numero de empleados de cierta industria
productora de televisores Led en estados unidos en el periodo de 1980 a 1995.

Años 1980 1985 1990 1995


Empleado 24 30 38 43

Calcular mediante el polinomio de interpolación cuadrática, el número de empleados que tuvo la


empresa para el año 2000.

( x 1 ,Y 1 ) =( 0 , 24 )
( x 2 ,Y 2 ) =( 5 ,3 0 )
( x 3 ,Y 3 ) =( 10 , 38 )

f ( x )=a+b ( x−x 1 ) +c (x− x1 )¿

f ( x )=a+b ( x−0 )+ c ( x−0 ) ( x −5 )


f ( x )=a+bx +cx ( x+ 5 )

f ( 0 )=a+ b ( 0 ) +c ( 0 ) ( 0−5 )=24


a=24

f ( 5 )=a+ b ( 5 ) +c ( 5 )( 5−5 )=30


24+ 5 b=30
30−24
b=
5
6
b=
5

f ( 10 )=24+ ¿
24+ 12+ 50 c=3 8
50 c=38−36
2
c=
50
1
c=
25

6 1
f ( x )=24+ x + x (x−5)
5 25
6 1 2 1
f ( x )=24+ x + x − x
5 25 5
1 2
f ( x )=24+ x + x x
25

1 2
f ( 20 )=24+ ( 20 ) + (20)
25
f ( 20 )=60 empleados

También podría gustarte