I want to write a code to evaluate
$$ \int_0^{t-1}\frac{\delta(z-1)}{z}\frac{\delta(t-z-1)}{t-z}dz$$
which should gives the answer $$\frac{\delta(t-2)}{t-1}.$$
I tried to write the code
Integrate[DiracDelta[z - 1]/z * DiracDelta[t - z - 1]/(t - z), {z, 0, t - 1}]
but it didn't give the answer.
How should I write the code to give the expected answer?
(DiracDelta[-2 + t] HeavisideTheta[-2 + t])/(-1 + t)
be true? Can you kindly give a reference? $\endgroup$