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.