# Smoothness

(Redirected from Smooth function)

In mathematical analysis, the smoothness of a function is a property measured by the number of continuous derivatives it has over some domain, called differentiability class.[1] At the very minimum, a function could be considered smooth if it is differentiable everywhere (hence continuous).[2] At the other end, it might also possess derivatives of all orders in its domain, in which case it is said to be infinitely differentiable and referred to as a C-infinity function (or ${\displaystyle C^{\infty }}$ function).[3]

A bump function is a smooth function with compact support.

## Differentiability classes

Differentiability class is a classification of functions according to the properties of their derivatives. It is a measure of the highest order of derivative that exists and is continuous for a function.

Consider an open set ${\displaystyle U}$  on the real line and a function ${\displaystyle f}$  defined on ${\displaystyle U}$  with real values. Let k be a non-negative integer. The function ${\displaystyle f}$  is said to be of differentiability class ${\displaystyle C^{k}}$  if the derivatives ${\displaystyle f',f'',\dots ,f^{(k)}}$  exist and are continuous on ${\displaystyle U}$ . If ${\displaystyle f}$  is ${\displaystyle k}$ -differentiable on ${\displaystyle U}$ , then it is at least in the class ${\displaystyle C^{k-1}}$  since ${\displaystyle f',f'',\dots ,f^{(k-1)}}$  are continuous on ${\displaystyle U}$ . The function ${\displaystyle f}$  is said to be infinitely differentiable, smooth, or of class ${\displaystyle C^{\infty }}$ , if it has derivatives of all orders on ${\displaystyle U}$ . (So all these derivatives are continuous functions over ${\displaystyle U}$ .)[4] The function ${\displaystyle f}$  is said to be of class ${\displaystyle C^{\omega }}$ , or analytic, if ${\displaystyle f}$  is smooth (i.e., ${\displaystyle f}$  is in the class ${\displaystyle C^{\infty }}$ ) and its Taylor series expansion around any point in its domain converges to the function in some neighborhood of the point. ${\displaystyle C^{\omega }}$  is thus strictly contained in ${\displaystyle C^{\infty }}$ . Bump functions are examples of functions in ${\displaystyle C^{\infty }}$  but not in ${\displaystyle C^{\omega }}$ .

To put it differently, the class ${\displaystyle C^{0}}$  consists of all continuous functions. The class ${\displaystyle C^{1}}$  consists of all differentiable functions whose derivative is continuous; such functions are called continuously differentiable. Thus, a ${\displaystyle C^{1}}$  function is exactly a function whose derivative exists and is of class ${\displaystyle C^{0}}$ . In general, the classes ${\displaystyle C^{k}}$  can be defined recursively by declaring ${\displaystyle C^{0}}$  to be the set of all continuous functions, and declaring ${\displaystyle C^{k}}$  for any positive integer ${\displaystyle k}$  to be the set of all differentiable functions whose derivative is in ${\displaystyle C^{k-1}}$ . In particular, ${\displaystyle C^{k}}$  is contained in ${\displaystyle C^{k-1}}$  for every ${\displaystyle k>0}$ , and there are examples to show that this containment is strict (${\displaystyle C^{k}\subsetneq C^{k-1}}$ ). The class ${\displaystyle C^{\infty }}$  of infinitely differentiable functions, is the intersection of the classes ${\displaystyle C^{k}}$  as ${\displaystyle k}$  varies over the non-negative integers.

### Examples

#### Example: Continuous (C0) But Not Differentiable

The C0 function f(x) = x for x ≥ 0 and 0 otherwise.

The function g(x) = x2 sin(1/x) for x > 0.

The function ${\displaystyle f:\mathbb {R} \to \mathbb {R} }$  with ${\displaystyle f(x)=x^{2}\sin \left({\tfrac {1}{x}}\right)}$  for ${\displaystyle x\neq 0}$  and ${\displaystyle f(0)=0}$  is differentiable. However, this function is not continuously differentiable.

A smooth function that is not analytic.

The function

