8

Let $f$ be Riemann integrable on $[a,b]$, let $c\in(a,b)$, and let $F(x)=\int_a^xf$ for $x\in[a,b]$.

Exercise 3b in Chapter 14 of Spivak's Calculus (3rd edition) asks to give a proof or provide a counterexample of this statement:

If $f$ is differentiable at $c$, then $F'$ is continuous at $c$.

In his solutions manual, Spivak claims to give a counterexample. His function is $f:[-1,1]\to\mathbb{R}$ defined by

$$f(x)=\begin{cases}0&x=0\\1&x\in\left\{-1,1\right\}\\\frac{1}{n^2}&\frac{1}{n}\leq |x|<\frac{1}{n-1}, n\geq2\end{cases}$$

Observe that $f$ has jump discontinuities at points of the form $1/n$ for nonzero integers $n$ and is continuous everywhere else.

Now certainly $f$ is Riemann integrable on $[-1,1]$ (because its sets of discontinuities is countable, thus measure zero). Moreover $f$ is indeed differentiable at $0$.

But I don't think $F'$ is discontinuous at $0$. On the contrary, here is my proof that $F'$ is continuous at $0$.

First, since $f$ is differentiable at $0$, $f$ is continuous at $0$; it follows by the fundamental theorem that $F'$ exists at $0$ and that $F'(0)=f(0)$. We know $f(0)=0$, so $F'(0)=0$.

It remains to show that $\lim_{x\to0}F'(x)=0$. Now this is a little delicate because, as Spivak points out, $F'$ is not even defined at $1/n$ for $n$ a nonzero integer. But that doesn't prevent us from calculating the limit of $F'$. The limit simply must be taken through the domain of $F'$.

Indeed, given $\epsilon>0$, take $N$ such that $\frac{1}{N^2}<\epsilon$, and pick $\delta=\frac{1}{N}$.

Then if $0<|x|<\delta$ and $x$ is in the domain of $F'$, it follows that $|F'(x)|\leq\frac{1}{(N+1)^2}<\frac{1}{N^2}<\epsilon$.

Therefore it is indeed true that

$$\lim_{x\to0}F'(x)=F'(0)$$

so $F'$ is continuous at $0$.

What's going on here? Is this just a matter of one's definition of the limit of a function on a set that isn't an interval? Spivak seems to think "If $\lim_{x\to c}g(x)$ exists then $g$ is defined on a deleted interval around $c$."

  • 1
    That is indeed what is going on. See this question which quotes the definition of “limit” that Spivak is using, which requires the function to be defined in a deleted interval around the limit point. – Arturo Magidin Mar 09 '21 at 02:09
  • 1
    While it is true that one may generally define limits on any accumulation point of the domain, this is often not done in Calculus, and Spivak is not doing it here. See some of the discussion that occurs inter alia here about the two possible ways to define a limit. – Arturo Magidin Mar 09 '21 at 02:11
  • @ArturoMagidin: thank you! – symplectomorphic Mar 09 '21 at 02:18
  • Even though the question I've asked is a boring one, turning on a technicality, there's a real question lurking just behind: I wonder if the claim "If $f$ is differentiable at $c$, then $F'$ is continuous at $c$" is actually true if you work with the more general definition of a limit. – symplectomorphic Mar 09 '21 at 02:27
  • See this question of mine and also see this answer to a related question. – Paramanand Singh Mar 09 '21 at 04:01
  • @ParamanandSingh: interesting. But (reading quickly), I don’t think the proof RRL gives on your question resolves the question in my comment above, right? I’ve tried all afternoon to find a counterexample (for limits in the more general sense, not Spivak’s sense — so Spivak’s example doesn’t work, nor does yours in your answer in the second link), to no avail. – symplectomorphic Mar 09 '21 at 04:15
  • Yeah, your point is about using a relaxed / general definition of limit. I doubt if a counter-example exists in that case. – Paramanand Singh Mar 09 '21 at 04:17
  • 1
    I hope someone comes up with a proof that no such example exists. – Paramanand Singh Mar 09 '21 at 04:18
  • I will think about such a proof and ask an explicit question tomorrow if I strike out. – symplectomorphic Mar 09 '21 at 04:20
  • @symplectomorphic See my edited answer below. – zhw. Mar 10 '21 at 03:37
  • In the above definition of $f$, should it instead be "$f(x) = 1$ for $x \leq -1$, or $\geq 1$"? – Ben Mar 18 '21 at 22:24
  • @Ben it doesn’t matter. The problem is at the origin. – symplectomorphic Mar 19 '21 at 04:10
  • I confused {$-1,1$} with the interval $(-1,1)$. My mistake. – Ben Mar 19 '21 at 11:43

