The common property of the delta function is:
$\int_{-\infty}^{\infty}f(x)\delta(x-a)dx = f(a)$
However the proof of the Greens Theorem states that
$\int_{-\infty}^{\infty}f(a)\delta(x-a)da = f(x)$
How are these two equivalent? In the second equation should we not switch $x$ and $a$?