Consider the mean-value form of the Taylor Theorem:
Let $k \geq 1$ be an integer and let the function $f : \mathbb{R} → \mathbb{R}$ be $k+1$ times differentiable on the open interval with $f^{(k)}$ continuous on the closed interval between $a$ and $x$.
$ f(x) = \sum_{k=0}^n \frac{f^{(k)}(a)}{k!}(x-a)^k + \frac{f^{(k+1)}(\xi)}{k!}(x-a)^{n+1}$ for some $\xi \in [a,x]$
Is it necessarily true that
$\lim_{x\rightarrow a}f^{(k+1)}(\xi) = f^{(k+1)}(a)$ ?
I think that this is true because we look at the interval shrinking to $[a,a]$ first. My friend on the other end feels that the limit does not exist since $f^{(k+1)}$ is not continuous. In other words, the function that you are taking limits with respect to should be considered first. However, we are both not sure what is the correct take to this $\xi$ in the remainder term of the Taylor theorem. If someone knows the correct answer to this, do let me know in the comments below!
** Edit **
With regards to the discussion below, I should provide an example to explain why I think this claim is true. The standard counterexample that you guys have provided is $f(x) = x^2 \sin(\frac{1}{x})$. Using Taylor's theorem, we have
$f(x) = f(0) + f'(\xi)x$ for $\xi \in [0,x]$
i.e
$x^2 \sin(\frac{1}{x}) = f'(\xi)x \rightarrow f'(\xi) = x \sin(\frac{1}{x})$ for some $\xi \in [0,x]$. The argument provided is that $f'(\xi(x))$ is not continuous with respect to $x$ at $x=0$. However, we can see that $\lim_{x \rightarrow 0} f'(\xi) = 0$ even if you were to argue from the perspective of "continuous $f'$" or shrinking interval.
Clearly, we now take limit as $x \rightarrow 0$ on both sides. $f(x)/x \rightarrow 0$ means that the limit of $f'(\xi)$ exists and tends to 0 right?
– HK Tan Sep 24 '19 at 02:19