Linear Approximation and Differentials

A function of two variables is differentiable at a point $(x_0,y_0)$ when it is closely approximated by the tangent plane to the curve at $(x_0,y_0)$. We saw in class how to find the tangent plane at $(x_0,y_0)$, and we also discussed how we could use the tangent plane to approximate values of $f(x,y)$ for $(x,y)$ near $(x_0,y_0)$.

We will not bother with the tangent plane in Maxima, but we can quickly find the linear approximation $L$ to $f$ (which is essentially the same thing) by means of the taylor function.

Let $f(x,y) = \mathrm{e}^{x^2}\sin (y)$ and let us find the linear approximation of $f$ at the point $(1,2)$.


\begin{maximasession}
f(x,y) := exp(x^2) * sin(y);
taylor(f(x,y), [x,y], [1,2], ...
...eft(x-1\right)+\cos 2 e \left(y-2\right)\right)+\cdots \\
\end{maximasession}

The function $L$ is shown in the output as everything but the three dots. The ellipsis is a way to indicate that the returned expression is an approximation to the original function.

The linear approximation arguments are all self explanatory except the last. It represents the order of the Taylor series. When we find a linear approximation to a differentiable function what we are actually doing is finding a Taylor series of order 1, about the point $(x_0,y_0)$.

We can get the total differential by doing diff without specifying any independent variables.


\begin{maximasession}
diff(f(x,y));
\maximaoutput*
\i3. diff(f(x,y)); \\
\o3. e...
...right)+2 x e^{x^2} \sin y \mathrm{del}\left(x\right) \\
\end{maximasession}

The symbols del(y) and del(x) stand for $\mathrm{d}y$ and $\mathrm{d}x$, respectively.



G. Jay Kerns 2009-12-01