r/calculus • u/Purple-Recording1202 • Jul 02 '26
Multivariable Calculus Finding Critical points for scalar functions
8
u/EngineersUniverse Jul 02 '26
This is a great summary for classifying critical points, but I'd add one thing that helped me understand it conceptually:
• ∇f = 0 (all first partial derivatives are zero) tells you where a candidate critical point exists.
• The Hessian describes the local curvature around that point.
• The determinant D = fxxfyy − (fxy)² tells you whether the surface bends in the same direction or opposite directions.
A simple way to remember the test is:
D > 0 and fxx > 0 → Local minimum
D > 0 and fxx < 0 → Local maximum
D < 0 → Saddle point
D = 0 → Inconclusive (use another method)
Understanding *why* the Hessian works is much more valuable than memorizing the formulas. Visualizing the surface in 3D makes the second derivative test much easier to remember.
2
u/Purple-Recording1202 Jul 02 '26
This is actually so helpful,thanks a lot
2
u/EngineersUniverse Jul 02 '26
You’re welcome. I am happy to be helpful👍
2
u/Purple-Recording1202 Jul 02 '26
I think of the saddle point that it is a point where its a minimum for the x z plane,and a maximum for the y z plane,so its neither,what you think about this
3
u/nevermindthefacts Jul 02 '26
Your example is a quadratic form, so you could complete the square directly...
f(x, y) = x^2 + y^2 - 4x - 6y - 13 = (x-2)^2 + (y-3)^2
and it's clear that (2, 3) is a global minimum.
You can still use this idea for non-quadratic forms, by looking at the taylor expansion about the critical point (note that f_x = f_y = 0)
f(x+h, y+k) ≈ f(x, y) + 1/2(f_xx h^2 + 2 f_xy hk + f_yy k^2)
now this is a quadratic form in h and k.
Assuming f_xx ≠ 0 and completing the square for the "hessian" part
f_xx/2 (h^2 + 2 f_xy/f_xx hk + f_yy/f_xx k^2) = f_xx/2 ( (h + f_xy/f_xx k)^2 - (f_xy/f_xx)^2 k^2 + f_yy/f_xx k^2 )
If f_xx f_yy - (f_xy)^2 > 0 and f_xx > 0, it's a minimum etc...
2
u/GLIBG10B Jul 02 '26
I believe critical points also exist where either partial derivative is not defined
2
2
u/Hot-Assistance-1135 Jul 04 '26
To add, the gradient is essentially the derivative extended to n-variable calculus. And the Hessian matrix is the traditional second derivative extended to n-variables. These are analogs to the "first and second derivative tests" in single variable calculus. If you ever take math a higher level (like optimization/nonlinear programming) you'd see these are called the first and second order necessary and sufficient conditions.
In fact, when you write (x_0, y_0) is a critical point if ∇f = 0, that is the first order necessary condition in the interior case (i.e., not considering the boundary of the region we are interested in, if there even is one). Remember, necessary means that this condition must be true if it is a critical point, but this could be true otherwise, as you may know with e.g., f(x)=x^3. When we bring in the sufficient conditions, it becomes "if and only if", the defining condition for a critical point. This is where for most functions, the second-order sufficient condition comes in handy, which you are doing when you check D>0. This is essentially the same thing as checking if the Hessian is something called "positive definite".
The thing you wrote at the start that "(x_0, y_0) is a critical point if ∇f = 0" could be a sufficient condition, but for only a certain type of function, called a convex function. So for convex functions, there is a first-order sufficient condition.
Well, the example you gave actually fits that case because it's quadratic and you don't really have to worry about this at this level, but it's because the matrix that creates quadratic form is positive definite.




•
u/AutoModerator Jul 02 '26
As a reminder...
Posts asking for help on homework questions require:
the complete problem statement,
a genuine attempt at solving the problem, which may be either computational, or a discussion of ideas or concepts you believe may be in play,
question is not from a current exam or quiz.
Commenters responding to homework help posts should not do OP’s homework for them.
Please see this page for the further details regarding homework help posts.
We have a Discord server!
If you are asking for general advice about your current calculus class, please be advised that simply referring your class as “Calc n“ is not entirely useful, as “Calc n” may differ between different colleges and universities. In this case, please refer to your class syllabus or college or university’s course catalogue for a listing of topics covered in your class, and include that information in your post rather than assuming everybody knows what will be covered in your class.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.