Test functions are auxiliary functions used in mathematical analysis to probe other functions, distributions, differential equations, or variational identities. They are usually chosen from a class of functions with enough regularity, decay, or boundary behavior to justify operations such as integration by parts, localization, and passage to weak limits.
Common spaces of test functions
Compactly supported smooth functions
Let U be an open subset of Rn. With minor modifications, one can replace Rn by any (paracompact) smooth manifold.
The space D(U) of test functions on U is defined as follows. A function : U → R is said to have compact support if there exists a compact subset K of U such that (x) = 0 for all x in U \ K. The elements of D(U) are the infinitely differentiable functions : U → R with compact support. This is a real vector space.
It can be given a topology by defining the limit of a sequence of elements of D(U). A sequence (k) in D(U) is said to converge to ∈ D(U) if the following two conditions hold:1
- There is a compact set K ⊂ U containing the supports of all k:
- For each multi-index α, the sequence of partial derivatives tends uniformly to .
With this definition, D(U) becomes a complete locally convex topological vector space.2
Now let U be the union of Ui where {Ui} is a countable nested family of open subsets of U with compact closures Ki = Ui. Then we have the countable increasing union
where DKi is the set of all smooth functions on U with support lying in Ki. On each DKi, consider the topology given by the seminorms
i.e. the topology of uniform convergence of derivatives of arbitrary order. This makes each DKi a Fréchet space. The resulting LF space structure on D(U) is the topology described above.
Schwartz functions
The Schwartz space S(Rn) is the function space of all infinitely differentiable functions that are rapidly decreasing at infinity along with all partial derivatives. Thus φ : Rn → R is in the Schwartz space provided that any derivative of , multiplied with any power of |x|, converges towards 0 for |x| → ∞. These functions form a complete topological vector space with a suitably defined family of seminorms.
More precisely, let
for α, β multi-indices of size n. Then is a Schwartz function if all the values satisfy
The family of seminorms pα, β defines a locally convex topology on the Schwartz space. When n is equal to 1, the seminorms are, in fact, norms on the Schwartz space. Otherwise, one can define a norm on S(Rn) via
- for k ≥ 1.
The Schwartz space is metrizable and complete. Because the Fourier transform changes differentiation by xα into multiplication by xα and vice versa, this symmetry implies that the Fourier transform of a Schwartz function is also a Schwartz function.
Sobolev test spaces
In the theory of weak formulations and weak solutions of partial differential equations, the term test function is often used more broadly than in distribution theory. One may first test an equation against functions in , and then pass to a larger Sobolev space by density or completion. In this setting, a test function is usually an admissible function from the space in which the weak identity is required to hold.
For example, if is open, the Sobolev space is commonly defined as the closure of in the Sobolev norm of .3 Thus elements of need not be smooth, but they can be approximated in the Sobolev norm by compactly supported smooth functions. For this reason, functions in Sobolev spaces such as are often used as test functions in variational formulations.
A typical example is the weak form of the Poisson equation. Instead of requiring a function to satisfy pointwise, one asks that
for all test functions in a suitable space, commonly at first, or after completion.4 The choice of test space encodes boundary conditions: for instance, the space corresponds to homogeneous Dirichlet boundary conditions in the trace sense on sufficiently regular domains.
This use of the term should be distinguished from the distribution-theoretic convention, where the test functions themselves are usually smooth. In weak formulations, the word test emphasizes the role of the function in probing an equation or variational identity, rather than membership in a fixed smooth test-function space.
Test functions on manifolds
Test functions can also be defined on smooth manifolds. If is a smooth manifold, the space consists of smooth real-valued or complex-valued functions on with compact support. If is compact, then ; on a non-compact manifold, the compact-support condition is a genuine restriction.
As in the Euclidean case, is used for localization, integration by parts, and the definition of distributions. More intrinsically, distributions on a manifold may be defined as continuous linear functionals on compactly supported smooth densities, or, after choosing a smooth positive density or a Riemannian volume form, as continuous linear functionals on .5
More generally, if is a smooth vector bundle, the compactly supported smooth sections play the role of test functions with values in . This is useful, for example, when defining weak or distributional sections of the dual bundle, differential forms with distributional coefficients, or weak formulations of equations for vector-valued unknowns.
The topology on is defined locally in the same way as for on open subsets of Euclidean space. On each compact subset, convergence means uniform convergence of all derivatives in local coordinates; globally, the usual topology is an inductive limit over compact subsets. Partitions of unity and smooth cutoff functions allow many local constructions with Euclidean test functions to be transferred to manifolds.
Use in weak formulations
In the study of partial differential equations, test functions are used to pass from a differential equation in pointwise form (called the classical form) to a weak formulation. The usual procedure is to multiply the equation by a test function, integrate over the domain, and use integration by parts to transfer derivatives from the unknown function onto the test function. This allows the formulation of equations for functions that may not possess all derivatives appearing in the original equation in the classical sense.
For example, suppose that is an open set and consider the Poisson equation
If and are sufficiently smooth and , then multiplying by and integrating gives
An integration by parts, with no boundary term because has compact support in , gives
This identity still makes sense under weaker assumptions than the original equation. For instance, if and , then may be called a weak solution of if the identity holds for every .6
When boundary conditions are included, the test space is often chosen to encode them. For the homogeneous Dirichlet problem for the Poisson equation, one commonly seeks such that
for all . In this formulation, the test functions need not themselves be smooth: they can to the Sobolev space obtained as a completion of compactly supported smooth functions in the relevant Sobolev norm.7
Test functions also appear in variational arguments. If a functional is differentiated along perturbations of the form , the auxiliary function is often called a test function or variation. Requiring the first variation to vanish for all such leads to the Euler–Lagrange equation in weak form.
Use in distribution theory
Topologies
See also
See also
References
References
- According to (Gel'fand & Shilov 1966–1968, v. 1, §1.2)
- See for example (Rudin 1991, §6.4–5).
- Adams, Robert A.; Fournier, John J. F. (2003). Sobolev Spaces. Pure and Applied Mathematics. Vol. 140 (2nd ed.). Academic Press. ISBN 978-0-12-044143-3.
- Evans, Lawrence C. (2010). Partial Differential Equations. Graduate Studies in Mathematics. Vol. 19 (2nd ed.). American Mathematical Society. ISBN 978-0-8218-4974-3.
- Lee, John M. (2013). Introduction to Smooth Manifolds. Graduate Texts in Mathematics. Vol. 218 (2nd ed.). Springer. ISBN 978-1-4419-9982-5.
- Evans, Lawrence C. (2010). Partial Differential Equations. Graduate Studies in Mathematics. Vol. 19 (2nd ed.). American Mathematical Society. ISBN 978-0-8218-4974-3.
- Brezis, Haim (2011). Functional Analysis, Sobolev Spaces and Partial Differential Equations. Springer. ISBN 978-0-387-70913-0.
Sources
Sources
- Gel'fand, I.M.; Shilov, G.E. (1966–1968), Generalized functions, vol. 1–5, Academic Press.
- Rudin, W. (1991), Functional Analysis (2nd ed.), McGraw–Hill, ISBN 0-07-054236-8.