Non-analytic smooth function explained

In mathematics, smooth functions (also called infinitely differentiable functions) and analytic functions are two very important types of functions. One can easily prove that any analytic function of a real argument is smooth. The converse is not true, as demonstrated with the counterexample below.

One of the most important applications of smooth functions with compact support is the construction of so-called mollifiers, which are important in theories of generalized functions, such as Laurent Schwartz's theory of distributions.

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.

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

-1
x
f(x)=\begin{cases}e

&ifx>0,\ 0&ifx\le0,\end{cases}

defined for every real number x.

The function is smooth

The function f has continuous derivatives of all orders at every point x of the real line. The formula for these derivatives is

f(n)(x)=\begin{cases}\displaystyle

pn(x)
x2n

f(x)&ifx>0,\ 0&ifx\le0,\end{cases}

where pn(x) is a polynomial of degree n - 1 given recursively by p1(x) = 1 and

pn+1

2p
(x)=x
n'(x)-(2nx-1)p

n(x)

\limx\searrow

-1
x
e
xm

=0

for any nonnegative integer m.

m

(including zero)
1{x
m}=xl(1{x}r)
m+1

\le

infty
1{n!}l(1xr)
n =(m+1)!x
e
(m+1)!x\sum
n=0
1
x

,    x>0,

because all the positive terms for

nm+1

are added. Therefore, dividing this inequality by
1
x
e
and taking the limit from above,

\limx\searrow0

-1
x
e
xm

\le(m+1)!\limx\searrow0x=0.

We now prove the formula for the nth derivative of f 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 f for all x > 0 and that p1(x) is a polynomial of degree 0. Of course, the derivative of f is zero for x < 0.It remains to show that the right-hand side derivative of f at x = 0 is zero. Using the above limit, we see that

f'(0)=\limx\searrow0

f(x)-f(0)
x-0

=\limx\searrow0

-1
x
e
x

=0.

The induction step from n to n + 1 is similar. For x > 0 we get for the derivative

\begin{align}f(n+1)(x) &=l(

p'n(x)-2n
x2n
pn(x)+
x2n+1
pn(x)r)f(x)\\ &=
x2n+2
2p'
xn(x)
n(x)-(2nx-1)p
f(x)\\ &=
x2n+2
pn+1(x)
x2(n+1)

f(x),\end{align}

where pn+1(x) is a polynomial of degree n = (n + 1) - 1. Of course, the (n + 1)st derivative of f is zero for x < 0. For the right-hand side derivative of f (n) at x = 0 we obtain with the above limit

\limx\searrow0

f(n)(x)-f(n)(0)
x-0

=\limx\searrow0

pn(x)
x2n+1

e-1/x=0.

The function is not analytic

As seen earlier, the function f is smooth, and all its derivatives at the origin are 0. Therefore, the Taylor series of f at the origin converges everywhere to the zero function,

infty
\sum
n=0
f(n)(0)
n!
infty
x
n=0
0
n!

xn=0,    x\inR,

and so the Taylor series does not equal f(x) for x > 0. Consequently, f is not analytic at the origin.

Smooth transition functions

The function

g(x)=f(x)
f(x)+f(1-x)

,    x\inR,

has a strictly positive denominator everywhere on the real line, hence g is also smooth. Furthermore, g(x) = 0 for x ≤ 0 and g(x) = 1 for x ≥ 1, hence it provides a smooth transition from the level 0 to the level 1 in the unit interval [0, 1]. To have the smooth transition in the real interval [a, b] with a < b, consider the function

R\nix\mapstogl(

x-a
b-a

r).

For real numbers, the smooth function

R\nix\mapstogl(

x-ar)gl(
b-a
d-x
d-c

r)

equals 1 on the closed interval [b, c] and vanishes outside the open interval (a, d), hence it can serve as a bump function.

A smooth function which 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

x\inR

F(x):=\sumk\in

-\sqrt{2k
e
}\cos(2^k x)\ .

Since the series

\sumk\in

-\sqrt{2k
e
}^n converges for all

