Solving Multivariate Problem: Critical Points for ##y=-x##

  • Thread starter Thread starter squenshl
  • Start date Start date
  • Tags Tags
    Multivariate
Click For Summary
SUMMARY

The discussion focuses on the critical points of the function defined by ##f(x,y) = \ln{\left(3+(x+y)^2\right)}##. It establishes that the gradient vector ##\nabla f## equals zero when ##y = -x##, indicating that every point along this line is a critical point. The analysis of level curves suggests that these critical points are local minima, as the function values increase away from the line ##y = -x##. The second-order mixed partial derivatives are also calculated, revealing a symmetric Hessian matrix with equal elements.

PREREQUISITES
  • Understanding of multivariable calculus, specifically gradient and critical points.
  • Familiarity with logarithmic functions and their properties.
  • Knowledge of second-order partial derivatives and Hessian matrices.
  • Ability to interpret level curves in the context of optimization.
NEXT STEPS
  • Study the implications of the Hessian matrix in determining the nature of critical points.
  • Explore the concept of level curves and their significance in multivariable optimization.
  • Learn about degenerate critical points and their characteristics in optimization problems.
  • Investigate other functions with similar forms to understand their critical points and behavior.
USEFUL FOR

Mathematicians, students of calculus, and anyone interested in multivariable optimization and critical point analysis.

squenshl
Messages
468
Reaction score
4
Homework Statement
Consider the function ##f:\mathbb{R}^2 \rightarrow \mathbb{R}## given by ##f(x,y) := \ln{\left(3+(x+y)^2\right)}##.

1. Find ##\nabla f##, the gradient of ##f##, and determine at which points ##\nabla f## is zero.

2. Determine whether the critical points of ##f## are local minima, local maxima, or saddle points by considering the level curves of ##f##.

3. Calculate all the second order mixed partial derivatives of ##f##.
Relevant Equations
Gradient vector ##\nabla f##.
There are sets of the form ##\left\{(x,y)\in \mathbb{R}^2: f(x,y) = \ln{\left(3+(x+y)^2\right)} = c\right\}## where ##c## is some fixed number ##> 1##. Let's see what happens for a few values of ##c##.
Suppose ##c = 2##, then ##\ln{\left(3+(x+y)^2\right)} = 2 \Longleftrightarrow (x+y)^2 = e^2-3##, or ##x+y = \pm\sqrt{e^2-3}## which are straight lines of gradient ##-1## through ##\left(\pm\sqrt{e^2-3},0\right)## and ##\left(0,\pm\sqrt{e^2-3}\right)##.
For ##c = 1##, then ##\ln{\left(3+(x+y)^2\right)} = 3 \Longleftrightarrow (x+y)^2 = e^3-3##, or ##x+y = \pm\sqrt{e^3-3}## which are straight lines of gradient ##-1## through ##\left(\pm\sqrt{e^3-3},0\right)## and ##\left(0,\pm\sqrt{e^3-3}\right)##.

1. We find the partial derivatives of ##f## with respect to ##x## and ##y## to get ##\frac{\partial f}{\partial x} = f_x = \frac{2(x+y)}{3+(x+y)^2}## and ##\frac{\partial f}{\partial y} = f_y = f_x = \frac{2(x+y)}{3+(x+y)^2}##. This makes the gradient vector
$$\nabla{f} = \begin{bmatrix}
f_x \\
f_y
\end{bmatrix} = \begin{bmatrix}
\frac{2(x+y)}{3+(x+y)^2} \\[6pt]
\frac{2(x+y)}{3+(x+y)^2}
\end{bmatrix}.$$

Equating these to zero gives the critical points and doing so gives ##2(x+y) = 0##, or ##y = -x##. Hence, the critical point is the line ##y = -x##.

2. From the figure above we see that the level curves seem to increase the further we get away from the critical points which suggests that they are local minima.

3. We have ##f_x = \frac{2(x+y)}{3+(x+y)^2}## which means ##f_{xx} = \frac{\left(2(3+(x+y)^2\right)-4(x+y)^2}{\left(3+(x+y)^2\right)^2}##. Similarly we have ##f_y = 2ye^{x^2+y^2}3## which means ##f_{yy} = \frac{\left(2(3+(x+y)^2\right)-4(x+y)^2}{\left(3+(x+y)^2\right)^2}##. Finally, we know that ##f_{xy} = f_{yx} = \frac{\left(2(3+(x+y)^2\right)-4(x+y)^2}{\left(3+(x+y)^2\right)^2}## since the (Hessian) matrix of second order partial derivatives is symmetric.

