7

Given: $f(x)=\cos(1/x)$ When $x \neq 0$ and zero at $x=0$, is: $$ F(x)= \int^x_0f(t)\,dt $$ differentiable at zero?

I believe this is differntiable, since intuitively we are shrinking the area we are integrating over so it should approach zero, but I could use a hand starting the proof.

mphy
  • 851
  • 1
    The function is indeed differentiable. I suggest how to prove this in comments to the other answer, and provide a reference where you can find full details of a much more general result. But you should be able to turn the suggestion into a proof: Simply find bounds for $F(x)$ in terms of $x$. – Andrés E. Caicedo Dec 17 '14 at 04:22

3 Answers3

7

Let $$G(x)=\left\{\begin{array}{cl}x^2\sin(1/x)&\mbox{ if }x\ne 0,\\ 0&\mbox{ if }x=0.\end{array}\right.$$ Note that $G'(x)=2x\sin(1/x)-\cos(1/x)$ for $x\ne 0$ and $G'(0)=\lim_{h\to0}G(h)/h=0$. Let $$g(x)=\left\{\begin{array}{cl}2x\sin(1/x)&\mbox{ if }x\ne 0,\\ 0&\mbox{ if }x=0.\end{array}\right.$$ Clearly, $g$ is continuous. But then $g$ is a derivative, because all continuous functions are derivatives. It follows that $$f(x)=g(x)-G'(x)$$ is the difference of two derivatives, and is therefore a derivative itself.

Note also that $f$ is continuous except at one point, and it is bounded, so it is Riemann integrable, and therefore $F$ is well-defined. The function $F$ is continuous at all points and an antiderivative of $f$ at all points different from $0$, but then it is an antiderivative of $f$, since the argument in the previous paragraph shows that $f$ has an antiderivative, even at $0$, and continuity prevents us from having an antiderivative of $f$ that differs from $F$ only at one point.

That $F$ is an antiderivative of $f$ can also be shown (by rescaling) as a consequence of a more general result in Chapter 14 of A second course on real variables by van Rooij and Schikhof, but the argument above is much simpler. For completeness, the result in the van Rooij-Schikhof book is the following:

Theorem. Suppose that $j:[0,\infty)\to\mathbb R$ is a derivative, and that $j(x+1)=j(x)$ for all $x\ge0$. Let $J$ be an antiderivative of $j$, and let $A=J(1)-J(0)$. Define $h$ on $[0,1]$ by $$ h(x)=\left\{\begin{array}{cl}j(x^{-1})&\mbox{ if }0<x\le1,\\ A&\mbox{ if }x=0.\end{array}\right.$$ It is then the case that $h$ is a derivative on $[0,1]$. In particular, if $k:[0,1]\to\mathbb R$ is a derivative, and $k(x)=j(x^{-1})$ for $0<x\le 1$, then $k(0)=A$.

Another approach is to simply argue that $F(x)/x\to0$ as $x\to 0$. Trying to appeal to L'Hôpital's rule does not help much here: $F(x)/x=f(c_x)$ for some $c_x$ between $0$ and $x$. One then needs to prove that $\lim_{x\to 0}f(c_x)$ exists (and equals $0$), but this is not the same as arguing that $\lim_{x\to0}f(x)=0$. Clearly, the latter would have implied the former. But the latter is false. Since we do no have much control over the function $x\mapsto c_x$ (see also here), dealing with the former directly does not seem too feasible. Instead, one is forced to argue directly in terms of the integral $F$ (as I suggested in some comments before posting this answer). This is not hard in the case at hand, and details have been worked out in the answer by poster copper.hat.

5

$F(x)$ is differentiable at $0$ if and only if $$ \lim_{x \to 0} \frac{F(x) - F(0)}{x-0} =\lim_{x \to 0} \frac{F(x)}{x} \stackrel{\mathcal{L}}{=} \lim_{x \to 0} F^\prime (x) = \lim_{x \to 0} f(x) $$ exists.

Now, the real question is whether or not

$$ \lim_{x \to 0} \cos(1 / x)$$

exists. I will leave that to you.

See comments below.

MAPLE says:

enter image description here

MathMajor
  • 6,478
  • But that limit doesn't exist. So it's not differentiable? – mphy Dec 17 '14 at 04:09
  • @mphy That is correct. – MathMajor Dec 17 '14 at 04:10
  • 1
    The function is differentiable. This answer is incorrect. The problem is that $F(x)/x$ is not $F'(x)$ but rather $F'(c_x)$ for some $c_x$ between $0$ and $x$, so we are not really considering $\lim_{x\to0}F'(x)$ (which does not exist), but rather $\lim_{x\to0}F'(c_x)$, which happens to be $0$, because $F'(0)$ exists, and equals $0$ (though, of course, a different argument is needed to show this). – Andrés E. Caicedo Dec 17 '14 at 04:11
  • (What this shows is that $F'$ is not continuous at $0$. But we knew that already, because $F'(x)=f(x)$ for $x>0$.) – Andrés E. Caicedo Dec 17 '14 at 04:12
  • 1
    Yes but $F(x)$ is clearly differentible for $x \neq 0$, we are investigating the point where $x=0$, for which it is not differentiable. – MathMajor Dec 17 '14 at 04:14
  • 1
    Gabriel, the function $F$ is differentiable at $0$.You can argue this by hand, by bounding $F(x)$ in terms of $x$. Or you can invoke fairly general theorems. See for instance Item 6 in the introduction, or Chapter 14 in A second course on real variables by van Rooij and Schikhof. – Andrés E. Caicedo Dec 17 '14 at 04:15
  • I don't see your reasoning as correct. Perhaps you could provide your solution as an answer to this question so I could look at your full argument. – MathMajor Dec 17 '14 at 04:17
  • I found a link to what @AndresCaicedo mentioned. It uses Darboux's theorem to prove the existence of an antiderivative for f(x). – mphy Dec 17 '14 at 04:44
  • I haven't taken a second course in real variables, and I can't comment on his answer. I think my answer is correct based on my limited knowledge, and MAPLE. I'm sure we will get input from other Math.SE users as to which answer is correct. – MathMajor Dec 17 '14 at 04:54
  • Your use of L'Hopital's rule is invalid: the limit after you differentiate numerator and denominator must exist in order for L'Hopital to be applicable. – Santiago Canez Dec 17 '14 at 05:06
  • 3
    I have just upvoted this (uncorrect) answer, because the pitfall is so unexpected, that, in my opinion, it should rest here (but with a warning). – Przemysław Scherwentke Dec 17 '14 at 05:08
  • 2
    Okay, I see how I am wrong now. I will leave this answer up as you suggest and I made a note to see the comments. I wonder why MAPLE says that it does not exist ... – MathMajor Dec 17 '14 at 05:09
  • I think using L'Hopital's in this way is inevitably circular (though I agree it is still unexpected). Indeed, if $f$ is differentiable except possibly at $x_0$, and we investigate the limit $\dfrac{f(x_0+h) - f(x_0)}{h}$ as $h\to 0$ by differentiatiating (with respect to $h$) the numerator and denominator, we get that the limit is equal to $f'(x_0)$, provided $f'(x_0)$ exists, which is exactly what we were trying to decide in the first place. – BaronVT Dec 17 '14 at 05:20
  • 1
    I added an elementary proof above. – copper.hat Dec 17 '14 at 05:49
4

Here is a tedious (but elementary) approach:

We have ${F(h) \over h} = {1 \over h} \int_0^h \cos {1 \over x} dx$. Using the substitution $t={1 \over x}$ we get $\int_0^h \cos {1 \over x} dx =\int_{1 \over h}^\infty \cos t {1 \over t^2} dt$, and integrating by parts with $u = {1 \over t^2}, dv = \cos t \,dt$ gives $\int_{1 \over h}^\infty \cos t {1 \over t^2} dt = {1 \over t^2} \sin t \big |_{1 \over h}^\infty+ \int_{1 \over h}^\infty\sin t {2 \over t^3} dt$. Hence $|\int_0^h \cos {1 \over x} dx| \le |h^2 \sin {1 \over h}|+ \int_{1 \over h}^\infty {2 \over t^3} dt \le h^2+h^2$, from which we get $|{F(h) \over h}| \le 2h$, and hence $F'(0) = 0$.

copper.hat
  • 172,524