evan's notes
cal 3discreteodeenv systems

On this page

  • Walkthrough
  • Distance to a plane follows its normal
  • An equation can describe a whole shape
  • Read a surface one slice at a time
  • Two trace patterns worth recognizing
  • Distance from a point to a plane
  • Example
  • Level curves and level surfaces
  • Sketching with traces
  • The double cone
  • Horizontal traces
  • Vertical traces
  • The hyperbolic paraboloid
  • Horizontal traces
  • Fixed-xxx traces
  • Fixed-yyy traces
  • Quadric surfaces

Intermediate Calculus

§5 Distance and Quadric Surfaces

Evan Luo · Sep 23, 2026

Intermediate Calculus

§5 Distance and Quadric Surfaces

Evan LuoToday

9 min read

Walkthrough

Distance to a plane follows its normal

A plane's normal vector points in the one direction perpendicular to the plane. That makes it the right direction for measuring the shortest distance from a point to the plane.

Choose any point QQQ on the plane and let PPP be the point outside it. The vector QP→\overrightarrow{QP}QP​ may be slanted, so keep only its scalar component along a nonzero normal vector n\mathbf nn:

d(P,plane)=∣QP→⋅n∣∥n∥.d(P,\text{plane})=\frac{|\overrightarrow{QP}\cdot\mathbf n|}{\|\mathbf n\|}.d(P,plane)=∥n∥∣QP​⋅n∣​.

For P=(1,2,1)P=(1,2,1)P=(1,2,1) and the plane x+y+z=1x+y+z=1x+y+z=1, take Q=(1,0,0)Q=(1,0,0)Q=(1,0,0) and n=⟨1,1,1⟩\mathbf n=\langle1,1,1\ranglen=⟨1,1,1⟩. Then QP→=⟨0,2,1⟩\overrightarrow{QP}=\langle0,2,1\rangleQP​=⟨0,2,1⟩, so the distance is 3/3=33/\sqrt3=\sqrt33/3​=3​.

An equation can describe a whole shape

An equation in two variables usually leaves one degree of freedom. Its solutions form a curve in the plane. For example,

x2+y2=1x^2+y^2=1x2+y2=1

collects every point at distance 111 from the origin, so it describes the unit circle.

An equation in three variables usually leaves two degrees of freedom. Its solutions form a surface in space. The equation

x2+y2+z2=1x^2+y^2+z^2=1x2+y2+z2=1

describes the unit sphere.

These are both level sets. A level set is the collection of inputs where a function has one fixed value. Thus f(x,y)=kf(x,y)=kf(x,y)=k usually describes a level curve in R2\mathbb R^2R2, while f(x,y,z)=kf(x,y,z)=kf(x,y,z)=k usually describes a level surface in R3\mathbb R^3R3.

Read a surface one slice at a time

A complicated three-dimensional equation becomes easier to picture when one coordinate is held constant. Each resulting cross-section is called a trace.

For a surface in (x,y,z)(x,y,z)(x,y,z)-space:

  • an xxx-trace sets x=ax=ax=a and lies in the plane x=ax=ax=a;
  • a yyy-trace sets y=by=by=b and lies in the plane y=by=by=b;
  • a zzz-trace sets z=cz=cz=c and lies in the horizontal plane z=cz=cz=c.

The fixed coordinate tells you both what to substitute and where the resulting curve lives. After finding several traces, fit the families together into one surface.

Two trace patterns worth recognizing

For the cone

x2+y2−z2=0,x^2+y^2-z^2=0,x2+y2−z2=0,

horizontal traces are circles:

z=c⟹x2+y2=c2.z=c\quad\Longrightarrow\quad x^2+y^2=c^2.z=c⟹x2+y2=c2.

Their radius is ∣c∣|c|∣c∣, so the circles widen at a constant rate above and below the origin. Vertical traces are pairs of lines at the center and hyperbolas away from it. Together, these slices force a double cone.

For the surface

z=y2−x2,z=y^2-x^2,z=y2−x2,

fixing xxx produces upward-opening parabolas, while fixing yyy produces downward-opening parabolas. The surface therefore rises in one direction and falls in the perpendicular direction. This opposite curvature creates a hyperbolic paraboloid, usually called a saddle.

Distance from a point to a plane

The shortest route from a point to a plane is perpendicular to the plane. If PPP has position vector p\mathbf pp, choose any point QQQ on the plane with position vector q\mathbf qq. For a nonzero normal vector n\mathbf nn, the displacement from the plane to PPP is

QP→=p−q.\overrightarrow{QP}=\mathbf p-\mathbf q. QP​=p−q.

Its signed component in the normal direction is

