Multivariable calculus
Critical Points of cos(x) + y^2
Every critical point of f(x,y) = cos x + y squared has y = 0 and x an integer multiple of pi. At even multiples, such as the origin, D = -2 and the point is a saddle. At odd multiples, such as (pi, 0), D = 2 with f_xx = 1, a local minimum of value -1. This surface has no local maximum anywhere.
- saddle pointdiscriminant D = -2
- local minimumdiscriminant D = 2
These are not necessarily all of them; the page says which it covers.
A separable surface makes the search short
Each variable appears in its own term, so each partial derivative sees only one of them.
The second equation gives and nothing else. The first gives , so for any integer . The critical points are the evenly spaced dots marching along the -axis, infinitely many of them, so no finite list can be complete.
The second partials are just as short, and the mixed one is identically zero because no term contains both variables.
With the discriminant is simply the product of the diagonal entries: . Since alternates between and , so does the verdict.
Why this surface has no local maximum
At even multiples of , including the origin, , so and : a saddle. At odd multiples, , so and with a positive diagonal entry: a local minimum with .
Notice what never happens. A local maximum needs together with . Here , because is a positive constant and . So and always carry the same sign, and forces . The pair of conditions a maximum needs is impossible on this surface.
The geometry agrees. Fixing and letting run, grows without bound like , so every point sits at the bottom of an upward parabola in the direction. Nothing can be a maximum when one direction always climbs. The local minima at are also global minima, since and give .
The mistake students make
The origin gets called a maximum more often than any other point on this surface, and the reasoning is always the same: has a maximum at , so surely does too. That confuses a one variable maximum with a two variable one. Along the -axis the origin really is a peak, but along the -axis it is the bottom of a valley, since increases in both directions.
- near is a local maximum in that direction.
- near is a local minimum in that direction.
- Up in one direction and down in another is the definition of a saddle, which is why .
The other slip is forgetting that has infinitely many solutions and reporting only . Every works, and the classification alternates: even gives a saddle, odd gives a minimum. Writing the general solution as rather than as a couple of specific values is what keeps the pattern visible.
Frequently asked questions
Does f have a global minimum?
Yes, and every local minimum is one. Since and , the value is never below , and it equals exactly at the points . There are infinitely many global minimisers, all at the same height, which is normal for a surface that is periodic in one variable.
Why is f_xy zero, and does that always simplify the test?
It is zero because no single term of contains both and , so differentiating in leaves nothing for the derivative to act on. When the discriminant reduces to , and the classification is just a question of whether the two one variable second derivatives agree in sign. That shortcut only applies to separable functions; as soon as a term mixes the variables, the mixed partial matters.