Non-analytic smooth function
In real analysis, a smooth function is infinitely differentiable at each point in its domain, while a real analytic function is, at each point in its domain, the limit of a convergent power series in a neighbourhood of that point. All real analytic functions are smooth, but there exist smooth real functions that are not real analytic, as given below.
The existence of smooth but non-analytic functions represents one of the main differences between differential geometry and 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, in contrast with the analytic case.
Smooth real functions with domain <math>\mathbb{R}^{n}</math> and with support of compact closure (bump functions) are non-analytic at each boundary point of the closure of its support. One of the most important applications of smooth functions with support of compact closure is the construction of so-called mollifiers, which are important in theories of generalized functions, such as Laurent Schwartz's theory of distributions.
The functions below are generally used to build up partitions of unity on differentiable manifolds.
An example function
Definition of the function
Consider the function <math display="block">f(x)=\begin{cases}e^{-\frac{1}{x}}&\text{if }x>0,\\ 0&\text{if }x\le0,\end{cases}</math> defined for every real number Template:Mvar.
The function is smooth
The function Template:Mvar has continuous derivatives of all orders at every point Template:Mvar of the real line. The formula for these derivatives is <math display="block">f^{(n)}(x) = \begin{cases}\displaystyle\frac{p_n(x)}{x^{2n}}\,f(x) & \text{if }x>0, \\ 0 &\text{if }x \le 0,\end{cases}</math> where Template:Math is a polynomial of degree Template:Math given recursively by Template:Math and <math display="block">p_{n+1}(x)=x^2p_n'(x)-(2nx-1)p_n(x)</math> for any positive integer Template:Mvar. From this formula, it is not completely clear that the derivatives are continuous at 0; this follows from the one-sided limit <math display="block">\lim_{x\searrow 0} \frac{e^{-\frac{1}{x}}}{x^m} = 0</math> for any nonnegative integer Template:Mvar.
By the power series representation of the exponential function, we have for every natural number <math>m</math> (including zero) <math display="block">\frac1{x^m}=x\Bigl(\frac1{x}\Bigr)^{m+1}\le (m+1)!\,x\sum_{n=0}^\infty\frac1{n!}\Bigl(\frac1x\Bigr)^n =(m+1)!\,x e^{\frac{1}{x}},\qquad x>0,</math> because all the positive terms for <math>n \neq m+1</math> are added. Therefore, dividing this inequality by <math>e^{\frac{1}{x}}</math> and taking the limit from above, <math display="block">\lim_{x\searrow0}\frac{e^{-\frac{1}{x}}}{x^m} \le (m+1)!\lim_{x\searrow0}x=0.</math>
We now prove the formula for the Template:Mvarth derivative of Template:Mvar 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 Template:Mvar for all Template:Math and that Template:Math is a polynomial of degree 0. Of course, the derivative of Template:Mvar is zero for Template:Math. It remains to show that the right-hand side derivative of Template:Mvar at Template:Math is zero. Using the above limit, we see that <math display="block">f'(0)=\lim_{x\searrow0}\frac{f(x)-f(0)}{x-0}=\lim_{x\searrow0}\frac{e^{-\frac{1}{x}}}{x}=0.</math>
The induction step from Template:Mvar to Template:Math is similar. For Template:Math we get for the derivative <math display="block">\begin{align}f^{(n+1)}(x) &=\biggl(\frac{p'_n(x)}{x^{2n}}-2n\frac{p_n(x)}{x^{2n+1}}+\frac{p_n(x)}{x^{2n+2}}\biggr)f(x)\\ &=\frac{x^2p'_n(x)-(2nx-1)p_n(x)}{x^{2n+2}}f(x)\\ &=\frac{p_{n+1}(x)}{x^{2(n+1)}}f(x),\end{align}</math> where Template:Math is a polynomial of degree Template:Math. Of course, the Template:Mathst derivative of Template:Mvar is zero for Template:Math. For the right-hand side derivative of Template:Math at Template:Math we obtain with the above limit <math display="block">\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.</math> Template:Collapse bottom
The function is not analytic
As seen earlier, the function Template:Mvar is smooth, and all its derivatives at the origin are 0. Therefore, the Taylor series of Template:Mvar at the origin converges everywhere to the zero function, <math display="block">\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},</math> and so the Taylor series does not equal Template:Math for Template:Math. Consequently, Template:Mvar is not analytic at the origin.
Smooth transition functions
The function <math display="block">g(x)=\frac{f(x)}{f(x)+f(1-x)},\qquad x\in\mathbb{R},</math> has a strictly positive denominator everywhere on the real line, hence Template:Mvar is also smooth. Furthermore, Template:Math for Template:Math and Template:Math for Template:Math, hence it provides a smooth transition from the level 0 to the level 1 in the unit interval Template:Closed-closed. To have the smooth transition in the real interval Template:Closed-closed with Template:Math, consider the function <math display="block">\mathbb{R}\ni x\mapsto g\Bigl(\frac{x-a}{b-a}\Bigr).</math>
For real numbers Template:Math, the smooth function <math display="block">\mathbb{R}\ni x\mapsto g\Bigl(\frac{x-a}{b-a}\Bigr)\,g\Bigl(\frac{d-x}{d-c}\Bigr)</math> equals 1 on the closed interval Template:Closed-closed and vanishes outside the open interval Template:Open-open, hence it can serve as a bump function.
A smooth function that is nowhere real analytic
A more pathological example is an infinitely differentiable function which is not analytic at any point. It can be constructed by means of a Fourier series as follows. Define for all <math>x \in \mathbb{R}</math> <math display="block">F(x):=\sum_{k\in \mathbb{N}} e^{-\sqrt{2^k}}\cos\left(2^k x\right)\ .</math>
Since the series <math display="inline">\sum_{k\in \mathbb{N}} e^{-\sqrt{2^k}} \left(2^k\right)^n</math> converges for all <math>n \in \mathbb{N}</math>, this function is easily seen to be of class Template:Math, by a standard inductive application of the Weierstrass M-test to demonstrate uniform convergence of each series of derivatives.
We now show that <math>F(x)</math> is not analytic at any dyadic rational multiple of Template:Mvar, that is, at any <math>x := \pi \cdot p \cdot 2^{-q}</math> with <math>p \in \mathbb{Z}</math> and <math>q \in \mathbb{N}</math>. Since the sum of the first <math>q</math> terms is analytic, we need only consider <math>F_{>q}(x)</math>, the sum of the terms with <math>k>q</math>. For all orders of derivation <math>n = 2^m</math> with <math>m \in \mathbb{N}</math>, <math>m \geq 2</math> and <math>m > q/2</math> we have <math display="block">F_{>q}^{(n)}(x):=\sum_{k\in \mathbb{N}\atop k>q} e^{-\sqrt{2^k}} \left(2^k\right)^n \cos\left(2^k x\right) = \sum_{k\in \mathbb{N}\atop k>q} e^{-\sqrt{2^k}} \left(2^k\right)^n \ge e^{-n} n^{2n}\quad (\mathrm{as}\; n\to \infty)</math> where we used the fact that <math>\cos\left(2^k x\right) = 1</math> for all <math>2^k > 2^q</math>, and we bounded the first sum from below by the term with <math>2^k=2^{2m}=n^2</math>. As a consequence, at any such <math>x \in \mathbb{R}</math> <math display="block">\limsup_{n\to\infty} \left(\frac{\left|F_{>q}^{(n)}(x)\right|}{n!}\right)^{1/n}=+\infty\, ,</math> so that the radius of convergence of the Taylor series of <math>F_{>q}</math> at <math>x</math> is 0 by the Cauchy-Hadamard formula. Since the set of analyticity of a function is an open set, and since dyadic rationals are dense, we conclude that <math>F_{>q}</math>, and hence <math>F</math>, is nowhere analytic in <math>\mathbb{R}</math>.
Application to Taylor series
{{#invoke:Labelled list hatnote|labelledList|Main article|Main articles|Main page|Main pages}} For every sequence Template:Math of real or complex numbers, the following construction shows the existence of a smooth function Template:Mvar on the real line which has these numbers as derivatives at the origin.[1] 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's lemma, after Émile Borel.
With the smooth transition function Template:Mvar as above, define <math display="block">h(x)=g(2+x)\,g(2-x),\qquad x\in\mathbb{R}.</math>
This function Template:Mvar is also smooth; it equals 1 on the closed interval Template:Closed-closed and vanishes outside the open interval Template:Open-open. Using Template:Mvar, define for every natural number Template:Mvar (including zero) the smooth function <math display="block">\psi_n(x)=x^n\,h(x),\qquad x\in\mathbb{R},</math> which agrees with the monomial Template:Math on Template:Closed-closed and vanishes outside the interval Template:Open-open. Hence, the Template:Mvar-th derivative of Template:Math at the origin satisfies <math display="block">\psi_n^{(k)}(0)=\begin{cases}n!&\text{if }k=n,\\0&\text{otherwise,}\end{cases}\quad k,n\in\mathbb{N}_0,</math> and the boundedness theorem implies that Template:Math and every derivative of Template:Math is bounded. Therefore, the constants <math display="block">\lambda_n=\max\left\{1, \left|\alpha_n\right|, \left\|\psi_n\right\|_\infty, \left\|\psi_n^{(1)}\right\|_\infty, \ldots, \left\|\psi_n^{(n)}\right\|_\infty\right\},\qquad n\in\mathbb{N}_0,</math> involving the supremum norm of Template:Math and its first Template:Mvar derivatives, are well-defined real numbers. Define the scaled functions <math display="block">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}.</math>
By repeated application of the chain rule, <math display="block">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},</math> and, using the previous result for the Template:Mvar-th derivative of Template:Math at zero, <math display="block">f_n^{(k)}(0)=\begin{cases}\alpha_n&\text{if }k=n,\\0&\text{otherwise,}\end{cases}\qquad k,n\in\mathbb{N}_0.</math>
It remains to show that the function <math display="block">F(x)=\sum_{n=0}^\infty f_n(x),\qquad x\in\mathbb{R},</math> is well defined and can be differentiated term-by-term infinitely many times.[2] To this end, observe that for every Template:Mvar <math display="block">\sum_{n=0}^\infty \left\|f_n^{(k)}\right\|_\infty \le \sum_{n=0}^{k+1}\frac{|\alpha_n|}{n!\,\lambda_n^{n-k}} \left\|\psi_n^{(k)}\right\|_\infty +\sum_{n=k+2}^\infty\frac1{n!} \underbrace{\frac1{\lambda_n^{n-k-2}}}_{\le\,1} \underbrace{\frac{|\alpha_n|}{\lambda_n}}_{\le\,1} \underbrace{\frac{\left\|\psi_n^{(k)}\right\|_\infty}{\lambda_n}}_{\le\,1} <\infty,</math> where the remaining infinite series converges by the ratio test.
Application to higher dimensions
For every radius Template:Math, <math display="block">\mathbb{R}^n\ni x\mapsto \Psi_r(x)=f\left(r^2-\|x\|^2\right)</math> with Euclidean norm Template:Math defines a smooth function on Template:Mvar-dimensional Euclidean space with support in the ball of radius Template:Mvar, but <math>\Psi_r(0)>0</math>.
Complex analysis
This pathology cannot occur with differentiable functions of a complex variable rather than of a real variable. Indeed, all holomorphic functions are analytic, so that the failure of the function Template:Mvar 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.
Note that although the function Template:Mvar has derivatives of all orders over the real line, the analytic continuation of Template:Mvar from the positive half-line Template:Math to the complex plane, that is, the function <math display="block">\mathbb{C}\setminus\{0\}\ni z\mapsto e^{-\frac{1}{z}}\in\mathbb{C},</math> 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.
See also
Notes
External links
- ↑ Exercise 12 on page 418 in Walter Rudin, Real and Complex Analysis. McGraw-Hill, New Delhi 1980, Template:Isbn
- ↑ 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 Template:Citation