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.
Consider the function
| ||||
f(x)=\begin{cases}e |
&ifx>0,\ 0&ifx\le0,\end{cases}
defined for every real number x.
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
| ||||||||
xm |
=0
for any nonnegative integer m.
m
1{x | |||||||
|
\le
| |||||||
(m+1)!x\sum | |||||||
n=0 |
| ||||
, x>0,
because all the positive terms for
n ≠ m+1
| ||||
e |
\limx\searrow0
| ||||||||
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
| ||||||||
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 |
| 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.
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.
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-a | r)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 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 |
Since the series
\sumk\in
-\sqrt{2k | |
e |
n\inN
We now show that
F(x)
x:=\pi ⋅ p ⋅ 2-q
p\inZ
q\inN
q
F>q(x)
k>q
n=2m
m\inN
m\geq2
m>q/2
(n) | |
F | |
>q |
(x):=\sumk\in
-\sqrt{2k | |
e |
where we used the fact that
\cos(2kx)=1
2k>2q
2k=22m=n2
x\inR
\limsupn\toinfty\left(
| ||||||||||
n! |
\right)1/n=+infty,
F>q
x
F>q
F
R
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 | ||||||||||
|
\psin(λnx), n\inN0, x\inR.
By repeated application of the chain rule,
(k) | ||
f | (x)= | |
n |
\alphan | ||||||
|
(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| | ||||||
|
(k) | |
\|\psi | |
n |
\|infty +\sum
| |||||||
n=k+2 |
where the remaining infinite series converges by the ratio test.
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
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
| ||||
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.