APPENDIX B

Taylor Expansions

A Taylor series expansion can be used to provide approximations to a function. Given a function f(x), assuming the necessary derivatives exist, we can define the Taylor series:

Unnumbered Display Equation

where f′, f″, and f(3) are, respectively, the first, second, and third derivatives of f(x) with respect to x.

We can talk about an nth order Taylor series expansion, which would extend to the nth term,

Unnumbered Display Equation

As an example, take the exponential function. The corresponding Taylor series expansion is:

Unnumbered Display Equation

An obvious choice for a is a = 0, which implies ea = 1. In this case, we say that we are expanding ex around zero. The expansion then simplifies to:

Unnumbered Display Equation

Table B.1 shows the first few approximations for ex, expanded around zero, for various values of x:

TABLE B.1 Taylor Approximations for ex

Table B-1

The last row is the exact value of the function, which would be equal to the infinite expansion. Notice that as we add more terms, the approximation gets closer and closer to the real value. Also notice that ...

Get Mathematics and Statistics for Financial Risk Management now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.