Wikipedia:

Thomae's function

If you are having difficulty understanding this article, you might wish to learn more about algebra, functions, and mathematical limits.
Point plot of the function on (0,1)
Enlarge
Point plot of the function on (0,1)

Thomae's function, also known as the popcorn function, the raindrop function, the ruler function or the Riemann function, is a modification of the Dirichlet function. This real-valued function f(x) is defined as follows:

f(x)=\begin{cases}   \frac{1}{q}\mbox{ if }x=\frac{p}{q}\mbox{ is a rational number}\\   0\mbox{ if }x\mbox{ is irrational}  \end{cases}

It is assumed here that gcd(p,q) = 1 and q > 0 so that the function is well-defined and nonnegative (gcd refers to the greatest common divisor).

Discontinuities

The popcorn function is perhaps the simplest example of a function with a complicated set of discontinuities: f(x) is continuous at all irrational numbers and discontinuous at all rational numbers. This may be seen informally as follows: if x is irrational, and y is very close to x, then either y is also irrational, or y is a rational number with a large denominator. Either way, f(y) is close to f(x)=0. On the other hand, if x is rational and yx is very close to x, then it is also true that either y is irrational, or y is a rational number with a large denominator. Thus it follows that

\lim_{y\to x} f(y)=0\ne f(x)

The moniker "popcorn function" stems from the fact that the graph of this function resembles a snapshot of popcorn popping. It also looks like the interval markers of a ruler or a rainstorm, hence the nicknames "ruler function" and "raindrop function".

Follow-up

A natural followup question one might ask is if there is a function which is continuous on the rational numbers and discontinuous on the irrational numbers. This turns out to be impossible. For it can be shown that the set of discontinuities of any function must be an F-sigma set. If such a function existed, then the irrationals would be F-sigma and hence would also be a meagre set. It would follow that the real numbers, being a union of the irrationals and the rationals (which is evidently meager), would also be a meager set. This would contradict the Baire category theorem.

A variant of the popcorn function can be used to show that any F-sigma subset of the real numbers can be the set of discontinuities of a function. For if Failed to parse (unknown function\textstyle): \textstyle A=\bigcup_{n=1}^{\infty}F_n , is a countable union of closed sets Fn, define

f_A(x)=\begin{cases}\frac{1}{n}\mbox{ if }x\mbox{ is rational and }n\mbox{ is minimal so that }x\in F_n\\  \\ \frac{-1}{n}\mbox{ if }x\mbox{ is irrational and }n\mbox{ is minimal so that }x\in F_n\\  \\ 0\mbox{ if }x\notin A\end{cases}

Then a similar argument as for the popcorn function shows that fA has A as its set of discontinuities.

External links

References

  • Robert G. Bartle and Donald R. Sherbert (1999), Introduction to Real Analysis, 3rd Edition (Example 5.1.6 (h)). Wiley. ISBN 978-0471321484
  • Abbot, Stephen. Understanding Analysis. Berlin: Springer, 2001. ISBN 0-387-95060-5

 
 
 

Join the WikiAnswers Q&A community. Post a question or answer questions about "Thomae's function" at WikiAnswers.

 

Copyrights:

Wikipedia. This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Thomae's function" Read more

Search for answers directly from your browser with the FREE Answers.com Toolbar!  
Click here to download now. 

Get Answers your way! Check out all our free tools and products.

On this page:   E-mail   print Print  Link  

 

Keep Reading

Mentioned In: