Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • $\begingroup$ You wrote: FactorList does break apart exponentials. But if you multiply them again, they recombine in the undesired way. $\endgroup$ Commented Dec 5, 2025 at 20:44
  • $\begingroup$ @BoudewijnVerhaar Yes. FactorList[] succeeds by putting the factors in a list, which keeps them from recombining. FactorList[] and Collect[] are more robust and reliable than Cases[] and other pattern-based manipulations. $\endgroup$ Commented Dec 6, 2025 at 0:31
  • $\begingroup$ Ah I see, indeed Cases[] depends more on how Mathematica prefers to manipulate the expressions. But FourierTransform[] transforms A Exp[b+I f0 t] to A Exp[b] DiracDelta[f-f0] which already makes it a lot more robust. So, for now I am helped, but I realize that this is only possible because in my case I f0 t is purely imaginary. If it where purely real, then it is still possible to do this, by substituting t->I imt. But not if there are multiple terms with f0 with differing complex arguments. But perhaps, in that case, a LaPlace transform would help ... But I didn't look at that. $\endgroup$ Commented Dec 6, 2025 at 10:04