Está en la página 1de 6

Teorema de Taylor

Para funciones suaves de una variable f : R → R, el teorema de Taylor asegura que

f 00 (a) f k (a)
f (x) = f (a) + f 0 (a)(x − a) + (x − a)2 + . . . + (x − a)k + Rk (x, a)
2! k!
x
(x − t)k k+1
Z
donde Rk (x, a) = f (t)dt es el residuo de x cerca de a, este error Rk (x, a) es pequeño de
a k!
Rk (x, a)
orden k. Esto significa que → 0 cuando x → a
(x − a)k
Ahora si tenemos f : Rn → R diferenciable en x0 y definimos R1 (x, x0 ) = f (x) − f (x0 ) − [Df (x0 )](x − x0 )
|R1 (x, x0 )|
de modo que f (x) = f (x0 )+[Df (x0 )](x−x0 )+R1 (x, x0 ) y como f es diferenciable en x0 , →0
|x − x0 |
cuando x → x0 , tomando h = x − x0 y R1 (x, x0 ) = R1 (h, x0 ) se obtiene la fórmula de Taylor 1er Orden
n
X ∂f R1 (h, 0)
f (x0 + h) = f (x0 ) + hi (x0 ) + R1 (h, x0 ) donde → 0 si h → 0
i=1
∂xi khk

Ejemplo: Hallar la aproximación de taylor de 1er orden para la función f (x, y) = sen(xy) con el punto
(x0 , y0 ) = (1, π2 ), tenemos que

f (x0 , y0 ) = sen(x0 y0 ) = sen(1 · π2 ) = 1


fx (x0 , y0 ) = y0 cos(x0 y0 ) = π2 cos(1 · π2 ) = 0
fy (x0 , y0 ) = x0 cos(x0 y0 ) = 1cos(1 · π2 ) = 0
Ası́, la aproximación de primer orden es

L(x, y) = f (x0 , y0 ) + fx (x0 , y0 )(x − x0 ) + fy (x0 , y0 )(y − y0 ) = 1 + 0 + 0 = 1

1
Fórmula de Taylor de segundo orden
Sea f : u j R → Rn con derivadas parciales continuas hasta tercer orden.
Entonces podemos escribir
n n
X ∂f 1 X ∂2t
f (x0 + h) = f (x0 ) + hi (x0 ) + hi hj (x0 ) + R2 (h, x0 )
i=1
∂xi 2 i,j=1 ∂xi ∂xj
R2 (h, x0 )
donde → 0 cuando h → 0 y la segunda suma es sobre todas las i y j entre 1 y n.
khk2

Dem: Si g(t) = f (x0 + th) aplicamos el Teorema de taylor de una variable.


g(1)f (x0 + h)
Z 1
0 g 00 (0) (t − 1)2 00
g(0) = f (x0 ) g(1) = g(0) + g (0) + + R2 donde R2 = g (t)dt
2! 0 2!
n
X ∂f n
X ∂2t
ahora por la regla de la cadena g 0 (t) = (x0 + th)hi y g 00 (t) = (x0 + th)hi hj
i=1
∂xi i,j=1
∂xi ∂xj
n
X ∂3t
g 000 (t) = (x0 + th)hi hj hk y escribiendo R2 = R2 (h, x0 ) tenemos que
∂xi ∂xj ∂xk
i,j,k=1
n n
X ∂f 1 X ∂2t
f (x0 + h) = f (x0 ) + hi (x0 ) + (x0 )hi hj + R2 (h, x0 ) dónde
i=1
∂xi 2 i,j ∂xi ∂xj
n 1
(t − 1)3 ∂3
X Z
R2 (h, x0 ) = · (x + th)hi hj hk . El integrando es una función continua de t
0 3 ∂xi ∂xj ∂xk
i,j,k=1
y por lo tanto esta acotado en una vecindad pequeña de x0 , tambien nótese que |hj | 5 khk para khk
R2 (h, x0 )
pequeña y ası́ |R2 (h1 x0 )| 5 khk3 M en particular 5 khkM → 0 cuando h → 0
khk2
Ejemplo: Calcular la fórmula de taylor de segundo orden para f (x, y) = sen(x + 2y) alrededor del punto
x0 = (0, 0)
tenemos
que f (0, 0) = sen(0 + 2(0)) = 0
∂f
= cos(x + 2y)|(0,0) = cos(0 + 2 · 0) = 1
∂x (0,0)

∂f
= cos(x + 2y) · 2|(0,0) = 2
∂y (0,0)

∂ 2 f

= −sen(x + 2y)|(0,0) = 0
∂x2 (0,0)

∂ 2 f

= −sen(x + 2y) · 4|(0,0) = 0
∂y 2 (0,0)

∂ 2 f

= −sen(x + 2y) · 2|(0,0) = 0
∂y∂x (0,0)

2
∂ 2 f

= −2sen(x + 2y)|(0,0) = 0
∂x∂y (0,0)

