Proving the integral of the Dirac delta function is 1 The error is that in the definition mentioned, f(x) has to be compactly supported and making it constant equal 1 is not correct.