<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Non-analytic_smooth_function</id>
	<title>Non-analytic smooth function - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Non-analytic_smooth_function"/>
	<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Non-analytic_smooth_function&amp;action=history"/>
	<updated>2026-06-26T05:01:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.sarg.dev/index.php?title=Non-analytic_smooth_function&amp;diff=263799&amp;oldid=prev</id>
		<title>imported&gt;GCW01: /* A smooth function which is nowhere real analytic */</title>
		<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Non-analytic_smooth_function&amp;diff=263799&amp;oldid=prev"/>
		<updated>2024-12-24T00:01:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;A smooth function which is nowhere real analytic&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Mathematical functions which are smooth but not analytic}}&lt;br /&gt;
In [[mathematics]], [[smooth function]]s (also called infinitely [[Differentiable function|differentiable]] functions) and [[analytic function]]s are two very important types of [[function (mathematics)|functions]]. One can easily prove that any analytic function of a [[real number|real]] [[Argument of a function|argument]] is smooth. The [[converse (logic)|converse]] is not true, as demonstrated with the [[counterexample]] below.&lt;br /&gt;
&lt;br /&gt;
One of the most important applications of smooth functions with [[compact support]] is the construction of so-called [[mollifier]]s, which are important in theories of [[generalized function]]s, such as [[Laurent Schwartz]]&amp;#039;s theory of [[distribution (mathematics)|distribution]]s.&lt;br /&gt;
&lt;br /&gt;
The existence of smooth but non-analytic functions represents one of the main differences between [[differential geometry]] and [[complex manifold|analytic geometry]]. In terms of [[sheaf theory]], this difference can be stated as follows: the sheaf of differentiable functions on a [[differentiable manifold]] is [[fine sheaf|fine]], in contrast with the analytic case.&lt;br /&gt;
&lt;br /&gt;
The functions below are generally used to build up [[partition of unity|partitions of unity]] on differentiable manifolds.&lt;br /&gt;
&lt;br /&gt;
==An example function==&lt;br /&gt;
===Definition of the function===&lt;br /&gt;
[[Image:Non-analytic smooth function.png|right|frame|The non-analytic smooth function &amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) considered in the article.]]&lt;br /&gt;
Consider the function&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;f(x)=\begin{cases}e^{-\frac{1}{x}}&amp;amp;\text{if }x&amp;gt;0,\\ 0&amp;amp;\text{if }x\le0,\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
defined for every [[real number]] &amp;#039;&amp;#039;x&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
===The function is smooth===&lt;br /&gt;
&lt;br /&gt;
The function &amp;#039;&amp;#039;f&amp;#039;&amp;#039; has [[Continuous function|continuous]] [[derivative]]s of all orders at every point &amp;#039;&amp;#039;x&amp;#039;&amp;#039; of the [[real line]].  The formula for these derivatives is&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;f^{(n)}(x) = \begin{cases}\displaystyle\frac{p_n(x)}{x^{2n}}\,f(x) &amp;amp; \text{if }x&amp;gt;0, \\ 0 &amp;amp;\text{if }x \le 0,\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;#039;&amp;#039;p&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) is a [[polynomial]] of [[Degree of a polynomial|degree]] &amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;1 given [[recursion|recursively]] by &amp;#039;&amp;#039;p&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;)&amp;amp;nbsp;=&amp;amp;nbsp;1 and&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;p_{n+1}(x)=x^2p_n&amp;#039;(x)-(2nx-1)p_n(x)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for any positive [[integer]] &amp;#039;&amp;#039;n&amp;#039;&amp;#039;.  From this formula, it is not completely clear that the derivatives are continuous at 0; this follows from the [[one-sided limit]] &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\lim_{x\searrow 0} \frac{e^{-\frac{1}{x}}}{x^m} = 0&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for any [[nonnegative]] integer &amp;#039;&amp;#039;m&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
{{Collapse top|title=Detailed proof of smoothness}}&lt;br /&gt;
&lt;br /&gt;
By the [[Exponential function#Formal definition|power series representation of the exponential function]], we have for every [[natural number]] &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; (including zero)&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\frac1{x^m}=x\Bigl(\frac1{x}\Bigr)^{m+1}\le (m+1)!\,x\sum_{n=0}^\infty\frac1{n!}\Bigl(\frac1x\Bigr)^n&lt;br /&gt;
=(m+1)!\,x e^{\frac{1}{x}},\qquad x&amp;gt;0,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
because all the positive terms for &amp;lt;math&amp;gt;n \neq m+1&amp;lt;/math&amp;gt; are added. Therefore, dividing this inequality by &amp;lt;math&amp;gt;e^{\frac{1}{x}}&amp;lt;/math&amp;gt; and taking the [[One-sided limit|limit from above]],&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\lim_{x\searrow0}\frac{e^{-\frac{1}{x}}}{x^m}&lt;br /&gt;
\le (m+1)!\lim_{x\searrow0}x=0.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now prove the formula for the &amp;#039;&amp;#039;n&amp;#039;&amp;#039;th derivative of &amp;#039;&amp;#039;f&amp;#039;&amp;#039; by [[mathematical induction]]. Using the [[chain rule]], the [[reciprocal rule]], and the fact that the derivative of the exponential function is again the exponential function, we see that the formula is correct for the first derivative of &amp;#039;&amp;#039;f&amp;#039;&amp;#039; for all &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;amp;nbsp;&amp;gt;&amp;amp;nbsp;0 and that &amp;#039;&amp;#039;p&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) is a polynomial of degree 0. Of course, the derivative of &amp;#039;&amp;#039;f&amp;#039;&amp;#039; is zero for &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;amp;nbsp;&amp;lt;&amp;amp;nbsp;0.&lt;br /&gt;
It remains to show that the right-hand side derivative of &amp;#039;&amp;#039;f&amp;#039;&amp;#039; at &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;amp;nbsp;=&amp;amp;nbsp;0 is zero. Using the above limit, we see that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;f&amp;#039;(0)=\lim_{x\searrow0}\frac{f(x)-f(0)}{x-0}=\lim_{x\searrow0}\frac{e^{-\frac{1}{x}}}{x}=0.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The induction step from &amp;#039;&amp;#039;n&amp;#039;&amp;#039; to &amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;amp;nbsp;+&amp;amp;nbsp;1 is similar. For &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;amp;nbsp;&amp;gt;&amp;amp;nbsp;0 we get for the derivative&lt;br /&gt;
:&amp;lt;math&amp;gt;\begin{align}f^{(n+1)}(x)&lt;br /&gt;
&amp;amp;=\biggl(\frac{p&amp;#039;_n(x)}{x^{2n}}-2n\frac{p_n(x)}{x^{2n+1}}+\frac{p_n(x)}{x^{2n+2}}\biggr)f(x)\\&lt;br /&gt;
&amp;amp;=\frac{x^2p&amp;#039;_n(x)-(2nx-1)p_n(x)}{x^{2n+2}}f(x)\\&lt;br /&gt;
&amp;amp;=\frac{p_{n+1}(x)}{x^{2(n+1)}}f(x),\end{align}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;#039;&amp;#039;p&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;+1&amp;lt;/sub&amp;gt;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) is a polynomial of degree &amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;amp;nbsp;= (&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;amp;nbsp;+&amp;amp;nbsp;1)&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;1. Of course, the (&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;amp;nbsp;+&amp;amp;nbsp;1)st derivative of &amp;#039;&amp;#039;f&amp;#039;&amp;#039; is zero for &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;amp;nbsp;&amp;lt;&amp;amp;nbsp;0. For the right-hand side derivative of &amp;#039;&amp;#039;f&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;amp;nbsp;(&amp;#039;&amp;#039;n&amp;#039;&amp;#039;)&amp;lt;/sup&amp;gt; at &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;amp;nbsp;=&amp;amp;nbsp;0 we obtain with the above limit&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\lim_{x\searrow0} \frac{f^{(n)}(x) - f^{(n)}(0)}{x-0} = \lim_{x\searrow0} \frac{p_n(x)}{x^{2n+1}}\,e^{-1/x} = 0.&amp;lt;/math&amp;gt;&lt;br /&gt;
{{Collapse bottom}}&lt;br /&gt;
&lt;br /&gt;
===The function is not analytic===&lt;br /&gt;
As seen earlier, the function &amp;#039;&amp;#039;f&amp;#039;&amp;#039; is smooth, and all its derivatives at the [[origin (mathematics)|origin]] are&amp;amp;nbsp;0. Therefore, the [[Taylor series]] of &amp;#039;&amp;#039;f&amp;#039;&amp;#039; at the origin converges everywhere to the [[zero function]],&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\sum_{n=0}^\infty \frac{f^{(n)}(0)}{n!}x^n=\sum_{n=0}^\infty \frac{0}{n!}x^n = 0,\qquad x\in\mathbb{R},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and so the Taylor series does not equal &amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) for &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;amp;nbsp;&amp;gt;&amp;amp;nbsp;0. Consequently, &amp;#039;&amp;#039;f&amp;#039;&amp;#039; is not [[analytic function|analytic]] at the origin. &lt;br /&gt;
&lt;br /&gt;
===Smooth transition functions===&lt;br /&gt;
[[Image:Smooth transition from 0 to 1.png|right|frame|The smooth transition &amp;#039;&amp;#039;g&amp;#039;&amp;#039; from 0 to 1 defined here.]]&lt;br /&gt;
The function&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;g(x)=\frac{f(x)}{f(x)+f(1-x)},\qquad x\in\mathbb{R},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
has a strictly positive denominator everywhere on the real line, hence &amp;#039;&amp;#039;g&amp;#039;&amp;#039; is also smooth. Furthermore, &amp;#039;&amp;#039;g&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;)&amp;amp;nbsp;=&amp;amp;nbsp;0 for &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;amp;nbsp;≤&amp;amp;nbsp;0 and &amp;#039;&amp;#039;g&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;)&amp;amp;nbsp;=&amp;amp;nbsp;1 for &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;amp;nbsp;≥&amp;amp;nbsp;1, hence it provides a smooth transition from the level 0 to the level 1 in the [[unit interval]] &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt;0, 1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;. To have the smooth transition in the real interval &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;, &amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt; with &amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;amp;nbsp;&amp;lt;&amp;amp;nbsp;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;, consider the function&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbb{R}\ni x\mapsto g\Bigl(\frac{x-a}{b-a}\Bigr).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For real numbers {{math|&amp;#039;&amp;#039;a&amp;#039;&amp;#039; &amp;lt; &amp;#039;&amp;#039;b&amp;#039;&amp;#039; &amp;lt; &amp;#039;&amp;#039;c&amp;#039;&amp;#039; &amp;lt; &amp;#039;&amp;#039;d&amp;#039;&amp;#039;}}, the smooth function&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbb{R}\ni x\mapsto g\Bigl(\frac{x-a}{b-a}\Bigr)\,g\Bigl(\frac{d-x}{d-c}\Bigr)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
equals 1 on the closed interval &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;, &amp;#039;&amp;#039;c&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt; and vanishes outside the open interval (&amp;#039;&amp;#039;a&amp;#039;&amp;#039;, &amp;#039;&amp;#039;d&amp;#039;&amp;#039;), hence it can serve as a [[bump function]].&lt;br /&gt;
&lt;br /&gt;
==A smooth function that is nowhere real analytic==&lt;br /&gt;
[[File:Smooth non-analytic function.png|thumb|Approximation of the smooth-everywhere, but nowhere-analytic function mentioned here. This partial sum is taken from {{math|&amp;#039;&amp;#039;k&amp;#039;&amp;#039; {{=}} 2&amp;lt;sup&amp;gt;0&amp;lt;/sup&amp;gt;}} to 2&amp;lt;sup&amp;gt;500&amp;lt;/sup&amp;gt;.|right]]&lt;br /&gt;
&lt;br /&gt;
A more [[Pathological (mathematics)|pathological]] example is an infinitely differentiable function which is not analytic &amp;#039;&amp;#039;at any point&amp;#039;&amp;#039;. It can be constructed by means of a  [[Fourier series]] as follows. Define for all &amp;lt;math&amp;gt;x \in \mathbb{R}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;F(x):=\sum_{k\in \mathbb{N}} e^{-\sqrt{2^k}}\cos(2^k x)\ .&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Since the series &amp;lt;math&amp;gt;\sum_{k\in \mathbb{N}} e^{-\sqrt{2^k}}{(2^k)}^n&amp;lt;/math&amp;gt; converges for all &amp;lt;math&amp;gt;n \in \mathbb{N}&amp;lt;/math&amp;gt;, this function is easily seen to be of class  C&amp;lt;sup&amp;gt;∞&amp;lt;/sup&amp;gt;,  by a standard inductive application of the [[Weierstrass M-test]] to demonstrate [[uniform convergence]] of each series of derivatives.&lt;br /&gt;
&lt;br /&gt;
We now show that &amp;lt;math&amp;gt;F(x)&amp;lt;/math&amp;gt; is not analytic at any [[dyadic rational]] multiple of π, that is, at any &amp;lt;math&amp;gt;x := \pi \cdot p \cdot 2^{-q}&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;p \in \mathbb{Z}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;q \in \mathbb{N}&amp;lt;/math&amp;gt;.  Since the sum of the first &amp;lt;math&amp;gt;q&amp;lt;/math&amp;gt; terms is analytic, we need only consider &amp;lt;math&amp;gt;F_{&amp;gt;q}(x)&amp;lt;/math&amp;gt;, the sum of the terms with &amp;lt;math&amp;gt;k&amp;gt;q&amp;lt;/math&amp;gt;.  For all orders of derivation &amp;lt;math&amp;gt;n = 2^m&amp;lt;/math&amp;gt; with &amp;lt;math&amp;gt;m \in \mathbb{N}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;m \geq 2&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;m &amp;gt; q/2&amp;lt;/math&amp;gt; we have&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;F_{&amp;gt;q}^{(n)}(x):=\sum_{k\in \mathbb{N}\atop k&amp;gt;q} e^{-\sqrt{2^k}} {(2^k)}^n\cos(2^k x)  = \sum_{k\in \mathbb{N}\atop k&amp;gt;q} e^{-\sqrt{2^k}} {(2^k)}^n \ge  e^{-n} n^{2n}\quad  (\mathrm{as}\; n\to \infty)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where we used the fact that &amp;lt;math&amp;gt;\cos(2^k x) = 1&amp;lt;/math&amp;gt; for all &amp;lt;math&amp;gt;2^k &amp;gt; 2^q&amp;lt;/math&amp;gt;, and we bounded the first sum from below by the term with &amp;lt;math&amp;gt;2^k=2^{2m}=n^2&amp;lt;/math&amp;gt;. As a consequence, at any such &amp;lt;math&amp;gt;x \in \mathbb{R}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\limsup_{n\to\infty} \left(\frac{|F_{&amp;gt;q}^{(n)}(x)|}{n!}\right)^{1/n}=+\infty\, ,&amp;lt;/math&amp;gt;&lt;br /&gt;
so that the [[radius of convergence]] of the [[Taylor series]] of  &amp;lt;math&amp;gt;F_{&amp;gt;q}&amp;lt;/math&amp;gt;  at  &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;  is  0  by the [[Cauchy-Hadamard theorem#Statement of the theorem|Cauchy-Hadamard formula]]. Since the set of analyticity of  a function  is an open set, and since dyadic rationals are [[Dense set|dense]], we conclude that  &amp;lt;math&amp;gt;F_{&amp;gt;q}&amp;lt;/math&amp;gt;, and hence &amp;lt;math&amp;gt;F&amp;lt;/math&amp;gt;, is nowhere analytic in &amp;lt;math&amp;gt;\mathbb{R}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Application to Taylor series ==&lt;br /&gt;
&amp;lt;!--The article on Taylor series links to this section--&amp;gt;&lt;br /&gt;
{{main|Borel&amp;#039;s lemma}}&lt;br /&gt;
For every sequence α&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;, α&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, α&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;, .&amp;amp;nbsp;.&amp;amp;nbsp;. of real or [[complex number]]s, the following construction shows the existence of a smooth function &amp;#039;&amp;#039;F&amp;#039;&amp;#039; on the real line which has these numbers as derivatives at the origin.&amp;lt;ref&amp;gt;Exercise 12 on page 418 in [[Walter Rudin]], &amp;#039;&amp;#039;Real and Complex Analysis&amp;#039;&amp;#039;. McGraw-Hill, New Delhi 1980, {{isbn|0-07-099557-5}}&amp;lt;/ref&amp;gt; In particular, every sequence of numbers can appear as the coefficients of the [[Taylor series]] of a smooth function.  This result is known as [[Borel&amp;#039;s lemma]], after [[Émile Borel]].&lt;br /&gt;
&lt;br /&gt;
With the smooth transition function &amp;#039;&amp;#039;g&amp;#039;&amp;#039; as above, define&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;h(x)=g(2+x)\,g(2-x),\qquad x\in\mathbb{R}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function &amp;#039;&amp;#039;h&amp;#039;&amp;#039; is also smooth; it equals 1 on the closed interval &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt;&amp;amp;minus;1,1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt; and vanishes outside the open interval (&amp;amp;minus;2,2). Using &amp;#039;&amp;#039;h&amp;#039;&amp;#039;, define for every natural number &amp;#039;&amp;#039;n&amp;#039;&amp;#039; (including zero) the smooth function&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\psi_n(x)=x^n\,h(x),\qquad x\in\mathbb{R},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which agrees with the [[monomial]] &amp;#039;&amp;#039;x&amp;lt;sup&amp;gt;n&amp;lt;/sup&amp;gt;&amp;#039;&amp;#039; on &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt;&amp;amp;minus;1,1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt; and vanishes outside the interval (&amp;amp;minus;2,2). Hence, the &amp;#039;&amp;#039;k&amp;#039;&amp;#039;-th derivative of &amp;#039;&amp;#039;ψ&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039; at the origin satisfies&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\psi_n^{(k)}(0)=\begin{cases}n!&amp;amp;\text{if }k=n,\\0&amp;amp;\text{otherwise,}\end{cases}\quad k,n\in\mathbb{N}_0,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the [[boundedness theorem]] implies that &amp;#039;&amp;#039;ψ&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039; and every derivative of &amp;#039;&amp;#039;ψ&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039; is bounded. Therefore, the constants&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\lambda_n=\max\bigl\{1,|\alpha_n|,\|\psi_n\|_\infty,\|\psi_n^{(1)}\|_\infty,\ldots,\|\psi_n^{(n)}\|_\infty\bigr\},\qquad n\in\mathbb{N}_0,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
involving the [[supremum norm]] of &amp;#039;&amp;#039;ψ&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039; and its first &amp;#039;&amp;#039;n&amp;#039;&amp;#039; derivatives, are well-defined real numbers. Define the scaled functions&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;f_n(x)=\frac{\alpha_n}{n!\,\lambda_n^n}\psi_n(\lambda_n x),\qquad n\in\mathbb{N}_0,\;x\in\mathbb{R}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By repeated application of the [[chain rule]],&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;f_n^{(k)}(x)=\frac{\alpha_n}{n!\,\lambda_n^{n-k}}\psi_n^{(k)}(\lambda_n x),\qquad k,n\in\mathbb{N}_0,\;x\in\mathbb{R},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and, using the previous result for the &amp;#039;&amp;#039;k&amp;#039;&amp;#039;-th derivative of &amp;#039;&amp;#039;ψ&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039; at zero,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;f_n^{(k)}(0)=\begin{cases}\alpha_n&amp;amp;\text{if }k=n,\\0&amp;amp;\text{otherwise,}\end{cases}\qquad k,n\in\mathbb{N}_0.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It remains to show that the function&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;F(x)=\sum_{n=0}^\infty f_n(x),\qquad x\in\mathbb{R},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
is well defined and can be differentiated term-by-term infinitely many times.&amp;lt;ref&amp;gt;See e.g. Chapter V, Section 2, Theorem 2.8 and Corollary 2.9 about the differentiability of the limits of sequences of functions in {{Citation&lt;br /&gt;
  | last = Amann&lt;br /&gt;
  | first = Herbert&lt;br /&gt;
  | last2 = Escher&lt;br /&gt;
  | first2 = Joachim&lt;br /&gt;
  | title = Analysis I&lt;br /&gt;
  | place = Basel&lt;br /&gt;
  | publisher = [[Birkhäuser Verlag]]&lt;br /&gt;
  | year = 2005&lt;br /&gt;
  | pages = 373–374&lt;br /&gt;
  | isbn = 3-7643-7153-6}}&amp;lt;/ref&amp;gt; To this end, observe that for every &amp;#039;&amp;#039;k&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\sum_{n=0}^\infty\|f_n^{(k)}\|_\infty&lt;br /&gt;
\le \sum_{n=0}^{k+1}\frac{|\alpha_n|}{n!\,\lambda_n^{n-k}}\|\psi_n^{(k)}\|_\infty&lt;br /&gt;
+\sum_{n=k+2}^\infty\frac1{n!}&lt;br /&gt;
\underbrace{\frac1{\lambda_n^{n-k-2}}}_{\le\,1}&lt;br /&gt;
\underbrace{\frac{|\alpha_n|}{\lambda_n}}_{\le\,1}&lt;br /&gt;
\underbrace{\frac{\|\psi_n^{(k)}\|_\infty}{\lambda_n}}_{\le\,1}&lt;br /&gt;
&amp;lt;\infty,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the remaining infinite series converges by the [[ratio test]].&lt;br /&gt;
&lt;br /&gt;
== Application to higher dimensions ==&lt;br /&gt;
[[File:Mollifier Illustration.svg|right|thumb|280px|The function Ψ&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) in one dimension.]]&lt;br /&gt;
For every radius &amp;#039;&amp;#039;r&amp;#039;&amp;#039;&amp;amp;nbsp;&amp;gt;&amp;amp;nbsp;0,&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbb{R}^n\ni x\mapsto \Psi_r(x)=f(r^2-\|x\|^2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with [[Euclidean norm]] ||&amp;#039;&amp;#039;x&amp;#039;&amp;#039;|| defines a smooth function on &amp;#039;&amp;#039;n&amp;#039;&amp;#039;-dimensional [[Euclidean space]] with [[support (mathematics)|support]] in the [[ball (mathematics)|ball]] of radius &amp;#039;&amp;#039;r&amp;#039;&amp;#039;, but &amp;lt;math&amp;gt;\Psi_r(0)&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Complex analysis==&lt;br /&gt;
This pathology cannot occur with differentiable [[complex analysis|functions of a complex variable]] rather than of a real variable. Indeed, all [[holomorphic functions are analytic]], so that the failure of the function &amp;#039;&amp;#039;f&amp;#039;&amp;#039; defined in this article to be analytic in spite of its being infinitely differentiable is an indication of one of the most dramatic differences between real-variable and complex-variable analysis.&lt;br /&gt;
&lt;br /&gt;
Note that although the function &amp;#039;&amp;#039;f&amp;#039;&amp;#039; has derivatives of all orders over the real line, the [[analytic continuation]] of &amp;#039;&amp;#039;f&amp;#039;&amp;#039; from the positive half-line &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;amp;nbsp;&amp;gt;&amp;amp;nbsp;0 to the [[complex plane]], that is, the function&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbb{C}\setminus\{0\}\ni z\mapsto e^{-\frac{1}{z}}\in\mathbb{C},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
has an [[essential singularity]] at the origin, and hence is not even continuous, much less analytic. By the [[great Picard theorem]], it attains every complex value (with the exception of zero) infinitely many times in every neighbourhood of the origin.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Bump function]]&lt;br /&gt;
* [[Fabius function]]&lt;br /&gt;
* [[Flat function]]&lt;br /&gt;
* [[Mollifier]]&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* {{planetmath reference|urlname=InfinitelydifferentiableFunctionThatIsNotAnalytic|title=Infinitely-differentiable function that is not analytic}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Smooth functions]]&lt;br /&gt;
[[Category:Articles containing proofs]]&lt;/div&gt;</summary>
		<author><name>imported&gt;GCW01</name></author>
	</entry>
</feed>