Tangents

Level sets, ∇φ, tangents

Help

Click on the level set to place a tangent point.

Experiment with options in the sidebar to show the tangent line or plane, the gradient, and labels.

Switch between 2d and 3d modes.

You can enter standard custom functions in the text box.

Overview

∇φ is perpendicular to level sets of the form φ(r) = c.

Given a point r0 on the level set, set the normal vector N to be some multiple of the gradient: N = k ∇φ(r0)

Given a generic point r on the tangent, we see that:

N • (r-r0) = 0      
      ⇒ Nr = Nr0

Thus we have an equation for the tangent line or plane!

In 2d:       N1 x + N2 y = N1 x0 + N2 y0
In 3d:       N1 x + N2 y + N3 z = N1 x0 + N2 y0 + N3 z0