---
date: Sunday, August 17^th^, 2025
katex-css: true
title: Schwartz distributions
---

This is a technical note intended as an elementary introduction to
Schwartz distributions and their calculus. Schwartz distributions are a
concept from functional analysis used in singular learning theory to
define the density of states, a key step in the bridge between algebraic
geometry and Bayesian statistics.

I found it pretty difficult to follow Watanabe's introduction to
Schwartz distributions in section 4.1 of *Algebraic Geometry and
Statistical Learning Theory.* The main problems I encountered were that
the book is a speed-run through definitions that includes little
motivation or hints as to the interpretation of those definitions, and
uses notational conventions that emphasise concision (at the expense of
clarity for beginners) and connections to deeper mathematical results
(that were not familiar to someone like me and do not appear to be
relevant for understanding the remainder of the book). I therefore spent
a long time reconstructing the motivation to make sense of the
definitions, and developing a careful understanding of the notational
rules, so as to understand how they can be safely broken.

After all this, I think it's possible to understand Schwartz
distributions having only a fairly modest background in differential and
integral calculus and similar topics from elsewhere in the early parts
of an undergraduate mathematics curriculum (e.g., linearity of a
function, compactness of a set). This note is my attempt at such an
introduction. I focus on the special case of generalising
single-variable, real functions, in thorough detail, for simplicity (the
same understanding should transfer to Schwartz distributions with
multivariate inputs and complex outputs, as used in the book).

Contents:

