6.7. SECOND DERIVATIVE TEST 171

Therefore, F (c) = 0 by the way K was chosen and also F (x) = 0. By the mean valuetheorem or Rolle’s theorem, there exists ξ between x and c such that F ′ (ξ) = 0. Therefore,

0 = f ′ (ξ) +

n∑k=1

f (k+1) (ξ)

k!(x− ξ)

k −n∑

k=1

f (k) (ξ)

(k − 1)!(x− ξ)

k−1 −K (n+ 1) (x− ξ)n

= f ′ (ξ) +

n∑k=1

f (k+1) (ξ)

k!(x− ξ)

k −n−1∑k=0

f (k+1) (ξ)

k!(x− ξ)

k −K (n+ 1) (x− ξ)n

= f ′ (ξ) +f (n+1) (ξ)

n!(x− ξ)

n − f ′ (ξ)−K (n+ 1) (x− ξ)n

=f (n+1) (ξ)

n!(x− ξ)

n −K (n+ 1) (x− ξ)n

Then therefore,

K =f (n+1) (ξ)

(n+ 1)!■

The following is a special case and is what will be used.

Theorem 6.7.4 Let h : (−δ, 1 + δ) → R have m+1 derivatives. Then there exists t ∈ [0, 1]such that

h (1) = h (0) +

m∑k=1

h(k) (0)

k!+h(m+1) (t)

(m+ 1)!.

Now let f : U → R where U ⊆ Rn and suppose f ∈ Cm (U) . Let x ∈ U and let r > 0 besuch that

B (x,r) ⊆ U.

Then for ||v|| < r, considerf (x+tv)− f (x) ≡ h (t)

for t ∈ [0, 1] . Then by the chain rule,

h′ (t) =

n∑k=1

∂f

∂xk(x+ tv) vk, h

′′ (t) =

n∑k=1

n∑j=1

∂2f

∂xj∂xk(x+ tv) vkvj ■

Then from the Taylor formula stopping at the second derivative, the following theorem canbe obtained.

Theorem 6.7.5 Let f : U → R and let f ∈ C2 (U) . Then if

B (x,r) ⊆ U,

and ||v|| < r, there exists t ∈ (0, 1) such that.

f (x+ v) = f (x) +

n∑k=1

∂f

∂xk(x) vk +

1

2

n∑k=1

n∑j=1

∂2f

∂xj∂xk(x+ tv) vkvj (6.19)

Definition 6.7.6 Define the following matrix.

Hij (x+tv) ≡∂2f (x+tv)

∂xj∂xi.

It is called the Hessian matrix. From Corollary 6.7.2, this is a symmetric matrix. Then interms of this matrix, 6.19 can be written as

f (x+ v) = f (x) +

n∑j=1

∂f

∂xj(x) vk+

1

2vTH (x+tv)v

6.7. SECOND DERIVATIVE TEST 171Therefore, F'(c) = 0 by the way K was chosen and also F' (x) = 0. By the mean valuetheorem or Rolle’s theorem, there exists € between x and c such that F”’ (€) = 0. Therefore,ne f(k+I) ne Fle)0 = f+ EO eh - S o9 —Kn +1) e-9"k=1 k=1_ 4 FE) (8) yo LOO) n= f + Da Da KM D8)(n+1)= pot Veg 7 e-Kimtn@-o"(nt1)= FS eg" Kin +1 (e-9"Then therefore,_ £0)(n+ 1)!The following is a special case and is what will be used.Theorem 6.7.4 Leth: (—6,1+6)>R have m+1 derivatives. Then there exists t € [0,1]such thatAM) (0) AOD+> a 4 oseNow let f : U — R where U C R” and suppose f € C™ (U). Let x € U and let r > 0 besuch thatB(x,r) CU.Then for ||v|| <r, considerf (x+tv) — f (x) =h(t)for ¢ € [0,1]. Then by the chain rule,=n Da, | (x +tv) up, h” (t dG toa (x+tv) u,v;Then from the Taylor formula stopping at the second derivative, the following theorem canbe obtained.Theorem 6.7.5 Let f : U > R and let f € C2 (U). Then ifB(x,r) CU,and ||v|| <r, there exists t € (0, : such, that.noon 21f(x+v) y+ Yan Dn, x) UR + = pe » Daj, (x + tv) URv; (6.19)Definition 6.7.6 Define the following matrix._ & f (x+tv)It is called the Hessian matrix. From Corollary 6.7.2, this is a symmetric matriz. Then interms of this matrix, 6.19 can be written asf(x+tv)=f(x)+ S- or (x) vet gv" H (x+tv) v—< Ox;