5. Taylor series#
5.1. Taylor’s theorem for approximating functions of 1 variable#
Taylor’s theorem can be used to approximate a function \(f(x)\) with the so called \(p\)-th order Taylor polynomial:
where it is required that the function \(f: \mathbb{R}\mapsto \mathbb{R}\) is \(p\)-times differentiable at the point \(x_0 \in \mathbb{R}\).
The approximation error is equal to
and is called the remainder term.
Example:
A linear approximation (also called linearization) of \(f(x) = \cos(x)\) at \(x_0\) is obtained by the 1st order Taylor polynomial as:
5.2. First-order Taylor polynomial for linearizing a function of \(n\) variables#
For linearizing non-linear functions of \(x\) being a vector with \(n\) variables, we need the first-order Taylor polynomial, which is then given by:
where \(\Delta x_0=(x-x_0)\) and we need the \(n\) partial derivatives of function \(f\) evaluated at \(x_0\).