Next: About this document ...
The purpose of this lab is to acquaint you with using Maple to compute partial derivatives.
For a function of a single real variable, the derivative
gives information on whether the graph of is increasing or decreasing. For a function of two (or more) variables,you need to specify which independent variable is being derived.
A differentiable function, , of two variables has two partial
. As you have learned in class, computing partial derivatives is
very much like computing regular derivatives. The main difference is
that when you are computing
, you must treat
the variable as if it was a constant and vice-versa when computing
The Maple commands for computing partial derivatives are D
and diff. The diff command can be used on both expressions and functions whereas the D command can be used only on functions. The examples below show all first order and second order partials in Maple.
> f := (x,y) -> x^2*y^2-x*y;
Note in the above D command that the 1 in the square brackets means x and the 2 means y.
The next example shows how to evaluate the mixed partial derivative of the function given above at the point .
The tangent plane like the tangent line to a single variable function is based on derivatives, however the partial derivatives are used for the tangent plane. Let's start with the equation of the tangent line to the function at the point where . Recall, the general equation of a line at the point having slope is
. This can be rewritten knowing that the derivative is the slope of a tangent line as
. Similarly for a funcion of two variables, the equation of the plane tangent to at the point has the equation
. The following examples will show you how the line and the plane can easily be translated to Maple syntax.
> g := x-> sin(x)-x^3/7+x^2;
> tl := D(g)(5)*(x-5)+g(5);
The next example shows how to find the tangent plane to the function
at . You could write the partials with diff or D. This example uses D as it is easier to plug in the the point with this syntax; with diff the subs command would be used.
To find a point where the tangent plane is horizontal, you would need to solve where both first order partials are equal to zero simultaneously.
There are two plot commands for three-dimensional graphs plot3d and implicitplot3d. The first assumes the =z and is therefore not included in the command.
Note the difference in the syntax for the second plot command. An equal sign must be included in the equation. This gives the flexibility of being able to graph equations without having to solve for z first.
Three-dimensional plots have many options. Some have been used inthe above command. To see more information try these two commands.
- Compute the three distinct second order partial derivatives of
at the point using the diff command and then again using the D command.
- Given the function
- Plot the function and the plane on the same graph. Use intervals
- Find the derivative of in the plane.
- Graph the two-dimensional intersection of the plane and .
- Does your two-dimensional graph look like the intersection from your three-dimensional graph? Be sure to use the same ranges to properly compare and rotate the 3-D graph.
- Find the equation of the plane tangent to the surface
at the point
and find the equation of the plane tangent to the graph at
. Plot both tangent planes on the same graph as the surface over the intervals
. Be sure to rotate the graph to see that the planes are tangent to the surface.
Next: About this document ...
Jane E Bouchard