Docsity

Calculus 3 Computer Lab: Exercise 7 - Plotting Functions and Their Gradient Fields, Lab Reports of Mathematics

Toggle sidebar
bg1
APPM 2450 - Calculus 3 Computer Lab Lab Exercise 7
APPM 2450 Calculus 3 Computer Lab
Lab Exercise 7
Create a Mathematica notebook that does all of the following. Feel free to ask your neighbor or your lab
instructor for help if you get stuck. Items with a àare required, items with a Pare optional.
àPlot f(x, y) = e−(x2+y2)cos(πx) sin(y) for −2≤x≤2 and −2≤y≤2.
àUse VectorFieldPlot to plot its gradient field.
àNow use GradientFieldPlot to plot its gradient field.
àLabel the axes on one of these plots.
àUse ContourPlot to plot the level curves of f.
àOverlay the contour plot and the gradient field plot.
àWhat do you notice about the size of the arrows in the gradient field near the local maximums and minimums?
àWhat do you notice about contour lines when the arrows in the gradient field are longest?
àWhat direction do the arrows in the gradient field plot point near a minimum?
àUse GradientFieldPlot3D to plot the gradient field of g(x, y, z) = e−(x2+y2+z2).
àUse ContourPlot3D to plot a few level curves of g(x, y, z) = e−(x2+y2+z2)on separate graphs.
àDelete all output before you save. Save your notebook as YourLastName7.nb and email as an attachment to
your instructor.

Partial preview of the text

Download Calculus 3 Computer Lab: Exercise 7 - Plotting Functions and Their Gradient Fields and more Lab Reports Mathematics in PDF only on Docsity!

APPM 2450 - Calculus 3 Computer Lab Lab Exercise 7

APPM 2450 Calculus 3 Computer Lab Lab Exercise 7

Create a Mathematica notebook that does all of the following. Feel free to ask your neighbor or your lab instructor for help if you get stuck. Items with a à are required, items with a P are optional.

à Plot f (x, y) = e−(x

(^2) +y (^2) ) cos(πx) sin(y) for − 2 ≤ x ≤ 2 and − 2 ≤ y ≤ 2.

à Use VectorFieldPlot to plot its gradient field.

à Now use GradientFieldPlot to plot its gradient field.

à Label the axes on one of these plots.

à Use ContourPlot to plot the level curves of f.

à Overlay the contour plot and the gradient field plot.

à What do you notice about the size of the arrows in the gradient field near the local maximums and minimums?

à What do you notice about contour lines when the arrows in the gradient field are longest?

à What direction do the arrows in the gradient field plot point near a minimum?

à Use GradientFieldPlot3D to plot the gradient field of g(x, y, z) = e−(x

(^2) +y (^2) +z (^2) ) .

à Use ContourPlot3D to plot a few level curves of g(x, y, z) = e−(x

(^2) +y (^2) +z (^2) ) on separate graphs.

à Delete all output before you save. Save your notebook as YourLastName7.nb and email as an attachment to your instructor.