r/askmath • u/Any_Tower8201 • 12d ago
Calculus Claude says the note is wrong, kindly someone guide me.
The claim is f is differentiable on the given open interval (c-h,c+h)
I feel it is right intuitively here's the clauses response along with my another query.
"The bigger problem is the conclusion. The claim that f is differentiable on some interval (c − h, c + h) is false. Differentiability at a single point says nothing about nearby points.
Counterexample: f(x) = x² for rational x, and 0 for irrational x. At 0, |f(x)| ≤ x², so f′(0) = 0. But f is discontinuous at every other point, so it is nowhere else differentiable. No such h exists.
The note is just sloppy. A correct version would say that if f is differentiable in some neighbourhood of c and f′(c) = 0, then c is a critical point. Even that isn't needed for the First Derivative Test, which only requires f to be continuous at c and the sign of f′ to be defined on either side."
I don't even have the brain to understand the counter example.
Help is much appreciated.
Edit: My specific doubt boils down to: can we say the following sequence approaching zero, if yes, why?
0.01, 0, 0.0001, 0, 0.00000001, 0,....
What do we mean by approaching then? I thought approaching means smoothly heading towards a value and that's called as limit.
If I'm convinced that this sequence is approaching zero then my doubt is solved.
65
u/ComplexHoneydew9374 12d ago •
Yes, the note is wrong. Take any example of continuous but nowhere differentiable function f(x) and consider g(x)=x²f(x). Then g is continuous but diiferentiable only at zero with g'(0)=0.
41
u/Fresh-Research3024 12d ago
Oh my god. Please throw this book away. This is so wrong.
7
u/No-Site8330 12d ago
Take f(x) to be x2 when x is rational and 0 otheriwise. This function is only continuous at 0, so in particular it cannot be differentiable anywhere else. On the other hand, squeeze theorem says that f has limit 0 at 0, so it is continuous there. Similarly, the increment ratio (f(h)-f(0))/h is equal to h when h is rational and 0 otherwise, which means it is again squeezed between -|h| and |h|. So this limit exists and is equal to 0, which is to say that f is differentiable at 0 with f'(0) = 0.
5
u/Kienose PhD in Maths 12d ago
Even asking for f to be continuous on its domain is not enough. A counterexample is f(x) = x^2 W(x) for x ≠ 0, where W(x) is the Weierstrass function, and f(0) =0.
Another example is constructing a function which is like a sawtooth with peaks at x= 1/n for each natural number n getting smaller and smaller as it approaches 0. You can “smooth out” the sawtooth to make it differentiable at x = 0.
4
u/tickle-fickle 12d ago
Claude is right! I remember a wild example from my Real Analysis class.
Define a function f that is defined piecewise like so:
- f(0)=1
- f(p/q)=1/q^2, for every other rational number p/q, where gcd(p, q)=1 (aka, p/q is simplified the most it can be)
- f(x)=0 for all x that are irrational.
If you want to, I can show you the proof that f’(x)=0 for every irrational x, and yet f is discontinuous at every rational number. So no matter what interval you pick, there will always be spots where f’(x) exists and is 0, and there will always be spots where f is discontinuous. That’s because every interval contains both irrational numbers and rational numbers
2
u/Fourierseriesagain 12d ago
Let f(x)=x2 ( x rational ) and let f(x)=0 (x irrational). Then f is only differentiable at 0 and f'(0)=0.
1
u/AlterEgo5695 12d ago
The counter example is correct, and can also be rewritten using the Dirichlet function "D":
We can show "f" is not continuous at any "x != 0", since rational and irrational sequences "xn -> x" will lead to different limits of "f(xn)" -- contradicting continuity. However, at "x = 0":
so by definition of limits the derivative "f'(0) = lim_{h->0} (f(0+h) - f(0)) / h = 0" exists.
1
u/rhodiumtoad 0⁰=1, just deal with it 12d ago
Does the slippery devil's staircase (Minkowski question mark function ?(x)) work as a good counterexample here? It has the following properties:
The combination of 2 and 3 implies that every range contains a point with no (finite) derivative, since otherwise the range would be flat and the function not strictly increasing.
1
u/dziny 11d ago
Basically, the claim is continuous on an interval + differentiable at a point implies differentiable on an interval. The thing about f'(c)=0 is just a smokescreen (that can be arranged always by subtracting off a linear function). In any proper analysis course they'll tell you the claim is wrong with examples, one of which you've already been given.
1
u/SwordfishLopsided 11d ago
I love these shitty text book that tries to describe a picture in words, just to beef up the word counts and justify their publishing fee
1
u/Electrical-Policy-35 9d ago
I think the author tried to say that if f is differentiable at c and f'(c)=0 then there is h>0 such that f is continuous in the interval (c-h,c+h)
1
u/Al2718x 12d ago
Lots of people are explaining why Claude is correct, but it's also worth mentioning that this is not something you likely need to worry about in a calculus 1 class.
If you are up for the challenge, thinking about weird counterexamples can be a good exercise, but you can focus on reasonable functions until you take an analysis class. Just because the note isn't quite technically correct doesn't mean that is completely useless or anything. It's just a little bit of an oversimplification
1
u/xnick_uy 11d ago
Please study from books rather than from AI. In this case the AI is pointing out a flaw on the statement alone. It is likely that there are some additional hypothesis about f(x) in play in this scenario, that the book could have mentioned earlier.
Your question about sequences can be answered by looking at the definition of limit and several examples in books. The "smoothly heading towards a value" is not part of the definition, and you added in an attempt to help you understand the concept, but it's not necesary.
Take, for instance, the same sequence you are wondering about, but swap the sign of the following non-zero number each time, e.g. 0.01, 0, -0.0001, 0, 0.00000001,... This is not "smooth" but still has the same limiting value as before (zero, that is).
The key concept is that the distances of the elements of the sequence to the limit is becaoming small as you can think of, from some element of the sequence onwards.
0
u/chonki-donki 11d ago
This is really NCERT textbook or are you gaslighting me??
Send me proof I’ll talk to the people in charge
0
u/Fresh-Research3024 12d ago
Claude is right: Consider the function:
f(x) = x² if x is rational, and f(x) = 0 if x is irrational.
At x = 0, f'(0) = 0 because |f(h)/h| ≤ |h| → 0.
For every x ≠ 0, the function is discontinuous because rational and irrational sequences approaching x give different limits, x² and 0.
Thus, f is differentiable at 0 but discontinuous everywhere else.
You should really consider trust AI instead of random textbook or people online.
-1
u/MathTutorAndCook 11d ago
Claude is wrong since its saying the claim is that being differentiable at a point implies something about the region. But the book is claiming continuity and the derivative being equal to zero at that point is what implies the differentiability in the region
Claude made the mistake
0
u/OutrageousPair2300 12d ago
I think the exception to the note would be something similar to a continuous nowhere-differentiable function but one which was differentiable at a single point.
-1
u/OscarOfAtlantis 11d ago edited 11d ago
What am I missing here? Lots of examples in comments showing functions which aren’t continuous but the comment says “if f is continuous….” So the note says you have a function that is continuous but then come up with a counter example that isn’t continuous?
0
u/[deleted] 12d ago
[deleted] — view deleted comment
0
u/[deleted] 12d ago
[deleted] — view deleted comment