06.09.2021 Views

First Semester in Numerical Analysis with Julia, 2020a

First Semester in Numerical Analysis with Julia, 2020a

First Semester in Numerical Analysis with Julia, 2020a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 4. NUMERICAL QUADRATURE AND DIFFERENTIATION 173<br />

f(x 0 + h) =f(x 0 )+hf ′ (x 0 )+ h2<br />

2 f ′′ (x 0 )+ h3<br />

6 f (3) (x 0 )+ h4<br />

24 f (4) (ξ + )<br />

f(x 0 − h) =f(x 0 ) − hf ′ (x 0 )+ h2<br />

2 f ′′ (x 0 ) − h3<br />

6 f (3) (x 0 )+ h4<br />

24 f (4) (ξ − )<br />

where ξ + is between x 0 and x 0 + h, and ξ − is between x 0 and x 0 − h. Add the equations to<br />

get<br />

f(x 0 + h)+f(x 0 − h) =2f(x 0 )+h 2 f ′′ (x 0 )+ h4 [<br />

f (4) (ξ + )+f (4) (ξ − ) ] .<br />

24<br />

Solv<strong>in</strong>g for f ′′ (x 0 ) gives<br />

f ′′ (x 0 )= f(x 0 + h) − 2f(x 0 )+f(x 0 − h)<br />

h 2<br />

− h2 [<br />

f (4) (ξ + )+f (4) (ξ − ) ] .<br />

24<br />

Note that f (4) (ξ + )+f (4) (ξ − )<br />

2<br />

is a number between f (4) (ξ + ) and f (4) (ξ − ), so from the Intermediate<br />

Value Theorem 6, we can conclude there exists some ξ between ξ − and ξ + so that<br />

Then the above formula simplifies as<br />

f (4) (ξ) = f (4) (ξ + )+f (4) (ξ − )<br />

.<br />

2<br />

f ′′ (x 0 )= f(x 0 + h) − 2f(x 0 )+f(x 0 − h)<br />

h 2<br />

for some ξ between x 0 − h and x 0 + h.<br />

− h2<br />

12 f (4) (ξ)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!