<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.aletopedia.org/index.php?action=history&amp;feed=atom&amp;title=Test_function</id>
	<title>Test function - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.aletopedia.org/index.php?action=history&amp;feed=atom&amp;title=Test_function"/>
	<link rel="alternate" type="text/html" href="https://www.aletopedia.org/index.php?title=Test_function&amp;action=history"/>
	<updated>2026-12-05T08:09:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://www.aletopedia.org/index.php?title=Test_function&amp;diff=194699&amp;oldid=prev</id>
		<title>imported&gt;David Eppstein: /* Use in weak formulations */ avoid first person</title>
		<link rel="alternate" type="text/html" href="https://www.aletopedia.org/index.php?title=Test_function&amp;diff=194699&amp;oldid=prev"/>
		<updated>2026-05-24T20:13:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Use in weak formulations: &lt;/span&gt; avoid first person&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Auxiliary functions used to probe equations, distributions, and weak formulations}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Test functions&amp;#039;&amp;#039;&amp;#039; are auxiliary [[function (mathematics)|functions]] used in [[mathematical analysis]] to probe other functions, [[distribution (mathematical analysis)|distributions]], [[differential equations]], or [[calculus of variations|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 limit]]s.&lt;br /&gt;
&lt;br /&gt;
== Common spaces of test functions ==&lt;br /&gt;
=== Compactly supported smooth functions ===&lt;br /&gt;
&lt;br /&gt;
Let &amp;#039;&amp;#039;U&amp;#039;&amp;#039; be an [[open set|open subset]] of &amp;#039;&amp;#039;&amp;#039;R&amp;#039;&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;. With minor modifications, one can replace &amp;#039;&amp;#039;&amp;#039;R&amp;#039;&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt; by any ([[paracompactness|paracompact]]) [[smooth manifold]].&lt;br /&gt;
&lt;br /&gt;
The space D(&amp;#039;&amp;#039;U&amp;#039;&amp;#039;) of &amp;#039;&amp;#039;&amp;#039;test functions&amp;#039;&amp;#039;&amp;#039; on &amp;#039;&amp;#039;U&amp;#039;&amp;#039; is defined as follows. A function &amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt; : &amp;#039;&amp;#039;U&amp;#039;&amp;#039; → &amp;#039;&amp;#039;&amp;#039;R&amp;#039;&amp;#039;&amp;#039; is said to have [[Compact support#Compact support|compact support]] if there exists a [[compact space|compact]] subset &amp;#039;&amp;#039;K&amp;#039;&amp;#039; of &amp;#039;&amp;#039;U&amp;#039;&amp;#039; such that &amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) = 0 for all &amp;#039;&amp;#039;x&amp;#039;&amp;#039; in &amp;#039;&amp;#039;U&amp;#039;&amp;#039; \ &amp;#039;&amp;#039;K&amp;#039;&amp;#039;. The elements of D(&amp;#039;&amp;#039;U&amp;#039;&amp;#039;) are the infinitely differentiable functions &amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt; : &amp;#039;&amp;#039;U&amp;#039;&amp;#039; → &amp;#039;&amp;#039;&amp;#039;R&amp;#039;&amp;#039;&amp;#039; with compact support. This is a real [[vector space]].&lt;br /&gt;
&lt;br /&gt;
It can be given a [[topology]] by defining the [[limit of a sequence]] of elements of D(&amp;#039;&amp;#039;U&amp;#039;&amp;#039;). A sequence (&amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;k&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;) in D(&amp;#039;&amp;#039;U&amp;#039;&amp;#039;) is said to converge to &amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt;&amp;amp;nbsp;∈&amp;amp;nbsp;D(&amp;#039;&amp;#039;U&amp;#039;&amp;#039;) if the following two conditions hold:&amp;lt;ref&amp;gt;According to {{harv|Gel&amp;#039;fand|Shilov|1966–1968|loc=v. 1, §1.2}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* There is a compact set &amp;#039;&amp;#039;K&amp;#039;&amp;#039;&amp;amp;nbsp;⊂&amp;amp;nbsp;&amp;#039;&amp;#039;U&amp;#039;&amp;#039; containing the supports of all &amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;k&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;math&amp;gt;\bigcup\nolimits_k \operatorname{supp}(\varphi_k)\subset K.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* For each [[multi-index]] α, the sequence of partial derivatives &amp;lt;math&amp;gt;\partial^\alpha \varphi_k&amp;lt;/math&amp;gt; tends [[uniform convergence|uniformly]] to &amp;lt;math&amp;gt;\partial^\alpha\varphi&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
With this definition, D(&amp;#039;&amp;#039;U&amp;#039;&amp;#039;) becomes a [[completeness (topology)|complete]] [[locally convex]] [[topological vector space]].&amp;lt;ref&amp;gt;See for example {{harv|Rudin|1991|loc=§6.4–5}}.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now let &amp;#039;&amp;#039;U&amp;#039;&amp;#039; be the union of &amp;#039;&amp;#039;U&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039; where {&amp;#039;&amp;#039;U&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039;} is a countable nested family of open subsets of &amp;#039;&amp;#039;U&amp;#039;&amp;#039; with compact closures &amp;#039;&amp;#039;K&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039; = {{overline|&amp;#039;&amp;#039;U&amp;#039;&amp;#039;}}&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;i&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;. Then we have the countable increasing union&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathrm{D}(U) = \bigcup\nolimits_i \mathrm{D}_{K_i} &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where D&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;K&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt; is the set of all smooth functions on &amp;#039;&amp;#039;U&amp;#039;&amp;#039; with support lying in &amp;#039;&amp;#039;K&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039;. On each D&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;K&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt;, consider the topology given by the seminorms&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\| \varphi \|_\alpha = \max_{x \in K_i} \left |\partial^\alpha \varphi \right |, &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
i.e. the topology of uniform convergence of derivatives of arbitrary order. This makes each D&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;K&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt; a [[Fréchet space]]. The resulting [[LF space]] structure on D(&amp;#039;&amp;#039;U&amp;#039;&amp;#039;) is the topology described above.&lt;br /&gt;
&lt;br /&gt;
=== Schwartz functions ===&lt;br /&gt;
{{main|Schwartz space}}&lt;br /&gt;
The [[Schwartz space]] &amp;#039;&amp;#039;S&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;R&amp;#039;&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;) is the function space of all infinitely differentiable functions that are [[rapidly decreasing]] at infinity along with all partial derivatives. Thus {{nowrap|&amp;#039;&amp;#039;φ&amp;#039;&amp;#039; : &amp;#039;&amp;#039;&amp;#039;R&amp;#039;&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt; → &amp;#039;&amp;#039;&amp;#039;R&amp;#039;&amp;#039;&amp;#039;}} is in the Schwartz space provided that any derivative of &amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt;, multiplied with any power of&amp;amp;nbsp;|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;|, converges towards 0 for |&amp;#039;&amp;#039;x&amp;#039;&amp;#039;|&amp;amp;nbsp;→&amp;amp;nbsp;∞. These functions form a complete [[topological vector space]] with a suitably defined family of [[seminorm]]s.&lt;br /&gt;
&lt;br /&gt;
More precisely, let&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; p_{\alpha , \beta} (\varphi) = \sup_{x \in \mathbf{R}^n} \left| x^\alpha D^\beta \varphi(x)\right| &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for &amp;#039;&amp;#039;α&amp;#039;&amp;#039;, &amp;#039;&amp;#039;β&amp;#039;&amp;#039; [[multi-index|multi-indices]] of size &amp;#039;&amp;#039;n&amp;#039;&amp;#039;. Then &amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt; is a Schwartz function if all the values satisfy&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; p_{\alpha, \beta} (\varphi) &amp;lt; \infty.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The family of seminorms &amp;#039;&amp;#039;p&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;α&amp;#039;&amp;#039;, &amp;#039;&amp;#039;β&amp;#039;&amp;#039;&amp;lt;/sub&amp;gt; defines a [[locally convex]] topology on the Schwartz space. When &amp;#039;&amp;#039;n&amp;#039;&amp;#039; is equal to 1, the seminorms are, in fact, [[norm (mathematics)|norms]] on the Schwartz space. Otherwise, one can define a norm on &amp;#039;&amp;#039;S&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;R&amp;#039;&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;n&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt;) via&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\| \varphi \|_{k} = \max_{|\alpha| + |\beta| \leq k}  \sup_{x \in \mathbf{R}^n} \left| x^\alpha D^\beta \varphi(x)\right| &amp;lt;/math&amp;gt; for k ≥ 1.&lt;br /&gt;
&lt;br /&gt;
The Schwartz space is [[metrizable]] and [[complete space|complete]]. Because the Fourier transform changes differentiation by &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;α&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt; into multiplication by &amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;α&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt; and vice versa, this symmetry implies that the Fourier transform of a Schwartz function is also a Schwartz function.&lt;br /&gt;
&lt;br /&gt;
=== Sobolev test spaces ===&lt;br /&gt;
{{main|Sobolev space}}&lt;br /&gt;
In the theory of [[weak formulation]]s and [[weak solution]]s of [[partial differential equation]]s, the term &amp;#039;&amp;#039;test function&amp;#039;&amp;#039; is often used more broadly than in distribution theory.  One may first test an equation against functions in &amp;lt;math&amp;gt;C_c^\infty(U)&amp;lt;/math&amp;gt;, 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.&lt;br /&gt;
&lt;br /&gt;
For example, if &amp;lt;math&amp;gt;U\subseteq\mathbb R^n&amp;lt;/math&amp;gt; is open, the Sobolev space &amp;lt;math&amp;gt;W_0^{k,p}(U)&amp;lt;/math&amp;gt; is commonly defined as the closure of &amp;lt;math&amp;gt;C_c^\infty(U)&amp;lt;/math&amp;gt; in the Sobolev norm of &amp;lt;math&amp;gt;W^{k,p}(U)&amp;lt;/math&amp;gt;.&amp;lt;ref&amp;gt;{{cite book |last=Adams |first=Robert A. |author-link=Robert A. Adams |last2=Fournier |first2=John J. F. |title=Sobolev Spaces |edition=2nd |series=Pure and Applied Mathematics |volume=140 |publisher=Academic Press |year=2003 |isbn=978-0-12-044143-3}}&amp;lt;/ref&amp;gt;  Thus elements of &amp;lt;math&amp;gt;W_0^{k,p}(U)&amp;lt;/math&amp;gt; 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 &amp;lt;math&amp;gt;H_0^1(U)&amp;lt;/math&amp;gt; are often used as test functions in variational formulations.&lt;br /&gt;
&lt;br /&gt;
A typical example is the weak form of the [[Poisson equation]].  Instead of requiring a function &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; to satisfy &amp;lt;math&amp;gt;-\Delta u=f&amp;lt;/math&amp;gt; pointwise, one asks that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\int_U \nabla u\cdot\nabla v\,dx=\int_U fv\,dx&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all test functions &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; in a suitable space, commonly &amp;lt;math&amp;gt;C_c^\infty(U)&amp;lt;/math&amp;gt; at first, or &amp;lt;math&amp;gt;H_0^1(U)&amp;lt;/math&amp;gt; after completion.&amp;lt;ref&amp;gt;{{cite book |last=Evans |first=Lawrence C. |author-link=Lawrence C. Evans |title=Partial Differential Equations |edition=2nd |series=Graduate Studies in Mathematics |volume=19 |publisher=American Mathematical Society |year=2010 |isbn=978-0-8218-4974-3}}&amp;lt;/ref&amp;gt;  The choice of test space encodes boundary conditions: for instance, the space &amp;lt;math&amp;gt;H_0^1(U)&amp;lt;/math&amp;gt; corresponds to homogeneous Dirichlet boundary conditions in the trace sense on sufficiently regular domains.&lt;br /&gt;
&lt;br /&gt;
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 &amp;#039;&amp;#039;test&amp;#039;&amp;#039; emphasizes the role of the function in probing an equation or variational identity, rather than membership in a fixed smooth test-function space.&lt;br /&gt;
&lt;br /&gt;
=== Test functions on manifolds ===&lt;br /&gt;
&lt;br /&gt;
Test functions can also be defined on [[smooth manifold]]s.  If &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; is a smooth manifold, the space &amp;lt;math&amp;gt;C_c^\infty(M)&amp;lt;/math&amp;gt; consists of smooth real-valued or complex-valued functions on &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; with [[compact support]].  If &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; is compact, then &amp;lt;math&amp;gt;C_c^\infty(M)=C^\infty(M)&amp;lt;/math&amp;gt;; on a non-compact manifold, the compact-support condition is a genuine restriction.&lt;br /&gt;
&lt;br /&gt;
As in the Euclidean case, &amp;lt;math&amp;gt;C_c^\infty(M)&amp;lt;/math&amp;gt; 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 [[density on a manifold|densities]], or, after choosing a smooth positive density or a Riemannian [[volume form]], as continuous linear functionals on &amp;lt;math&amp;gt;C_c^\infty(M)&amp;lt;/math&amp;gt;.&amp;lt;ref&amp;gt;{{cite book |last=Lee |first=John M. |author-link=John M. Lee |title=Introduction to Smooth Manifolds |edition=2nd |series=Graduate Texts in Mathematics |volume=218 |publisher=Springer |year=2013 |isbn=978-1-4419-9982-5}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More generally, if &amp;lt;math&amp;gt;E\to M&amp;lt;/math&amp;gt; is a smooth [[vector bundle]], the compactly supported smooth sections &amp;lt;math&amp;gt;\Gamma_c(E)&amp;lt;/math&amp;gt; play the role of test functions with values in &amp;lt;math&amp;gt;E&amp;lt;/math&amp;gt;.  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.&lt;br /&gt;
&lt;br /&gt;
The topology on &amp;lt;math&amp;gt;C_c^\infty(M)&amp;lt;/math&amp;gt; is defined locally in the same way as for &amp;lt;math&amp;gt;C_c^\infty(U)&amp;lt;/math&amp;gt; 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 function]]s allow many local constructions with Euclidean test functions to be transferred to manifolds.&lt;br /&gt;
&lt;br /&gt;
== Use in weak formulations ==&lt;br /&gt;
{{Main|Weak formulation|Weak solution}}&lt;br /&gt;
&lt;br /&gt;
In the study of [[partial differential equation]]s, test functions are used to pass from a differential equation in pointwise form (called the &amp;#039;&amp;#039;classical&amp;#039;&amp;#039; 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.&lt;br /&gt;
&lt;br /&gt;
For example, suppose that &amp;lt;math&amp;gt;U\subseteq\mathbb R^n&amp;lt;/math&amp;gt; is an open set and consider the [[Poisson equation]]&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;-\Delta u=f.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; are sufficiently smooth and &amp;lt;math&amp;gt;\varphi\in C_c^\infty(U)&amp;lt;/math&amp;gt;, then multiplying by &amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt; and integrating gives&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\int_U (-\Delta u)\varphi\,dx=\int_U f\varphi\,dx.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An integration by parts, with no boundary term because &amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt; has compact support in &amp;lt;math&amp;gt;U&amp;lt;/math&amp;gt;, gives&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\int_U \nabla u\cdot\nabla\varphi\,dx=\int_U f\varphi\,dx.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This identity still makes sense under weaker assumptions than the original equation.  For instance, if &amp;lt;math&amp;gt;u\in H^1_{\operatorname{loc}}(U)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;f\in L^2_{\operatorname{loc}}(U)&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;u&amp;lt;/math&amp;gt; may be called a weak solution of &amp;lt;math&amp;gt;-\Delta u=f&amp;lt;/math&amp;gt; if the identity holds for every &amp;lt;math&amp;gt;\varphi\in C_c^\infty(U)&amp;lt;/math&amp;gt;.&amp;lt;ref&amp;gt;{{cite book |last=Evans |first=Lawrence C. |author-link=Lawrence C. Evans |title=Partial Differential Equations |edition=2nd |series=Graduate Studies in Mathematics |volume=19 |publisher=American Mathematical Society |year=2010 |isbn=978-0-8218-4974-3}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When boundary conditions are included, the test space is often chosen to encode them.  For the [[Dirichlet boundary condition|homogeneous Dirichlet problem]] for the Poisson equation, one commonly seeks &amp;lt;math&amp;gt;u\in H_0^1(U)&amp;lt;/math&amp;gt; such that&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\int_U \nabla u\cdot\nabla v\,dx=\int_U fv\,dx&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for all &amp;lt;math&amp;gt;v\in H_0^1(U)&amp;lt;/math&amp;gt;.  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.&amp;lt;ref&amp;gt;{{cite book |last=Brezis |first=Haim |author-link=Haim Brezis |title=Functional Analysis, Sobolev Spaces and Partial Differential Equations |publisher=Springer |year=2011 |isbn=978-0-387-70913-0}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Test functions also appear in [[calculus of variations|variational]] arguments.  If a functional is differentiated along perturbations of the form &amp;lt;math&amp;gt;u+\varepsilon\varphi&amp;lt;/math&amp;gt;, the auxiliary function &amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt; is often called a test function or variation.  Requiring the first variation to vanish for all such &amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt; leads to the [[Euler–Lagrange equation]] in weak form.&lt;br /&gt;
&lt;br /&gt;
== Use in distribution theory ==&lt;br /&gt;
{{main|Distribution (mathematical analysis)}}&lt;br /&gt;
&lt;br /&gt;
== Topologies ==&lt;br /&gt;
{{main|Spaces of test functions and distributions}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Bump function]]&lt;br /&gt;
* [[Schwartz space]]&lt;br /&gt;
* [[Distribution (mathematics)]]&lt;br /&gt;
* [[Weak derivative]]&lt;br /&gt;
* [[Weak solution]]&lt;br /&gt;
* [[Sobolev space]]&lt;br /&gt;
* [[Mollifier]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
*{{citation|first1=I.M.|last1=Gel&amp;#039;fand|author1-link=Israel Gelfand|first2=G.E.|last2=Shilov|title=Generalized functions|volume=1–5|publisher=Academic Press|year=1966–1968}}.&lt;br /&gt;
* {{citation|first=W.|last=Rudin|authorlink=Walter Rudin|title=Functional Analysis|edition=2nd|publisher=McGraw–Hill|year=1991|isbn=0-07-054236-8|url-access=registration|url=https://archive.org/details/functionalanalys00rudi}}.&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematical analysis]]&lt;/div&gt;</summary>
		<author><name>imported&gt;David Eppstein</name></author>
	</entry>
</feed>