MHB Max and min value, multi variable (open sets)

Petrus
Messages
702
Reaction score
0
Calculate max and min value of the function $$f(x,y)=x^2+y^2-2x-4y+8$$
in the range defined by the $$x^2+y^2≤9$$
Progress:
$$f_x(x,y)=2x-2$$
$$f_y(x.y)=2y-4$$
So I get $$x=1$$ and $$y=2$$ We got one end point that I don't know what to do with $$x^2+y^2≤9$$
If I got this right it should be a elips that x can max be 3,-3 and y 3,-3
 
Last edited:
Physics news on Phys.org
You are correct to first find any critical points in the interior of the region, which as you found is (1,2).

In order to examine $f$ on the boundary of the region, we may represent the circle $x^2+y^2=3^2$ by means of the parametric equations $x=3\cos(t),\,y=3\sin(t),\,0\le t\le 2\pi$. Thus, on the boundary we can write $f$ as a function of a single variable $t$:

$$f(\cos(t),\sin(t))=3^2\cos^2(t)+3^2\sin^2(t)-2\cos(t)-4\sin(t)+8=17-2\cos(t)-4\sin(t)$$

Can you proceed now, differentiating $f(t)$ and equating to zero to find the critical point(s)? And don't neglect the endpoints...
 
MarkFL said:
You are correct to first find any critical points in the interior of the region, which as you found is (1,2).

In order to examine $f$ on the boundary of the region, we may represent the circle $x^2+y^2=3^2$ by means of the parametric equations $x=3\cos(t),\,y=3\sin(t),\,0\le t\le 2\pi$. Thus, on the boundary we can write $f$ as a function of a single variable $t$:

$$f(\cos(t),\sin(t))=3^2\cos^2(t)+3^2\sin^2(t)-2\cos(t)-4\sin(t)+8=17-2\cos(t)-4\sin(t)$$

Can you proceed now, differentiating $f(t)$ and equating to zero to find the critical point(s)? And don't neglect the endpoints...
I got to this $$2(\sin(t)-2\cos(t))=0$$ how do I solve that
Can't I also solve this two way? The way I try to use early?
 
You cannot use the extrema of the variables, you want the extrema of the function on the boundary.

Now, to solve the equation you found, first divide through by 2 and rearrange to get:

$$\sin(t)=2\cos(t)$$

What do you think you should do next?

Also, you may find the critical points through use of Lagrange multipliers rather than parametrization, using the boundary of the region as the constraint. I would highly recommend doing both just for practice and insight.
 
MarkFL said:
You cannot use the extrema of the variables, you want the extrema of the function on the boundary.

Now, to solve the equation you found, first divide through by 2 and rearrange to get:

$$\sin(t)=2\cos(t)$$

What do you think you should do next?

Also, you may find the critical points through use of Lagrange multipliers rather than parametrization, using the boundary of the region as the constraint. I would highly recommend doing both just for practice and insight.
I would love to solve this as lagrange multipliers as well:)
rewrite sin(t) as 2cos(t) in our orginal function before we derivate?
 
We'll deal with the parametrization method first.

You want to find the value(s) of $t$ which satisfy the equation that resulted from equating the derivative to zero. Now, we could observe that $\sin(t)=2\cos(t)$ implies $y=2x$ (which is what you will find with Lagrange) and plug this into the equation of the circle, but let's solve for $t$ first. What happens if we divide through by $\cos(t)$?
 
MarkFL said:
We'll deal with the parametrization method first.

You want to find the value(s) of $t$ which satisfy the equation that resulted from equating the derivative to zero. Now, we could observe that $\sin(t)=2\cos(t)$ implies $y=2x$ (which is what you will find with Lagrange) and plug this into the equation of the circle, but let's solve for $t$ first. What happens if we divide through by $\cos(t)$?
$$\tan(t)=2$$
 
Correct. We should be aware that we needn't be worried about division by zero as there is no real value of $t$ such that $\sin(t)=\cos(t)=0$.

Now, in which quadrants will we find solutions for $\tan(t)=2$?
 
MarkFL said:
Correct. We should be aware that we needn't be worried about division by zero as there is no real value of $t$ such that $\sin(t)=\cos(t)=0$.

Now, in which quadrants will we find solutions for $\tan(t)=2$?
first quadrants and I did forget about that when I divided
 
  • #10
Yes, there is a first quadrant solution, but there is another...think of the periodicity of the tangent function.
 
  • #11
and second, so first and second :)?
 
  • #12
No, the period of the tangent function is $\pi$ units, i.e., $\tan(\theta+k\pi)=\tan(\theta)$. To stay within the given domain of $t$, we let $k=1$, so we will add $\pi$ radians to the first quadrant solution to find we are in which quadrant?
 
  • #13
