Integrate[Exp[-x^2]*DiracDelta[x+1]*(1-cos(5x*Pi/2)), {x, 0, infinity}]