Next: About this document ...
The purpose of this lab is to acquaint you with using Maple to compute partial derivatives.
When differentiating 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 first order partial derivatives:
. 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 commands below show examples of 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
. 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 to find the tangent plane to the function
. 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 eval or 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.
The horizontal plane at that point would simply be
. Below is how to plot the surface and the horizontal tangent plane.
If is not explicitly solved for but assumed to be a function of
, then the equation can be defined implicitly. Note the difference in the syntax for defining the surface for the implicitplot command. An equal sign must be included in the equation and defined as an expression, not a function. This gives the flexibility of being able to graph equations without having to solve for
The tangent plane to an implicitly defined surface
is given below:
To find the tangent plane to the sphere
at the point
is positive, you would first need to find the coordinating
value for the
ordered pair. Below is how you would do this in Maple as well as find and plot the tangent plane implicitly.
- Compute the three distinct second order partial derivatives of
at the point using the diff command and then again using the D command.
- Find the plane tangent to the given surface at .
- Plot the surface and the tangent plane on the same graph and rotate the 3-D plot to show the point of tangency. Use plotting ranges
- Find the point where the tangent plane to the given surface would be horizontal.
- Plot the surface and the horizontal tangent plane on the same graph and rotate the 3-D plot to show the point of tangency. Use the same plotting ranges as above.
- Use implicit methods to find and plot the plane tangent to the ellipsoid
at the point . Use plotting ranges
Next: About this document ...
Dina J. Solitro-Rassias