How to tell whether a function is positive or negative?

Click For Summary

Discussion Overview

The discussion revolves around determining whether a function of two variables is positive or negative. Participants explore various methods and approaches to analyze the function, including evaluating specific points, considering conditions, and examining the function's behavior in different regions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant inquires about the best method to determine if a function of two variables is positive or negative.
  • Another participant suggests that the function is neither positive nor negative and asks for clarification on how this conclusion was reached.
  • Some participants propose finding specific points where the function is positive or negative to demonstrate its behavior.
  • There is a discussion about the conditions that make the function positive or negative, with one participant emphasizing the importance of analyzing the function's structure.
  • One participant mentions the possibility of plotting the function to visualize its behavior, noting that certain terms may dominate in specific regions.
  • Another participant describes a method involving testing points and looking for discontinuities or zeros to determine the function's sign across its domain.
  • There is a suggestion to take the absolute value of the function to assess its positivity or negativity, along with a question about how to apply this when the domain is infinite.
  • Several participants express uncertainty about how to test points effectively and interpret the results from graphical representations.

Areas of Agreement / Disagreement

Participants do not reach a consensus on a single method for determining whether the function is positive or negative. Multiple competing views and approaches are presented, and the discussion remains unresolved regarding the best strategy.

Contextual Notes

Participants mention the complexity of the function and the challenges of determining positivity or negativity without a universal method. There are references to the function's behavior depending on the values of the variables, but no definitive conclusions are drawn.

behappy
Messages
10
Reaction score
0
Hello everbody

I have functions of two variables and I need to determine if they are positive or negative. I am just wondering if anyone can tell me what the best way to do that is?



Thanks a lot in advance
 
Mathematics news on Phys.org
What are these functions?

~H
 
This is one of them...

f(x,y)=x^2 + sin(y) - x y - 4y^3
 
That function is neither positive nor negative. Perhaps you mean 'where is it positive and where is it negative?'
 
matt grime said:
That function is neither positive nor negative. Perhaps you mean 'where is it positive and where is it negative?'

So, can you tell me please how you found out that it is neither positive nor negative. When I have a function of two variables, I just need to determine whether it is positive or negative.
 
So, can you tell me please how you found out that it is neither positive nor negative.

Find a point at which the function is positive, and then find another point where it is negative.
 
Muzza said:
Find a point at which the function is positive, and then find another point where it is negative.

And how can I do that?
 
By looking at it and thinking. After all you have complete freedom here to let x or y be absolutely anything.
 
You mean I just need to put random numbers into the equation for both x and y. But that would only work if the function is neither positive nor negative.
 
Last edited:
  • #10
It might take you awhile if you just chose a bunch of random numbers. What conditions make f(x,y) positive and what makes it negative?
 
  • #11
FrogPad said:
It might take you awhile if you just chose a bunch of random numbers. What conditions make f(x,y) positive and what makes it negative?

What do you mean by conditions here?
 
Last edited:
  • #12
behappy said:
You mean I just need to put random numbers into the equation for both x and y. But that would only work if the function is neither positive nor negative.

No, I don't mean that. I mean look at it and see that ignoring x it behaves like -y^3 and ignoring y it behaves like x^2 so picking numbers carefully it is easy to show as a function it is neither positive nor negative.
 
  • #13
matt grime said:
No, I don't mean that. I mean look at it and see that ignoring x it behaves like -y^3 and ignoring y it behaves like x^2 so picking numbers carefully it is easy to show as a function it is neither positive nor negative.

Right, picking numbers is an easy way to show if a function is neither positive nor negative. But what about the other cases like when the function is always positive
 
Last edited:
  • #14
You do it by 'doing it', there is no universal method. Look at the function. Is it possible to make it negative? Is it possible to make it positive? Fix x, or y, whatever is needed. For a given x what is the minimal value as a function of y? what is the maximal value, etc.
 
  • #15
You could plot the function; see below.

Looks to be negative for x>0, for all y.

