SOCR ≫ TCIU Website ≫ TCIU GitHub ≫

In this TCIU section, we discuss the duality of functions and functionals, i.e., generalized functions or distributions. Specifically, we will define distributions as functionals that are function-like objects that act as linear operators on smooth functions. Distributions are necessary as ordinary functions are insufficient to describe many physical phenomena and don’t always permit non-smooth solutions of some differential equation models.

1 Overview

Generalized functions (distributions) play an important role in solving differential equations, harmonic analysis representation of functions, or signals, as superpositions of base functions or basic waves, and for defining complex operations on difficult functions, e.g., defining functional derivatives of functions that are not differentiable. Distributions are related to, but more general than, the more commonly known probability density functions (PDFs), and their counterparts cumulative distribution functions (CDFs).

We will consider the Dirac delta generalized function, \(\delta(x)\), also known as the point mass function. It is not well-defined as a function as it’s infinite at the origin and zero everywhere else, whereas its integral \(\int_{\mathbb{R}}{\delta(x)\ dx}=1\). The Dirac delta is not a real function, but a generalized function, or functional acting as a linear operator on a special class of functions called test functions. In a measure-theoretic sense, functions can take on infinite values at single singularity points (of trivial Lebesgue or Borel measure) without impacting the integral of the function. The Dirac delta generalized function can not be defined as a function that is infinite at \(0\) and integrates to \(1\) since this leads to contradictory interpretations of (1) linear transformations of \(\delta(\cdot)\), e.g., \(5\times \delta=5\times 0=0\), (2) its (function) derivatives, and (3) its Fourier transform. We will see the defining Dirac delta as a generalized function (distribution), permits consistent interpretations of its linear superpositions, its generalized functional derivatives (distribution derivatives), and its Fourier transform.

The power of generalized functions come from the fact that distributions as functionals enable integration, differentiation, and Fourier transformations of a larger class of functions and avoid conflicts like \(5\delta=\delta\). More specifically, generalized functions are not functions of real numbers in the conventional sense, rather they are linear functionals that transform other functions (test functions) to the real numbers. The functions acted upon by the distributions are called “test functions”. Hence, distributions \(f\) act on test functions \(\phi\) as linear functions by mapping the test functions to the real numbers:

\[\underbrace{f}_{distribution}: \underbrace{\phi}_{test\ function} \longrightarrow \underbrace{\int_{\mathbb{R}} {f(x)\ \phi (x)\ dx}}_{\in\ \mathbb{R}}\ .\]

So the distribution \(f\) is loosely speaking a linear function, but more accurately, a linear functional, a member of the dual space of the test functions

\[\underbrace{f}_{distribution}: \underbrace{\alpha\phi+ \beta\psi}_{superposition\ of\\ test\ functions} \longrightarrow \underbrace{\alpha \int_{\mathbb{R}} {f(x)\ \phi (x)\ dx}+ \beta \int_{\mathbb{R}} {f(x)\ \psi (x)\ dx}}_{\in\ \mathbb{R}}\ , \ \forall\ \alpha,\beta\in \mathbb{R}\ .\]

We will illustrate that the delta distribution \(\delta\) is concentrated at zero and it operates on a test function \(\phi\) by returning evaluating the test function at the origin

\[\delta: \phi \longrightarrow \int_{\mathbb{R}} {\delta(x)\ \phi (x)\ dx}=\phi(0)\ ,\]

since \(\int_{\mathbb{R}}{\delta(x)\ dx}=1\) and \(\delta(x)\equiv 0,\ \forall\ x\in \mathbb{R}\setminus\{0\}\).

In general, generalized functions can be represented as limits of traditional functions.

Generalized differentiation (distributional derivatives) are defined to agree with derivatives of conventional functions. Suppose \(f(x)\) is a differentiable univariate function and \(\phi(x)\in \mathcal{C}_c^{\infty}(\mathbb{R})\) is an infinitely differentiable test function that is zero outside of some finite interval. Using classical integration by parts