comp⁡nQP→=QP→⋅n∥n∥.\operatorname{comp}_{\mathbf n}\overrightarrow{QP} =\frac{\overrightarrow{QP}\cdot\mathbf n}{\|\mathbf n\|}. compn​QP​=∥n∥QP​⋅n​.

Distance cannot be negative, so take the absolute value:

d(P,plane)=∣QP→⋅n∣∥n∥.\boxed{ d(P,\text{plane}) =\frac{|\overrightarrow{QP}\cdot\mathbf n|}{\|\mathbf n\|} }. d(P,plane)=∥n∥∣QP​⋅n∣​​.

The choice of QQQ does not matter. The vector between any two points in the plane is orthogonal to n\mathbf nn, so changing QQQ adds nothing to the dot product.

For a plane in the form

ax+by+cz=dax+by+cz=d ax+by+cz=d

and a point P=(x1,y1,z1)P=(x_1,y_1,z_1)P=(x1​,y1​,z1​), use the normal vector n=⟨a,b,c⟩\mathbf n=\langle a,b,c\ranglen=⟨a,b,c⟩. The projection formula becomes

d(P,plane)=∣ax1+by1+cz1−d∣a2+b2+c2.\boxed{ d(P,\text{plane}) =\frac{|ax_1+by_1+cz_1-d|}{\sqrt{a^2+b^2+c^2}} }. d(P,plane)=a2+b2+c2​∣ax1​+by1​+cz1​−d∣​​.

Example

Find the distance from

P=(1,2,1)P=(1,2,1) P=(1,2,1)

to the plane

x+y+z=1.x+y+z=1. x+y+z=1.

The plane has normal vector

n=⟨1,1,1⟩.\mathbf n=\langle1,1,1\rangle. n=⟨1,1,1⟩.

Choose Q=(1,0,0)Q=(1,0,0)Q=(1,0,0) on the plane. Then

QP→=⟨1,2,1⟩−⟨1,0,0⟩=⟨0,2,1⟩.\overrightarrow{QP} =\langle1,2,1\rangle-\langle1,0,0\rangle =\langle0,2,1\rangle. QP​=⟨1,2,1⟩−⟨1,0,0⟩=⟨0,2,1⟩.

Now calculate the normal component:

QP→⋅n=⟨0,2,1⟩⋅⟨1,1,1⟩=3,∥n∥=12+12+12=3.\begin{aligned} \overrightarrow{QP}\cdot\mathbf n &=\langle0,2,1\rangle\cdot\langle1,1,1\rangle =3,\\ \|\mathbf n\|&=\sqrt{1^2+1^2+1^2}=\sqrt3. \end{aligned} QP​⋅n∥n∥​=⟨0,2,1⟩⋅⟨1,1,1⟩=3,=12+12+12​=3​.​

Therefore,

d(P,plane)=33=3.\boxed{ d(P,\text{plane}) =\frac{3}{\sqrt3}=\sqrt3 }. d(P,plane)=3​3​=3​​.

The coordinate formula gives the same result directly:

∣1+2+1−1∣12+12+12=3.\frac{|1+2+1-1|}{\sqrt{1^2+1^2+1^2}} =\sqrt3. 12+12+12​∣1+2+1−1∣​=3​.

Level curves and level surfaces

Let kkk be a constant. For a function of two variables, the equation

f(x,y)=kf(x,y)=k f(x,y)=k

selects all points in the plane where fff has the value kkk. This set is called a level curve when it is a curve.

An ordinary graph can be written this way too. If y=g(x)y=g(x)y=g(x), define

f(x,y)=y−g(x).f(x,y)=y-g(x). f(x,y)=y−g(x).

Then

f(x,y)=0⟺y=g(x).f(x,y)=0 \quad\Longleftrightarrow\quad y=g(x). f(x,y)=0⟺y=g(x).

So a familiar graph is the zero level curve of a function of two variables.

For a function of three variables, the equation

f(x,y,z)=kf(x,y,z)=k f(x,y,z)=k

selects points in space. When the solution set has two dimensions, it is a level surface. For example,

x2+y2+z2=1x^2+y^2+z^2=1 x2+y2+z2=1

is the sphere of radius 111 centered at (0,0,0)(0,0,0)(0,0,0).

The words “usually a curve” and “usually a surface” matter. A level set can collapse to a point, split into pieces, or even be empty. Its actual shape comes from the equation.

Sketching with traces

A trace is the intersection of a surface with a coordinate-parallel plane. To calculate one, hold a coordinate fixed:

x=a,y=b,orz=c.x=a,\qquad y=b,\qquad\text{or}\qquad z=c. x=a,y=b,orz=c.

This gives three families:

