Function surfaces in 3D

A translucent blue paraboloid on labelled axes with amber and teal level rings and a marked point with guides to the axes.Drag to turn

A function of two variables, z = f(x, y), assigns one output to each input pair (x, y). Its graph is the set of points (x, y, f(x, y)) in three-dimensional space, which is usually a surface.

The graph as a surface over the plane

The domain of f(x, y) is the set of input pairs (x, y) where the formula is defined. Each pair is a point in the xy-plane, and the function value gives the height z above or below it.

When f is continuous on a region, the graph is usually a connected surface. Each point (x, y) in the domain has exactly one z, so the vertical line test carries over.

Building a surface from traces and level curves

A trace is the curve made by fixing one variable. Setting y = c gives z = f(x, c), a curve in a vertical plane. Several traces together show the shape of the surface.

A level curve is the set of points where f(x, y) = k for a constant k. It is the trace in the horizontal plane z = k, drawn in the xy-plane. Several level curves together form a contour map.

Worked example: z = x² + y²

Set x = 0. Then z = y², a parabola. Set y = 0. Then z = x², also a parabola. Both open upward from the origin, so the origin is the lowest point.

Now take level curves. For z = 1, x² + y² = 1 is a circle of radius 1. For z = 4, x² + y² = 4 is a circle of radius 2. Radius is the square root of k, so the circles get larger as k rises. For evenly spaced k they also get closer together, which shows the surface steepening away from the origin. The surface is a paraboloid. At (1, 2), the height is 1 + 4 = 5.

No level curve exists for negative k, since x² + y² cannot be below 0. The range is z ≥ 0.

Common misconceptions

A level curve is not the graph itself. It is a flat curve in the xy-plane that records the input points sharing one output.

A single trace does not give the whole shape. The surface z = x² + y² and the cylinder z = x² share the same trace at y = 0. Several traces in different directions are needed.

Where function surfaces appear

Surfaces model quantities that depend on two inputs, such as temperature over a map. Contour maps of terrain are level curves of an elevation function.

Partial derivatives give slopes along traces, the gradient vector points across level curves, and double integrals measure volume under a surface. Finding highest or lowest points is the basis of optimization with several variables.

Key terms

Domain
The set of input pairs (x, y) for which f(x, y) is defined.
Graph
The set of points (x, y, f(x, y)) in three-dimensional space.
Trace
The curve formed by intersecting the surface with a plane where one variable is fixed.
Level curve
The set of points in the xy-plane where f(x, y) equals a constant k.
Contour map
A drawing of several level curves for evenly spaced values of k.
Paraboloid
A bowl-shaped surface such as z = x² + y², whose vertical traces are parabolas and whose horizontal traces are circles (or ellipses for a general elliptic paraboloid).

Common questions

How is a level curve different from a trace?

A trace is a curve on the surface at a fixed z, x or y. A level curve is the trace for fixed z, shown flattened onto the xy-plane.

How do I find the domain of a two-variable function?

Exclude input pairs that make the formula undefined. For f(x, y) = √(4 − x² − y²), the domain is x² + y² ≤ 4, a disk of radius 2.

Why do closely spaced contours mean a steep surface?

Neighbouring curves differ by the same height step. When they are close, that change happens over a short distance, so the slope is large.

Learn this with a tutor

Sidechair's AI tutor will teach this topic in 3D. Join the waitlist for early access.

We'll only email you about Sidechair. Read our privacy policy.