Problem 13-1-26 in Stewart, 5'th ed.

It's pretty darned easy to make a parameterized curve. Here's the one corresponding to our problem.

In[69]:=

R[t_] = {Sin[t], Cos[t], Sin[t]^2} ;

In[58]:=

curve = ParametricPlot3D[R[t], {t, 0, 2Pi}]

[Graphics:HTMLFiles/index_3.gif]

Out[58]=

⁃Graphics3D⁃

Making surfaces is a bit trickier. In this case, the parabolic cylinder z = x^2 is the easier of the two. We let x and y be free. (Note: I picked nice values for the ranges of these, from FormBox[RowBox[{-, 1.5}], TraditionalForm] to FormBox[1.5, TraditionalForm] by trial and error. In the curve above, the interval from 0 to 2π was fairly obvious as a choice.)

RowBox[{parcyl, =, RowBox[{ParametricPlot3D, [, RowBox[{{x, y, x^2}, ,, RowBox[{{, RowBox[{x,  ... Box[{-, 1.5}], ,, 1.5}], }}], ,, RowBox[{{, RowBox[{y, ,, RowBox[{-, 1.5}], ,, 1.5}], }}]}], ]}]}]

[Graphics:HTMLFiles/index_13.gif]

Out[54]=

⁃Graphics3D⁃

To plot the cylinder x^2 + y^2 = 1, I'll parameterize the circular part in the usual way and let z be free.

In[53]:=

RowBox[{cyl, =, RowBox[{ParametricPlot3D, [, RowBox[{{Sin[t], Cos[t], s}, ,, {t, 0, 2Pi}, ,, RowBox[{{, RowBox[{s, ,, RowBox[{-, 1.5}], ,, 1.5}], }}]}], ]}]}]

[Graphics:HTMLFiles/index_18.gif]

Out[53]=

⁃Graphics3D⁃

Here they are together. The viewpoint is inconvenient, so in the second image we change it from Mathematica's default and look at the figure from above (more or less)..

In[59]:=

Show[cyl, parcyl]

[Graphics:HTMLFiles/index_21.gif]

Out[59]=

⁃Graphics3D⁃

In[60]:=

RowBox[{twofromtop, =, RowBox[{Show, [, RowBox[{%, ,, RowBox[{ViewPoint, ->, RowBox[{{, RowBox[{0.151, ,,  , RowBox[{-, 1.241}], ,,  , 3.144}], }}]}]}], ]}]}]

[Graphics:HTMLFiles/index_24.gif]

Out[60]=

⁃Graphics3D⁃

I want to show the curve along with these surfaces  but joining a rendering of a one-dimensional curve with that of a surface can lead to "hidden line" problems, so I'll actually use some small spheres along the path of the curve, sort of like a necklace. We first load a package that has a few predefined shapes.

In[61]:=

<<Graphics`Shapes`

A spehere of radius 2, centered at the origin, made with 20 slices longitudinally and 10 latitudinally.

In[70]:=

Show[Graphics3D[Sphere[2, 20, 10]], AxesTrue]

[Graphics:HTMLFiles/index_27.gif]

Out[70]=

⁃Graphics3D⁃

The same figure but centered at (1, 2, 3).

In[71]:=

Show[Graphics3D[TranslateShape[Sphere[2, 20, 10], {1, 2, 3}]], AxesTrue]

[Graphics:HTMLFiles/index_31.gif]

Out[71]=

⁃Graphics3D⁃

So I'll stick a small "sphere" at points along our original curve.

In[74]:=

pearls = Show[Graphics3D[Table[TranslateShape[Sphere[.08, 5, 5], R[t]], {t, .1, 2Pi, .1}]]]

[Graphics:HTMLFiles/index_34.gif]

Out[74]=

⁃Graphics3D⁃

Wait, pearls are whiter...

In[85]:=

pearls = Show[Graphics3D[{SurfaceColor[RGBColor[1, 1, 1], RGBColor[1, 1, 1]], Table[TranslateShape[Sphere[.08, 5, 5], R[t]], {t, .1, 2Pi, .1}]}]]

[Graphics:HTMLFiles/index_37.gif]

Out[85]=

⁃Graphics3D⁃

Here it is with the cylinder...

In[86]:=

Show[cyl, pearls]

[Graphics:HTMLFiles/index_40.gif]

Out[86]=

⁃Graphics3D⁃

... and with the parabolic cylinder.

In[87]:=

Show[parcyl, pearls]

[Graphics:HTMLFiles/index_43.gif]

Out[87]=

⁃Graphics3D⁃

Showing them all together makes the point.

In[88]:=

Show[cyl, parcyl, pearls]

[Graphics:HTMLFiles/index_46.gif]

Out[88]=

⁃Graphics3D⁃


Created by Mathematica  (September 24, 2003)