I'm getting output in the form
(a-ib).e^[(-p-iq)t] + (a+ib).e^[(-p+iq)t]
but I would like to get this output in the form
To be clear, in the above the "^" represents exponentiation, "i" is the symbol for Sqrt(-1) and "t" is time.
How can I write a function to make this conversion for arbitrary a,b,p,q?
Please see attachment.
Attachment: Circuit-8.nb, URL: ,