My question is what are the critical points if ##\nabla f = 0## implies ##y = -x##??
 
  • Like
Likes   Reactions: roam
Physics news on Phys.org
I did not go through the entire post but if "\nabla f= 0 implies y= -x" is the only condition then the critical points are all the points on the line y= -x.
 
  • Like
Likes   Reactions: roam
squenshl said:
Problem Statement: Consider the function ##f:\mathbb{R}^2 \rightarrow \mathbb{R}## given by ##f(x,y) := \ln{\left(3+(x+y)^2\right)}##.

1. Find ##\nabla f##, the gradient of ##f##, and determine at which points ##\nabla f## is zero.

2. Determine whether the critical points of ##f## are local minima, local maxima, or saddle points by considering the level curves of ##f##.

3. Calculate all the second order mixed partial derivatives of ##f##.
Relevant Equations: Gradient vector ##\nabla f##.

There are sets of the form ##\left\{(x,y)\in \mathbb{R}^2: f(x,y) = \ln{\left(3+(x+y)^2\right)} = c\right\}## where ##c## is some fixed number ##> 1##.

Where does ">1" come from? I agree that there are no points where f(x,y) = 1, but the actual minimum of f is slightly higher than this.

Lets see what happens for a few values of ##c##.

Or you could solve the general case...

Suppose ##c = 2##, then ##\ln{\left(3+(x+y)^2\right)} = 2 \Longleftrightarrow (x+y)^2 = e^2-3##, or ##x+y = \pm\sqrt{e^2-3}## which are straight lines of gradient ##-1## through ##\left(\pm\sqrt{e^2-3},0\right)## and ##\left(0,\pm\sqrt{e^2-3}\right)##.

For ##c = 1##, then ##\ln{\left(3+(x+y)^2\right)} = 3 \Longleftrightarrow (x+y)^2 = e^3-3##, or ##x+y = \pm\sqrt{e^3-3}## which are straight lines of gradient ##-1## through ##\left(\pm\sqrt{e^3-3},0\right)## and ##\left(0,\pm\sqrt{e^3-3}\right)##.

Is this for c = 1 as stated, or c = 3 which is the calculation you have actually done?

1. We find the partial derivatives of ##f## with respect to ##x## and ##y## to get ##\frac{\partial f}{\partial x} = f_x = \frac{2(x+y)}{3+(x+y)^2}## and ##\frac{\partial f}{\partial y} = f_y = f_x = \frac{2(x+y)}{3+(x+y)^2}##. This makes the gradient vector
$$\nabla{f} = \begin{bmatrix}
f_x \\
f_y
\end{bmatrix} = \begin{bmatrix}
\frac{2(x+y)}{3+(x+y)^2} \\[6pt]
\frac{2(x+y)}{3+(x+y)^2}
\end{bmatrix}.$$

Equating these to zero gives the critical points and doing so gives ##2(x+y) = 0##, or ##y = -x##. Hence, the critical point is the line ##y = -x##.

"Hence every point on the line y = -x is critical."

2. From the figure above we see that the level curves seem to increase the further we get away from the critical points which suggests that they are local minima.

Is this suggestion correct? Are they minima or not?

3. We have ##f_x = \frac{2(x+y)}{3+(x+y)^2}## which means ##f_{xx} = \frac{\left(2(3+(x+y)^2\right)-4(x+y)^2}{\left(3+(x+y)^2\right)^2}##. Similarly we have ##f_y = 2ye^{x^2+y^2}3## which means ##f_{yy} = \frac{\left(2(3+(x+y)^2\right)-4(x+y)^2}{\left(3+(x+y)^2\right)^2}##. Finally, we know that ##f_{xy} = f_{yx} = \frac{\left(2(3+(x+y)^2\right)-4(x+y)^2}{\left(3+(x+y)^2\right)^2}## since the (Hessian) matrix of second order partial derivatives is symmetric.

Note that all elements of the Hessian are equal. This requires that the Hessian have a zero eigenvalue.

My question is what are the critical points if ##\nabla f = 0## implies ##y = -x##??

You have a line of degenerate critical points.
 
  • Like
Likes   Reactions: roam

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
4
Views
3K
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 27 ·
Replies
27
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K