Fixed coordinatePlane containing the traceRemaining coordinates
x=ax=ax=aparallel to the yzyzyz-planeyyy and zzz
y=by=by=bparallel to the xzxzxz-planexxx and zzz
z=cz=cz=cparallel to the xyxyxy-planexxx and yyy

A reliable sketching process is:

  1. Find the traces in the three coordinate planes by setting x=0x=0x=0, y=0y=0y=0, and z=0z=0z=0.
  2. Try nearby values such as ±1\pm1±1 and ±2\pm2±2 to see how each family changes.
  3. Identify each two-dimensional curve and record the plane it belongs to.
  4. Use symmetry and the movement of the vertices or radii to assemble the surface.

Do not draw every trace in the same plane. For example, x=1x=1x=1 and x=−1x=-1x=−1 may give identical equations in yyy and zzz, but they lie in two different parallel planes in space.

The double cone

Consider

x2+y2−z2=0.\boxed{x^2+y^2-z^2=0}. x2+y2−z2=0​.

Equivalently,

x2+y2=z2.x^2+y^2=z^2. x2+y2=z2.

Horizontal traces

Set z=cz=cz=c. The trace equation is

z=c⟹x2+y2=c2.\boxed{z=c\quad\Longrightarrow\quad x^2+y^2=c^2}. z=c⟹x2+y2=c2​.

This is a circle in the plane z=cz=cz=c, centered on the zzz-axis, with radius ∣c∣|c|∣c∣.

  • At z=0z=0z=0, the equation x2+y2=0x^2+y^2=0x2+y2=0 gives only the origin.
  • At z=±1z=\pm1z=±1, the traces are circles of radius 111.
  • At z=±2z=\pm2z=±2, the traces are circles of radius 222.

The same circle appears at heights ccc and −c-c−c, so the surface is symmetric across the xyxyxy-plane. Because the radius grows in direct proportion to ∣z∣|z|∣z∣, the sides are straight rather than curved outward.

Vertical traces

To examine the vertical cross-sections, set y=cy=cy=c. Then

x2+c2−z2=0,x^2+c^2-z^2=0, x2+c2−z2=0,

which can be rearranged as

y=c⟹z2−x2=c2.\boxed{y=c\quad\Longrightarrow\quad z^2-x^2=c^2}. y=c⟹z2−x2=c2​.

At c=0c=0c=0, this factors:

z2−x2=(z−x)(z+x)=0,z^2-x^2=(z-x)(z+x)=0, z2−x2=(z−x)(z+x)=0,

so the central trace is the pair of lines

z=±x.z=\pm x. z=±x.

For c≠0c\ne0c=0, the trace is a hyperbola opening in the positive and negative zzz-directions. For instance,

y=±1⟹z=±x2+1,y=\pm1 \quad\Longrightarrow\quad z=\pm\sqrt{x^2+1}, y=±1⟹z=±x2+1​,

and

y=±2⟹z=±x2+4.y=\pm2 \quad\Longrightarrow\quad z=\pm\sqrt{x^2+4}. y=±2⟹z=±x2+4​.

The xxx-traces are identical after swapping xxx and yyy:

x=c⟹z2−y2=c2.x=c \quad\Longrightarrow\quad z^2-y^2=c^2. x=c⟹z2−y2=c2.

These circular and hyperbolic slices fit together into a double circular cone around the zzz-axis.

Traces assemble the double cone

Traces of a double coneHorizontal traces are circles whose radii equal the absolute value of z. Vertical traces are crossing lines at y equals zero and hyperbolas at nonzero fixed y. Combining them gives a double cone around the z-axis.Horizontal traces
x
y
z=0
z=±1
z=±2
Vertical traces
x
z
y=0
y=±1
y=±2
Assembled surface
x
y
z
x2+y2−z2=0
At z=c, the circle has radius ∣c∣. Vertical slices show the two lines at c=0 and hyperbolas away from the origin. Those traces fit together into the two halves of the cone.

The hyperbolic paraboloid

Now consider

z=y2−x2.\boxed{z=y^2-x^2}. z=y2−x2​.

The signs are the key. The y2y^2y2 term raises the surface as ∣y∣|y|∣y∣ grows, while the −x2-x^2−x2 term lowers it as ∣x∣|x|∣x∣ grows.

Horizontal traces

Set z=cz=cz=c. Then

z=c⟹y2−x2=c.\boxed{z=c\quad\Longrightarrow\quad y^2-x^2=c}. z=c⟹y2−x2=c​.

