Analytic Geometry › Chapter 7

Parametric Surfaces and Level Sets

Surfaces described by two parameters, by level sets of a function, and the passage between the two descriptions.

7.1Parametric Equations of Surfaces

Definition

A parametric surface is the image of a map (u,v)\mapsto\mathbf r(u,v)=\bigl(x(u,v),y(u,v),z(u,v)\bigr). At a regular point the vector \mathbf r_u\times\mathbf r_v is normal to the surface.

SurfaceParametrization
Graph z=f(x,y)(u,\ v,\ f(u,v))
Cylinder of radius R(R\cos\theta,\ R\sin\theta,\ z)
Sphere of radius R(R\sin\varphi\cos\theta,\ R\sin\varphi\sin\theta,\ R\cos\varphi), 0\le\varphi\le\pi
Torus, radii R>r\bigl((R+r\cos v)\cos u,\ (R+r\cos v)\sin u,\ r\sin v\bigr)

Example

For the cylinder \mathbf r(\theta,z)=(R\cos\theta,R\sin\theta,z): \mathbf r_\theta=(-R\sin\theta,R\cos\theta,0), \mathbf r_z=(0,0,1), and

\mathbf r_\theta\times\mathbf r_z=(R\cos\theta,\ R\sin\theta,\ 0),

which points radially outward, as expected.

Parametric surfaces. The grey curves are the lines u=\text{const} and v=\text{const} of the parametrization. The blue and orange curves pass through the moving point, and the arrow is the normal \mathbf r_u\times\mathbf r_v. Drag to rotate.

7.2Level Curves and Level Surfaces

A function of two variables, f(x,y), gives a height z=f(x,y) above every point of the plane, so its graph is a surface. Level curves describe that surface using only the plane.

Level curve

The level curve of f at the value c is the set \{(x,y):\ f(x,y)=c\}. It is the horizontal trace of the graph at height z=c, seen from above. Drawing several level curves for equally spaced values of c gives a contour map, the same thing as the height lines on a hiking map.

To draw a contour map, choose several values c_1,c_2,\dots, then solve f(x,y)=c_i for each one. Each equation is an ordinary plane curve.

Function f(x,y)Level curve f=cGraph of f
x+yparallel lines x+y=c, equally spaceda tilted plane
x^2+y^2circles of radius \sqrt c for c>0, the origin for c=0, nothing for c<0paraboloid
x^2+4y^2ellipses for c>0, the origin for c=0, nothing for c<0elliptic paraboloid
x^2-y^2hyperbolas for c\neq0, the lines y=\pm x for c=0saddle
xyhyperbolas in quadrants I and III for c>0, in II and IV for c<0, the two axes for c=0saddle
y-x^2parabolas y=x^2+c, all the same shapeparabolic trough

How to read a contour map

  • Close curves mean steep. Where neighbouring level curves are close, f changes quickly. Where they are far apart, f is nearly flat.
  • Different levels never cross. A point cannot have two values of f. A single level curve can cross itself, as x^2-y^2=0 does at the saddle point.
  • Closed loops mark hills and pits. Nested closed curves show a maximum or minimum inside them.
  • The gradient crosses the curves at a right angle. \nabla f is perpendicular to the level curve and points toward larger values of f.

Example: a saddle

Level curves of f=x^2-y^2 and the gradient at P(2,1).

c=1 gives the hyperbola x^2-y^2=1, c=-1 gives y^2-x^2=1, and c=0 gives the lines y=\pm x. At P: f=3 and \nabla f=(2x,-2y)=(4,-2). A tangent direction to the level curve is (1,2), and \nabla f\cdot(1,2)=4-4=0, so the gradient is perpendicular to it.

Example: parabolas

Level curves of f=y-x^2 for c=-1,0,1,2 are the parabolas y=x^2-1,\ y=x^2,\ y=x^2+1,\ y=x^2+2: the same parabola moved up by 1 each time.