${\displaystyle f(x)={\begin{cases}x&{\mbox{if }}x\geq 0,\\0&{\text{if }}x<0\end{cases}}}$

is continuous, but not differentiable at x = 0, so it is of class C0, but not of class C1.

#### Example: Finitely-times Differentiable (Ck)

For each even integer k, the function

${\displaystyle f(x)=|x|^{k+1}}$

is continuous and k times differentiable at all x. At x = 0, however, ${\displaystyle f}$  is not (k + 1) times differentiable, so ${\displaystyle f}$  is of class Ck, but not of class Cj where j > k.

#### Example: Differentiable But Not Continuously Differentiable (not C1)

The function

${\displaystyle g(x)={\begin{cases}x^{2}\sin {\left({\tfrac {1}{x}}\right)}&{\text{if }}x\neq 0,\\0&{\text{if }}x=0\end{cases}}}$

is differentiable, with derivative
${\displaystyle g'(x)={\begin{cases}-{\mathord {\cos \left({\tfrac {1}{x}}\right)}}+2x\sin \left({\tfrac {1}{x}}\right)&{\text{if }}x\neq 0,\\0&{\text{if }}x=0.\end{cases}}}$

Because ${\displaystyle \cos(1/x)}$  oscillates as x → 0, ${\displaystyle g'(x)}$  is not continuous at zero. Therefore, ${\displaystyle g(x)}$  is differentiable but not of class C1.

#### Example: Differentiable But Not Lipschitz Continuous

The function

${\displaystyle h(x)={\begin{cases}x^{4/3}\sin {\left({\tfrac {1}{x}}\right)}&{\text{if }}x\neq 0,\\0&{\text{if }}x=0\end{cases}}}$

is differentiable but its derivative is unbounded on a compact set. Therefore, ${\displaystyle h}$  is an example of a function that is differentiable but not locally Lipschitz continuous.

#### Example: Analytic (Cω)

The exponential function ${\displaystyle e^{x}}$  is analytic, and hence falls into the class Cω. The trigonometric functions are also analytic wherever they are defined as they are linear combinations of complex exponential functions ${\displaystyle e^{ix}}$  and ${\displaystyle e^{-ix}}$ .

#### Example: Smooth (C∞) but not Analytic (Cω)

${\displaystyle f(x)={\begin{cases}e^{-{\frac {1}{1-x^{2}}}}&{\text{ if }}|x|<1,\\0&{\text{ otherwise }}\end{cases}}}$

is smooth, so of class C, but it is not analytic at x = ±1, and hence is not of class Cω. The function f is an example of a smooth function with compact support.

### Multivariate differentiability classes

A function ${\displaystyle f:U\subset \mathbb {R} ^{n}\to \mathbb {R} }$  defined on an open set ${\displaystyle U}$  of ${\displaystyle \mathbb {R} ^{n}}$  is said[5] to be of class ${\displaystyle C^{k}}$  on ${\displaystyle U}$ , for a positive integer ${\displaystyle k}$ , if all partial derivatives

${\displaystyle {\frac {\partial ^{\alpha }f}{\partial x_{1}^{\alpha _{1}}\,\partial x_{2}^{\alpha _{2}}\,\cdots \,\partial x_{n}^{\alpha _{n}}}}(y_{1},y_{2},\ldots ,y_{n})}$

exist and are continuous, for every ${\displaystyle \alpha _{1},\alpha _{2},\ldots ,\alpha _{n}}$  non-negative integers, such that ${\displaystyle \alpha =\alpha _{1}+\alpha _{2}+\cdots +\alpha _{n}\leq k}$ , and every ${\displaystyle (y_{1},y_{2},\ldots ,y_{n})\in U}$ . Equivalently, ${\displaystyle f}$  is of class ${\displaystyle C^{k}}$  on ${\displaystyle U}$  if the ${\displaystyle k}$ -th order Fréchet derivative of ${\displaystyle f}$  exists and is continuous at every point of ${\displaystyle U}$ . The function ${\displaystyle f}$  is said to be of class ${\displaystyle C}$  or ${\displaystyle C^{0}}$  if it is continuous on ${\displaystyle U}$ . Functions of class ${\displaystyle C^{1}}$  are also said to be continuously differentiable.

A function ${\displaystyle f:U\subset \mathbb {R} ^{n}\to \mathbb {R} ^{m}}$ , defined on an open set ${\displaystyle U}$  of ${\displaystyle \mathbb {R} ^{n}}$ , is said to be of class ${\displaystyle C^{k}}$  on ${\displaystyle U}$ , for a positive integer ${\displaystyle k}$ , if all of its components

${\displaystyle f_{i}(x_{1},x_{2},\ldots ,x_{n})=(\pi _{i}\circ f)(x_{1},x_{2},\ldots ,x_{n})=\pi _{i}(f(x_{1},x_{2},\ldots ,x_{n})){\text{ for }}i=1,2,3,\ldots ,m}$

are of class ${\displaystyle C^{k}}$ , where ${\displaystyle \pi _{i}}$  are the natural projections ${\displaystyle \pi _{i}:\mathbb {R} ^{m}\to \mathbb {R} }$  defined by ${\displaystyle \pi _{i}(x_{1},x_{2},\ldots ,x_{m})=x_{i}}$ . It is said to be of class ${\displaystyle C}$  or ${\displaystyle C^{0}}$  if it is continuous, or equivalently, if all components ${\displaystyle f_{i}}$  are continuous, on ${\displaystyle U}$ .

### The space of Ck functions

Let ${\displaystyle D}$  be an open subset of the real line. The set of all ${\displaystyle C^{k}}$  real-valued functions defined on ${\displaystyle D}$  is a Fréchet vector space, with the countable family of seminorms

${\displaystyle p_{K,m}=\sup _{x\in K}\left|f^{(m)}(x)\right|}$

where ${\displaystyle K}$  varies over an increasing sequence of compact sets whose union is ${\displaystyle D}$ , and ${\displaystyle m=0,1,\dots ,k}$ .

The set of ${\displaystyle C^{\infty }}$  functions over ${\displaystyle D}$  also forms a Fréchet space. One uses the same seminorms as above, except that ${\displaystyle m}$  is allowed to range over all non-negative integer values.

The above spaces occur naturally in applications where functions having derivatives of certain orders are necessary; however, particularly in the study of partial differential equations, it can sometimes be more fruitful to work instead with the Sobolev spaces.

## Continuity

The terms parametric continuity (Ck) and geometric continuity (Gn) were introduced by Brian Barsky, to show that the smoothness of a curve could be measured by removing restrictions on the speed, with which the parameter traces out the curve.[6][7][8]

### Parametric continuity

Parametric continuity (Ck) is a concept applied to parametric curves, which describes the smoothness of the parameter's value with distance along the curve. A (parametric) curve ${\displaystyle s:[0,1]\to \mathbb {R} ^{n}}$  is said to be of class Ck, if ${\displaystyle \textstyle {\frac {d^{k}s}{dt^{k}}}}$  exists and is continuous on ${\displaystyle [0,1]}$ , where derivatives at the end-points ${\displaystyle 0,1\in [0,1]}$  are taken to be one sided derivatives (i.e., at ${\displaystyle 0}$  from the right, and at ${\displaystyle 1}$  from the left).

As a practical application of this concept, a curve describing the motion of an object with a parameter of time must have C1 continuity and its first derivative is differentiable—for the object to have finite acceleration. For smoother motion, such as that of a camera's path while making a film, higher orders of parametric continuity are required.

#### Order of parametric continuity

Two Bézier curve segments attached that is only C0 continuous

Two Bézier curve segments attached in such a way that they are C1 continuous

The various order of parametric continuity can be described as follows:[9]

• ${\displaystyle C^{0}}$ : zeroth derivative is continuous (curves are continuous)
• ${\displaystyle C^{1}}$ : zeroth and first derivatives are continuous
• ${\displaystyle C^{2}}$ : zeroth, first and second derivatives are continuous
• ${\displaystyle C^{n}}$ : 0-th through ${\displaystyle n}$ -th derivatives are continuous

### Geometric continuity

Curves with G1-contact (circles,line)

${\displaystyle (1-\varepsilon ^{2})x^{2}-2px+y^{2}=0,\ p>0\ ,\varepsilon \geq 0}$
pencil of conic sections with G2-contact: p fix, ${\displaystyle \varepsilon }$  variable
(${\displaystyle \varepsilon =0}$ : circle,${\displaystyle \varepsilon =0.8}$ : ellipse, ${\displaystyle \varepsilon =1}$ : parabola, ${\displaystyle \varepsilon =1.2}$ : hyperbola)

The concept of geometrical continuity or geometric continuity (Gn) was primarily applied to the conic sections (and related shapes) by mathematicians such as Leibniz, Kepler, and Poncelet. The concept was an early attempt at describing, through geometry rather than algebra, the concept of continuity as expressed through a parametric function.[10]

The basic idea behind geometric continuity was that the five conic sections were really five different versions of the same shape. An ellipse tends to a circle as the eccentricity approaches zero, or to a parabola as it approaches one; and a hyperbola tends to a parabola as the eccentricity drops toward one; it can also tend to intersecting lines. Thus, there was continuity between the conic sections. These ideas led to other concepts of continuity. For instance, if a circle and a straight line were two expressions of the same shape, perhaps a line could be thought of as a circle of infinite radius. For such to be the case, one would have to make the line closed by allowing the point ${\displaystyle x=\infty }$  to be a point on the circle, and for ${\displaystyle x=+\infty }$  and ${\displaystyle x=\neg \infty }$  to be identical. Such ideas were useful in crafting the modern, algebraically defined, idea of the continuity of a function and of ${\displaystyle \infty }$  (see projectively extended real line for more).[10]

#### Order of geometric continuity

A curve or surface can be described as having ${\displaystyle G^{n}}$  continuity, with ${\displaystyle n}$  being the increasing measure of smoothness. Consider the segments either side of a point on a curve:

• ${\displaystyle G^{0}}$ : The curves touch at the join point.
• ${\displaystyle G^{1}}$ : The curves also share a common tangent direction at the join point.
• ${\displaystyle G^{2}}$ : The curves also share a common center of curvature at the join point.

In general, ${\displaystyle G^{n}}$  continuity exists if the curves can be reparameterized to have ${\displaystyle C^{n}}$  (parametric) continuity.[11][12] A reparametrization of the curve is geometrically identical to the original; only the parameter is affected.

Equivalently, two vector functions ${\displaystyle f(t)}$  and ${\displaystyle g(t)}$  have ${\displaystyle G^{n}}$  continuity if ${\displaystyle f^{(n)}(t)\neq 0}$  and ${\displaystyle f^{(n)}(t)\equiv kg^{(n)}(t)}$ , for a scalar ${\displaystyle k>0}$  (i.e., if the direction, but not necessarily the magnitude, of the two vectors is equal).

While it may be obvious that a curve would require ${\displaystyle G^{1}}$  continuity to appear smooth, for good aesthetics, such as those aspired to in architecture and sports car design, higher levels of geometric continuity are required. For example, reflections in a car body will not appear smooth unless the body has ${\displaystyle G^{2}}$  continuity.

A rounded rectangle (with ninety degree circular arcs at the four corners) has ${\displaystyle G^{1}}$  continuity, but does not have ${\displaystyle G^{2}}$  continuity. The same is true for a rounded cube, with octants of a sphere at its corners and quarter-cylinders along its edges. If an editable curve with ${\displaystyle G^{2}}$  continuity is required, then cubic splines are typically chosen; these curves are frequently used in industrial design.

## Other concepts

### Relation to analyticity

While all analytic functions are "smooth" (i.e. have all derivatives continuous) on the set on which they are analytic, examples such as bump functions (mentioned above) show that the converse is not true for functions on the reals: there exist smooth real functions that are not analytic. Simple examples of functions that are smooth but not analytic at any point can be made by means of Fourier series; another example is the Fabius function. Although it might seem that such functions are the exception rather than the rule, it turns out that the analytic functions are scattered very thinly among the smooth ones; more rigorously, the analytic functions form a meagre subset of the smooth functions. Furthermore, for every open subset A of the real line, there exist smooth functions that are analytic on A and nowhere else[citation needed].

It is useful to compare the situation to that of the ubiquity of transcendental numbers on the real line. Both on the real line and the set of smooth functions, the examples we come up with at first thought (algebraic/rational numbers and analytic functions) are far better behaved than the majority of cases: the transcendental numbers and nowhere analytic functions have full measure (their complements are meagre).

The situation thus described is in marked contrast to complex differentiable functions. If a complex function is differentiable just once on an open set, it is both infinitely differentiable and analytic on that set[citation needed].

### Smooth partitions of unity

Smooth functions with given closed support are used in the construction of smooth partitions of unity (see partition of unity and topology glossary); these are essential in the study of smooth manifolds, for example to show that Riemannian metrics can be defined globally starting from their local existence. A simple case is that of a bump function on the real line, that is, a smooth function f that takes the value 0 outside an interval [a,b] and such that

${\displaystyle f(x)>0\quad {\text{ for }}\quad a

Given a number of overlapping intervals on the line, bump functions can be constructed on each of them, and on semi-infinite intervals ${\displaystyle (-\infty ,c]}$  and ${\displaystyle [d,+\infty )}$  to cover the whole line, such that the sum of the functions is always 1.

From what has just been said, partitions of unity don't apply to holomorphic functions; their different behavior relative to existence and analytic continuation is one of the roots of sheaf theory. In contrast, sheaves of smooth functions tend not to carry much topological information.

### Smooth functions on and between manifolds

Given a smooth manifold ${\displaystyle M}$ , of dimension ${\displaystyle m,}$  and an atlas ${\displaystyle {\mathfrak {U}}=\{(U_{\alpha },\phi _{\alpha })\}_{\alpha },}$  then a map ${\displaystyle f:M\to \mathbb {R} }$  is smooth on ${\displaystyle M}$  if for all ${\displaystyle p\in M}$  there exists a chart ${\displaystyle (U,\phi )\in {\mathfrak {U}},}$  such that ${\displaystyle p\in U,}$  and ${\displaystyle f\circ \phi ^{-1}:\phi (U)\to \mathbb {R} }$  is a smooth function from a neighborhood of ${\displaystyle \phi (p)}$  in ${\displaystyle \mathbb {R} ^{m}}$  to ${\displaystyle \mathbb {R} }$  (all partial derivatives up to a given order are continuous). Smoothness can be checked with respect to any chart of the atlas that contains ${\displaystyle p,}$  since the smoothness requirements on the transition functions between charts ensure that if ${\displaystyle f}$  is smooth near ${\displaystyle p}$  in one chart it will be smooth near ${\displaystyle p}$  in any other chart.

If ${\displaystyle F:M\to N}$  is a map from ${\displaystyle M}$  to an ${\displaystyle n}$ -dimensional manifold ${\displaystyle N}$ , then ${\displaystyle F}$  is smooth if, for every ${\displaystyle p\in M,}$  there is a chart ${\displaystyle (U,\phi )}$  containing ${\displaystyle p,}$  and a chart ${\displaystyle (V,\psi )}$  containing ${\displaystyle F(p)}$  such that ${\displaystyle F(U)\subset V,}$  and ${\displaystyle \psi \circ F\circ \phi ^{-1}:\phi (U)\to \psi (V)}$  is a smooth function from ${\displaystyle \mathbb {R} ^{n}.}$

Smooth maps between manifolds induce linear maps between tangent spaces: for ${\displaystyle F:M\to N}$ , at each point the pushforward (or differential) maps tangent vectors at ${\displaystyle p}$  to tangent vectors at ${\displaystyle F(p)}$ : ${\displaystyle F_{*,p}:T_{p}M\to T_{F(p)}N,}$  and on the level of the tangent bundle, the pushforward is a vector bundle homomorphism: ${\displaystyle F_{*}:TM\to TN.}$  The dual to the pushforward is the pullback, which "pulls" covectors on ${\displaystyle N}$  back to covectors on ${\displaystyle M,}$  and ${\displaystyle k}$ -forms to ${\displaystyle k}$ -forms: ${\displaystyle F^{*}:\Omega ^{k}(N)\to \Omega ^{k}(M).}$  In this way smooth functions between manifolds can transport local data, like vector fields and differential forms, from one manifold to another, or down to Euclidean space where computations like integration are well understood.

Preimages and pushforwards along smooth functions are, in general, not manifolds without additional assumptions. Preimages of regular points (that is, if the differential does not vanish on the preimage) are manifolds; this is the preimage theorem. Similarly, pushforwards along embeddings are manifolds.[13]

### Smooth functions between subsets of manifolds

There is a corresponding notion of smooth map for arbitrary subsets of manifolds. If ${\displaystyle f:X\to Y}$  is a function whose domain and range are subsets of manifolds ${\displaystyle X\subseteq M}$  and ${\displaystyle Y\subseteq N}$  respectively. ${\displaystyle f}$  is said to be smooth if for all ${\displaystyle x\in X}$  there is an open set ${\displaystyle U\subseteq M}$  with ${\displaystyle x\in U}$  and a smooth function ${\displaystyle F:U\to N}$  such that ${\displaystyle F(p)=f(p)}$  for all ${\displaystyle p\in U\cap X.}$

## References

1. ^ Weisstein, Eric W. "Smooth Function". mathworld.wolfram.com. Archived from the original on 2019-12-16. Retrieved 2019-12-13.
2. ^ "Smooth (mathematics)". TheFreeDictionary.com. Archived from the original on 2019-09-03. Retrieved 2019-12-13.
3. ^ "Smooth function - Encyclopedia of Mathematics". www.encyclopediaofmath.org. Archived from the original on 2019-12-13. Retrieved 2019-12-13.
4. ^ Warner, Frank W. (1983). Foundations of Differentiable Manifolds and Lie Groups. Springer. p. 5 [Definition 1.2]. ISBN 978-0-387-90894-6. Archived from the original on 2015-10-01. Retrieved 2014-11-28.
5. ^ Henri Cartan (1977). Cours de calcul différentiel. Paris: Hermann.
6. ^ Barsky, Brian A. (1981). The Beta-spline: A Local Representation Based on Shape Parameters and Fundamental Geometric Measures (Ph.D.). University of Utah, Salt Lake City, Utah.
7. ^ Brian A. Barsky (1988). Computer Graphics and Geometric Modeling Using Beta-splines. Springer-Verlag, Heidelberg. ISBN 978-3-642-72294-3.
8. ^ Richard H. Bartels; John C. Beatty; Brian A. Barsky (1987). An Introduction to Splines for Use in Computer Graphics and Geometric Modeling. Morgan Kaufmann. Chapter 13. Parametric vs. Geometric Continuity. ISBN 978-1-55860-400-1.
9. ^ van de Panne, Michiel (1996). "Parametric Curves". Fall 1996 Online Notes. University of Toronto, Canada. Archived from the original on 2020-11-26. Retrieved 2019-09-01.
10. ^ a b Taylor, Charles (1911). "Geometrical Continuity" . In Chisholm, Hugh (ed.). Encyclopædia Britannica. Vol. 11 (11th ed.). Cambridge University Press. pp. 674–675.
11. ^ Barsky, Brian A.; DeRose, Tony D. (1989). "Geometric Continuity of Parametric Curves: Three Equivalent Characterizations". IEEE Computer Graphics and Applications. 9 (6): 60–68. doi:10.1109/38.41470. S2CID 17893586.
12. ^ Hartmann, Erich (2003). "Geometry and Algorithms for Computer Aided Design" (PDF). Technische Universität Darmstadt. p. 55. Archived (PDF) from the original on 2020-10-23. Retrieved 2019-08-31.
13. ^ Guillemin, Victor; Pollack, Alan (1974). Differential Topology. Englewood Cliffs: Prentice-Hall. ISBN 0-13-212605-2.