∴ la aproximación de taylor de 2do orden queda f (h) = f (0) + h1 (1) + 2h2 + 0 + 0 + R2 (h, 0)
= h1 + 2h2 + R(h, 0)

Ejemplo: Determinar la fórmula de taylor de 2do orden para f (x, y) = (x + y)2 si x0 = 0 = y0


tenemos que f (0, 0) = 0

∂f ∂f
= 2(x + y)|(0,0) = 0 = 2(x + y)|(0,0) = 0
∂x (0,0) ∂y (0,0)
∂ 2 f ∂ 2 f

= 2|(0,0) = 2 = 2|(0,0) = 2
∂x2 (0,0) ∂y 2 (0,0)
∂ 2 f ∂ 2 f

= 2|(0,0) = 2 = 2|(0,0) = 2
∂y∂x (0,0) ∂x∂y (0,0)

∴ la aproximación de taylor de 2do orden es

2(h1 )2 2(h2 )2 1 1
f (h) = 0 + + + h1 h2 + h1 h2 + R2 (h, 0) = (h1 )2 + (h2 )2 + 2h1 h2 + R2 (h, 0)
2 2 2 2
Ejemplo: Determinar taylor para f (x, y) = ex+y con x0 = 0 = y0 tenemos que f (0, 0) = 1

∂ 2 f

∂f x+y ∂f x+y
=e |(0,0) = 1 =e |(0,0) = 1 = ex+y |(0,0) = 1
∂x (0,0) ∂y (0,0) ∂x2 (0,0)
∂ 2 f ∂ 2 f ∂ 2 f

x+y x+y
= e |(0,0) = 1 = e | (0,0) = 1 = ex+y |(0,0) = 1
∂y 2 (0,0) ∂y∂x (0,0) ∂x∂y (0,0)

∴ la aproximación de 2do orden de taylor es


(h1 )2 (h2 )2
f (h) = 1 + 1(h1 ) + 1(h2 ) + + + h1 h2 + R2 (h, 0)
2 2
Ejemplo: Calcular la formula de taylor de segundo orden para f (x, y) = ex cosy con x0 = 0 = y0
tenemos que f (0, 0) = 1

∂ 2 f

∂f x ∂f x
= e cosy|(0,0) = 1 = −e seny|(0,0) = 0 = ex cosy|(0,0) = 1
∂x (0,0) ∂y (0,0) ∂x2 (0,0)
∂ 2 f ∂ 2 f ∂ 2 f

x
= −e cosy| (0,0) = −1 = 0 =0
∂y 2 (0,0) ∂y∂x (0,0) ∂x∂y (0,0)

∴ la aproximación de 2do orden de taylor es


R2 (h, 0)
f (h) = 1 + h1 + 12 h1 + 21 (h1 )2 + 1
2 + (h2 )2 + R2 (h, 0) donde → 0 si h → 0
khk2

3
Ejemplo: Calcular la fórmula de taylor de segundo orden para f (x, y) = ex cosy alrrededor x0 = 0 = y0
f (0, 0) = e0 cos(0) = 1

fx (0, 0) = ex cosy|(0,0) = e0 cos(0) = 1

fy (0, 0) = −ex seny|(0,0) = 0

fxx (0, 0) = ex cosy|(0,0) = 1

fyy (0, 0) = −ex cosy|(0,0) = −1

fxy (0, 0) = 0
R2 (h, 0)
∴ f (h) = 1 + h1 + 12 (h1 )2 − 12 (h2 )2 + R2 (h, 0) donde → 0 cuando h → 0
khk2
Ejemplo: Calcular la fórmula de taylor de segundo orden para f (x, y) = sen(xy) + cos(xy) alrrededor
x0 = 0 = y0
f (0, 0) = 1

fx (0, 0) = cos(xy) · y − sen(xy) · y|(0,0) = 0

fy (0, 0) = cos(xy) · x − sen(xy) · x|(0,0) = 0



fxx (0, 0) = −sen(xy) · y 2 − cos(xy) · y 2 (0,0) = 0

fyy (0, 0) = sen(xy) · x2 − cos(xy) · x2 (0,0) = 0