MarkFL said:
No, the period of the tangent function is $\pi$ units, i.e., $\tan(\theta+k\pi)=\tan(\theta)$. To stay within the given domain of $t$, we let $k=1$, so we will add $\pi$ radians to the first quadrant solution to find we are in which quadrant?
pi is half way (180 degree) and if se are in first quadant and add pi Then we get to third quadant
 
  • #14
Correct! (Yes)

This means there are first and third quadrant solutions. Can you state the first quadrant solution and how the third quadrant solution relates to this in terms of the $x$ and $y$ coordinates?
 
  • #15
MarkFL said:
Correct! (Yes)

This means there are first and third quadrant solutions. Can you state the first quadrant solution and how the third quadrant solution relates to this in terms of the $x$ and $y$ coordinates?
What you mean:O? There is a normal tangent function and Then i draw à line in y=2 and it Will hit tan function in y=2 when x is something? I don't know what third quadant got with this problem but i guess y=-2? Hmm is this correct?
 
  • #16
You have the right idea, but if $\tan(t)=2$, then you essentially want to find the points of intersection of the circle and the line $y=2x$.

There are many ways to look at this though, so first let's just work with the first quadrant solution. Can you state this solution?
 
  • #17
T=Arctan(2)
 
  • #18
Good, yes $t=\tan^{-1}(2)$. Now, when you plug this value of $t$ into the parametric equations for $x$ and $y$, what do you find?
 
  • #19
MarkFL said:
Good, yes $t=\tan^{-1}(2)$. Now, when you plug this value of $t$ into the parametric equations for $x$ and $y$, what do you find?
$$x=3\cos(\arctan(2))$$
$$y=3\sin(\arctan(2))$$
I am correct?
 
  • #20
Yes, now can you evaluate them, using a right triangle if necessary? Recall you want the side of the triangle opposite the angle $t$ to be 2 and the side adjacent to be 1, then use the Pythagorean theorem to compute the hypotenuse, and finally use the definitions of sine and cosine to complete the evaluations.

While there are simpler ways to go about this, which we will explore next, I think this is good practice. (Wink)
 
  • #21
MarkFL said:
Yes, now can you evaluate them, using a right triangle if necessary? Recall you want the side of the triangle opposite the angle $t$ to be 2 and the side adjacent to be 1, then use the Pythagorean theorem to compute the hypotenuse, and finally use the definitions of sine and cosine to complete the evaluations.

While there are simpler ways to go about this, which we will explore next, I think this is good practice. (Wink)
I get hypotenusan to $$\sqrt{5}$$ is that correct?
 
  • #22
Yes, as $$\sqrt{2^2+1^1}=\sqrt{5}$$. Good work!

So, what do you find as the critical coordinates in the first quadrant?
 
  • #23
MarkFL said:
Yes, as $$\sqrt{2^2+1^1}=\sqrt{5}$$. Good work!

So, what do you find as the critical coordinates in the first quadrant?
$$x=\frac{3}{\sqrt{5}}$$
$$y=\frac{6}{\sqrt{5}}$$
 
  • #24
Excellent! Now, what do you find when you let $t=\pi+\tan^{-1}(2)$ to get the 3rd quadrant critical point? And remember to consider the endpoints of the domain for $t$.

Hint: what are $\sin(\theta+\pi)$ and $\cos(\theta+\pi)$ using the angle-sum identities?

Note: I must once again run off for about 4.5 hours, so if anyone else wants to jump in, that's fine. I will check back here first thing when I return, and we can look at some other methods for obtaining these critical points so you can see how they relate. (Nod)
 
  • #25
MarkFL said:
Excellent! Now, what do you find when you let $t=\pi+\tan^{-1}(2)$ to get the 3rd quadrant critical point? And remember to consider the endpoints of the domain for $t$.

Hint: what are $\sin(\theta+\pi)$ and $\cos(\theta+\pi)$ using the angle-sum identities?

Note: I must once again run off for about 4.5 hours, so if anyone else wants to jump in, that's fine. I will check back here first thing when I return, and we can look at some other methods for obtaining these critical points so you can see how they relate. (Nod)
Well in third quadrant x and y is negative so $$x=-\frac{3}{\sqrt{5}}$$
$$y=-\frac{6}{\sqrt{5}}$$? I am correct?
 
  • #26
Yes, we can see this from symmetry or using the angle-sum identities.

So, you have two critical points thus far on the boundary, and one more from the end-points of the domain of $t$. Can you state this point, and why there is only one point, when there are two endpoints of $t$'s domain?
 
  • #27
MarkFL said:
Yes, we can see this from symmetry or using the angle-sum identities.

So, you have two critical points thus far on the boundary, and one more from the end-points of the domain of $t$. Can you state this point, and why there is only one point, when there are two endpoints of $t$'s domain?
Unfortently I don't know. Do you also mean there is another point?
 
  • #28