\[\underbrace{f'}_{distributional\\ derivative\ is\\ a\ distribution} : \phi \longrightarrow \int_{-\infty}^\infty f'(x)\, \phi(x) \, dx = \\ \underbrace{f(x)\, \phi(x) \bigg|_{-\infty}^{\infty}}_{0,\ \phi\in \mathcal{C}_c^{\infty}(\mathbb{R})} -\int_{-\infty}^\infty f(x)\, \phi'(x) \ dx= -\int_{-\infty}^\infty f(x)\, \phi'(x) \ dx\ .\]

Even when the generalized function \(f(x)\) is not differentiable in a classical sense, the distributional derivative definition above is well-defined in terms of the derivative of the test function \(\phi\), which the distribution \(f\) acts on.

Technically, the functional \(f\) not as a function of real numbers, but as a distribution that operates on test functions producing real numbers. In other words, \(f\) is a linear functional on the space of tests functions by mapping \(\phi\) to \(\int {f(x) \phi(x) dx}\in \mathbb{R}\).

Similarly, higher order distributional derivative of integrable generalized functions \(f\), \(f^{(n)}\) are transformed to the reciprocal higher order derivatives of the infinitely differentiable test functions \(\phi\), i.e., \(\phi^{(n)}\)

\[f^{(n)}: \phi \longrightarrow -\int_{-\infty}^\infty f(x) \, \phi^{(n)}(x)\, dx\ .\]

Even if \(f\) is not smooth or differentiable, it suffices to be integrable to define its distributional (generalized or weak) derivatives of any order.

For instance, the delta functional is not even a function, however, its distributional derivative is well-defined.

This property provides a strong motivation for introducing generalized functions, as they are differentiable and expand the space of potential functions representing solutions to difficult differential equations, which may not permit classical function solutions. Distributions also may enhance the search for classical equation solutions, just like linting dimensionality in many data science problems provides meaningful ways to solve difficult optimization problems and fit AI models, see TCIU Chapter 3 Appendix on RKHS. Proving the existence of a generalized function equation solution often provides clues to deriving a classical function solution from the distribution solution.

Let’s consider a heuristic example of generalized solutions yielding classical solutions. Consider an integral programming problem of minimization problem for an objective (cost) function with integer arguments, see DSPA Chapter 13 (Optimization). The more general optimization of the same objective function over the reals may be easier to find first using classical gradient descent minimization. Having the real-minimum, we can check the nearby integers to identify the desired integer solutions of the original integral programming problem. Generalized distributional derivatives can be used analogously to approximate the derivatives of difficult (non-smooth) functions. Looking for solutions over a larger state space is a common mathematical trick to estimate approximate solutions over the original (constrained) state space.

Generalized functions are related to probability distributions. Probability density functions are non-negative real-valued functions, \(f:\mathbb{R}\to\mathbb{R}^+\) that integrate to unity, \(\int f(x)dx=1\). All observed phenomena and events (sets of observable outcomes) can be represented by some (marginal, joint, or conditional) probability distributions by integrating the probability density function over the event/set.

The probability density also facilitates the calculation of the expected value of a test function by integrating the function against the probability density. So, distributions are generalized functions that can be integrated or differentiated similarly to integrating or differentiating test functions acted upon the distributions.

Of course, the values of probability density functions are just real numbers, not probabilities, but the densities are integrants that yield the desired probabilities. Similarly, by themselves, generalized functions are not functions but linear operators that act on special kinds of (test) functions to yield real numbers.

The class of test functions operated on by distributions can vary. The most useful class of test functions is the space of infinitely differentiable functions with compact support, \(\mathcal{C}_c^{\infty}(\mathbb{R})\). In Fourier analysis, the set of Schwartz functions

\[\mathcal{S}(\mathbb{R^n})=\{f\in C^{\infty}(\mathbb{R^n}): ||f||_{\alpha,\beta}<\infty \,, \forall \alpha, \beta\} \tag{1}\]

represent another useful class of natural test functions consisting of all infinitely differentiable functions of rapid decay, i.e., functions \(\phi\) such that \(x^n \phi(x)\underset{x\to\pm\infty}{\longrightarrow} 0,\ \forall\ n\in\mathbb{N}\). This rapid decay conditions guarantees that the Fourier transforms of Schwartz functions are also Schwartz functions.

Note that compactly supported (time-limited) functions are not well-suited for Fourier analysis since their compact support guarantees that the support of their Fourier transforms will be infinite! This is due to the Heisenberg uncertainty principle indicating that the more concentrated a function is in spacetime, the less concentrated the support of its Fourier transform is in the (frequency domain) Fourier space. No function can be both time-limited and band-limited.

To draw direct connection to spacekime analytics, and specifically kime-representations of repeated measurement longitudinal data, we will review the more fundamental properties of generalized functions.

2 The Dirac Delta Distribution

The Dirac delta distribution \(\delta(x)\) represents the most basic generalized function (or distribution). It can be defined as a limit of test functions \[\delta_n(x) = \frac{1}{\sqrt{\pi\frac{1}{n^2}}} e^{-\frac{x^2}{(1/n)^2}} \underset{n\to\infty}{\longrightarrow} \delta(x)\ .\]

Clearly, these test functions are classical Gaussian distributions with progressively decaying variance \(\sigma_n^2=\frac{1}{n^2}\).

library(plotly)
x <- seq(from=-4, to=4, length.out=2000)
indexN <- seq(1:10)
y <- list()

p <- plot_ly(type = "scatter", mode="lines")
for (i in indexN) {
  y[[i]] <- dnorm(x, mean=0, sd=1/indexN[i])
  p <- p %>% add_trace(x=x, y=y[[i]], 
                       hovertemplate = paste0("Distribution=N(mu=0,sd=1/", indexN[i], ")\n", "(%{x}, %{y})"),
                       name=paste0("N(mu=0,sd=1/", indexN[i], ")"))
}
p <- p %>% 
  layout(title="Gaussian Test Functions Approximating Dirac Delta",
     xaxis=list(title="Critical Values"), yaxis=list(title="Densities"))
p