Intuition The one core idea
If you walk along a line where a function's value never changes, and you also draw the arrow pointing "straight uphill" the fastest, those two directions always meet at a perfect right angle. This whole topic is just carefully proving that "no change" and "most change" are perpendicular.
Before we can even state the main result , we need to earn every symbol it uses. Below, each piece is built from nothing: plain words → a picture → why the topic needs it . Read top to bottom; each idea rests on the one above it.
Definition A multivariable function
f
Symbol: f ( x , y ) — read "f of x and y". It is a machine that takes two numbers in (a point ( x , y ) ) and gives one number out .
f : R 2 → R
The arrow-notation reads: "f takes a point in the plane (R 2 , all pairs of real numbers) and returns a single real number (R )."
Picture it as a landscape. Stand on a flat floor whose position is ( x , y ) . The output f ( x , y ) is the height of the ground at that spot.
Intuition Why we need this first
Everything in this topic — level curves, gradients, tangents — is a statement about this landscape . If you can picture "a spot on the floor" and "the height there," you already have the stage on which everything happens.
The little symbols:
R ::: means "all real numbers" (any point on the number line: − 2 , 0 , 3.7 , π …).
R 2 ::: means "all pairs of real numbers," i.e. every point on a flat plane.
R n ::: the same idea with n numbers — a point in n -dimensional space. We only need n = 2 and n = 3 .
Definition Level curve / level set
Pick one fixed height and call it c (a constant, e.g. c = 25 ). The level curve is every floor-spot whose height equals exactly c :
f ( x , y ) = c .
The symbol = c means "held constant." In 3D we write f ( x , y , z ) = c and call it a level surface .
Picture it as a contour line on a hiking map. Every point on one contour is at the same altitude . Walk along it and you never climb or descend.
Intuition Why the topic needs it
The whole claim is "gradient ⟂ level curve." So we must be crystal-clear on what a level curve is : the set of directions along which f does not change . Hold that phrase — "no change" — it is half the story.
Common mistake "The level curve is the graph of
f ."
Why it feels right: both come from the same f . The fix: the graph is the 3D hill surface z = f ( x , y ) . The level curve lives flat on the floor (x y -plane) — it is the shadow of one horizontal slice of the hill. The gradient lives on that same flat floor.
Before the gradient, we need to know how to measure "how steeply does f change?" — but in a function of two inputs, which direction do we change?
Definition Partial derivative
Symbol: ∂ x ∂ f (also written f x ), read "the partial of f with respect to x ."
Meaning: freeze y (hold it constant, don't move north/south), then ask "how fast does the height change as I step east?" That rate is f x . Likewise f y freezes x and steps north.
Picture it as walking on a grid line. Standing on the hill, walk only east : how quickly does your altitude rise? That number is f x . Walk only north : that's f y .
partial and not an ordinary derivative?
An ordinary derivative d x d answers "rate of change" for a function of one input. Here f depends on two, so "the" slope is ambiguous — it depends on the compass direction you face. The partial derivative is the tool that pins down one direction at a time so we can measure it unambiguously.
Worked example Computing partials
For f ( x , y ) = x 2 + y 2 :
f x = 2 x (treat y 2 as a constant → its derivative is 0 ).
f y = 2 y (treat x 2 as a constant).
At the point ( 3 , 4 ) : f x = 6 , f y = 8 .
∇ f
The symbol ∇ is called "nabla" or "del." The gradient collects all the partials into one vector :
∇ f = ( ∂ x ∂ f , ∂ y ∂ f ) = ( f x , f y ) .
In 3D: ∇ f = ( f x , f y , f z ) . It is an arrow that lives on the flat floor (the input space), not on the hill.
Picture it as an uphill arrow drawn on the map. At every floor-spot, ∇ f is an arrow that points in the direction of steepest increase of height, and its length says how steep.
Intuition Why bundle the partials this way?
Two separate numbers (f x , f y ) each know only their own compass direction. Glued into a vector , they suddenly encode the single best uphill direction — which is neither pure-east nor pure-north but the diagonal that combines them. That combined arrow is exactly what the topic claims is perpendicular to level curves.
Worked example Gradient of the bowl
f = x 2 + y 2 has ∇ f = ( 2 x , 2 y ) . At ( 3 , 4 ) this is ( 6 , 8 ) — which points straight away from the origin , i.e. outward, the steepest-uphill direction for a bowl. Notice ( 6 , 8 ) = 2 ⋅ ( 3 , 4 ) : it lies along the radius.
The claim uses the word "perpendicular." We measure that with the dot product .
A vector like u = ( u 1 , u 2 ) is an arrow with a direction and a length. Bold letters or arrows on top (u , u ) mark vectors, to distinguish them from plain numbers.
The magic case we need:
Intuition Why this is THE tool for "perpendicular"
"Perpendicular" is a statement about an angle , and the dot product is the one gadget that turns an angle into simple arithmetic (a 1 b 1 + a 2 b 2 ). To prove ∇ f makes a right angle with the level curve, we just need to show their dot product is 0 — no protractor required.
Worked example Right-angle check
( 6 , 8 ) ⋅ ( − 4 , 3 ) = ( 6 ) ( − 4 ) + ( 8 ) ( 3 ) = − 24 + 24 = 0. So ( 6 , 8 ) is perpendicular to ( − 4 , 3 ) . ✅
Recall Edge case: the zero vector
If ∇ f = ( 0 , 0 ) (a flat spot / peak / valley bottom), the dot product is 0 with everything , so "perpendicular" loses meaning. These are exactly the critical points , handled separately in Lagrange Multipliers and optimization. Away from them, the argument is clean.
Definition Parametrized curve
r ( t )
r ( t ) = ( x ( t ) , y ( t )) is a moving point whose location depends on time t . As t ticks forward, r ( t ) traces a path on the floor.
Definition Velocity / tangent vector
r ′ ( t )
The derivative r ′ ( t ) = ( x ′ ( t ) , y ′ ( t )) is the velocity arrow — it points in the direction of motion and is tangent to the path.
Picture it as an ant walking a route on the map. At any instant the ant faces some direction; that facing arrow is r ′ ( t ) , always tangent to its trail.
Intuition Why the topic needs a moving point
To say "∇ f is perpendicular to the level curve," we need a symbol for a direction along the level curve . The trick: send the ant walking inside the level curve. Then its velocity r ′ ( t ) is a tangent-to-the-level-curve direction — precisely the thing we'll dot against ∇ f .
The final tool. The ant walks the path r ( t ) ; how fast does the height f ( r ( t )) change?
Intuition Why the chain rule, and why it seals the proof
We know two facts and need to connect them: (a) how the height depends on position (that's ∇ f ), and (b) how position depends on time (that's r ′ ). The Multivariable Chain Rule is exactly the bridge that multiplies these together. Now the punchline: if the ant walks inside a level curve , its height never changes, so the left side is 0 . Therefore ∇ f ⋅ r ′ = 0 — a zero dot product — so ∇ f ⊥ r ′ . That is the whole theorem, and it needed every symbol above.
This same dot product is also the definition of the Directional Derivative D u f = ∇ f ⋅ u , which is zero exactly along the level curve.
Function f of x and y as a height landscape
Level curve f = c, no change in height
Partial derivatives f_x and f_y
Gradient grad f, the uphill arrow
Zero dot product means perpendicular
Parametrized curve r of t
Tangent vector r prime of t
Chain rule d dt f of r = grad f dot r prime
Gradient perpendicular to level curves
What does f : R 2 → R mean in plain words? A machine taking a point ( x , y ) and returning one number — a height above the floor.
What is a level curve f ( x , y ) = c ? All floor-spots at the same fixed height c — a contour line where f does not change.
How do you compute f x ? Freeze y as a constant and differentiate f with respect to x .
What is ∇ f and where does it live? The vector ( f x , f y ) of partials; it lives on the input floor and points toward steepest increase.
What does a ⋅ b = 0 tell you? The two (nonzero) arrows are perpendicular, because cos 9 0 ∘ = 0 .
Compute ( 6 , 8 ) ⋅ ( − 4 , 3 ) . − 24 + 24 = 0 , so they are perpendicular.
What is r ′ ( t ) for a curve r ( t ) ? The velocity/tangent arrow, pointing along the direction of motion.
State the multivariable chain rule for d t d f ( r ( t )) . ∇ f ( r ( t )) ⋅ r ′ ( t ) .
Why is ∇ f = ( 0 , 0 ) a special case? It is a critical (flat) point; its dot product with everything is 0 , so "perpendicular" is undefined there.