Let $a\in \mathbb R$ and $f(x)$ be and infinitely differentiable function on an interval $I$ containing $a$. Then the one-dimensional Taylor series of $f$ around $a$ is given by
Recall that, in calculus, Taylor's theorem gives an approximation of a $k$-times differentiable function around a given point by a $k$-th order Taylor polynomial.
For example, the best linear approximation for $f(x)$ is $$f(x)\approx f(a)+f'(a)(x-a).$$ This linear approximation fits $f(x)$ with a line through $x=a$ that matches the slope of $f$ at $a$.
For a better approximation we can add other terms in the expansion. For instance, the best quadratic approximation is
Figure 1 shows the partial sums (up to 10 terms) of the Taylor series for the function $f(x)=1/(1+x^2)$ around $a=0.67$.
The Taylor series can be extended to calculate linear and quadratic approximations of functions of two variables.
In general, the two-dimensional Taylor series of $f(x,y)$ around a point $(a,b)$ is given by:
In this case, the best linear approximation to $f(x,y)$ around the point $(a,b)$ is
On the other hand, the best quadratic approximation to $f(x,y)$ around the point $(a,b)$ is
The following simulation shows linear and quadratic approximations of functions of two variables.
Things to try:
The following file contains activities and problems associated with the simulation.