Is Mathematica able to accurately graph this function at such a small domain?

In summary, your calculus book describes the following example:Equation:\lim_{x \rightarrow 0} \sin \frac{\pi}{x} = \text{does not exist}However, my independent research indicates that it is actually:Equation:\lim_{x \rightarrow 0} \sin \frac{\pi}{x} = \text{Interval}(-1,1)
  • #1
Orion1
973
3

My calculus book describes the following example:

Equation:
[tex]\lim_{x \rightarrow 0} \sin \frac{\pi}{x} = \text{does not exist}[/tex]

However, my independent research indicates that it is actually:
Equation:
[tex]\lim_{x \rightarrow 0} \sin \frac{\pi}{x} = \text{Interval}(-1,1)[/tex]

Is this second solution only theoretical, and not a real valid solution in a Calculus I course?
 
Physics news on Phys.org
  • #2
Orion1 said:

My calculus book describes the following example:
Equation:
[tex]\lim_{x \rightarrow 0} \sin \frac{\pi}{x} = \text{does not exist}[/tex]
However, my independent research indicates that it is actually:
Equation:
[tex]\lim_{x \rightarrow 0} \sin \frac{\pi}{x} = \text{Interval}(-1,1)[/tex]
Is this second solution only theoretical, and not a real valid solution in a Calculus I course?

That's the thing as x approcahes zero teh value of this function continually oscillates between -1 and 1 therefore the limit does not exist.
 
  • #3
Like d_leet said for a limit to have a value L

[tex] \lim_{x \rightarrow a} f(x) = L [/tex]

then

[tex] \lim_{x \rightarrow -a} f(x) = \lim_{x \rightarrow +a} f(x) = L [/tex]

In the case of that function, it oscilates.
 
  • #4
Orion1 said:
\
However, my independent research indicates that it is actually:
Equation:

[tex]\lim_{x \rightarrow 0} \sin \frac{\pi}{x} = \text{Interval}(-1,1)[/tex]
Is this second solution only theoretical, and not a real valid solution in a Calculus I course?

I will hazard a guess that "independent research" means typing it into a program like Maple or Mathematica. You should have a look at the documentation provided by these programs as to what this actually means. From maple:

"If limit returns a numeric range it means that the value of the limiting expression is known to lie in that range for arguments restricted to some neighborhood of the limit point. It does not necessarily imply that the limiting expression is known to achieve every value infinitely often in this range."
 
  • #5
Orion1 said:

However, my independent research indicates that it is actually:
Equation:
[tex]\lim_{x \rightarrow 0} \sin \frac{\pi}{x} = \text{Interval}(-1,1)[/tex]
Is this second solution only theoretical, and not a real valid solution in a Calculus I course?
What 'research' led you to conclude that ??

Perhaps you meant to say:
[tex]\forall \varepsilon > 0,\bigcup\limits_{\left| x \right| < \varepsilon } {\left\{ {\sin \frac{\pi }
{x}} \right\}} = \left[ { - 1,1} \right] [/tex]
where [itex] x \ne 0 [/itex] (an undefined element?)
 
Last edited:
  • #6


I performed some calculations on this function and produced the following results:

[tex]\lim_{x \rightarrow 0^+} \sin \frac{\pi}{x} = 1[/tex]
[tex]\lim_{x \rightarrow 0^-} \sin \frac{\pi}{x} = -1[/tex]
[tex]\boxed{\lim_{x \rightarrow 0^{\pm}} \sin \frac{\pi}{x} = \pm 1}[/tex]
 
Last edited:
  • #7
Orion1 said:

I performed some calculations on this function and produced the following results:
[tex]\lim_{x \rightarrow 0^+} \sin \frac{\pi}{x} = 1[/tex]
[tex]\lim_{x \rightarrow 0^-} \sin \frac{\pi}{x} = -1[/tex]
[tex]\boxed{\lim_{x \rightarrow 0^{\pm}} \sin \frac{\pi}{x} = \pm 1}[/tex]

