Docsity

Calculus 3 Lab: Solving Quadratics, Plots, and Critical Points with Mathematica, Lab Reports of Mathematics

Toggle sidebar
bg1
APPM 2450 - Calculus 3 Computer Lab Lab Exercise 4
APPM 2450 Calculus 3 Computer Lab
Lab Exercise 4
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.
àUse Solve to solve the quadratic equation, a∗x2+b∗x+c= 0. Remember to use a double equals sign! ==.
Will Solve work on a general cubic, a∗x3+b∗x2+c∗x+d= 0?
àDefine f(x) = x3−ex+ cos(10x). Remember (once again) that exis entered in Mathematica as Exp[x].
àMake a nice plot of y=f(x) for −4≤x≤4.
àUse Solve to solve f(x) = 0. If for some reason Solve does not work, try FindRoot. Remember the syntax
for FindRoot is FindRoot[f[x]==0,{x,guess-for-x}]. Be sure to find all the roots.
àTry to solve the system of equations,
x2+y2= 1
2x+ 3y= 2
Type ?Solve, click More, scroll down to Further Examples and open the cell named
Poly. equations in more than one variable for a similar example.
àDefine f(x, y) = e2y2
−y4
−x2+0.5y.
àCalculate the following: ∂f
∂x ,∂f
∂y ,∂2f
∂x2,∂2f
∂x∂y ,∂2f
∂y2
àMake a nice plot of f(x, y). You will have to choose your domain (xand yvalues to plot over), set your
PlotRange, and use any other options that are appropriate. Label your axes!
àMake a contour plot of f(x, y).
àUse Solve to solve ∇f=0, thus finding critical points.
àYou should have found 3 critical points above. Make a 3D plot with a “zoomed in” window around each one
(total of 3 plots) so you can clearly see what type of critical points you found.
PUse the second derivative test to prove one the critical point near (x, y) = (0,−1) is indeed a maximum.
àDelete all output before you save. Save your notebook as YourLastName4.nb and email as an attachment to
your instructor.

Partial preview of the text

Download Calculus 3 Lab: Solving Quadratics, Plots, and Critical Points with Mathematica and more Lab Reports Mathematics in PDF only on Docsity!

APPM 2450 - Calculus 3 Computer Lab Lab Exercise 4

APPM 2450 Calculus 3 Computer Lab Lab Exercise 4

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.

à Use Solve to solve the quadratic equation, a ∗ x^2 + b ∗ x + c = 0. Remember to use a double equals sign! ==. Will Solve work on a general cubic, a ∗ x^3 + b ∗ x^2 + c ∗ x + d = 0?

à Define f (x) = x^3 − ex^ + cos(10x). Remember (once again) that ex^ is entered in Mathematica as Exp[x].

à Make a nice plot of y = f (x) for − 4 ≤ x ≤ 4.

à Use Solve to solve f (x) = 0. If for some reason Solve does not work, try FindRoot. Remember the syntax for FindRoot is FindRoot[f[x]==0,{x,guess-for-x}]. Be sure to find all the roots.

à Try to solve the system of equations, (^) { x^2 + y^2 = 1 2 x + 3y = 2 Type ?Solve, click More, scroll down to Further Examples and open the cell named Poly. equations in more than one variable for a similar example.

à Define f (x, y) = e^2 y (^2) −y (^4) −x (^2) +0. 5 y .

à Calculate the following: ∂f∂x , ∂f∂y , ∂

(^2) f ∂x^2 ,^

∂^2 f ∂x∂y ,^

∂^2 f ∂y^2 à Make a nice plot of f (x, y). You will have to choose your domain (x and y values to plot over), set your PlotRange, and use any other options that are appropriate. Label your axes!

à Make a contour plot of f (x, y).

à Use Solve to solve ∇f = 0 , thus finding critical points.

à You should have found 3 critical points above. Make a 3D plot with a “zoomed in” window around each one (total of 3 plots) so you can clearly see what type of critical points you found.

P Use the second derivative test to prove one the critical point near (x, y) = (0, −1) is indeed a maximum.

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