This is a question coming from physics, but its nature is purely mathematical. Given some continuous distribution of charge $\rho$ (take it compactly supported, or "nice enough" depending on the problem you are treating), we define the electrostatic energy as:
$$E[\rho]=\frac{1}{8\pi}\int d^3x\int d^3y \frac{\rho(\vec{x})\rho(\vec{y})}{|\vec{x}-\vec{y}|}$$
Is it positive definite? How to show it?
One of the integrations can be regarded as a convolution that yields the potential:
$$ E[\rho]=\frac1{8\pi}\int\mathrm d^3x\rho(\vec x)V(\vec x) $$
with
$$ V(\vec x)=\int\mathrm d^3y\frac{\rho(\vec y)}{|\vec x-\vec y|}\;. $$
This is $V=\rho*\dfrac1r$, where the asterisk denotes convolution. A convolution in real space corresponds to multiplication in Fourier space, so $\mathcal F(V)=\mathcal F(\rho)\mathcal F(1/r)$, where $\mathcal F(\cdot)$ denotes the Fourier transform. Since the Fourier transform is unitary, we have, with the Fourier transform $\mathcal F(1/r)=4\pi/k^2$ of the Coulomb potential,
$$ \begin{align} E[\rho] &= \frac1{8\pi}\int\mathrm d^3x\rho(\vec x)V(\vec x) \\ &= \frac1{8\pi}\int\mathrm d^3k\mathcal F(\rho)(\vec k)\mathcal F(V)(\vec k) \\ &= \frac1{8\pi}\int\mathrm d^3k\mathcal F(\rho)(\vec k)\mathcal F(\rho)(\vec k)\mathcal F (1/r)(\vec k) \\ &= \frac12\int\mathrm d^3k\left(\mathcal F(\rho)(\vec k)\right)^2\frac1{k^2}\;, \end{align} $$
which is manifestly positive definite.