In quantum field theory we have to sometimes take the "trace" of a distribution $M(x,y)$, $\text{tr}M\sim\int dx M(x,x)$. This happens for instance when we try to expand the determinant of a Dirac operator $\det{\not}D=\exp\text{tr}\log{\not}D.$
These traces are not well defined mathematically, because they are divergent. A simple example would be looking at the distribution $f(x)\delta(x-y)$, whose trace is taken to be $\delta(0)\int dx f(x)$. Somehow, physicists are able to get away with these infinite $\delta(0)$ factors and still get something sensible. In the cases I have seen, these factors are usually assumed to be related to the volume of space, taken to be infinite.
Since these objects are not of trace class, these calculations are not guaranteed to make sense. A trace is supposed to have the same value regardless of what basis you calculate it in, so is the trace of $M(x,y)$ in position space the same as it is in momentum space?
For that matter, how does one take the trace of a distribution like $f(x)\partial_{\mu}\delta(x-y)$, or an arbitrary number of derivatives acting on a delta function?
Mathematicians seem to think there is no way of doing it, but physicists have found ways of getting sensible results! There must be some way of defining it properly, right?