A few of my students are having trouble using Maple to pull off a quadratic approximation. I wanted to post a little code to help them along.
As usual, I strongly encourage my students to use Maple Classic. The java interface of normal Maple may be flashy an appealing to the ignorant or those unfortunate enough to get used to it, but most real world work in Maple is done with Maple classic.
For a function
, the quadratic approximation about a point
is given by
![Rendered by QuickLaTeX.com \[ Q(x) = f(a) + f'(a) (x-a) + \frac{f''(a)}{2}\,(x-a)^2. \]](http://www.timteatro.net/wp-content/ql-cache/quicklatex.com-ad3a7d1860006e105524cb6f15582623_l3.png)
In Maple, this can be implemented as:
> restart;
> f:=ln(x)/sqrt(x); # Define a function
> a:=1; # The point about which we'll expand
> Q:=subs(x=a, f) + subs(x=a, diff(f, x))*(x-a) + subs(x=a, diff(f, x, x))*(x-a)^2/2;
> plot([f, Q], x=-5..5, y=-5..5);
Now try playing around with the above code. Change the values of a and f(x).
No related posts.