The idea extends to three variables. The level surfaces f(x,y,z)=c of f=x^2+y^2-z^2 are exactly the one-sheet, cone and two-sheet hyperboloids of Chapter 6.

Definition and tangent plane

Level curves and the gradient. Each grey curve joins the points where f has one value. Colour shows the sign of f, orange positive and teal negative. Click or drag on the map to move P, or press Play. The blue curve is the level curve through P, and the arrow is \nabla f.

Definition

For f(x,y), a level curve is f(x,y)=c. For f(x,y,z), a level surface is f(x,y,z)=c. The gradient \nabla f is perpendicular to the level set through each point, so the tangent plane to f(x,y,z)=c at P_0 is

\nabla f(P_0)\cdot(\mathbf r-P_0)=0.

Example: level curves

f(x,y)=x^2-y^2. For c\ne0 the level curves are hyperbolas; for c=0 the level curve is the pair of lines y=\pm x.

Example: level surfaces

f(x,y,z)=x^2+y^2-z^2. The level surface is a one-sheet hyperboloid for c>0, a cone for c=0 and a two-sheet hyperboloid for c<0. This reproduces Section 6.5 in a single family.

Example: tangent plane

Tangent plane to x^2+y^2+z^2=14 at (1,2,3). Here \nabla f=(2x,2y,2z)=(2,4,6), so

2(x-1)+4(y-2)+6(z-3)=0\iff x+2y+3z=14.

7.3Cartesian and Parametric Representations of Surfaces

To go from parametric to Cartesian form, eliminate the parameters. To go the other way, choose parameters that make the equation hold identically, usually by using an identity such as \cos^2+\sin^2=1 or \cosh^2-\sinh^2=1.

CartesianParametric
x^2+y^2+z^2=R^2(R\sin\varphi\cos\theta,\ R\sin\varphi\sin\theta,\ R\cos\varphi)
\frac{x^2}{a^2}+\frac{y^2}{b^2}+\frac{z^2}{c^2}=1(a\sin\varphi\cos\theta,\ b\sin\varphi\sin\theta,\ c\cos\varphi)
z=x^2+y^2(\rho\cos\theta,\ \rho\sin\theta,\ \rho^2)
z^2=x^2+y^2, z\ge0(\rho\cos\theta,\ \rho\sin\theta,\ \rho)
\frac{x^2}{a^2}+\frac{y^2}{b^2}-\frac{z^2}{c^2}=1(a\cosh u\cos v,\ b\cosh u\sin v,\ c\sinh u)

Example: verification

Check the one-sheet hyperboloid parametrization. With x=a\cosh u\cos v, y=b\cosh u\sin v, z=c\sinh u:

\frac{x^2}{a^2}+\frac{y^2}{b^2}-\frac{z^2}{c^2}=\cosh^2u\,(\cos^2v+\sin^2v)-\sinh^2u=\cosh^2u-\sinh^2u=1.

Example: elimination

Eliminate the parameters from (\rho\cos\theta,\rho\sin\theta,\rho^2): x^2+y^2=\rho^2=z. The surface is the paraboloid z=x^2+y^2.

Q7Chapter 7: Quiz and Problems

Common student mistakes

Common error\nabla f points along the level curve

Correct\nabla f is perpendicular to the level set

The tangent line or plane is the one with \nabla f as its normal.

Common errorSphere: \varphi\in[0,2\pi]

Correct\varphi\in[0,\pi] and \theta\in[0,2\pi]

With \varphi up to 2\pi every point is covered twice.

Common error(\rho\cos\theta,\rho\sin\theta,\rho) is the whole cone z^2=x^2+y^2

CorrectIt is the upper nappe z\ge0

Eliminating the parameter loses the sign restriction. Allow \rho<0 for both nappes.

Common errorLevel surfaces f=c_1 and f=c_2 can cross

CorrectThey never meet if c_1\ne c_2

A point cannot have two different values of f.

