Let $g(t)$ be a continuous function at $t=0$. Let $A_a$ be the following integral:
$$A_a = \dfrac{1}{a}\int\limits_{-a/2}^{a/2}g(t)dt.$$
Now, calculate the limit of $A_a$ as $a$ approaches $0$.
$$\begin{align} \lim\limits_{a\to 0}A_a&=\lim\limits_{a\to 0}\dfrac{1}{a}\int\limits_{-a/2}^{a/2}g(t)dt\tag{1},\\ &=g(0)\lim\limits_{a\to 0}\dfrac{1}{a}\int\limits_{-a/2}^{a/2}dt\tag{2}. \end{align} $$
I don't understand how can we go from $(1)$ to $(2)$. In fact, for me, as $a$ approaches $0$, the integral $\int_{-a/2}^{a/2}g(t)dt$ approahces $g(0)$. So the limit should be: $$\begin{align} \lim\limits_{a\to 0}A_a&=g(0)\lim\limits_{a\to 0}\dfrac{1}{a}\tag{3}, \end{align} $$ but this is wrong.
@zdm
One way to see how you go from $(1)$ to $(2)$ is the following. By continuity at $0$ you have: $$ g(t)=g(0)+h(t), $$ where $h(t)\to 0$ as $t\to 0$.
Then, $$ \frac{1}{a}\int\limits_{-a/2}^{a/2}g(t)\,dt=\frac{1}{a}\int\limits_{-a/2}^{a/2}[g(0)+h(t)]\,dt $$ $$ =g(0)+\frac{1}{a}\int\limits_{-a/2}^{a/2}h(t)\,dt. $$ Now, for any $\epsilon>0$ it is possible to choose $a$ small enough such that $|h(t)|<\epsilon$ for $x\in [-a/2,a/2]$. For such $a$ we have $$ |\frac{1}{a}\int\limits_{-a/2}^{a/2}h(t)\,dt|\le\frac{1}{a}\int\limits_{-a/2}^{a/2}\epsilon\,dt= \epsilon $$ thus implying that $$ \lim\limits_{a\to 0}\frac{1}{a}|\int\limits_{-a/2}^{a/2}h(t)\,dt|=0 $$ and you finally get $$ \lim\limits_{a\to 0}\frac{1}{a}\int\limits_{-a/2}^{a/2}g(t)\,dt=g(0) $$ Actually the idea behind is very simple: you are finding the average of a continuous function (at zero) on a sequence of inteervals shrinking to zero. Since the values stabilize around $g(0)$, the average does the same.
Hope this helps.