Perhaps you would be kind enough to show us your calcuations. :)
 
  • #8
[tex]\lim_{x \rightarrow 0} \sin \frac{\pi}{x} = \text{Interval}(-1,1)[/tex]
That is incorrect.

It is true that [-1, 1] is the set of limit points of this function as x goes to 0, but the limit of a function is defined to be its only limit point. Since this function does not have a single limit point (it has many), the limit does not exist.
 
  • #9
Your independent research seems to have involved faulty arithmetic.

As Hurkyl said, [-1,1] is the set of limit points. I myself would have said "subsequential limits": given any number, X, between -1 and 1, it is possible to choose a sequence, {xn}, converging to 0, such that the sequence [itex]{sin(\frac{\pi}{x_n})}[/itex] converges to X. However, saying that is exactly saying that the limit of the function itself does not exist.
 
Last edited by a moderator:
  • #10
Calculus Calculations...

Tide said:
Perhaps you would be kind enough to show us your calcuations. :)


Mathematica:
[tex]\text{In[1] := Limit} \left[ \sin \left[ \frac{\pi}{x} \right], x \rightarrow 0 \right] [/tex]

[tex]\text{Out[1] = Interval[{-1,1}]}[/tex]

[tex]\boxed{\forall \varepsilon > 0,\bigcup\limits_{\left| x \right| < \varepsilon } {\left\{ {\sin \frac{\pi }{x}} \right\}} = \left[ { - 1,1} \right] \; \; x \ne 0}[/tex]

Basic Source Code:
Code:
ST = 0.00001!

For X1 = 1 To 0 Step -ST
Y1 = Sin(PI / X1)
Next X1

For X2 = -1 To 0 Step ST
Y2 = Sin(PI / X2)
Next X2

Results:
[tex]\begin{array}{|c|c|} S_T & Y_1 \\ \hline 0.01 & 0.275 \\ 0.001 & 0.562 \\ 0.0001 & 0.832 \\ 0.00001 & 0.956 \\ \hline \end{array}[/tex]

[tex]\begin{array}{|c|c|} S_T & Y_2 \\ \hline 0.01 & -0.275 \\ 0.001 & -0.562 \\ 0.0001 & -0.832 \\ 0.00001 & -0.956 \\ \hline \end{array}[/tex]

[tex]\boxed{\lim_{x \rightarrow 0^{\pm}} \sin \frac{\pi}{x} = \pm 1}[/tex]

[tex]\boxed{\lim_{x \rightarrow 0} \sin \frac{\pi}{x} = \text{does not exist}}[/tex]
 
Last edited:
  • #11
Thanks, Orion.

Others have already explained the problem with Mathematica.

Your problem with BASIC is that none of your FOR loops ever hits the desired values of x1 = 0 or x2 = 0. The first clue is that your program didn't crash - i.e. you would have gotten a "division by zero" message. You are working with single precision numbers (which, by the way, according to the IEEE standard maintains only 6 digits of mantissa, i.e. significant digits).

