The biggest value for sin(x)/x

  • Context: Undergrad 
  • Thread starter Thread starter Stephanus
  • Start date Start date
  • Tags Tags
    Value
Click For Summary

Discussion Overview

The discussion centers around the function sin(x)/x, particularly its behavior near x = 0 and the question of whether it has a maximum value. Participants explore the implications of limits, definitions, and graphical representations of the function.

Discussion Character

  • Exploratory
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant describes a software tool for plotting sin(x) and raises the question of how to prove that the maximum value of sin(x)/x is 1 as x approaches 0.
  • Another participant suggests that the largest value of F(x)/x occurs when x is near zero, but questions the implications of this for the function's behavior at larger values of x.
  • Some participants assert that the function sin(x)/x is not defined at x = 0, thus it cannot attain a maximum value of 1.
  • There are references to calculus techniques for finding maxima, with some participants indicating that this is a straightforward exercise.
  • Multiple participants express confusion regarding the relevance of the limit as x approaches 0 to the question of the function's maximum value.
  • One participant notes that while the limit of sin(x)/x as x approaches 0 is 1, the function itself does not have a defined value at that point.
  • Discussions include the idea of a removable discontinuity at x = 0 and the implications of defining the function differently at that point.
  • Some participants express uncertainty about whether there could be a spike in the function's value between 0 and pi/2.

Areas of Agreement / Disagreement

Participants do not reach consensus on whether sin(x)/x has a maximum value or if the limit as x approaches 0 is relevant to the function's behavior. There are competing views on the interpretation of the limit and the function's definition at x = 0.

Contextual Notes

Limitations include the function's undefined nature at x = 0, the potential for confusion regarding the relationship between limits and function values, and the varying interpretations of mathematical definitions among participants.

Stephanus
Messages
1,316
Reaction score
104
Dear PF Forum,
Finally I have written a simple software to plot Sin(X)
SineX.jpeg

It can also draw y = sin(x) + cos(x). But I don't know how to use this function in real life.
SinXPlusCosX.jpeg

This software is very simple.
All you need to do is altering this short function
Code:
    case FDrawMode of
      0: Result:=Sin(X)+Cos(X);
      1: Result:=Sin(X);
      2: Result:=Cos(X);
      3: Result:=Sin(X)/X;
    end;
Don't forget to alter this line also.
Code:
  LS:=edtDrawMode.Items;
  LS.Clear;
  LS.Add('y = Sin(x)+Cos(x)');
  LS.Add('y = Sin(x)');
  LS.Add('y = Cos(x)');
  LS.Add('y = Sin(x)/x');
If you see the last line. LS.Add('y = Sin(x)/x');.
What if X is zero?
I cheat :smile:
Put catch exception in the code.
Code:
      try 
        Y:=ScaleY*Fc*                 CalcY(X+Sh); // case of sin(x)/x; if x = 0 then CalcY(X) will cause error.
        YY:=Height1-Round(Y);
        CV.Pixels[XX,YY]:=PlotColor;
      except
        // if error then don't draw anything
      end;

SineXPerX.jpeg

Funnily the computer still draw the curve as it is supposed to be.
And interesting enough. for sin(x)/x the biggest value is 1 for ##\lim_{h \to 0} \frac{\sin(h)}{h}##.
But how to proof that the biggest value for sin(x)/(x) is lim h -> 0?
The graph shows that, but we just can't say. "Well the graph shows that, so the biggest value for sin(x)/(x) is 1",
Anyone interested to proof it?
 
Physics news on Phys.org
I think the logical tought is this:
The biggest value for F(x)/x is if x is almost zero.
It makes sense, if x is 4 pi or 8 pi, the value will almost zero, too.
But if x is almost zero then Sin(x) is also almost zero, too.
Hmm, anyone can give a bettter opinon?
 
The function ##\frac{sin(x)}{x}## is not defined in ##0##. Thus it never becomes ##1##. The function has no biggest value.
 
Anyway, finding the biggest value (maximum) of a function is a simple exercise with derivatives. Any calculus book should cover this in their section of derivatives.
 
  • Like
