I am trying to simplify an expression with multiple Diracdelta functions in both numerator and denominator. For example,
expr = (x1 DiracDelta[ω0 + ω]+x2 DiracDelta[ω0 + ω])/
(x3 DiracDelta[ω0 + ω] - x4 DiracDelta[ω0 + ω]) // FullSimplify
However, DiracDelta[ω0 + ω]
does not cancel out during the simplification.
I have already read answers to this, this, and this questions, and I understand that this is due to the definition of DiracDelta[ω0 + ω]
.
This is my approach:
expr /.{DiracDelta[ω0 + ω]->X}// FullSimplify
It works, however, not very convenient for complicated expressions with multiple DiracDelta
at different values.
Is there any better approach to cancel out same DiracDelta
functions both denominator and numerator?
//Factor
instead of//FullSimplify
$\endgroup$ – Bill Watts Feb 7 '20 at 8:20