Considere la función- $$g(x)=\begin{cases} 1, \text{ if } x\in[-1,1]\\ 0, \text{ otherwise } \end{cases}$$
y $$f(x)=\lim_{h\to0}\frac{1}{2h}\int_{x-h}^{x+h}g(y)dy$$
entonces, ¿cuál es el valor de $f(1)?$
Mi intento:
Tenemos, $$f(1)=\lim_{h\to0}\frac{1}{2h}\int_{1-h}^{1+h}g(y)dy$$
La aplicación de Newton-Leibniz para la nuemerator después de aplicar L'Hôpital para esta $0/0$ límite, obtenemos
$$f(1)=\frac{g(1+h)+g(1-h)}{2}=1$$
Estoy en lo cierto?