Likes   Reactions: Stephanus
micromass said:
The function ##\frac{sin(x)}{x}## is not defined in ##0##. Thus it never becomes ##1##. The function has no biggest value.
So the "proof" that ##lim_{h \to 0} \frac{\sin(h)}{h}## is not a "proof"? Thanks, I don't want to argue. Just want to know what other thinks.
 
micromass said:
Anyway, finding the biggest value (maximum) of a function is a simple exercise with derivatives. Any calculus book should cover this in their section of derivatives.
"Exercise", I like that.
 
Stephanus said:
So the "proof" that ##lim_{h \to 0} \frac{\sin(h)}{h}## is not a "proof"? Thanks, I don't want to argue. Just want to know what other thinks.

I don't see how ##\lim_{h\rightarrow 0} \frac{\sin(h)}{h}## is at all relevant here.
 
micromass said:
I don't see how ##\lim_{h\rightarrow 0} \frac{\sin(h)}{h}## is at all relevant here.
Thanks micromass, I don't even see it at the slightest either. It's just an interesting graph, I wouldn't know the answer before the computer shows it. Just want confirmation.
 
  • Like
Likes   Reactions: jedishrfu
You "just want confirmation" of what?

Your question is very confused. You ask about the "biggest value" of sin(x)/x.

That function does NOT HAVE a largest value. Its value, for any x, is less than 1 but comes arbitrarily close to 1.

Then you talk about the limit as x goes to 0 which is a completely different question! Yes, the limit, as x goes to 0, of sin(x)/x is 1. There are a number of different ways to show that depending on exactly which definition of sin(x) you are using. But that is NOT the value of the function at x= 0 because the function is NOT DEFINED at x= 0.
There is a "removable discontinuity" at x= 0. You could "remove" it by defining f(x)= sin(x)/x if x is not 0, f(0)= 1. But that would be a different function.
 
  • #10
Stephanus said:
Thanks micromass, I don't even see it at the slightest either. It's just an interesting graph, I wouldn't know the answer before the computer shows it. Just want confirmation.

Sometimes that is the case, in this case though you know the sin(x) and you know that its periodic however the x increases and reduces the amplitude of the sin(x) so you should expect it to dampen out and approach zero at very large x values. For me the interesting part is where x<1 and the combination of sin(x) / x complements one another to create the curve shown.

You should try other trig functions to see how they act like cos(x)/x or tan(x)/x or (sin(x)+cos(x))/x as well as other functions you learn about and develop a skill to be able to look at a function and sketch how it will look without the computer's help.
 
  • Like
Likes   Reactions: Stephanus
  • #11
HallsofIvy said:
You "just want confirmation" of what?
Confirmation if I'm right or wrong. First I imagine what is the biggest value for sin(x)/x? I think it might, it might not be x = 0. But one thing for sure.
##\lim_{h \to 0} \frac{\sin(h)}{h}## is 1
And x = pi/2; sin(x)/x is 0. So if we think linearly, it seems from x = 0 to pi/2 the value should decrease right? (or wrong?)
Then I intend to write a computer software, not to find this answer, but because of this:
RUber said:
https://www.physicsforums.com/threads/sine-cosine-limit-summary.827535/
Can you plot the sin and coz functions? Visually, the derivatives and limits are rather easy to see.
Stephanus said:
Tools? Only Microsoft Paint and Microsoft Excel. Of course I could make a small computer program to PutPixel(X,ScreenHeight-Sin(X/100*Pi)*100), but.. that will be tedious.
Then I have time this afternoon, so I wrote a simple program.
Part of the code.
Code:
    case FDrawMode of
      0: Result:=Sin(X)+Cos(X);
      1: Result:=Sin(X);
      2: Result:=Cos(X);
      3: Result:=Sin(X)/X; // ADDED LATER ON
    end;
