Multivariable calculus
Gradient of x^2 - y^2: The Saddle Surface Worked Out
For f(x, y) = x^2 - y^2 the gradient is (2x, -2y). At (2, 1) it equals (4, -2). The gradient is the zero vector only at the origin, and that critical point is a saddle, not a maximum or a minimum: the surface rises along the x-axis and falls along the y-axis.
Two partials, and the minus sign travels with the y term
Freeze first. Then is a constant and drops out, leaving only the derivative of .
Now freeze . The term is the constant this time, and the minus sign in front of stays attached through the differentiation.
At the gradient is . It points to the right and downward in the plane, so from you gain height fastest by increasing while decreasing .
The mistake: assuming a zero gradient means a peak or a valley
Setting both components to zero gives and , so the only critical point is the origin, where . Students report this as a maximum or a minimum out of habit, which is wrong here.
Look along two lines through the origin. On the -axis, , so the origin is the lowest point. On the -axis, , so the origin is the highest point. A single point cannot be both, so it is a saddle.
- A zero gradient says the tangent plane is horizontal, nothing more.
- Classifying the point needs the second derivative test or a direct look along different lines.
- The other frequent slip is writing and losing the minus. Carry the sign through the whole line rather than attaching it at the end.
Level curves are hyperbolas, and the gradient crosses them squarely
Setting gives a hyperbola for each nonzero , opening left and right when and up and down when . The case degenerates into the pair of lines .
Check perpendicularity at , which sits on the curve . Implicit differentiation gives , so and a tangent direction is . Dotting with the gradient:
The dot product vanishes, so the gradient meets the level hyperbola at a right angle, exactly as it does for every differentiable function.
Frequently asked questions
How do I confirm the origin is a saddle for x^2 - y^2?
Use the discriminant . Here , and , so . A negative discriminant at a critical point means a saddle.
Does the gradient of x^2 - y^2 ever point straight up the page?
Yes, wherever and , meaning and . On the negative -axis the gradient is with a positive second component, so it points in the direction, back toward the origin.