MultivariateCalculus
The Student:-MultivariateCalculus package is designed to aid in the teaching and understanding of multivariate calculus concepts. This worksheet demonstrates the basics of this functionality. For more information about the commands in the MultivariateCalculus package, see the command help page. For a general overview, see MultivariateCalculus.
Getting Started
Commands in the MultivariateCalculus package can be referred to using the long form, for example, Student:-MultivariateCalculus:-ApproximateInt.
However, it is recommended that you load the package first and use the shorter command names.
>
|
|
The MultivariateCalculus package contains tutor routines that act as interfaces to the other MultivariateCalculus routines. Each tutor can be called with no parameters, in which case defaults are used. These parameters can be changed easily in the Maplet application.
The following examples show you how to use the MultivariateCalculus routines. For additional examples, see the moreStudentMultivariateCalculus example worksheet.
|
Taylor Approximations
|
|
The MultivariateCalculus package routine TaylorApproximation calculates, plots, or animates Taylor approximations to multivariate functions. The TaylorApproximationTutor routine provides an interface to the TaylorApproximation routine.
>
|
|
>
|
|
The TaylorApproximation routine allows you to calculate, plot, or animate the Taylor approximation, without using the Maplet application interface.
>
|
|
| (1.1) |
The following creates an animation. To run any of the animations in this worksheet:
1.
|
Click the plot. The plot toolbar is displayed.
|
2.
|
In the toolbar, click the Play button.
|
|
Alternatively, right-click (Control-click, on Mac) the plot to display the context menu. Select Animation > Play.
|
>
|
|
|
|
Cross-Sections
|
|
The MultivariateCalculus package has routines to illustrate the concepts of cross-sections. The cross-section routines demonstrate the intersection of any given plane with the curve.
The CrossSectionTutor routine provides and interfaces for the CrossSection.
>
|
|
The CrossSection routine allows you to plot or animate the cross-sections without using the Maplet application interface.
>
|
|
>
|
|
|
|
Directional Derivatives and the Gradient
|
|
The DirectionalDerivative, DirectionalDerivativeTutor, Gradient, and GradientTutor routines of the MultivariateCalculus package are designed to demonstrate and determine directional derivatives and gradients. The tutor routines provide an interface to the DirectionalDerivative and Gradient routines.
>
|
|
>
|
|
>
|
|
The DirectionalDerivative routine allows you to plot, animate, or obtain the value of the directional derivative, without using the Maplet application interface. The Gradient routine allows you to obtain the gradient, or plot the gradient at a point. Using the output=gradplot option, the Gradient routine can simultaneously plot the gradients at multiple points within a region.
>
|
|
>
|
|
>
|
|
>
|
|
>
|
|
|
|
The Hessian and the Second Derivative Test
|
|
The SecondDerivativeTest routine of the MultivariateCalculus package can be used to calculate the Hessian for use in the second derivative test, or to apply the second derivative test to determine the local minima, local maxima, and saddle points.
>
|
|
>
|
|
| (4.2) |
>
|
|
| (4.3) |
>
|
|
| (4.4) |
|
|
Integrals in Multivariate Calculus
|
|
The MultiInt routine of the MultivariateCalculus provides an interface for the construction or evaluation of multiple integrals.
>
|
|
| (5.1) |
>
|
|
>
|
|
| (5.3) |
>
|
|
|
|
Integral Approximations
|
|
Multivariate integral approximations using Riemann sums can be observed using the ApproximateInt and ApproximateIntTutor routines. The ApproximateIntTutor routine provides a Maplet application interface to the ApproximateInt routine.
>
|
|
>
|
|
The ApproximateInt routine allows you to plot, animate, or obtain the value of an integral approximation, without using the Maplet application interface.
>
|
|
>
|
|
>
|
|
|
|
The Jacobian
|
|
The Jacobian of a list of multivariate functions can be calculated using the Jacobian routine of the MultivariateCalculus package. The Jacobian routine can also be used to calculate the determinant of the Jacobian. The Jacobian is used in the application of a change of variables to a multiple integral. Change of variables is explained in the following section.
>
|
|
>
|
|
|
|
Change of Variables
|
|
The ChangeOfVariables and Revert commands can be used to rewrite integrals in a more convenient form, and to revert to the original form if the change was not successful, for example, if the endpoints of integration cannot be determined in terms of the new variables.
>
|
|
| (8.1) |
>
|
|
| (8.2) |
| (8.3) |
The ChangeOfVariables routine can also be applied to triple integrals.
>
|
|
| (8.4) |
>
|
|
| (8.5) |
|
|
Lagrange Multipliers
|
|
The LagrangeMultipliers command calculates or plots the local minima, local maxima, and saddle points of a function subject to constraints, using the method of Lagrange multipliers.
>
|
|
| (9.1) |
>
|
|
>
|
|
|
|
Lines and Planes
|
|
The MultivariateCalculus package supports computations with lines and planes in two and three dimensions, using commands and using the context menu. This functionality will be demonstrated using some problems with answers.
|
Skew lines
|
|
|
Problem
|
|
a) Show that the lines and , where A, B, P, and Q are defined by
and
do not intersect and are not parallel (so they are skew lines);
b) Find the common normal between them.
c) Find the distance between them.
|
|
|
|
|
Solution using the context menu
|
|
Part a)
Form a list of parametric equations for each line, then select Context Menu: Calculus-Multivariate≻Line≻ (then for the second line).
Form a sequence of the line names, select Context Menu: Evaluate and Display Inline, then select Context Menu: Calculus-Multivariate≻Skew (or Parallel or Intersect).
= =
=
=
Part b)
Form a plane parallel to both lines (it will contain the first line). Do this by forming a sequence of the line names, then selecting Context Menu: Evaluate and Display Inline, then select Context Menu: Calculus-Multivariate≻Plane.
=
Now take the normal of this plane: select Context Menu: Calculus-Multivariate≻Normal.
=
Part c)
Form a sequence of the line names, then select Context Menu: Evaluate and Display Inline, then select Context Menu: Calculus-Multivariate≻Distance.
=
|
|
Solution using commands
|
|
Part a)
Define the line objects.
>
|
|
| (10.1.3.1) |
>
|
|
| (10.1.3.2) |
Test skewness with the command AreSkew (or AreParallel or Intersects).
>
|
|
>
|
|
>
|
|
Part b)
Form a plane parallel to both lines (it will contain the first line).
>
|
|
| (10.1.3.6) |
Take the normal of this plane with the command GetNormal.
We can create a plot of these three objects as follows:
>
|
|
Part c)
Use the Distance command.
>
|
|
|
|
|
Intersection of planes
|
|
|
Problem
|
|
a) Find a formula for the line that is the intersection of the planes
and
b) Find an equation for the plane that contains and the point P:.
|
|
|
|
|
Solution using the context menu
|
|
Part a)
Take the equation of each plane (with copy and paste, control-drag, or by retyping it) and create the planes by selecting Context Menu: Calculus-Multivariate≻Plane, then selecting Context Menu: Assign to a Name≻Q[1] or Q[2].
Create the sequence of the two names of planes, select Context Menu: Evaluate and Display Inline, then select Context Menu: Calculus-Multivariate≻Intersection, and finally select Context Menu: Assign to a Name≻.
=
To verify that is indeed contained in the two planes, form a sequence of a plane name and the line name, select Context Menu: Evaluate and Display Inline, then select Context Menu: Calculus-Multivariate≻Contains.
=
=
To get an equation, use the name for the line, select Context Menu: Evaluate and Display Inline, then select Context Menu: Calculus-Multivariate≻Representation... . By choosing one of the forms from the drop down menu, one can select from five different representations:
= (here we selected 'equations')
= (here we selected 'parametric')
= (here we selected 'vectors')
= (here we selected 'combined_vector')
= (here we selected 'symmetric')
Part b)
Create the sequence of the line name and the list of coordinates of the point, select Context Menu: Evaluate and Display Inline, then select Context Menu: Calculus-Multivariate≻Plane..., and finally select Context Menu: Assign to a Name≻Q[3].
=
|
|
Solution using commands
|
|
Part a)
Create the plane objects.
>
|
|
| (10.2.3.1) |
>
|
|
| (10.2.3.2) |
Use the GetIntersection command to compute the intersection.
>
|
|
| (10.2.3.3) |
Use the GetRepresentation commands to get a formula for . Several forms are available:
>
|
|
| (10.2.3.4) |
>
|
|
| (10.2.3.5) |
>
|
|
| (10.2.3.6) |
>
|
|
| (10.2.3.7) |
>
|
|
| (10.2.3.8) |
Part b)
Create the plane object.
>
|
|
| (10.2.3.9) |
To verify that indeed contains both and the point , use the Contains command.
>
|
|
|
|
|
|
Applications
|
|
The MultivariateCalculus package provides routines to calculate quantities such as function average, surface area, and center of mass, using multivariate calculus.
|
Function Average
|
|
The FunctionAverage command returns the integral used to determine the average of a function over a region or calculates the average of the function over the region.
>
|
|
| (11.1.1) |
>
|
|
| (11.1.2) |
>
|
|
| (11.1.3) |
>
|
|
>
|
|
| (11.1.5) |
>
|
|
| (11.1.6) |
|
|
Surface Area
|
|
The SurfaceArea command plots, constructs the integral for, or calculates the surface area of a curve within a region.
>
|
|
>
|
|
| (11.2.1) |
>
|
|
| (11.2.2) |
|
|
Center of Mass
|
|
The CenterOfMass command plots, constructs the integral for, or calculates the center of mass of a curve within a region.
>
|
|
>
|
|
| (11.3.1) |
>
|
|
|
|
Return to Index of Example Worksheets
|