fxy (0, 0) = y(sen(xy)y + y 2 (−sen(xy)) − (y 2 cos(xy) + ysen(xy)) (0,0) = 0

fyx (0, 0) = x(sen(xy)x + cos(xy)1 − x(−cos(xy)x − (−sen(xy)1)|(0,0) = 1


∴ f (h) = 1 + h1 h2 + R2 (h, 0)

La fórmula de taylor de 2d o orden se puede escribir como


f (x̄ + x) = f (x̄) + ∇f (x̄)x + 12 xH(x̄xT + r(x)

n n
X ∂f 1 X ∂2t
∴ f (x0 + h) = f (x0 ) + (x0 )hi + (x0 )hi hj + R2 (h, x0 )
i=1
∂x1 2 i,j=0 ∂xj ∂xj

 
∂f ∂f ∂f
(x0 ) → ∇f · h = (x0 ), . . . , (x0 ) · [h1 . . . , hn ]
∂xi ∂xi ∂xn

Tambien se puede escribir  


  h1
∂f ∂f  . 
(x0 ), . . . ,  .. 
∂xi ∂xn
hn

4
n
1
X ∂2t
Para el término 2! (x0 )hi hj escribimos, si f : R3 → R
i,j=1
∂xi ∂xj

∂2f ∂2f ∂2f


 
 ∂x2 ∂y∂x ∂z∂x 
  
  h1
 ∂2f ∂2f ∂2f  
 
(h1, h2, h3)  .. 
 ∂x∂y ∂y 2 ∂z∂y 
 . 



 hn
 ∂2f ∂2f 2
∂ f 
∂x∂z ∂y∂z ∂z 2
| {z }

Matriz Hessiana (Hessiano)

Ejemplo: Considere la función f (x, y) = e2x+3y  


1 x
f [(0, 0) + (x, y)] = f (0, 0) + ∇f (0, 0) · (x, y) + 2 [xy]H(0, 0) + r2 (x, y)
y
r(x, y)
donde lı́m =0
(x,y)→(0,0)x2 + y 2
 
∂f ∂f
∇f = , = (2e2x+3y , 3e2x+3y ) ∴ ∇f (0, 0) = (2, 3)
∂x ∂y
∂2f ∂2f
 
 ∂x2 ∂y∂x  4e2x+3 6e2x+3y
   
4 6
H(x, y) =  = ∴ H(0, 0) =
 
2x+3y 2x+3y
 ∂2f ∂2f  6e 9e 6 9
∂x∂y ∂y 2
  
1 4 6 x
Ası́ f (x, y) = f (0, 0) + (2, 3) · (x, y) + 2 [xy] + r(x, y)
6 9 y

∴ e2x+3y = 1 + 2x + 3y + 2x2 + 6xy 92 y 2 + r(x, y)


Ejemplo: considere la función f : R2 → R dada por f (x, y, z) = senx + seny + senz − sen(x + y + z).
Tomemos el punto P = ( π2 , π2 , π2 ) y escribimos la fórmula de taylor para f en P .
f ( π2 , π2 , π2 ) = sen( π2 ) + sen( π2 ) + sen( π2 ) − sen( π2 + π2 + π2 ) = 4
 
∂f ∂f ∂f
∇f = , , = [cosx − cos(x + y + z), cosy − cos(x + y + z), cosz − cos(x + y + z)]
∂x ∂y ∂z
∴ ∇f ( π2 , π2 , π2 ) = [0, 0, 0]

5
∂2f ∂2f ∂2f
 
 ∂x2 ∂y∂x ∂z∂x 
   
−senx + sen(x + y + z) sen(x + y + z) sen(x + y + z)
 
 ∂2f ∂2f 2
∂ f  
 
H= = sen(x + y + z) −seny + sen(x + y + z) sen(x + y + z) 
 ∂x∂y ∂y 2 ∂z∂y  sen(x + y + z) sen(x + y + z) −senz + sen(x + y + z)
 
 
 ∂2f ∂2f ∂2f 
∂x∂z ∂y∂z ∂z 2
 
−2 −1 −1
y H( π2 , π2 , π2 ) =  −1 −2 −1 
−1 −1 −2

∴ f (( π2 , π2 , π2 ) + (x, y, z)) = f ( π2 , π2 , π2 ) + ∇f ( π2 , π2 , π2 ) − (x, y, z) + 21 [x y z]


 
x
H( π2 , π2 , π2 )  y  + r(x, y, z)
x
∴ sen( π2 + x) + sen( π2 + y) + sen( π2 + z) − sen( 32 π + x + y + z) =
r(x, y, z)
4 − x2 − y 2 − z 2 − xy − xz − yz + r(x, y, z) donde lı́m =0
(x,y,z)→(0,0,0) x2 + y 2 + z 2

(3,98 − 1)2
Ejemplo: Hallar las aproximaciones lineal y cuadratica para y comparar con el valor exacto
(5,97 − 3)2
(x − 1)2
Sol. Sea f (x, y, z) = . La expresón deseada esta cerca de f (4, 6) = 1
(y − 3)2
2(x − 1) −2(x − 1)2 2 6(x − 1)2
fx = f y = f xx = f yy = en(4, 6)
(y − 3)2 (y − 3)2 (y − 3)2 (y − 3)2
2
fx = 3 fy = − 23 fxy = fyx = − 94 fxx = 2
9 fyy = 2
3

Entonces la aproximación lineal es


1 + 32 (−0,02) − 23 (−0,03) = 1,00666

y la aproximación cuadratica es
1 + 23 (−0,02) − 23 (−0,03) + 29 (−0,002)2 − 49 (−0,02)(−0,03) + 23 (−0,03)2 = 1,00674

y el valor exacto es 1,00675

También podría gustarte