Multiple-choice quiz

1 (u\cos v,\ u\sin v,\ u^2) parametrizes
2 The gradient of f=x^2+y^2+z^2 at (1,2,2) is
3 The level set x^2+y^2-z^2=c with c<0 is
4 The tangent plane to x^2+y^2+z^2=9 at (2,1,2) is
5 In (R\sin\varphi\cos\theta,\ R\sin\varphi\sin\theta,\ R\cos\varphi) the angle \varphi is
6 The level curves of f=x^2+y^2 at c>0 are
7 The level curve xy=c with c>0 lies in
8 Where level curves of a contour map are close together, f is
9 The level curves of f=y-x^2 are
10 The level curve of f=2x+y through (1,2) is
Answered 0 of 10 · Correct 0

Written problems

Problem 1. Eliminate u,v from (2\cosh u\cos v,\ 3\cosh u\sin v,\ \sinh u). (4 marks)

Show solution
\frac{x^2}{4}+\frac{y^2}{9}-z^2=\cosh^2u\,(\cos^2v+\sin^2v)-\sinh^2u=1.

The surface is the one-sheet hyperboloid \dfrac{x^2}{4}+\dfrac{y^2}{9}-z^2=1.

Problem 2. Find the tangent plane to z=x^2+y^2 at (1,1,2). (4 marks)

Show solution

Write F=x^2+y^2-z. Then \nabla F=(2x,2y,-1)=(2,2,-1) at the point, so

2(x-1)+2(y-1)-(z-2)=0\iff 2x+2y-z=2.

Check: 2+2-2=2.

Problem 3. Describe the level curves of f=x^2+4y^2 for c=0,4,16. (4 marks)

Show solution

c=0: only the origin. c=4: \dfrac{x^2}{4}+y^2=1, an ellipse with semi-axes 2 and 1. c=16: \dfrac{x^2}{16}+\dfrac{y^2}{4}=1, an ellipse with semi-axes 4 and 2. The ellipses have the same shape and are nested around the origin.

Problem 4. For f=x^2y, find \nabla f at (1,2) and the tangent line to the level curve through that point. (4 marks)

Show solution

\nabla f=(2xy,\ x^2)=(4,1) and f(1,2)=2. The tangent line is perpendicular to the gradient: 4(x-1)+1(y-2)=0, that is 4x+y=6.

Problem 5. Sketch, by finding f=c, the level curves of f=x^2-y^2 for c=-1,0,1. Where is the gradient zero? (5 marks)

Show solution

c=1: x^2-y^2=1, a hyperbola opening along the x-axis. c=-1: y^2-x^2=1, opening along the y-axis. c=0: the lines y=\pm x.

\nabla f=(2x,-2y)=\mathbf0 only at the origin, the saddle point where the level curve c=0 crosses itself.

Problem 6. Write a parametrization of the surface z=x^2-y^2 and find a normal vector at (1,1,0). (4 marks)

Show solution

\mathbf r(u,v)=(u,\ v,\ u^2-v^2). Then \mathbf r_u=(1,0,2u), \mathbf r_v=(0,1,-2v) and \mathbf r_u\times\mathbf r_v=(-2u,\ 2v,\ 1).

At (1,1,0) the normal is (-2,2,1).

Short essay

Essay. Compare parametric and implicit (Cartesian) representations of a surface. What is each best at? (about 150 words)

Show model answer

A parametric form \mathbf r(u,v) generates points directly, which makes it ideal for plotting, for restricting to a patch and for computing normals \mathbf r_u\times\mathbf r_v. An implicit form f(x,y,z)=c tests membership at once and gives the normal as \nabla f, so it suits inside/outside questions and intersections of solids. Converting from parametric to implicit means eliminating the parameters. Converting the other way means finding parameters that satisfy the equation identically, often through \cos^2+\sin^2=1 or \cosh^2-\sinh^2=1. A good answer gives one example in each direction.