So I want to integrate an expression that looks something like this:
Integrate[f[x]+DiracDelta[x-y]g[x],{x,-Infinity,Infinity}]
With some more terms added with delta functions after g[x]. Even after expanding and simplifying Mathematica won't break up the expression and evaluate the delta function, it just leaves it in exactly the form I have above. How do I make Mathematica evaluate the integral term by term?
Cheers :)