Then you can see the result as the graph above about sin(x)/x.
"The computer DOES NOT show error if x=0??" Don't worry I cheat :smile:, see my post above.
Okay, so I see the graph, it seems that if x close to zero sin(x)/x is the highest.
But you know about computer variable. I use a very rough calculation, loop by 0.0001*pi step. And 0.0001 is very rough for math but not for computer variable.
So there remains some question.
1. Isn't there along the line from x = 0 to pi/2 a spike where sin(x)/x is bigger than 1?
2. Sin(x)/x looks (yes, "looks", because it's shown on the screen) highest at x = 0, but x can't be zero, right?
3. Is this true that the biggest value for sin(x)/x is ##\lim_{x \to 0} \frac{\sin(x)}{x}##
But:
micromass said:
The function ##\frac{sin(x)}{x}## is not defined in ##0##. Thus it never becomes ##1##. The function has no biggest value.
Okay, so I'm satisfied enogh with micromass answer.

HallsofIvy said:
Your question is very confused. You ask about the "biggest value" of sin(x)/x.

That function does NOT HAVE a largest value. Its value, for any x, is less than 1 but comes arbitrarily close to 1.
Yes, micromass has answered it.

HallsofIvy said:
Then you talk about the limit as x goes to 0 which is a completely different question! Yes, the limit, as x goes to 0, of sin(x)/x is 1. There are a number of different ways to show that depending on exactly which definition of sin(x) you are using. But that is NOT the value of the function at x= 0 because the function is NOT DEFINED at x= 0.
There is a "removable discontinuity" at x= 0. You could "remove" it by defining f(x)= sin(x)/x if x is not 0, f(0)= 1. But that would be a different function.
Yes.
Code:
double SinXPerX1(double arc)
{
  return(Sin(arc)/arc);
}

double SinXPerX2(double arc)
{
  if(arc==0) return(1); else return(Sin(arc)/arc);
}
Agreed, it's different functions.
 
  • #12
Stephanus said:
1. Isn't there along the line from x = 0 to pi/2 a spike where sin(x)/x is bigger than 1?

No.

2. Sin(x)/x looks (yes, "looks", because it's shown on the screen) highest at x = 0, but x can't be zero, right?

Right.

3. Is this true that the biggest value for sin(x)/x is ##\lim_{x \to 0} \frac{\sin(x)}{x}##

No.
 
  • Like
Likes   Reactions: Stephanus
  • #13
micromass said:
"1. Isn't there along the line from x = 0 to pi/2 a spike where sin(x)/x is bigger than 1?" No
"2. Sin(x)/x looks (yes, "looks", because it's shown on the screen) highest at x = 0, but x can't be zero, right?" Right
"3. Is this true that the biggest value for sin(x)/x is ##\lim_{x \to 0} \frac{\sin(x)}{x}##"No
Come on micromass. I didn't ask that. I'm afraid I have already asked too many questions a day. But that WAS my doubt, and I'm already satisfied with this:
micromass said:
The function ##\frac{sin(x)}{x}## is not defined in ##0##. Thus it never becomes ##1##. The function has no biggest value.
But, thank you very much for your answer. It removes my doubts. I'm afraid I have asked too many questions.
 
  • #14
jedishrfu said:
Sometimes that is the case, in this case though you know the sin(x) and you know that its periodic however the x increases and reduces the amplitude of the sin(x) so you should expect it to dampen out and approach zero at very large x values. For me the interesting part is where x<1 and the combination of sin(x) / x complements one another to create the curve shown.

You should try other trig functions to see how they act like cos(x)/x or tan(x)/x or (sin(x)+cos(x))/x as well as other functions you learn about and develop a skill to be able to look at a function and sketch how it will look without the computer's help.
CosXPerX.jpeg


SinXPlusCosX.jpeg

SinXPlusCosX.jpeg

It seems Cos(x)/x similar to (Sin(x)+Cos(x))/x
TanXPerX.jpeg
 
  • #15
jedishrfu said:
You should try other trig functions to see how they act like cos(x)/x or tan(x)/x or (sin(x)+cos(x))/x as well as other functions you learn about and develop a skill to be able to look at a function and sketch how it will look without the computer's help.
Ahhh, I already
Code:
    case FDrawMode of
      0: Result:=Sin(X)+Cos(X);
      1: Result:=Sin(X);
      2: Result:=Cos(X);
      3: Result:=Sin(X)/X;
      4: Result:=Cos(X)/X; // added
      5: Result:=Sin(X)/Cos(X)/X; // has to change tan to sin/cos, no Tan function in Delphi
      6: Result:=(Sin(x)+Cos(x))/x
    end;
Alter it, compile it, run it, save the graph and upload it.
Hmm.., I didn't think that tan(x)/x will look like that. Picture it without computer or paper? Well, I'm not Descartes, but I'll try.
 
  • #16
IMO, the most important point here is the difference between a function's value (which might not exist) at a particular point and the limit of a function at that point. Two of your graphs are significant here: the graphs of ##y = \frac{sin(x)}{x}## and ##y = \frac{tan(x)}{x}##.

Both graphs appear to show a point at (0, 1). In fact, neither function is defined when x = 0. The graphing software (the program you wrote in Delphi) plots a number of points and then connects the dots.

Even though both functions are undefined at x = 0, both functions have limits that exist as x approaches 0. In mathematical notation ##\lim_{x \to 0}\frac{sin(x)}{x} = 1## and ##\lim_{x \to 0}\frac{tan(x)}{x} = 1##. It's very easy to show that the latter limit can be gotten once you know the first limit.
##\lim_{x \to 0}\frac{tan(x)}{x} = \lim_{x \to 0}\frac{sin(x)}{cos(x) \cdot x} = \lim_{x \to 0}\frac{1}{cos(x)} \cdot \lim_{x \to 0}\frac{sin(x)}{x}##.

The first limit is clearly 1, since cos(0) = 1, and we know that the second limit is 1.
 
  • Like
Likes   Reactions: Stephanus
  • #17
Hi Mark44, it's been a while since you answer my post in: https://www.physicsforums.com/threads/proof-limit-derivatave-of-sin-x.826864/page-3#post-5198643
Mark44 said:
IMO, the most important point here is the difference between a function's value (which might not exist) at a particular point and the limit of a function at that point.
Thanks a lot! A good point! Function value which might not exist vs the limit of that function in that point.
Mark44 said:
Two of your graphs are significant here: the graphs of ##y = \frac{sin(x)}{x}## and ##y = \frac{tan(x)}{x}##.
Both graphs appear to show a point at (0, 1). In fact, neither function is defined when x = 0. The graphing software (the program you wrote in Delphi) plots a number of points and then connects the dots.
Yes both are undefined at x = 0.
Just plot the dots not connect it.
I put something like it in the software.
Code:
try // begin catch error
  Y = sin(x)/X; // calculate Y
  PuPixel(X,Y); // Draw the result
except
  // catch any error
  // don't do anything
end;
The original code is at my first post above.
Mark44 said:
Even though both functions are undefined at x = 0, both functions have limits that exist as x approaches 0.
Yes, yes I know. You've given me this lecture since 2 weeks ago. Thanks :smile:
Mark44 said:
In mathematical notation ##\lim_{x \to 0}\frac{sin(x)}{x} = 1## and ##\lim_{x \to 0}\frac{tan(x)}{x} = 1##. It's very easy to show that the latter limit can be gotten once you know the first limit.
Proof why tan(x)/x = 1? Perhaps later. For now, I'm already satisfied that I can proof why ##\lim_{h \to 0} \frac{\sin(h)}{h} = 1##
Mark44 said:
##\lim_{x \to 0}\frac{tan(x)}{x} = \lim_{x \to 0}\frac{sin(x)}{cos(x) \cdot x} = \lim_{x \to 0}\frac{1}{cos(x)} \cdot \lim_{x \to 0}\frac{sin(x)}{x}##.
The first limit is clearly 1, since cos(0) = 1, and we know that the second limit is 1.
Ahh, that's the proof? Very simple actually.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 27 ·
Replies
27
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K