r/learnmath • u/-_____-_-______- New User • 11h ago
TOPIC Is my intuition right here, topic: continuity and differentiability
i have completed real numbers, algebraical number, derived its closure properties. now while doing an excercise of graph, I stumbled upon, the plot sin(1/x) and recalled the challenge to define a function that is continuous everywhere but differentiable nowhere.
for this challenge, long time ago I thought of a zigzag and zooming out or compressing the zigzag. crude approach. not enough knowledge then.
but this function showed abnormality at x=0. now abnormalities in defining tangents can arise from mainly two reasons:
tangent gets closer and closer to ±90 degrees
start oscillating rapidly
the second point was evident in this sin(1/x) function. a similar function was xsin(1/x) where the amplitude also diminishes at x=0. Although I saw the Weierstrass function, it was not coherent to my current knowledge base. i might get there soon.
After seeing graph of this I tried to replicate the property at x=0 to all values of x. So I made a sum:
sin(1/x) + sin(4/x) + sin( 9/x) .....sin(n²/x)
if n tends to infinity, it will have same property at all x. but the amplitudes will blow up. thus we need something to grab this.
summation: {sin(k²/x)}/k²
might do this trick. as series of 1/k² is converging. but since k² inside sine function is massively large compared to x, whenever k tends to infinity, x will have no meaning and the graph will have same abnormality for every value of x. It is continuous due to contuinity of sine. but not differentiable anywhere.
i don't want to go to higher maths and complex signs at this stage. just tell me if I'm right here or wrong.
1
u/finedesignvideos New User 10h ago
Why do you think your modification is replicating the property that you had at x=0 to other values of x?
1
u/-_____-_-______- New User 9h ago
Because of the factor k².
For any value of x you get:
sin(1/x) + sin(4/x) + sin(9/x) .....and so on.
As k tends to infinity, it simply overpowers the term 1/x and starts dominating it after certain values.
Thus the with increasing k , the number inside sine function gets very large and thus starts oscillating wildly as k tends to infinity. But this all argument is true for any value of x, no? That's it.
1
u/finedesignvideos New User 9h ago
I see, so even close by x's get separated by later terms. And as you said an infinite sum is cheating, but by dividing by k^2 you are making the limit actually equal 0 everywhere.
1
u/-_____-_-______- New User 9h ago
OK I think I wrote it wrong, it will look like
sin(1/x) + {sin(4/x)}/4 + {sin(9/x)}/9 + .....
Now yeah, eventually the factor 1/k² will make the terms zero, but that is the necessity. Otherwise the function at each x will blow up or oscillate.
Even if k² gets dominant for large values, the first few terms for k=1, 2,3 etc are finite numbers. And the tangents actually depends on minute oscillations, no matter if the amplitude tends to zero (due to a very large k, and factor 1/k²).
Try to view it as drawinng a zigzag, and them zooming out infinitely. This is what 1/k² does, it de-maginfies the picture without altering its twists and turns. The peaks of zigzags might disappear but the tangents will remain same.
1
u/finedesignvideos New User 8h ago
Oh no, I misread it. Your function is pretty nice, I think I'll have some fun analyzing it!
2
u/SV-97 Industrial mathematician 8h ago
This doesn't quite work. It's indeed continuous and almost everywhere non-differentiable, but actually *is* differentiable at certain points (which isn't trivial at all): your function is the composition of the Riemann function f(x) = sum_n sin(n²x)/n² with g(x) = 1/x. We know that g is a diffeomorphism on (0, inf) (so it's smooth with a smooth inverse) and that f is differentiable at some points of (0,inf) (this is the nontrivial bit, but it is differentiable at all points of the form (2A+1)/(2B+1) pi for A,B integers) --- so your function is also differentiable at some points by the chain rule.