I think you'll have to look at which terms dominate for, eg. x>0 y>0, x>0 y<0 etc... (and remember that sin takes values between -1 and 1)

It looks like the -4y^3 is dominating... (the sin(y) term just superimposes a small oscillation on this curve)
 

Attachments

  • surface1.jpg
    surface1.jpg
    52.9 KB · Views: 1,414
Last edited:
  • #16
Sorry, I could not open the attached file. And the graph would be a surface, so I can not tell anything from this.

J77 said:
You could plot the function; see below.

Looks to be negative for x>0, for all y.

I think you'll have to look at which terms dominate for, eg. x>0 y>0, x>0 y<0 etc... (and remember that sin takes values between -1 and 1)

It looks like the -4y^3 is dominating... (the sin(y) term just superimposes a small oscillation on this curve)
 
Last edited:
  • #17
matt grime said:
You do it by 'doing it', there is no universal method. Look at the function. Is it possible to make it negative? Is it possible to make it positive? Fix x, or y, whatever is needed. For a given x what is the minimal value as a function of y? what is the maximal value, etc.
I have put three different values for x (-20,0,20), so I got a function of y. After that I plotted the new function and the graph shows that it is positive and negative. After that, I put the same values in the original function but now for y and I plotted the new function for x, and that shows that the function is always positive. So, can I now say the function is neither positive nor negative?
 
Last edited:
  • #18
behappy said:
I have put three different values for x (-20,0,20), so I got a function of y. After that I plotted the new function and the graph shows that it is positive and negative. After that, I put the same values in the original function but now for y and I plotted the new function for x, and that shows that the function is always positive. So, can I now say the function is neither positive nor negative?
If you get both positive and negative values for the function from various choices of the variables, the function is neither positive (i.e. nowhere negative) nor negative (i.e. nowhere positive). There are regions where it is positive, and regions where it is negative. Since plugging in points only can only demonstrate whether a fuction is neither positive nor negative, here's one way you can see if the function is positive or negative:

Look for discontinuities in the function, and zeros of the function. If there are none, test a point, and the sign of the function at that point will be the sign of the function everywhere. If there are discontinuities or zeros, they will form the boundary between regions. Test each of the regions, and if each test point has the same sign, that is the sign of the function.

Something else you can do is take the absolute value of the function. If |f| = f over the entire domain, then f is positive. If |f| = -f over the entire domain, then f is negative. Otherwise, it's neither.
 
  • #19
Nimz said:
If you get both positive and negative values for the function from various choices of the variables, the function is neither positive (i.e. nowhere negative) nor negative (i.e. nowhere positive). There are regions where it is positive, and regions where it is negative. Since plugging in points only can only demonstrate whether a fuction is neither positive nor negative, here's one way you can see if the function is positive or negative:

Look for discontinuities in the function, and zeros of the function. If there are none, test a point, and the sign of the function at that point will be the sign of the function everywhere. If there are discontinuities or zeros, they will form the boundary between regions. Test each of the regions, and if each test point has the same sign, that is the sign of the function.

Something else you can do is take the absolute value of the function. If |f| = f over the entire domain, then f is positive. If |f| = -f over the entire domain, then f is negative. Otherwise, it's neither.
Thanks a lot for your co-operation,

I am so interested in what you have just said, but how I can take the absolute value of the function if the domain is [-inf,inf] for both x and y. And also, I use Mathematica so I have plotted the function and the result is a surface. Can I tell whether the function is positive or not from that.

Also, I have looked for discontinuities in the function, and zeros of the function but I found non. Now, how can I test a point? What do you mean?
 
Last edited:
  • #20
behappy said:
Sorry, I could not open the attached file. And the graph would be a surface, so I can not tell anything from this.
ummm...

Your function defines a surface :biggrin:

If I was you, I'd reread my post and then apply it, and the graph, to the questions/conclusions you pose above.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 25 ·
Replies
25
Views
8K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 35 ·
2
Replies
35
Views
4K