What Are We Even Doing?
You've got a surface defined as \(z = f(x,y)\) — a height function sitting over the \(xy\)-plane. But the gradient theorem wants a level surface of the form \(F(x,y,z) = 0\).
The move is simple: just rearrange. But the rearrangement you choose determines which way your normal vector points — and that sign controls the sign of flux.
Two Ways to Write the Same Surface
Starting from:
Move \(z\) to the right. The \(z\)-coefficient in \(\nabla g\) will be \(-1\).
Move \(f\) to the right. The \(z\)-coefficient in \(\nabla h\) will be \(+1\).
Why call these "level surfaces"? A level surface is all the points where some function \(F(x,y,z)\) hits a constant value. Here that constant is zero — so the surface \(z = f(x,y)\) is the zero-level set of either \(g\) or \(h\). This is the bridge from "height functions" to the machinery of gradients.
Computing the Gradients
Recall: the gradient of \(F(x,y,z)\) is just the vector of partial derivatives. Each component asks "how fast does \(F\) change if I nudge in that direction?"
Option A: \(g = f(x,y) - z\)
Taking partials term by term:
Option B: \(h = z - f(x,y)\)
Now notice:
The two level surfaces are identical as sets — they're the same curve in space. But their gradient vectors are exact negatives. This is like describing the same wall from the inside vs. the outside — same wall, opposite "outward" direction.
See It: Normal Vectors on a Paraboloid
This canvas shows the surface \(z = x^2 + y^2\) (a paraboloid) viewed from the side. Toggle between the two gradient choices to see the normals flip.
The Flux Connection
Electric flux through a surface is:
- \(\mathbf{E}\) — the electric field vector at each point on the surface
- \(d\mathbf{A}\) — a tiny area element with a direction; it equals \(\hat{n}\,dA\)
- \(\hat{n}\) — the unit normal, the thing we're choosing right now
- \(\Phi\) — counts how much \(\mathbf{E}\) "punches through" the surface
The dot product \(\mathbf{E} \cdot d\mathbf{A}\) is sensitive to the direction of \(\hat{n}\). If you flip \(\hat{n}\), you flip \(\Phi\). So choosing between Option A and Option B isn't cosmetic — it changes the physical answer.
Which Form to Use (and Why)
For a surface \(z = f(x,y)\) with upward orientation, the standard area element is:
This comes directly from \(\nabla h = \nabla(z - f)\) — Option B.
"Upward" means the normal has a positive \(k\)-component (pointing away from the \(xy\)-plane, toward \(+z\)). Option B gives a \(+1\) in the \(z\)-slot of the gradient, so it's the upward choice. Option A gives \(-1\), which is downward. Pick based on the problem's stated orientation.
The Rule of Thumb
- Write your surface as \(z = f(x,y)\).
- If upward orientation is required: use \(d\mathbf{A} = (-f_x,\,-f_y,\,1)\,dx\,dy\).
- If downward orientation is required: use \(d\mathbf{A} = (f_x,\,f_y,\,-1)\,dx\,dy\).
- Compute the flux integral: \(\Phi = \iint \mathbf{E} \cdot d\mathbf{A}\).
Locking It In: \(z = x^2 + y^2\)
Write the two zero-forms:
The \(z\)-component is \(-1\) → points downward.
The \(z\)-component is \(+1\) → points upward.
Dimensional Analysis
Let's verify the normal vector components make dimensional sense.
Mental Model — Lock This In
- Convert to a level surface so you can use the gradient: \(z = f(x,y) \;\longrightarrow\; F(x,y,z) = 0\)
- Choose the sign based on orientation. Gradient points away from the level set — so pick the sign that makes the \(z\)-component match the required orientation (\(+1\) for up, \(-1\) for down).
This same move shows up everywhere in E&M — closed surfaces for Gauss's Law, open surfaces for Stokes' theorem, and flux calculations via the Divergence Theorem. The sign discipline you build here pays off massively later.
Full curved surface flux problem — apply this formula to a real \(\mathbf{E}\) field over a paraboloid or hemisphere.
Divergence Theorem connection — this orientation choice is exactly what makes the outward normal convention in the closed-surface integral: $$\oint\!\!\!\oint_S \mathbf{E} \cdot d\mathbf{A} = \frac{Q_{\text{enc}}}{\varepsilon_0}$$