The Taylor formula with integral remainder is
For , this is the fundamental theorem of calculus. Integration by parts gives
Rearranging and applying mathematical induction proves the displayed expansion. The oriented integral also covers .
For , the chain rule and product rule give
Thus
Because Gaussian decay dominates every power, as . Hence , and the derivative formula extends continuously to zero. Repeating the argument replaces by another polynomial at each step: . All derivative difference quotients at zero tend to zero, so the polynomial multiples of a Gaussian flat function are smooth functions with
The Taylor polynomial about zero is therefore identically zero for every degree, and
A nonzero polynomial has only finitely many roots of a polynomial, so for every sufficiently small nonzero . At each such fixed , this remainder never tends to zero. The flat function is therefore smooth but not real analytic at zero.
Extend this expression by zero at zero. Gaussian decay dominates every power, so the resulting function and its derivative difference quotients vanish to every order at zero. Away from zero, differentiation replaces by , another polynomial. Induction therefore gives a smooth function flat at zero. If is nonzero, its Taylor series is zero while the function is nonzero at every sufficiently small nonzero argument, so it is not real analytic there.