I have a function of real exponentials and I'd like to simplify it using hyperbolic functions. How can I tell mathematica to use $e^x +e^{-x}=2\cosh(x)$ when simplifying? (and obviusly the $\sinh$ relation too)

  • 2
    $\begingroup$ FullSimplify? $\endgroup$ – Michael E2 May 1 '17 at 19:10
  • $\begingroup$ I tried but it doesn't modify the exponentials $\endgroup$ – P. C. Spaniel May 1 '17 at 19:16
  • $\begingroup$ It works for me. You probably need to show a typical use-case in which it fails. Backup plan: expr /. Power[E, x_] :> Cosh[x] + Sinh[x], which might simplify right back to exponentials if you're not careful. $\endgroup$ – Michael E2 May 1 '17 at 19:22
  • 3
    $\begingroup$ ExpToTrig can be useful for this. $\endgroup$ – Daniel Lichtblau May 1 '17 at 19:22
  • 2
    $\begingroup$ Make sure to use E^x not e^x. $\endgroup$ – kglr May 1 '17 at 19:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.