1 Answers1

4

The answer to your question in the comments is yes: If $f$ is differentiable at $c,$ then $F'$ is continuous at $c$ within the domain of $F'.$

Proof: Suppose $y_n\to c^+$ (the case $y_n\to c^-$ is similar). Assume $F'(y_n)$ exists for each $n.$ Because $f'(c)$ exists, we can write

$$\tag 1 f(x) = f(c) +f'(c)(x-c) + \epsilon(x)(x-c),$$

where $\epsilon(x)\to 0$ as $x\to c.$ Actually we don't need the $\epsilon\to 0$ property. If you divide both sides of $(1)$ by $x-c,$ you'll see $\epsilon(x)$ is bounded on $[a,b]\setminus \{c\},$ say by $M$ in absolute value.

Fix $n.$ Then for small $h>0,$

$$\tag 2 \frac{F(y_n+h)-F(y_n)}{h} = \frac{1}{h}\int_{y_n}^{y_n+h} f(x)\,dx.$$

By $(1),$ $(2)$ equals

$$\tag 3 f(c) + \frac{1}{h}\int_{y_n}^{y_n+h}(f'(c)+\epsilon(x))(x-c)\,dx.$$

Now the second expression in $(3)$ is bounded above in absolute value by

$$(|f'(c)|+M)\frac{1}{h}\int_{y_n}^{y_n+h}(x-c)\,dx = (|f'(c)|+M)(y_n-c+h).$$

Thus

$$\left |\frac{F(y_n+h)-F(y_n)}{h} - f(c)\right |\le (|f'(c)|+M)(y_n-c+h).$$

Taking the limit as $h\to 0$ then gives

$$|F'(y_n) - f(c)| \le (|f'(c)|+M)(y_n-c).$$

Now letting $n\to \infty,$ we see

$$F'(y_n) \to f(c) = F'(c),$$

and we're done.

zhw.
  • 105,693
  • Terrific! Thanks! An interesting subtlety in a problem I'd never thought about before. – symplectomorphic Mar 09 '21 at 20:04
  • Sorry, realizing I don’t follow one point. If we define $\epsilon(x)$ as $(f(x)-f(c))/(x-c)-f’(c)$ for $x\neq c$ and $0$ at $c$, it’s obvious why $\epsilon$ is continuous at $c$, but don’t we need $\epsilon$ to be continuous away from $c$ too? (When we use FTC near the end, we need $\epsilon$ to be continuous at $y_n\neq c$.) I don’t see why that follows (it would be true if $f$ were continuous at $y_n$, but it need not be). – symplectomorphic Mar 10 '21 at 00:27
  • Good point. I think it can be fixed, I'll have to get back to you on this. – zhw. Mar 10 '21 at 02:07
  • @zhw.: we can infer that $\epsilon(x) $ is bounded in neighborhood $I$ of $c$ and for large $n$, $y_n\in I$. And then as $h\to 0$ we can write the last term as not exceeding $M(y_n-c) $. Letting $n\to\infty $ this vanishes. More formally this can be done via squeeze. +1 by the way. – Paramanand Singh Mar 10 '21 at 03:17
  • @ParamanandSingh Yes, I realized the same thing, and just edited my proof. Thank you. – zhw. Mar 10 '21 at 03:31
  • 1
    Let us also inform @symplectomorphic about the update (via this comment). They will be glad to see the update. – Paramanand Singh Mar 10 '21 at 03:34
  • 1
    @ParamanandSingh Will do. – zhw. Mar 10 '21 at 03:36
  • zhw, @ParamanandSingh: great! I asked a natural follow-up here, namely: can we relax differentiability of $f$ to mere continuity? – symplectomorphic Mar 10 '21 at 06:25