Yes, we need to check the endpoints, or boundaries for $t$, which we gave as:

$$0\le t\le 2\pi$$.
 
  • #29
MarkFL said:
Yes, we need to check the endpoints, or boundaries for $t$, which we gave as:

$$0\le t\le 2\pi$$.
That's logic, So I have to check now $$f(\frac{3}{\sqrt{5}},\frac{6}{\sqrt{5}})$$, $$f(-\frac{3}{\sqrt{5}},-\frac{6}{\sqrt{5}})$$, $$f(1,0)$$ and $$f(1,\sin(2\pi))$$
 
  • #30
Your first two critical points are correct, but there is only a third because the parametric equations have the same value for the two endpoints because:

$$\sin(0)=\sin(2\pi)=0$$

$$\cos(0)=\cos(2\pi)=1$$

Hence, the third critical point on the boundary of the circle is

$$(x(0),y(0))=(3\cos(0),3\sin(0))=(3,0)$$.

Now you have 4 values of the function to check, one in the interior of the circle, and 3 on the boundary.

When I return, we can look at some other methods for obtaining the critical values on the boundary of the circle. (Nod)
 
  • #31
MarkFL said:
Your first two critical points are correct, but there is only a third because the parametric equations have the same value for the two endpoints because:

$$\sin(0)=\sin(2\pi)=0$$

$$\cos(0)=\cos(2\pi)=1$$

Hence, the third critical point on the boundary of the circle is

$$(x(0),y(0))=(3\cos(0),3\sin(0))=(3,0)$$.

Now you have 4 values of the function to check, one in the interior of the circle, and 3 on the boundary.

When I return, we can look at some other methods for obtaining the critical values on the boundary of the circle. (Nod)
My bad here I forgot i had 3sin(t),3cos(t) :P i Was using sin(t),cos(t) this problem Was à Hood one:)
 
  • #32
Early on I was also trying to subsitate that $$y=\sqrt{9-x^2}$$ and then simplified and I did call my new function g(x)...so I did derivate and look for crit point and the put it on g(x) to get my y. May I ask why don't that method work?
 
  • #33
Petrus said:
Early on I was also trying to subsitate that $$y=\sqrt{9-x^2}$$ and then simplified and I did call my new function g(x)...so I did derivate and look for crit point and the put it on g(x) to get my y. May I ask why don't that method work?

The method will work, if we take care to recognize:

$$x^2+y^2=9$$ and $$y=\pm\sqrt{9-x^2}$$ and so:

$$g(x)=17-2x\mp4\sqrt{9-x^2}$$ hence:

$$g'(x)=-2\mp\frac{4x}{\sqrt{9-x^2}}=0$$

$$\frac{\sqrt{9-x^2}\pm 2x}{\sqrt{9-x^2}}=0$$

Observe that the numerator has the roots found from:

$$\sqrt{9-x^2}\pm 2x=0$$

$$9-x^2=4x^2$$

$$x^2=\frac{9}{5}$$

$$x=\pm\frac{3}{\sqrt{5}}$$ and so:

$$y=\pm\sqrt{9-\frac{9}{5}}=\pm\frac{6}{\sqrt{5}}$$

What critical values do we find from the denominator of the derivative?

Using the method of Lagrange multipliers, can you state the objective function and the constraint?
 
  • #34
I mean like this, if we use that method we lose 2 end point? $$f(0,0)$$ and $$f(3,0)$$ So that method would not be smart or I am wrong?

- - - Updated - - -

Ohh We get $$x_1=3$$ and $$x_2=-3$$ so what do we do next with Them?
 
  • #35
I maybe respond too fast x can't be lower or equal to 3, so we got à new end point or I am wrong...
Edit: (I did think wrong.. here is the intervall.We get this intervall. 3<_x<_-3. (Equal or less)
 
Last edited:
  • #36
Yes, we actually gain a critical point to check that we did not get from the parametrization of the boundary...but does this affect the absolute extrema values?
 
  • #37
MarkFL said:
Yes, we actually gain a critical point to check that we did not get from the parametrization of the boundary...but does this affect the absolute extrema values?
I do not know? I Should check all critical point so yes?
 
  • #38
As a recap, what are all of the critical points you have collected so far, and what is the function's value at these points?
 
  • #39
MarkFL said:
As a recap, what are all of the critical points you have collected so far, and what is the function's value at these points?
The crit point when we subsitate x. But the point is you can't divide by zero so when we did calculate that 3,-3 we say that the bottom of division is zero..?
$$f(3,11)$$,$$f(3,23)$$
 
  • #40
The derivative is undefined for $x^2=3^2$, but the original function is not. Recall that critical values come from places where the derivative is zero or undefined.

You should have the critical point in the interior (1,2), and the points on the boundary:

$$\left(\pm\frac{3}{\sqrt{5}},\pm\frac{6}{\sqrt{5}} \right),\,(\pm3,0)$$

So, you want to evaluate the original function at these 5 points...
 
  • #41
MarkFL said:
The derivative is undefined for $x^2=3^2$, but the original function is not. Recall that critical values come from places where the derivative is zero or undefined.

You should have the critical point in the interior (1,2), and the points on the boundary:

$$\left(\pm\frac{3}{\sqrt{5}},\pm\frac{6}{\sqrt{5}} \right),\,(\pm3,0)$$

So, you want to evaluate the original function at these 5 points...
Yeah my bad I forgot that we did subsitute for y. One question what did you mean with interior (1,2)
 
  • #42
Ok for Lama way.
We got our $$g(x,y)=x^2+y^2-9$$
so..
$$f_x(x,y)=\lambda*g_x(x,y)$$
$$f_y(x,y)-=\lambda*g_y(x,y)$$
And our...
$$g_x(x,y)=2x$$
$$g_y(x,y)=2y$$
so we now got..
$$f_x(x,y)=\lambda*2x$$
$$f_y(x,y)-=\lambda*2y$$
Now I don't know to do but I guess ima subsitute again $$y=\sqrt{9-x^2}$$ and then equal each to same so I got
$$2x=2\sqrt(9-x^2}*$$
I am doing correct?
 
  • #43
Petrus said:
...One question what did you mean with interior (1,2)

Recall this is the critical point you found in the interior of the circle by equating the first partials to zero.

Petrus said:
Ok for Lama way.
We got our $$g(x,y)=x^2+y^2-9$$
so..
$$f_x(x,y)=\lambda*g_x(x,y)$$
$$f_y(x,y)-=\lambda*g_y(x,y)$$
And our...
$$g_x(x,y)=2x$$
$$g_y(x,y)=2y$$
so we now got..
$$f_x(x,y)=\lambda*2x$$
$$f_y(x,y)-=\lambda*2y$$
Now I don't know to do but I guess ima subsitute again $$y=\sqrt{9-x^2}$$ and then equal each to same so I got
$$2x=2\sqrt(9-x^2}*$$
I am doing correct?

Using Lagrange multipliers, you could state $f(x,y)=17-2x-4y$ as the objective function and $g(x,y)=x^2+y^2-9=0$ as the constraint. This gives you the system:

$$-1=\lambda x$$

$$-2=\lambda y$$

What does this imply about the relationship between $x$ and $y$? Solve both for $\lambda$, then equate and simplify. Once you find this, substitute for $y$ in the constraint, and solve for $x$. This will give you two critical points on the boundary.
 
  • #44
MarkFL said:
Recall this is the critical point you found in the interior of the circle by equating the first partials to zero.
Using Lagrange multipliers, you could state $f(x,y)=17-2x-4y$ as the objective function and $g(x,y)=x^2+y^2-9=0$ as the constraint. This gives you the system:

$$-1=\lambda x$$

$$-2=\lambda y$$

What does this imply about the relationship between $x$ and $y$? Solve both for $\lambda$, then equate and simplify. Once you find this, substitute for $y$ in the constraint, and solve for $x$. This will give you two critical points on the boundary.
I get x=9 and x=7
 
  • #45
How did you get those values? Without knowing what you did, I don't know what to address.
 
  • #46
MarkFL said:
Recall this is the critical point you found in the interior of the circle by equating the first partials to zero.
Using Lagrange multipliers, you could state $f(x,y)=17-2x-4y$ as the objective function and $g(x,y)=x^2+y^2-9=0$ as the constraint. This gives you the system:

$$-1=\lambda x$$

$$-2=\lambda y$$

What does this imply about the relationship between $x$ and $y$? Solve both for $\lambda$, then equate and simplify. Once you find this, substitute for $y$ in the constraint, and solve for $x$. This will give you two critical points on the boundary.
$$\lambda=-\frac{1}{x}$$ and $$-\lambda=\frac{2}{y}$$
So we got $$-\frac{1}{x}=\frac{2}{y}$$ that means $$y=2x$$
then we got $$x^2+4x^2=9$$ and that means $$x_1=\frac{3}{\sqrt{5}}$$, $$x_2=-\frac{3}{\sqrt{5}}$$
(I want to apologize I did a misstake... I forgot I had y^2 in the constraint... I did calculate with y) Thanks Mark!:) You are a really great person!:)I got better thanks too you!
 
Last edited by a moderator:
  • #47
Yes, that is correct. Notice you have found the same critical points as with the parametrization, and with the substitution for $y$ without the unneeded end-points, and critical points from where the derivative was undefined.

So, what have you found are the absolute extrema? Where do they occur and what values do they have?
 

Similar threads

Back
Top