-   [Basic idea](#basic-idea){#toc-basic-idea}
-   [Test functions: generalised
    inputs](#test-functions-generalised-inputs){#toc-test-functions-generalised-inputs}
-   [Schwartz distributions: generalised
    functions](#schwartz-distributions-generalised-functions){#toc-schwartz-distributions-generalised-functions}
-   [Regular Schwartz
    distributions](#regular-schwartz-distributions){#toc-regular-schwartz-distributions}
-   [Non-regular Schwartz distributions and Dirac's delta
    distribution](#non-regular-schwartz-distributions-and-diracs-delta-distribution){#toc-non-regular-schwartz-distributions-and-diracs-delta-distribution}
-   [Distributional
    derivatives](#distributional-derivatives){#toc-distributional-derivatives}
-   [Distributional
    integrals](#distributional-integrals){#toc-distributional-integrals}
-   [Calculus on families of
    distributions](#calculus-on-families-of-distributions){#toc-calculus-on-families-of-distributions}
-   [Conclusion](#conclusion){#toc-conclusion}

```{=tex}
\newcommand\Nats{\mathbb{N}}
\newcommand\Reals{\mathbb{R}}
\newcommand\Distributions{\mathcal{D}}
\newcommand\SmoothCompact{\mathcal{C}^\infty_0}
\newcommand\set[1]{\{\,#1\,\}}
\newcommand\closure[1]{\overline{#1}}
\newcommand\iv[1]{[\![#1]\!]}
\newcommand\Iv[1]{\left[\!\!\left[#1\right]\!\!\right]}
\newcommand\toT{\xrightarrow{\text{T}}}
\newcommand\support{\operatorname{supp}}
\newcommand\dd{\,\mathrm d}
\newcommand\dv[2][]{\frac{\mathrm{d}#1}{\mathrm{d}#2}}
```
## Basic idea

Differential and integral calculus offer powerful techniques for
analysing the properties of smooth functions. However, there are certain
limits to what they can handle---we can't differentiate a function at a
discontinuity, nor define a function that represents a point mass.

Schwartz distributions are a generalisation of functions allowing
differentiation and integration. They include analogues of many familiar
functions from differential and integral calculus, but also some new
functions previously out of the reach of differentiation and
integration, and even some things that don't correspond to functions at
all.

Perhaps the most familiar way of thinking about functions is that they
are objects that map elements of one set (the domain, we'll assume
$\mathbb{R}$) to elements of another (the co-domain, we'll assume
$\mathbb{R}$ again). To define a function, it suffices to specify which
output corresponds to each possible input. Likewise, to define
derivatives, we analyse how the mapping changes for small changes in the
input.

The theory of Schwartz distributions departs from this approach to
defining functions. Instead of defining a function by their response to
each individual input *point*, we define a generalised function by its
response to a generalised notion of input points, namely compact sets of
points weighted by smooth functions called *test functions.*

We'll see that regular functions can be recovered by defining their
response to each test function as a weighted combination of the
responses of the original function to each of the individual inputs in
the compact set. Since this "average response" changes smoothly as we
vary the test function (even if the original function has a
discontinuity or a point mass), we'll be able to differentiate and
anti-differentiate these generalised objects.

## Test functions: generalised inputs

Thus, before defining Schwartz distributions, we need to define their
input space. Formally, a **test function** is any function
$\varphi : \mathbb{R}\to \mathbb{R}$ satisfying the following two
properties.

1.  Smoothness: $\varphi$ is smooth, that is, it has an infinite number
    of continuous derivatives.

2.  Compact support:
    $\operatorname{supp}{\varphi} = \overline{\{\,x \in \mathbb{R}\,:\,\varphi(x) \neq 0\,\}}$
    is compact, that is (for us), closed and bounded.

The set of all smooth, compactly-supported test functions is a subspace
of the vector space of functions. Denote this space by
$\mathcal{C}^\infty_0$.

A illustrative example of a non-trivial test function is the unit *bump
function,* $$
  \varphi(x) = \left[\!\!\left[|x| < 1\right]\!\!\right] \exp\!\left(-\frac{1}{1-|x|^2}\right).
$$ This is a well-known example of a smooth function and has compact
support $[-1,1]$. It's enough to keep this example, plus shifted and
scaled versions of it, in mind for the remainder of our discussion. The
bump function is also a natural example of the idea of generalising an
individual input (such as the origin) to a broader, weighted compact set
of inputs.

Beyond that, conditions (1) and (2) are quite restrictive as to what
qualifies a test function. In particular, non-zero analytic functions
don't qualify, as they have unbounded support. We will see that these
strong restrictions actually turn in our favour when it comes to
defining Schwartz distributions and their derivatives and integrals in
terms of test functions.

The last thing to discuss about the space of test functions before we
can define Schwartz distributions is our **test function topology.**
Formally, given a sequence of test functions
$\varphi_1, \varphi_2, \ldots \in \mathcal{C}^\infty_0$ and a target
test function $\varphi \in \mathcal{C}^\infty_0$, we say that
*$\varphi_k$ converges to $\varphi$ (as test functions),* denoted
$\varphi_k \xrightarrow{\text{T}}\varphi$, if the following two
conditions are met.

1.  The combined support of all $\varphi_k$,
    $\bigcup_{k=1}^\infty \operatorname{supp}{\varphi_k}$, is compact.

2.  For all indices $n \in \mathbb{N}$,
    $\frac{\mathrm{d}{}^n}{\mathrm{d}x^n} \varphi_k$ converges uniformly
    to $\frac{\mathrm{d}{}^n}{\mathrm{d}x^n} \varphi$, that is, $$
      \lim_{k \to \infty} \max_{x \in K} \left|
       \frac{\mathrm{d}{}^n}{\mathrm{d}x^n} \varphi_k(x)
       -
       \frac{\mathrm{d}{}^n}{\mathrm{d}x^n} \varphi(x)
      \right| = 0,
    $$ where
    $K = \operatorname{supp}{\varphi} \cup \bigcup_{k=1}^\infty \operatorname{supp}{\varphi_k}$.

This is another strong definition, and again, its strength will turn in
our favour when we define Schwartz distributions as continuous on the
space of test functions only for this strong definition of convergence.

## Schwartz distributions: generalised functions

Finally, we turn to defining Schwartz distributions. As mentioned, the
approach will be to define these generalised functions by their response
to each test function.

Without further ado, a **Schwartz distribution** from $\mathbb{R}$ to
$\mathbb{R}$ is a *functional* $T : \mathcal{C}^\infty_0\to \mathbb{R}$
that maps each test function $\varphi \in \mathcal{C}^\infty_0$ to some
number $T[\varphi] \in \mathbb{R}$, satisfying the following two
conditions.

1.  The functional is linear, that is, for all $a, b \in \mathbb{R}$ and
    all $\varphi, \psi \in \mathcal{C}^\infty_0$, $$
     T[a\varphi + b\psi] = a T[\varphi] + b T[\psi].
    $$

2.  The functional is continuous with respect to the test function
    topology, that is, if
    $$\varphi_1, \varphi_2, \ldots \xrightarrow{\text{T}}\varphi,$$
    then, in the usual topology on $\mathbb{R}$, we require
    $$T[\varphi_1], T[\varphi_2], \ldots \to T[\varphi].$$

The set of all such Schwartz distributions is denoted $\mathcal{D}$. It
is a subspace of the vector space of functionals from
$\mathcal{C}^\infty_0$ to $\mathbb{R}$. When we talk about convergence
of Schwartz distributions, we usually refer to pointwise convergence
(not uniform convergence, nor the stronger kind of convergence we
defined for test functions). In the resulting topology, the space of
Schwartz distributions is complete.

## Regular Schwartz distributions

Notice that a Schwartz distribution is not a function that takes
individual points $x \in \mathbb{R}$ as inputs. Instead, it's a
functional that takes a test function as input. However, there is an
analogy between Schwartz distributions and our familiar functions (or at
least sufficiently integrable functions), as follows.

Let $f : \mathbb{R}\to \mathbb{R}$ be a function. Say that $f$ is
**locally integrable** if, for any compact set $K \subset \mathbb{R}$,
the (Lebesgue) integral $\int_K f(x) dx$ is defined and finite.

Given a locally integrable function $f : \mathbb{R}\to \mathbb{R}$,
let's define a functional $T_f : \mathcal{C}^\infty_0\to \mathbb{R}$
that responds to each test function with the average response of the
original function $f$ to each input, weighted by the test function. That
is, put $$T_f[\varphi] = \int_{\mathbb{R}} f(x) \varphi(x) dx.$$ This
integral is always defined because we assumed $f$ is locally integrable
and the each test function $\varphi$ is continuous with compact support.
This functional $T_f$ satisfies the properties of a Schwartz
distribution. Therefore, we have furnished a Schwartz distribution for
each locally integrable function. We can think of this Schwartz
distribution as analogous to the original function. (Two functions give
rise to the same Schwartz distribution if and only if they are equal
almost everywhere.)

In fact, it is common to abuse notation by denoting the Schwartz
distribution $T_f$ by the more familiar $f$ (or even $f(x)$ where $x$ is
understood as a free variable).

A Schwartz distribution that can be constructed in this way for some
locally integrable function is called a **regular Schwartz
distribution.** Not all Schwartz distributions can be constructed in
this way (see the next section). However, regular Schwartz distributions
are dense in the space of all Schwartz distributions.

Note that all continuous functions are locally integrable, but there are
also many non-continuous functions that are locally integrable. An
example is the **(Heaviside) step function**
$\theta : \mathbb{R}\to \mathbb{R}$ with $\theta(x) = [\![x > 0]\!]$.
The corresponding distribution is the **step distribution,**
$T_\theta : \mathcal{C}^\infty_0\to \mathbb{R}$, given by $$
    T_\theta[\varphi]
    = \int_{\mathbb{R}} \theta(x) \varphi(x) dx
    = \int_{0}^{\infty} \varphi(x) dx.
  $$ Under the theory of Schwartz distributions, we'll be able to extend
differentiation to non-continuous functions like the step function.

## Non-regular Schwartz distributions and Dirac's delta distribution

We don't have to define Schwartz distributions by starting from a
locally integrable function. We can define them directly in terms of
their response to each test functions.

For example, define a functional
$T_\delta : \mathcal{C}^\infty_0\to \mathbb{R}$ that responds to each
test function by evaluating the test function at the origin. That is,
for all $\varphi \in \mathcal{C}^\infty_0$, put
$$T_\delta[\varphi] = \varphi(0).$$ This functional $T_\delta$ also
satisfies the properties of Schwartz distributions. Therefore,
$T_\delta \in \mathcal{D}$. This distribution is called **(Dirac's)
delta distribution.**

However, there exists no function $\delta : \mathbb{R}\to \mathbb{R}$
such that $$
    \int_{\mathbb{R}} \delta(x) \varphi(x) dx = \varphi(0)
  $$ for all $\varphi \in \mathcal{C}^\infty_0$. Therefore, $T_\delta$
is not a *regular* Schwartz distribution.

Nevertheless, it is common to abuse notation and denote by $\delta$ the
non-function object that would satisfy the above equation. To further
obscure things, we sometimes notationally conflate the carefully-defined
formal object we have called $T_\delta$ with the non-function object
$\delta$ (or even $\delta(x)$ where $x$ is understood as a free
variable).

## Distributional derivatives

So far, we have defined a new class of function-like objects, the space
of Schwartz distributions $\mathcal{D}$. Next, we want to define
differential calculus in this space in a way that agrees with our
familiar calculus for regular distributions arising from differentiable
functions, but also extends naturally to all distributions.

Given a distribution $T : \mathcal{C}^\infty_0\to \mathbb{R}$, define
the **distributional derivative** to be the Schwartz distribution
$\frac{\mathrm{d}T}{\mathrm{d}x} : \mathcal{C}^\infty_0\to \mathbb{R}$
such that for $\varphi \in \mathcal{C}^\infty_0$, $$
    \frac{\mathrm{d}T}{\mathrm{d}x}[\varphi]
    = T\!\left[ -\varphi' \right].
  $$ Here, $\varphi' \in \mathcal{C}^\infty_0$ is a test function
representing the derivative of the original test function
$\varphi$---recall that test functions are infinitely differentiable,
and note that their derivatives have compact support since outside of
$\operatorname{supp}\varphi$, the derivative of the test function is
zero.

Why this definition? Intuitively, recall that distributions encode
functions by their average output weighted by each test function.
Ordinary derivatives measure increases in function outputs as we
increase individual inputs. The natural extension is to measure
increases in the *average* output as we shift *the entire test function*
in the positive direction. This corresponds to *decreasing* the weight
of each point in proportion to *the derivative of the test function.*
The difference in the average will be the aggregate change from each
point, hence an average weighted by the negative derivative of the test
function.

Formally, we can show that this definition of differentiation lines up
with the usual definition for regular distributions arising from
differentiable functions. Given $f : \mathbb{R}\to \mathbb{R}$ locally
integrable and differentiable, let $f' : \mathbb{R}\to \mathbb{R}$ be
its derivative. Then we have for all $\varphi \in \mathcal{C}^\infty_0$,
$$\begin{align*}
  T_{f'}[\varphi]
  &= \int_{\mathbb{R}} f'(x) \varphi(x) \,\mathrm d{x}
\\&= \Big[ f(x) \varphi(x) \Big]_{-\infty}^{\infty}
      - \int_{\mathbb{R}} f(x) \varphi'(x) \,\mathrm d{x}
  &\text{(integration by parts)}
\\&= \int_{\mathbb{R}} f(x) (-\varphi')(x) \,\mathrm d{x}
  &\text{($\varphi$ has compact support)}
\\&= T_{f}[-\varphi']
   = \frac{\mathrm{d}T_f}{\mathrm{d}x}[\varphi]
.
\end{align*}$$ In other words,
$\frac{\mathrm{d}T_f}{\mathrm{d}x} = T_{f'}$, as desired.

Moreover, notice that the definition of the distributional derivative
makes no mention of any differentiable function $f$. It only relies on
the differentiability of the test functions. So, we can apply this
definition even for distributions arising from non-differentiable
functions, or distributions without any corresponding functions at all.

For an example, recall the (non-differentiable) step function
$\theta(x) = [\![x>0]\!]$, and its corresponding distribution
$T_\theta[\varphi] = \int_{0}^{\infty} \varphi(x) \,\mathrm d{x}$. Let's
compute the distributional derivative
$\frac{\mathrm{d}T_\theta}{\mathrm{d}x}$. For
$\varphi \in \mathcal{C}^\infty_0$, $$
  \frac{\mathrm{d}T_\theta}{\mathrm{d}x} [\varphi]
  = T_\theta\!\left[ -\varphi' \right]
  = \int_{0}^{\infty} (-\varphi')(x) \,\mathrm d{x}
  = \Big[ {-}\varphi(x) \Big] _ {0} ^ {\infty}
  = \varphi(0)
  = T_\delta[\varphi]
  .
$$ Interestingly, we recover the distributional definition of the
(non-regular) delta distribution, $T_\delta$. Intuitively, this is quite
a fitting derivative for $T_\theta$, a function which changes not at all
away from zero, and then changes infinitely rapidly at its
discontinuity.

## Distributional integrals

We now turn to indefinite integration, or anti-differentiation, of
distributions. The definition of the distributional indefinite integral
is more involved than that of the distributional derivative, so first we
need to define some machinery.

First, like in ordinary calculus, note that the anti-derivative of a
distribution will be unique only up to the addition of some **constant
of integration,** defined as a Schwartz distribution $C \in \mathcal{D}$
with distributional derivative $\frac{\mathrm{d}C}{\mathrm{d}x} = 0$.
When $d=1$, such a $C$ is a regular distribution corresponding to a
constant function (though this does not make it a constant functional).

Second, since we want our anti-differentiation operation to be inverse
to distributional differentiation, and (recall) differentiating a
distribution involved taking the derivatives of input test functions,
we're going to need to transform input test functions to their
anti-derivatives. Unfortunately, not all test functions have an
anti-derivative that is a test function (test functions always have
anti-derivatives and these are always smooth, but there may not be one
with compact support). Fortunately, a unique anti-derivatives test
function exists for any test function that integrate to zero. Moreover,
we can transform any test function into one that satisfies this
condition using the linear map $$
    \varphi
    \mapsto
    \varphi - \left(\int_{-\infty}^{\infty} \varphi(x) \,\mathrm d{x}\right) \psi
  $$ where $\psi \in \mathcal{C}^\infty_0$ is a fixed reference test
function with $\int_{-\infty}^{\infty} \psi(x) \,\mathrm d{x} = 1$
(e.g., a normalised bump function). Thus, for each test function
$\varphi \in \mathcal{C}^\infty_0$, we can define a unique
**anti-derivative test function**
$\Phi_\psi[\varphi] \in \mathcal{C}^\infty_0$ such that $$
    \frac{\mathrm{d}}{\mathrm{d}x}(\Phi_\psi[\varphi])
    =
    \varphi - \left(\int_{-\infty}^{\infty} \varphi(x) \,\mathrm d{x}\right) \psi.
  $$ For $\varphi'$ known to be a derivative of test function $\varphi$,
we have $\int_{-\infty}^{\infty} \varphi'(x) \,\mathrm d{x} = 0$ and
thus $\Phi_{\psi}[\varphi'] = \varphi$.

Finally, we can define indefinite integration of Schwartz distributions.
Given a distribution $T : \mathcal{C}^\infty_0\to \mathbb{R}$, a
constant of integration $C : \mathcal{C}^\infty_0\to \mathbb{R}$, and a
reference test function $\psi \in \mathcal{C}^\infty_0$, define the
**distributional anti-derivative** of $T$ to be the Schwartz
distribution
$\int T \,\mathrm d{x} : \mathcal{C}^\infty_0\to \mathbb{R}$ such that
for $\varphi \in \mathcal{C}^\infty_0$, $$
    \left(\int T \,\mathrm d{x}\right)\![\varphi]
    = T[-\Phi_\psi[\varphi]] + C[\varphi].
  $$

We can verify that this operation is reversed by differentiation, that
is, $\frac{\mathrm{d}}{\mathrm{d}x} \int T \,\mathrm d{x} = T$. For
$\varphi \in \mathcal{C}^\infty_0$, $$\begin{align*}
  \left(\frac{\mathrm{d}}{\mathrm{d}x} \int T \,\mathrm d{x}\right)\![\varphi]
  &= \left(\int T \,\mathrm d{x} \right)\![ -\varphi']
\\&= T[-\Phi_\psi[- \varphi']] + C[ -\varphi']
\\&= T[\Phi_\psi[\varphi']] + \frac{\mathrm{d}C}{\mathrm{d}x}[\varphi]
  &\text{($\Phi_\psi$ is linear)}
\\&= T[\varphi] + 0.
  &\text{($\varphi'$ is a derivative)}
\end{align*}$$

As an example, take the one-dimensional delta distribution,
$T_\delta : \mathcal{C}^\infty_0\to \mathbb{R}$ with
$T_\delta[\varphi] = \varphi(0)$. Since we previously showed that
$T_\delta = \frac{\mathrm{d}}{\mathrm{d}x} T_\theta$ where $T_\theta$ is
the distribution corresponding to the step function, we expect to find
that $\int T_\delta \,\mathrm d{x} = T_\theta + D$ for some constant of
integration $D$ with $\frac{\mathrm{d}D}{\mathrm{d}x} = 0$. Indeed:
$$\begin{align*}
  \left(\int T_\delta \,\mathrm d{x}\right)\![\varphi]
  &= T_\delta[-\Phi_\psi[\varphi]] + C[\varphi]
\\&= -\Phi_\psi[\varphi](0) + C[\varphi]
\\&= -\int_{-\infty}^{0} \left(
      \varphi(x)
      - \left(\int_{-\infty}^{\infty}\varphi(z)\,\mathrm d{z}\right)\psi(x)
     \right) \,\mathrm d{x}
     + C[\varphi]
\\&= \left(
       \int_{-\infty}^{\infty}\varphi(x)\,\mathrm d{x}
       - \int_{-\infty}^{0} \varphi(x) \,\mathrm d{x}
     \right)
\\&\qquad
     - \left(1-\int_{-\infty}^{0} \psi(x) \,\mathrm d{x}\right)
       \cdot \left(\int_{-\infty}^{\infty}\varphi(x)\,\mathrm d{x}\right)
     + C[\varphi]
\\&= \int_{0}^{\infty}\varphi(x)\,\mathrm d{x}
     - \left(\int_{0}^{\infty} \psi(x) \,\mathrm d{x}\right)
       \cdot \left(\int_{-\infty}^{\infty}\varphi(x)\,\mathrm d{x}\right)
     + C[\varphi].
\\&= T_\theta[\varphi] + D[\varphi]
\end{align*}$$ where $D[\varphi]
  = C[\varphi]
      - \int_{0}^{\infty} \psi(x) \,\mathrm d{x}
        \cdot \int_{-\infty}^{\infty}\varphi(x)\,\mathrm d{x}$. We can
then show $D$ is a constant of integration: $$
  \frac{\mathrm{d}D}{\mathrm{d}x}[\varphi]
  = \frac{\mathrm{d}C}{\mathrm{d}x}[\varphi]
    - \int_{0}^{\infty} \psi(x) \,\mathrm d{x}
      \cdot \int_{-\infty}^{\infty}(-\varphi'(x))\,\mathrm d{x}
  = 0
    - \int_{0}^{\infty} \psi(x) \,\mathrm d{x} 
      \cdot 0
  = 0
$$ where we used that
$\int_{-\infty}^{\infty} \varphi'(x) \,\mathrm d{x} = 0$ for any test
function $\varphi \in \mathcal{C}^\infty_0$.

## Calculus on families of distributions

In *Algebraic Geometry and Statistical Learning Theory*, Watanabe
actually defines a different, more general kind of calculus in the space
of distributions---taking derivatives and integrals along any
parameterised family of Schwartz distributions. Our last step is to
understand these more general definitions of differentiation and
integration and how they relate to the previous definitions.

Formally, let $\{\,T_t\,\}_ {t\in\mathbb{R}}$ be a parameterised family
of Schwartz distributions. We assume that the family is such that the
necessary derivatives and integrals cited in the below definitions
exist. We can then define two new parameterised families of Schwartz
distributions as follows.

1.  Define the **derivative family**
    $\{\,\frac{\mathrm{d}}{\mathrm{d}t} T_t\,\}_ {t\in\mathbb{R}}$ as a
    new parameterised family of Schwartz distributions such that for
    $t\in\mathbb{R}$ and $\varphi\in\mathcal{C}^\infty_0$, $$
     \left( \frac{\mathrm{d}}{\mathrm{d}t} T_t \right)\![\varphi] = \frac{\mathrm{d}}{\mathrm{d}t} \Big(T_t[\varphi] \Big).
    $$ Here, the operator on the LHS is the distributional derivative we
    are defining, and the one on the RHS is the usual derivative from
    calculus.

2.  Define the **indefinite integral family**
    $\{\,\int T_t \,\mathrm d{t}\,\}_ {t\in\mathbb{R}}$ as a new
    parameterised family of Schwartz distributions such that for
    $t\in\mathbb{R}$ and $\varphi\in\mathcal{C}^\infty_0$, $$
     \left( \int T_t \,\mathrm d{t} \right)\![\varphi]
     = \int T_t[\varphi] \,\mathrm d{t}
     = \int_{-\infty}^{t} T_\tau[\varphi] \,\mathrm d{\tau}
     + C[\varphi]
    $$ where $C$ is a free constant of integration (any distribution
    that does not depend on $t$). Here, the operator on the LHS is the
    distributional indefinite integration operator we are defining, and
    the operator in the middle is the usual indefinite integral from
    calculus. For clarity, we also offer the expression on the RHS to
    emphasise that the middle expression is still parameterised by
    $t \in \mathbb{R}$.

These operations generalise the axis-based definitions from the previous
sections. Given a single Schwartz distribution $T$, define a
parameterised family of Schwartz distributions
$\{\,T_t\,\}_ {t\in\mathbb{R}}$ such that for
$\varphi \in \mathcal{C}^\infty_0$,
$T_t[\varphi] = T[\varphi \circ h_t]$ where
$h_t : \mathbb{R}\to \mathbb{R}$ with $h_t(x) = x-t$ is used to shift
each test function in the positive direction by $t$. Then, we have
$$\begin{align*}
  \left(\frac{\mathrm{d}}{\mathrm{d}t} T_t\right)\! [\varphi]
  &= \frac{\mathrm{d}}{\mathrm{d}t} T_t[\varphi]
   = \frac{\mathrm{d}}{\mathrm{d}t} T[\varphi \circ h_t]
\\&= T\!\left[\frac{\mathrm{d}}{\mathrm{d}t} (\varphi \circ h_t)\right]
  &\text{(by linearity and continuity of $T$)}
\\&= T[-\varphi' \circ h_t].
  &\text{(chain rule)}
\end{align*}$$ We then have $T_0 = T$ and
$\frac{\mathrm{d}}{\mathrm{d}t} T_t |_ {t=0} = \frac{\mathrm{d}}{\mathrm{d}x} T$.
A similar connection holds for the integral definitions.

As an extended example, first define two families of distributions,
generalising the step distribution and the delta distribution.

-   Given $t\in\mathbb{R}$, define a **shifted step distribution**
    $T_{\theta,t} : \mathcal{C}^\infty_0\to \mathbb{R}$ such that, for
    $\varphi\in\mathcal{C}^\infty_0$, $$
        T_{\theta, t}[\varphi] = \int_{t}^{\infty} \varphi(x) \,\mathrm d{x}.
      $$ This is the distribution that corresponds to the shifted step
    function $\theta_t : \mathbb{R}\to \mathbb{R}$ given by
    $\theta_t(x) = \theta(x-t) = [\![x > t]\!]$.

-   Given $t\in\mathbb{R}$, define a **shifted delta distribution**
    $T_{\delta,t} : \mathcal{C}^\infty_0\to \mathbb{R}$ such that, for
    $\varphi\in\mathcal{C}^\infty_0$, $$
        T_{\delta, t}[\varphi] = \varphi(t).
      $$ Continuing the notational conventions from earlier, we might
    denote these distributions by the pseudo-functions
    $\delta_t : \mathbb{R}\to \mathbb{R}$, and even write the identity
    $\delta_t(x) = \delta(x-t)$.

Then, for $\varphi \in \mathcal{C}^\infty_0$, we have $$\begin{align*}
  \left(\frac{\mathrm{d}}{\mathrm{d}t} T_{\theta,t}\right)\![\varphi]
  &= \frac{\mathrm{d}}{\mathrm{d}t} \left(T_{\theta,t}[\varphi]\right)
\\
  &= \frac{\mathrm{d}}{\mathrm{d}t} \left(\int_t^{\infty} \varphi(x)\,\mathrm d{x} \right)
\\
  &= -\varphi(t)
\\
  &= -T_{\delta,t}[\varphi].
\end{align*}$$ Conversely, we have $$\begin{align*}
  \left(\int T_{\delta,t} \,\mathrm d{t}\right)\![\varphi]
  &= \int_{-\infty}^{t} \left(T_{\delta,\tau}[\varphi]\right) \,\mathrm d{\tau}
     + C[\varphi]
\\
  &= \int_{-\infty}^{t} \varphi(\tau) \,\mathrm d{\tau} + C[\varphi]
\\
  &= - \int_{t}^{\infty} \varphi(x)\,\mathrm d{x}
     + \int_{-\infty}^{\infty} \varphi(x)\,\mathrm d{x}
     + C[\varphi]
\\
  &= -T_{\theta,t}[\varphi] + C'[\varphi]
\end{align*}$$ where
$C'[\varphi] = \int_{-\infty}^{\infty} \varphi(x)\,\mathrm d{x} + C[\varphi]$
such that $C'$ is a constant of integration in $t$.

The negative sign was introduced in both relationships due to the way we
defined the parameterised families.

## Conclusion

The theory of Schwartz distributions is an elegant generalisation of the
idea of calculus for smooth functions. I'm glad I put in the time to
work through these examples. I found it an especially interesting
challenge to develop the theory of differentiation and integration for
Schwartz distributions (not the parametric versions)---these were not
given in the book. I am proud to say I worked out these definitions
myself (with some hints from Gemini, though also sometimes it sent me
down the wrong track and I had to recover).

If I had more time, I am sure I would appreciate working through a more
traditional introduction to the theory of Schwartz distributions. [This
mathoverflow thread](https://mathoverflow.net/questions/20314) has some
recommendations, including the original article by Schwartz (in French).
Alas, I have to make it through the rest of singular learning theory's
long list of prerequisites first.
