I would like to better understand how to use and manipulate the Dirac Delta function.
It seems to me that whenever the delta function appears in an integral, it reduces the dimension of the domain of integration by $1$, i.e. $$\int \limits _{\Omega\ \in\ \mathcal{R}^2}f(x_1,x_2)\ \delta(x_1-y)\ \mathrm{d}\Omega \rightarrow \int \limits _{\Omega \ \{x_1\rightarrow y\}\ \in \ \mathcal{R}}f(y,x_2)\ \mathrm{d}x_2$$ For very easy functions and domains I was able to manually check this.
I would like to exploit this property in more complicated situations, for example: $$\int \limits _{\Omega\ \in\ \mathcal{R}^4}f(x_1,x_2,x_3,x_4)\ \delta(x_1-x_2+1)\ \delta(x_2)\ \mathrm{d}\Omega \rightarrow \int \limits _{\Omega \ \{x_2\rightarrow 0,x_1\rightarrow-1\}\ \in \ \mathcal{R}^2}f(-1,0,x_3,x_4)\ \mathrm{d}\Omega$$ but it appears that this is not always possible (I have seen how certain examples work, but others do not$^{(1)}$). Can anyone explain to me why this is wrong? I was hoping to use this "trick" to numerically integrate functions that have a Dirac Delta inside.
$^{(1)}$ I have tried the following case using Mathematica v$11.0$:
1)The function is: $$f(x,y,z,\zeta)=\frac{z^4}{2\ (y^2+z^2)^{5/2}}\cdot \delta\ (x+y-8) $$ 2)The domain of integration is:$$[0\leq x\leq25]\cup[-5\leq y\leq 5]\cup[-0.5\leq z\leq0.5]\cup[0\leq\zeta\leq1]\cup[0\leq x+y\leq25]\cup[0\leq z+\zeta\leq1] $$ I obtain different results when doing the domain reduction for $x\rightarrow8-y$ or $y\rightarrow8-x$