I have an expression with thousands of terms each of them has the form (1- Exp[-2 a x]) . I want to be able to write it as 2 Exp[- a x] Sinh[ a x] . How do I do this without doing it for each term separately and that too - by hand?


1 Answer 1


Try rule Exp[- 2 z_] -> 1 - 2 Exp[-z ] Sinh[z ]

1 - Exp[-2 a x] /. Exp[- 2 z_] -> 1 - 2 Exp[-z ] Sinh[z ]
(*2 E^(-a x) Sinh[a x]*)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.