In Chap. 2, we saw how to plot a variety of two-dimensional objects. Almost all of the functions that were discussed there have a version that works similarly for three-dimensional objects. In this chapter we’ll see how to plot curves and surfaces in three-dimensional space as well as other kinds of objects.

Let’s start with the **Plot3D** function which is the analog of the **Plot** function. We can use **Plot3D** to plot the graph of a two-variable function in three-dimensional space. Example 6.1.1 shows the graph of the function *x*^{2} + *y*^{2}. The syntax for **Plot3D** is very similar to that of its two-dimensional cousin **Plot**. The first argument is the function that we want to plot the graph of, in this ...

Start Free Trial

No credit card required