Está en la página 1de 11

Actividad Evaluativa-Tarea Individual

Interpolación Lineal y Ajustes de curvas


1. Usar la interpolación de Lagrange para encontrar el polinomio que pasa por los puntos:
n−1
P ( x ) =∑ f ( x i ) L ( x )
i=0

n−1
x−x j
L ( x ) =∏
i=0 x i−x j
j ≠i

A. (0,1) (2,3) (3,0)

# x f(x)
0 0 1
1 2 3
2 3 0

( x −x1 ) ( x−x 2 ) ( x−x 0 ) ( x−x 2 ) ( x−x 0 ) ( x−x 1)


P ( x) = f ( x0 )+ f ( x1 )+ f ( x2 )
( x 0 −x1 ) ( x 0−x 2 ) ( x 1−x 0 ) ( x 1−x 2 ) ( x 2−x 0 ) ( x2 −x1 )
( x−2)(x−3) ( x )( x−3) ( x−2)(x −3) x ( x−3 ) −4 2 14
P ( x) = + 3= −3 = x + x +1
(−2)(−3) (2)(2−3) 6 2 3 3

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

# x f(x)
0 -1 0
1 2 1
2 3 1
3 5 2
( x−x 1 ) ( x−x 2) ( x−x 3 ) ( x −x0 ) ( x−x 2 ) ( x−x 3 ) ( x−x 0 )( x −x1 ) ( x−x 3 ) ( x−x 0 ) ( x
P ( x) = f ( x0 ) + f ( x 1) + f ( x2 )+
( x 0 −x1 ) ( x 0−x 2 ) ( x 0−x 3 ) ( x 1−x 0 ) ( x 1−x 2 )( x 1−x 3 ) ( x 2−x 0 ) ( x 2−x 1 )( x2 −x3 ) ( x3 −x0 ) ( x 3
( x +1 ) ( x −3 ) ( x −5 ) ( x+ 1 )( x−2 ) ( x−5 ) ( x +1 ) ( x −2 )( x−3 )
P ( x) = + + 2
( 2+1 ) ( 2−3 )( 2−5 ) ( 3+1 )( 3−2 ) ( 3−5 ) ( 5+1 ) ( 5−2 ) ( 5−3 )
( x +1 ) ( x −3 ) ( x −5 ) ( x +1 ) ( x −2 )( x−5 ) ( x +1 ) ( x −2 )( x−3 )
P ( x) = − +2
9 8 36
1 3 1 2 11 3
P ( x) = x − x + x+
24 4 24 4

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

# x f(x)
0 0 -2
1 2 1
2 4 4

( x −x1 ) ( x−x 2 ) ( x−x 0 ) ( x−x 2 ) ( x−x 0 ) ( x−x 1)


P ( x) = f ( x0 )+ f ( x1 )+ f ( x2 )
( x 0 −x1 ) ( x 0−x 2 ) ( x 1−x 0 ) ( x 1−x 2 ) ( x 2−x 0 ) ( x2 −x1 )
− ( x −2 )( x−4 ) ( x )( x−4 ) ( x )( x−2)
P ( x) = 2+ + 4
(−2 )(−4 ) ( 2 )( 2−4 ) ( 4)(4−2)
( x−2 ) ( x−4 ) ( x ) ( x−4 ) ( x )( x−2 ) 3
P ( x ) =−2 − +4 = x−2
8 4 8 2
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 Lagrange.

P ( x ) =a0 + a1 ( x−x 0 ) + a2 ( x−x 0 )( x −x1 ) + …+an ( x−x 0 ) ( x−x 1 ) … ( x−x n )

a 0=f ( x 0 ) a 1=f ( x 0 , x 1 ) a2=f ( x 0 , x 1 , x 2 ) an=f ( x 0 , x 1 , x 2 , … , x n )

A. (0,1) (2,3) (3,0)

# x f(x)
0 0 1 a0
1 2 3 2 a1
=1
2
2 3 0 −3 −4 a2
3

4 11 4
P ( x ) =1+ x− ( x ) ( x−2 )=1+ x− x 2 Igual al de Lagrange
3 3 3
B (-1,0) (2,1) (3,1) (5,2)

# x f(x)
0 - 0 a0
1
1 2 1 1 a1
3
2 3 1 0 −1 −1 a2
=
3∗4 12
3 5 2 1 1 1 1 1 a3
= =
2 2∗3 6 4∗6 24
1 1 1 1 3 1 2 11 3
P ( x ) = ( x+1 ) − ( x +1 ) ( x−2 ) + ( x +1 ) ( x−2 )( x−3 )= x − x + x +
3 12 24 24 4 24 4
Igual a Lagrange
C (0,-2) (2,1) (4,4)

# x f(x)
0 0 -2 a0
1 2 1 3 a1
2
2 4 4 3 0 a2
2

3
P ( x ) =−2+ ( x ) Igual a Lagrange
2
3. Dada la tabla:

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

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 curva.
Interpolación lineal

# x y(x)
0 0 1
1 0,2 a
2 1 -3
3 3 c
4 4 5

Para hallar a
y=mx+b
y 2− y 0 −3−1
m= = =−4
x 2−x 0 1
y 1− y 0
m=
x 1−x 0
a−1
−4=
0,2
1
a=−4 ( 0,2 ) +1=
5
y=−4 x +b
1
=−4 ( 0,2 )+ b
5
1
b= +4 ( 0,2 )=1
5
y=−4 x +1

Para hallar c
y=mx+b
y 4 − y 2 5+3 8
m= = =
x 4 −x 2 4−1 3
y 3− y 2
m=
x 3−x 2
8 c +3 c +3
= =
3 3−1 2
8 7
c= ( 2 )−3=
3 3
8
y= x+ b
3
7 8
= ( 3 ) +b
3 3
7 8 −17
b= − ( 3 )=
3 3 3
8 17
y= x−
3 3

Interpolación cuadrática

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

y=a x2 +bx +c
1=0+0+c=c
−3=a+b+ 1
5=16 a+4 b+1

−4=a+b
4=16 a+4 b
b=−4−a
4=16 a+4 (−4−a )=16 a−16−4 a=12 a−16
4+ 16 20 5
a= = =
12 12 3
5 −17
b=−4− =
3 3

5 2 17
y= x − x +1
3 3

5 2 17
y ( 0,2 )= ( 0,2 ) − ( 0,2 )+ 1=−0.067
3 3
5 2 17
y ( 3 )= ( 3 ) − ( 3 ) +1=−1
3 3

4. Considere la siguiente tabla que muestra el número de empleados de cierta industria productora
de televisores LED en Estados Unidos en el periodo de 1980 a 1985.

x 198 1985 199 1995


0 0
y(x) 24 30 38 43
Calculara mediante el polinomio de interpolación cuadrática, el número de empleado que tuvo la
empresa para el año 2000.
Forma #1
x y(x)
1980 24
1985 30
1990 38

y=a x2 +bx +c
2
24=a ( 1980 ) +b ( 1980 ) +c
2
30=a ( 1985 ) + b ( 1985 ) +c
2
38=a ( 1990 ) + b ( 1990 ) +c

( )( ) ( )
3920400 1980 1 a 24
3940225 1985 1 b = 30
3960100 1990 1 c 38

1 −787
a= b= c=154860
25 5

1 2 787
y= x− x +154860
25 5
1 2 787
y ( 2000 )= (2000) − ( 2000 ) +154860=60
25 5

Forma #2

x y(x)
1980 24
1985 30
1995 43

2
y=a x +bx +c
2
24=a ( 1980 ) +b ( 1980 ) +c
2
30=a ( 1985 ) + b ( 1985 ) +c
2
43=a ( 1995 ) +b ( 1995 ) +c

( )( ) ( )
3920400 1980 1 a 24
3940225 1985 1 b = 30
3980025 1995 1 c 43

1 −757
a= b= c=23850
150 30

1 2 75 7
y= x− x +23850
150 30
1 2 75 7
y ( 2000 )= (2000) − (2000 )+ 23850=5 0
150 30

Forma #3

x y(x)
1980 24
1990 38
1995 43
2
y=a x +bx +c
2
24=a ( 1980 ) +b ( 1980 ) +c
2
38=a ( 1990 ) + b ( 1990 ) +c
2
43=a ( 1995 ) +b ( 1995 ) +c

( )( ) ( )
3920400 1980 1 a 24
3960100 1990 1 b = 38
3980025 1995 1 c 43

−2 1609
a= b= c=−107820
75 15

−2 2 1609
y= x + x−107820
75 15
−2 1609
y ( 2000 )= ( 2000 )2 + ( 2000 )−107820=47
75 15

Forma #4

x y(x)
1985 30
1990 38
1995 43

2
y=a x +bx +c
2
30=a ( 1985 ) + b ( 1985 ) +c
2
38=a ( 1990 ) + b ( 1990 ) +c
2
43=a ( 1995 ) +b ( 1995 ) +c

( )( ) ( )
3940225 1985 1 a 30
3960100 1990 1 b = 38
3980025 1995 1 c 43

−3 2401
a= b= c=−240155
50 10

−3 2 2401
y= x+ x−240155
50 10
−3 2401
y ( 2000 )= ( 2000 )2 + ( 2000 )−240155=45
50 10

Existen 4 valores tentativos a la cantidad de empleados en el año 2000, los valores son 60,50,47 y
45.

También podría gustarte