Linear Algebra
17.26 min read

The Gradient as Normal Vector

We saw that the gradient f(x0)\nabla f(\mathbf{x}_0) and the isovectors at x0\mathbf{x}_0 are orthogonal: fu=Dfu=0\nabla f \cdot \mathbf{u} = Df \, \mathbf{u} = 0 for every isovector u\mathbf{u}.

This means f(x0)\nabla f(\mathbf{x}_0) is perpendicular to the entire tangent space Tx0SkT_{\mathbf{x}_0} S_k. We call it a normal vector to the isosurface SkS_k at x0\mathbf{x}_0.

Geometrically: the gradient stands straight out of the surface at each point, like a flagpole perpendicular to flat ground. The tangent plane lies flat, the gradient sticks out.

This normal vector relationship is what drives all of constrained optimization — the Lagrange condition will say that at an optimal constrained point, the gradient of ff must be parallel to the gradient of the constraint gg.

Formal View

Theorem 17.1 — Gradient is Normal to Isosurface
Let fC1f \in C^1 and x0Sk\mathbf{x}_0 \in S_k with Df(x0)0Df(\mathbf{x}_0) \neq \mathbf{0}. Then f(x0)\nabla f(\mathbf{x}_0) is orthogonal to every isovector, i.e., f(x0)Tx0Sk\nabla f(\mathbf{x}_0) \perp T_{\mathbf{x}_0} S_k. We call f(x0)\nabla f(\mathbf{x}_0) a normal vector to SkS_k at x0\mathbf{x}_0.
Remark 17.1 — Tangent Plane
The set of all points x0+u\mathbf{x}_0 + \mathbf{u} for uTx0Sk\mathbf{u} \in T_{\mathbf{x}_0} S_k forms the tangent plane to SkS_k at x0\mathbf{x}_0. The normal vector f(x0)\nabla f(\mathbf{x}_0) is perpendicular to this tangent plane.

Why This Matters

The normal vector property is the geometric heart of Lagrange multipliers. An optimal constrained point must have f\nabla f parallel to g\nabla g — both normals to the same tangent plane.

  • Computing normal vectors to surfaces in computer graphics and physics
  • Finding the closest point on a surface to a given point (normal direction)
  • Gradient descent on manifolds: project gradient onto the tangent space
  • Reflection and refraction in optics computed using surface normals

Quiz

Question 1

The gradient f(x0)\nabla f(\mathbf{x}_0) is parallel to the tangent space Tx0SkT_{\mathbf{x}_0} S_k.

Question 2

For f(x,y)=x2+y2f(x,y) = x^2 + y^2, what is the normal to the circle S1={(x,y):x2+y2=1}S_1 = \{(x,y) : x^2 + y^2 = 1\} at the point (1/2,1/2)(1/\sqrt{2}, 1/\sqrt{2})?

Question 3

A curve x(s)\mathbf{x}(s) stays on the isosurface SkS_k and passes through x0\mathbf{x}_0 at s=s0s = s_0. The velocity x(s0)\mathbf{x}'(s_0) must be:

Question 4

The gradient f(x0)\nabla f(\mathbf{x}_0) is always nonzero on an isosurface.

Common Mistakes

  • Saying the gradient is parallel to the isosurface (it is perpendicular).
  • Confusing the tangent plane (at a point on the surface) with the surface itself.
  • Thinking the gradient points along the isosurface toward higher values — it points away from the surface.