Skip to main content
Engineering LibreTexts

12: Appendix A- Taylor Series Expansions

  • Page ID
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    Taylor’s theorem (which we will not prove here) gives us a way to take a complicated function \(f(x)\) and approximate it by a simpler function \(\tilde{f}(x)\). The price of this simplification is that \(\tilde{f} \approx f\) only in a small region surrounding some point \(x = x_0\) (Figure \(\PageIndex{1}\)).

    The formula is:

    \[\tilde{f}(x)=f\left(x_{0}\right)+f^{\prime}\left(x_{0}\right)\left(x-x_{0}\right)+\frac{1}{2} f^{\prime \prime}\left(x_{0}\right)\left(x-x_{0}\right)^{2}+\frac{1}{6} f^{\prime \prime \prime}\left(x_{0}\right)\left(x-x_{0}\right)^{3}+\dots\label{eqn:1} \]

    The sequence goes on forever, but we typically only use the first few terms. To apply (1), we choose a point \(x_0\) where we need the approximation to be accurate. We then compute the derivatives at that point, \(f^\prime(x_0)\, \(f^{\prime\prime} (x_0)\), \(f^{\prime\prime\prime} (x_0)\), etc., for as far as we want to take it. For accuracy, use a lot of terms; for simplicity, use only a few.

    For example, if

    \[f(x)=(1-x)^{-1} \nonumber \]

    and we choose \(x_0\) = 0, then the Taylor series is just the well-known expression

    \[\tilde{f}(x)=1+x+x^2+x^3+\dots. \nonumber \]

    Figure A.2 shows the expansion with successively larger numbers of terms retained. Near x0, good accuracy can be achieved with only a few terms. The further you get from x0, the more terms must be retained for a given level of accuracy.

    The real benefit of Taylor series is evident when working with more complicated functions. For example, \(f(x) = \sin(\tan(x))\) can be approximated by \(\tilde{f}\) = \(x\) for \(x\) close to zero.

    Note that the first - order terms in Equation \(\ref{eqn:1}\):

    \[\tilde{f}(x)=f(x_0)+f^\prime(x_0)(x-x_0), \nonumber \]

    give a valid approximation of \(f(x)\) in the limit \(x \rightarrow x_0\), and can be rearranged to form the familiar definition of the first derivative:

    \[f^\prime(x_0)=\lim{x\to x_0}\frac{f(x)-f(x_0)}{x-x_0} \nonumber \]

    The Taylor series expansion technique can be generalized for use with multivariate functions. Suppose that \(f = f(\vec{x})\), where \(\vec{x} = (x, y)\). Then

    \[\tilde{f}(\vec{x})=f(\vec{x_0})+f_x(\vec{x_0})\delta x+ f_y(\vec{x_0})\delta y + \frac{1}{2} f_{xx}(\vec{x_0})\delta x^2 + f_{xy}(\vec{x_0})\delta_x\delta_y+\frac{1}{2}f_{yy}(\vec{x_0})\delta_{y^2}+\dots,\label{eqn:2} \]

    where \(\delta_x=x-x_0\), \(\delta_y=y-y_0\) and subscripts denote partial derivatives. Note that the first - order terms in Equation \(\ref{eqn:2}\) can be written using the directional derivative:

    \[f(\vec{x})=f(\vec{x_0})+\vec{\nabla}f(\vec{x_0})\cdot\delta \vec{x}. \nonumber \]

    You will notice that \(\tilde{f}\) has been replaced by \(f\); this is valid in the limit \(\vec{x} \rightarrow \vec{x_0}\), or \(\delta \vec{x} \rightarrow 0\).

    Figure \(\PageIndex{1}\): Definition sketch for Taylor series expansions. The original function \(f(x)\) is approximated by \(\tilde{f}(x)\). The approximation is accurate near the expansion point \(x_0\).
    Figure \(\PageIndex{2}\): Taylor series expansions of the function \(f(x) = 1/(1 − x)\) about \(x\) = 0. Accuracy increases as more terms are retained. The thick curve is the exact function.

    This page titled 12: Appendix A- Taylor Series Expansions is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by Bill Smyth via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.