Problem
Let $f(x)$ be $n$-times differentiable over $[a,b]$ and $n+1$-times differentiable over $(a,b)$. $f^{(k)}(a)=f^{(k)}(b)=0$, where $k=0,1,2,\cdots,n$. Prove there exists $\xi \in (a,b)$ such that $f(\xi)=f^{(n+1)}(\xi)$.
Attempt
Consider applying Taylor's formula expanding at $x=a,b$. We have \begin{align*} f(x)&=f(a)+f'(a)(x-a)+\cdots+\frac{f^{(n+1)}(\xi_1)}{(n+1)!}(x-a)^{n+1} =\frac{f^{(n+1)}(\xi_1)}{(n+1)!}(x-a)^{n+1}. \end{align*} and \begin{align*} f(x)&=f(b)+f'(b)(x-b)+\cdots+\frac{f^{(n+1)}(\xi_2)}{(n+1)!}(x-b)^{n+1} =\frac{f^{(n+1)}(\xi_2)}{(n+1)!}(x-b)^{n+1}. \end{align*} Can we go on from these?
Edit
Later I consulted some reference books and find a similar problem in the book named Problems In Real Analysis: Advanced Calculus On The Real Axis.

Thus, I wonder whether the conclusion holds or not ,if we are only given that $f(x)$ is $n$-times differentiable over $[a,b]$ and $n+1$-times differentiable over $(a,b)$.