The sign of ccc decides how the hyperbola opens:

  • If c>0c>0c>0, the hyperbola opens in the positive and negative yyy-directions.

  • If c=0c=0c=0, the equation factors as

    y2−x2=(y−x)(y+x)=0,y^2-x^2=(y-x)(y+x)=0, y2−x2=(y−x)(y+x)=0,

    giving the two lines y=±xy=\pm xy=±x.

  • If c<0c<0c<0, rewrite the equation as x2−y2=−cx^2-y^2=-cx2−y2=−c; the hyperbola opens in the positive and negative xxx-directions.

For example,

z=1:y2−x2=1,z=2:y2−x2=2,z=−1:x2−y2=1,z=−2:x2−y2=2.\begin{aligned} z=1&:\quad y^2-x^2=1,\\ z=2&:\quad y^2-x^2=2,\\ z=-1&:\quad x^2-y^2=1,\\ z=-2&:\quad x^2-y^2=2. \end{aligned} z=1z=2z=−1z=−2​:y2−x2=1,:y2−x2=2,:x2−y2=1,:x2−y2=2.​

The two crossing lines at z=0z=0z=0 are the boundary between the two opening directions.

Fixed-xxx traces

Set x=ax=ax=a. The remaining variables satisfy

x=a⟹z=y2−a2.\boxed{x=a\quad\Longrightarrow\quad z=y^2-a^2}. x=a⟹z=y2−a2​.

Each trace is an upward-opening parabola in the plane x=ax=ax=a. Its vertex is

(a,0,−a2).(a,0,-a^2). (a,0,−a2).

The first few traces are

x=0:z=y2,x=±1:z=y2−1,x=±2:z=y2−4.\begin{aligned} x=0&:\quad z=y^2,\\ x=\pm1&:\quad z=y^2-1,\\ x=\pm2&:\quad z=y^2-4. \end{aligned} x=0x=±1x=±2​:z=y2,:z=y2−1,:z=y2−4.​

As ∣a∣|a|∣a∣ grows, the vertex moves downward.

Fixed-yyy traces

Set y=by=by=b. This gives

y=b⟹z=b2−x2.\boxed{y=b\quad\Longrightarrow\quad z=b^2-x^2}. y=b⟹z=b2−x2​.

Each trace is a downward-opening parabola in the plane y=by=by=b, with vertex

(0,b,b2).(0,b,b^2). (0,b,b2).

For example,

y=0:z=−x2,y=±1:z=1−x2,y=±2:z=4−x2.\begin{aligned} y=0&:\quad z=-x^2,\\ y=\pm1&:\quad z=1-x^2,\\ y=\pm2&:\quad z=4-x^2. \end{aligned} y=0y=±1y=±2​:z=−x2,:z=1−x2,:z=4−x2.​

As ∣b∣|b|∣b∣ grows, the vertex moves upward.

Opposite parabolic traces create the saddle

Traces of a hyperbolic paraboloidHorizontal slices are hyperbolas that switch opening direction at z equals zero. Fixed x slices are upward-opening parabolas, while fixed y slices are downward-opening parabolas. A three-dimensional wireframe combines both families into a saddle.Horizontal traces
x
y
z=1,2
z=0
z=−1,−2
Vertical traces
y or x
z
x=a
y=b
Assembled surface
x
y
z
z=y2−x2
Fixed x gives upward-opening parabolas, while fixedy gives downward-opening parabolas. Horizontal slices are hyperbolas, switching their opening direction as the level passes through z=0.

The origin is the saddle point. Along the yyy-axis, where x=0x=0x=0, the surface has z=y2≥0z=y^2\ge0z=y2≥0. Along the xxx-axis, where y=0y=0y=0, it has z=−x2≤0z=-x^2\le0z=−x2≤0. Every neighborhood of the origin contains points above and below it, so the origin is neither a local maximum nor a local minimum.

Quadric surfaces

A quadric surface is a level surface described by a polynomial of degree at most 222 in xxx, yyy, and zzz:

P(x,y,z)=k,deg⁡P≤2.P(x,y,z)=k, \qquad \deg P\le2. P(x,y,z)=k,degP≤2.

Both surfaces in this note are quadrics:

x2+y2−z2=0x^2+y^2-z^2=0 x2+y2−z2=0

is a double cone, while

y2−x2−z=0y^2-x^2-z=0 y2−x2−z=0

is the hyperbolic paraboloid z=y2−x2z=y^2-x^2z=y2−x2.

Recognizing a standard name is useful, but traces explain why the shape has that name. They also keep working when a surface has been shifted, stretched, or oriented in a less familiar way.

Source: https://notes.ohevan.com/notes/intermediate-calculus/05-level-sets-and-quadric-surfaces

© 2026 Evan Luo. All rights reserved.

Back to Intermediate Calculus

0 reads

  • stay up to date

  • about me

  • coffee

© 2026 Evan Luo. All rights reserved.