Sunday Function

In our tour of the zoo of functions we've been spending time in the snake pit. These are the pathological functions of pure math, and are generally but not always useless in physics and pretty much everything else. But they're very cool to look at! We'll eventually get back to the useful domesticated farm animals of the functions but we're in no hurry. Here's the next snake and its picture:

i-6ff49e91a1a8b01ce7c8b4675aa7f78e-Picture 1.png

It looks like a double-valued function, a straight line under a parabola. but it's not. If x is rational, f(x) is just the square of x. Otherwise, it's 0. So f(π) = 0, but f(3) = 9.

It's loosely of the same species as the Dirichlet function. It's chopped up in an infinite number of places, and it's discontinuous everywhere.

Almost everywhere. In fact, this function is continuous at exactly one point - the origin. Here's why: a function is continuous at x = C if for any tiny positive number ε, there is a positive number δ such that every x within δ of C, |f(C) - f(x)| < ε. This function fits that definition. But only at that one point x = 0. Everywhere else, the fact that the function is infinitely chopped up prevents a the definition of continuity from being satisfied.

Continuous at exactly one point. Exceptionally weird.

There are weirder. If this function is a snake, Thomae's function is a basilisk. That one's a much more difficult story for another day.

[Bonus exercise for the mathematically fluent: is f differentiable at the origin? If we replaced x2 with x in the definition of the function, what would its status be with regard to continuity and differentiability at the origin?]

More like this

“In this land of ours, there are many great pits. But none more bottomless than the bottomless pit. Which, as you can see here, is bottomless.” -Grunkle Stan, Gravity Falls After another week of fun-filled stories about the Universe here at Starts With A Bang, it's time to take a look back at…
There was a postdoc in my research group in grad school who had a sister in college. She called him once to ask for help with a math assignment dealing with series expansions. He checked a book to refresh his memory, and then told her how to generate the various series needed for her homework…
I've never heard of Adam Felbers before today, but after reading the piece I'm going to reproduce below, I'm ready to nominate him for the comedy hall of fame. He gives permission here to reproduce this transcript in e-mails of a commentary he did on This American Life on the radio recently, so I…
As most of you will remember, we came very close to moving during the summer. It was an agonizing decision to make - there were compelling arguments on both sides, and while we ultimately came down in favor of staying in place, we also recognized that the problems we saw with our present situation…

I found this post very entertaining. I could never have concieved of a function being continuous at exactly one point!

By Alan D. McIntire (not verified) on 21 Sep 2008 #permalink

Intuitively, it seems that f should be differentiable at the origin, since the tangents of both "pieces" of the function match at the origin. By the same argument, if you replaced the x^2 piece with x, I would expect it to no longer be differentiable (though still continuous).

I imagine you could construct a function like f that when graphed as above appeared arbitrarily multivalued. I'm not quite sure how you would construct the disjoint domains for the different pieces of the function. But for example, for a (seemingly) three-valued function, you could use the rationals, the irrationals minus the trancendentals, and the trancendentals as your three domains, and assign three different functions to those pieces.

Steven appears to be right. For any x, the quotient (f(x)-f(0))/(x-0)<=x, so it converges as x approaches zero.
If you replace x**2 with x, the function is still continuous at x=0, but you find (f(x)-f(0))/(x-0) to be zero for x in R\Q and one for x in Q. Pretty much in accordance with Steven's intuition.

I remember creating another seemingly multivalued function which filled the whole screen of my TI, namely y=rand(). Not very interesting to analyze, though.

For any x, the quotient (f(x)-f(0))/(x-0)

Should have used the preview; some goblin stole the right half of my inequality. It was meant to be (f(x)-f(0))/(x-0) \leq x, of course.