Discovering Global Extrema for f(x,y)=sin(x) + cos(y) on [0,2π]x[0,2π]

  • Context: Undergrad 
  • Thread starter Thread starter mathrocks
  • Start date Start date
  • Tags Tags
    Extrema Global
Click For Summary

Discussion Overview

The discussion revolves around finding the absolute maximum and minimum values of the function f(x,y) = sin(x) + cos(y) over the rectangular domain defined by 0 ≤ x ≤ 2π and 0 ≤ y ≤ 2π. Participants explore both calculus-based and non-calculus approaches to identify critical points and evaluate the function at various locations within the specified domain.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • Some participants express uncertainty about the next steps after finding critical points, seeking guidance on how to proceed.
  • Others argue that the function f(x,y) is bounded between -2 and 2, based on the properties of sine and cosine functions.
  • Several participants suggest evaluating the function along the perimeter of the rectangle and at critical points to find extrema.
  • A participant mentions the necessity of checking values at the corners and along the edges of the rectangle, as well as the interior critical points.
  • There is a discussion about the importance of evaluating the function at various points, including corners and edges, to ensure all potential extrema are considered.
  • One participant raises a concern about not being able to achieve the expected extrema of -2 and 2, despite knowing they should exist.
  • Another participant introduces the concept of using the Hessian to determine the nature of critical points, although this is not universally accepted in the discussion.

Areas of Agreement / Disagreement

Participants generally agree on the need to evaluate the function at critical points and along the edges of the rectangle. However, there is disagreement and uncertainty regarding the specific values obtained and the methods to ensure all extrema are found, particularly the expected values of -2 and 2.

Contextual Notes

Participants mention the need to consider both the interior and boundary points of the rectangle, indicating that the analysis may depend on the specific characteristics of the function and the domain. There is also a lack of consensus on the effectiveness of different approaches to finding extrema.

Who May Find This Useful

This discussion may be useful for students and individuals interested in multivariable calculus, particularly those learning about optimization techniques and the evaluation of functions over defined domains.

mathrocks
Messages
105
Reaction score
0
I'm supposed to find the absolute max and min for f(x,y)=sin(x) +cos(y) on the rectangle defined by 0<=x<=2*pi 0<=y<=2*pi. Can someone point me in the right direction. I got the critical points but i don't know what to do after that.
 
Physics news on Phys.org
mathrocks said:
I'm supposed to find the absolute max and min for f(x,y)=sin(x) +cos(y) on the rectangle defined by 0<=x<=2*pi 0<=y<=2*pi. Can someone point me in the right direction. I got the critical points but i don't know what to do after that.

This can be solved with a few elementary facts concerning the sin and cos functions and no calculus at all.

First, disregarding the rectangle for a moment, it is obvious that f(x,y) must lie between -2 and 2 inclusive for any x and y, because both sin(x) and cos(y) lie between -1 and 1 inclusive, and f(x,y) is the sum of these two.

Second, it is easy to find a pair (x,y) in the rectangle where the values of -2 and 2 are actually attained. For instance if x = PI/2 and y = 0 then f(x,y) = 2. I leave -2 for you to do.

Since f(x,y) attains the values of -2 and 2 on the rectangle, and these values cannot be exceeded for any (x,y), they must be the absolute max and min.
 
jimmysnyder said:
This can be solved with a few elementary facts concerning the sin and cos functions and no calculus at all.

First, disregarding the rectangle for a moment, it is obvious that f(x,y) must lie between -2 and 2 inclusive for any x and y, because both sin(x) and cos(y) lie between -1 and 1 inclusive, and f(x,y) is the sum of these two.

Second, it is easy to find a pair (x,y) in the rectangle where the values of -2 and 2 are actually attained. For instance if x = PI/2 and y = 0 then f(x,y) = 2. I leave -2 for you to do.

Since f(x,y) attains the values of -2 and 2 on the rectangle, and these values cannot be exceeded for any (x,y), they must be the absolute max and min.

How do I do this using calculus though, so I know what to do for other problems that arise. I know I must find the partial derviative for f(x,y) and find the critical values of each of those, which I believe are (pi/2, pi), (3*pi/2, 2*pi). Then I'm suppose to do something with the rectangle but I'm not sure what?
 
mathrocks said:
Then I'm suppose to do something with the rectangle but I'm not sure what?

You need to check the value of f(x,y) along the perimeter of the rectangle.

Consider the fact that the maximum value of the function f(x) = x on the interval from 0 to 1 occurs at the point x = 1 where the maximum value is f(1) = 1. At that point, f'(x) = 1, not 0. So looking for points where f'(x) = 0, while necessary, is not sufficient. Loosely speaking, you need to examine the edges of the domain as well as the points where the derivative is zero.
 
jimmysnyder said:
You need to check the value of f(x,y) along the perimeter of the rectangle.

Consider the fact that the maximum value of the function f(x) = x on the interval from 0 to 1 occurs at the point x = 1 where the maximum value is f(1) = 1. At that point, f'(x) = 1, not 0. So looking for points where f'(x) = 0, while necessary, is not sufficient. Loosely speaking, you need to examine the edges of the domain as well as the points where the derivative is zero.

Ok, I'm starting to understand this a little better now. Now my new question is when you have the domain be something like 0<=x<=2*pi, 0<=y<=2*pi, do you have to actually go through each value and see which combination gives you a maximum? Because in the case of f(x,y)=sin(x)+cos(y), the endpoints don't yield a maximum.
 
mathrocks said:
do you have to actually go through each value and see which combination gives you a maximum?

In general, yes. The reason is somewhat technical, and if you don't understand the rest of this paragraph, you can just accept the answer and safely skip on to the next one. Loosely speaking again, you cannot be assured that the 'edge' of the domain allows analysis. For instance, let the domain be the interior of the rectangle along with some points along the edge thrown in for good measure. Then finding the max of a function on that domain could require you to evaluate the function at those extra points on the edge one by one. Of course, if there were a lot of them, then you could be in it for the long haul. The good news is that the teacher would have the same amount of work to do in order to check your answer, so it probably won't happen to you while you are in school.

However in particular cases you may be able to do better. In fact, for the case at hand, you can look for the extrema along each of the 4 edges by looking for points where the partials are 0 and then evaluate the function at each of the 4 corners.
 
jimmysnyder said:
However in particular cases you may be able to do better. In fact, for the case at hand, you can look for the extrema along each of the 4 edges by looking for points where the partials are 0 and then evaluate the function at each of the 4 corners.

That's the thing, when I look for the points where the partials are 0, I get
(x=pi/2), (x=3*pi/2) and (y=pi), (y=2*pi). And when I evaluate the function at the corners which are (x=0), (x=2*pi), (y=0), (y=2*pi), I get x=0, x=0, y=1, y=1. So I don't see how I can get -2,2 even though I know I should.
 
mathrocks said:
So I don't see how I can get -2,2 even though I know I should.

So you need to look at the following points:

1. The points in the interior of the rectangle where the partials are 0.

2. The points along the sides where the partials are 0.

3. The corners.

The largest value of f(x,y) among the union of these three sets of points is the absolute maximum. Similarly for the minimum value.
 
[tex]f(x)=:\sin x+\cos y[/tex]

The condition for extremum-------->critical points.

[tex]\frac{\partial f}{\partial x} =0 ;\frac{\partial f}{\partial y}= 0[/tex]

The type of extremum---------->

Hess(f)|_{sol.critical points} ? 0

Daniel.

P.S.If the hessian is the positive,then it's a minimum,if it's negative,it's a maximum,if it's zero,it's a saddle point...
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K