n\inN

, this function is easily seen to be of class C, by a standard inductive application of the Weierstrass M-test to demonstrate uniform convergence of each series of derivatives.

We now show that

F(x)

is not analytic at any dyadic rational multiple of π, that is, at any

x:=\pip2-q

with

p\inZ

and

q\inN

. Since the sum of the first

q

terms is analytic, we need only consider

F>q(x)

, the sum of the terms with

k>q

. For all orders of derivation

n=2m

with

m\inN

,

m\geq2

and

m>q/2

we have
(n)
F
>q

(x):=\sumk\in

-\sqrt{2k
e
} ^n\cos(2^k x) = \sum_ e^ ^n \ge e^ n^\quad (\mathrm\; n\to \infty)

where we used the fact that

\cos(2kx)=1

for all

2k>2q

, and we bounded the first sum from below by the term with

2k=22m=n2

. As a consequence, at any such

x\inR

\limsupn\toinfty\left(

(n)
|F(x)|
>q
n!

\right)1/n=+infty,

so that the radius of convergence of the Taylor series of

F>q

at

x

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

F>q

, and hence

F

, is nowhere analytic in

R

.

Application to Taylor series

See main article: Borel's lemma. For every sequence α0, α1, α2, . . . of real or complex numbers, the following construction shows the existence of a smooth function F 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 g as above, define

h(x)=g(2+x)g(2-x),    x\inR.

This function h is also smooth; it equals 1 on the closed interval [-1,1] and vanishes outside the open interval (-2,2). Using h, define for every natural number n (including zero) the smooth function

nh(x),   
\psi
n(x)=x

x\inR,

which agrees with the monomial xn on [-1,1] and vanishes outside the interval (-2,2). Hence, the k-th derivative of ψn at the origin satisfies

(k)
\psi
n

(0)=\begin{cases}n!&ifk=n,\\0&otherwise,\end{cases}k,n\inN0,

and the boundedness theorem implies that ψn and every derivative of ψn is bounded. Therefore, the constants

λn=maxl\{1,|\alphan|,\|\psin\|infty,\|\psi

(1)
n

\|infty,\ldots,\|\psi

(n)
n

\|inftyr\},    n\inN0,

involving the supremum norm of ψn and its first n derivatives, are well-defined real numbers. Define the scaled functions

f
n(x)=\alphan
n
n!λ
n

\psin(λnx),    n\inN0,x\inR.

By repeated application of the chain rule,

(k)
f(x)=
n
\alphan
n-k
n!λ
n
(k)
\psi
n

(λnx),    k,n\inN0,x\inR,

and, using the previous result for the k-th derivative of ψn at zero,

(k)
f
n

(0)=\begin{cases}\alphan&ifk=n,\\0&otherwise,\end{cases}    k,n\inN0.

It remains to show that the function

infty
F(x)=\sum
n=0

fn(x),    x\inR,

is well defined and can be differentiated term-by-term infinitely many times.[2] To this end, observe that for every k

(k)
\sum
n

\|infty \le

k+1
\sum
n=0
|\alphan|
n-k
n!λ
n
(k)
\|\psi
n

\|infty +\sum

infty
1{n!} \underbrace{1{λ
n
n-k-2
n=k+2
}}_\underbrace_\underbrace_<\infty,

where the remaining infinite series converges by the ratio test.

Application to higher dimensions

For every radius r > 0,

Rn\nix\mapsto

2-\|x\|
\Psi
r(x)=f(r

2)

with Euclidean norm ||x|| defines a smooth function on n-dimensional Euclidean space with support in the ball of radius r, but

\Psir(0)>0

.

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 f 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 f has derivatives of all orders over the real line, the analytic continuation of f from the positive half-line x > 0 to the complex plane, that is, the function

C\setminus\{0\}\niz\mapsto

-1
z
e

\inC,

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 and References

  1. Exercise 12 on page 418 in Walter Rudin, Real and Complex Analysis. McGraw-Hill, New Delhi 1980,
  2. 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