Contour PlotsWorksheet by Russell Blyth, email: blythrd@slu.eduQyZJKHJlc3RhcnRHJSpwcm90ZWN0ZWRHIiIiLUkld2l0aEc2IjYjSSZwbG90c0c2JEYkSShfc3lzbGliR0YoISIiThe contourplot and contourplot3d commands allow us to view level curves of functions. We start with a nice example.contourplot(x^2+y^2, x = -3 .. 3, y = -3 .. 3);Note that the darker (red) contours are at lower levels and the lighter (yellow) contours are at higher levels.Based on the contour plot, describe the shape before moving on to the next command:To see the surface at the same time, use contourplot3d:contourplot3d(x^2+y^2, x = -3 .. 3, y = -3 .. 3, axes = normal, filled = true, transparency = .2);Rotate the view of the 3d graph so you are looking down the z-axis (set both NiNJJHBoaUc2Ig== and NiNJJnRoZXRhRzYi to 0); also set filled=false to remove the surface.You can specify the heights at which level curves should be drawn using the contours option, and you can specify the color gradient to be used using the coloring option:contourplot3d(x^2+y^2, x = -3 .. 3, y = -3 .. 3, contours = [0, 1, 2, 4, 5], axes = normal, filled = true, transparency = .2, coloring = [blue, green]);Exercises1) Examine the contours of the function NiMvSSJ6RzYiLCgqJClJInhHRiUiIiMiIiJGKyokKUkieUdGJUYqRitGKyomRihGK0YtRishIiI= for the domain x = -4..4 and y = -4..4.contourplot(x^2+y^2-x^2*y^2, x = -4 .. 4, y = -4 .. 4, contours = [-4, -3, -2, -1, 0, .25, .5, .75, 1, 2, 3, 4], grid = [50, 50]);Write a sentence or to describing the surface before executing the next command:contourplot3d(x^2+y^2-x^2*y^2, x = -4 .. 4, y = -4 .. 4, view = -5 .. 5, contours = [-4, -3, -2, -1, 0, .25, .5, .75, 1, 2, 3, 4], grid = [50, 50], axes = normal);If the new plot gives you additional insight, modify your description of the surface. Do this before executing the next command.contourplot3d(x^2+y^2-x^2*y^2, x = -4 .. 4, y = -4 .. 4, view = -5 .. 5, contours = [-4, -3, -2, -1, 0, .25, .5, .75, 1, 2, 3, 4], grid = [50, 50], filled = true, axes = normal);How well does the surface match your description based on the contour plots?2) Examine the contours of the function NiMvSSJ6RzYiLCYqJClJInhHRiUiIiQiIiJGKyomRilGKyokKUkieUdGJSIiI0YrRishIiI= for the domain x=-3..3 and y=-4..4 in the same way. (Use the same sequence of plots and answer the same questions as for Exercise 1.)LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYjLUkjbWlHRiQ2JVEhRicvJSdpdGFsaWNHUSV0cnVlRicvJSxtYXRodmFyaWFudEdRJ2l0YWxpY0YnThe option style=patchcontour in a standard plot3d command shows contours, but you lose the ability to control the contour levels:plot3d(x^3-x*y^2, x = -3 .. 3, y = -4 .. 4, axes = normal, style = patchcontour, transparency = .2);