By repeatedly subtracting ST from 1 (for small ST) the binary roundoff error never gets you to exactly zero so the compiler (interpreter?) uses the last value of x! which is nonnegative (in the case of X1 and conversely for X2). You just happened to get values that APPEAR to be getting closer to 1.0 but in reality that is completely fortuitous. Try a few smaller values for ST and your compiler will go bonkers (that's a technical term!) ;)

The correct answer to your original problem is that the limit simply does not exist - whether you approach it from the right or from the left. As others have already indicated, as you approach x = 0 the function will take on any of the values between -1 and +1 but the limit does not exist.
 
  • #12
Orion:
In order to convince you of what others have said, consider a sequence of number [itex]x_{k}=\frac{\pi}{\theta+2k\pi}[/tex], where [itex]\theta[/itex] is some fixed number.

This sequence converges to 0 as k grows.
Form another sequence [itex]y_{k}[/itex] as follows:
[itex]y_{k}=\sin(\frac{\pi}{x_{k}}[/tex]
As is readily found, we have for all k, [itex]y_{k}=\sin\theta[/itex].

Consider why this shows that the limit of your function cannot exist at 0, and why it proves that the set of limit points must be the interval [-1,1]
 
  • #13
One more thing, if you're looking at [tex]\lim_{x\rightarrow 0}f(x)[/tex] for example, it is not sufficient to look at f evaluated along some sequence approaching 0. e.g. if you punch f(1), f(.1), f(.01), f(.001), ..., f(10^(-n)), even if it "looks like" this sequence is converging to L say, you HAVE NOT just proven [tex]\lim_{x\rightarrow 0}f(x)=L[/tex]. They like to put tables of these sorts of evaluations in first year calculus texts, but this is not at all a rigorous approach and can lead to terribly misleading and just plain wrong results.
 
  • #14
Limits...



I understand. However, what happens to this function when plotted by Mathematica at a domain of around +,- 5*10^-19?

The function itself appears to 'shut down' at around +,- 3.41*10^-19.

Is this a machine language or processor limitation? :eek:

Mathematica:
[tex]\text{Plot} \left[\sin \left[ \frac{\pi}{x} \right], {x,-1,1} \right][/tex]

[tex]\text{Plot} \left[\sin \left[ \frac{\pi}{x} \right], {x,-5*10^{-19}, 5*10^{-19}} \right][/tex]

The Mathematica plots from these commands are attached.
 

Attachments

  • 001.jpg
    001.jpg
    8.6 KB · Views: 396
  • 002.jpg
    002.jpg
    6.9 KB · Views: 419
Last edited:
  • #15
Orion1 said:

I understand. However, what happens to this function when plotted by Mathematica at a domain of around +,- 5*10^-19?
The function itself appears to 'shut down' at around +,- 3.41*10^-19.
Is this a machine language or processor limitation? :eek:
Mathematica:
[tex]\text{Plot} \left[\sin \left[ \frac{\pi}{x} \right], {x,-1,1} \right][/tex]
[tex]\text{Plot} \left[\sin \left[ \frac{\pi}{x} \right], {x,-5*10^{-19}, 5*10^{-19}} \right][/tex]
The Mathematica plots from these commands are attached.
Well do remember that everything has its computational limits, though when I ran that on Mathematica it didn't result in the same problem.
 
  • #16
Orion1 said:
I understand. However, what happens to this function when plotted by Mathematica at a domain of around +,- 5*10^-19?

The function itself appears to 'shut down' at around +,- 3.41*10^-19.

Mathematica is a computational tool, it usually can't help you deal with situations like this (in this case, a function that oscillates arbitrarily quickly by getting sufficiently close to zero) in a reasonable manner, because it is run on a machine in the physical, discrete, world. Frankly, in this case the software (or your processor) probably includes a feature specifically designed to stop your computer from generating an error!
 

FAQ: Is Mathematica able to accurately graph this function at such a small domain?

What are theoretical limits in science?

Theoretical limits refer to the maximum or minimum values that a physical or mathematical quantity can reach under ideal conditions. They are often used to set goals for scientific research and development.

How are theoretical limits determined?

Theoretical limits are determined through mathematical analysis and experimentation. Scientists use fundamental laws and principles to calculate the limits for a given phenomenon or system.

What is the significance of theoretical limits?

Theoretical limits help scientists understand the boundaries of what is physically possible. They also provide a benchmark for evaluating the performance of existing technologies and for predicting the potential of future advancements.

Can theoretical limits ever be surpassed?

It is possible for theoretical limits to be surpassed in certain circumstances. For example, advancements in technology or new discoveries in science may allow for previously unattainable limits to be exceeded.

Are theoretical limits absolute?

No, theoretical limits are not absolute and can be subject to change as new information and understanding is gained. They also may vary depending on the specific conditions and assumptions used in their calculation.

Similar threads

Replies
9
Views
2K
Replies
3
Views
1K
Replies
15
Views
2K
Replies
1
Views
1K
Replies
4
Views
2K
Replies
1
Views
1K
Back
Top