Limit of the sequence $\left(\sum_{k=0}^n f\!\left(\frac{k}{n^2}\right)\right)_n$.
Following this post on Meta, I am going to regularly ask questions from competitive mathematics exams, on a variety of topics; and provide a solution a few days later. The goal is not only to list interesting (I hope) exercises for the sake of self-study, but also to obtain (again, hopefully) a variety of techniques to solve them.
Let $f\colon\mathbb{R}\to\mathbb{R}$ be differentiable at $0$, and such that $f(0)=0$. Letting $s_n\stackrel{\rm def}{=} \sum_{k=1}^n f\!\left(\frac{k}{n^2}\right)$ for $n\geq 1$, find the limit of the sequence $(s_n)_{n\geq 1}$.
Reference: Exercise 4.26 in Exercices de mathématiques: oraux X-ENS (Analyse I), by Francinou, Gianella, and Nicolas (2014) ISBN 978-2842252137.
Solution 1:
Define $\phi : \Bbb{R} \to \Bbb{R}$ by
$$ \phi(x) = \begin{cases} \dfrac{f(x)}{x}, & x \neq 0 \\ f'(0), & x = 0 \end{cases} $$
Then $\phi$ is continuous at $0$ and $f(x) = x\phi(x)$. Now your sum reduces to
$$ s_n = \sum_{k=0}^{n} \frac{k}{n^2}\phi\left(\frac{k}{n^2}\right), $$
from which we find that
$$ \Big( \inf_{[0,1/n]}\phi \Big) \sum_{k=0}^{n} \frac{k}{n^2} \leq s_n \leq \Big( \sup_{[0,1/n]}\phi \Big) \sum_{k=0}^{n} \frac{k}{n^2}. $$
Taking $n \to \infty$, by the squeezing theorem we get
$$ s_n \to \frac{1}{2}\phi(0) = \frac{1}{2}f'(0). $$
Solution 2:
Using the definition of the derivative + using riemann sum to rewrite the sum as an integral yields $\frac{1}{2}f'(0)$.