4
$\begingroup$

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)

$\endgroup$
6
  • 2
    $\begingroup$ FullSimplify? $\endgroup$
    – Michael E2
    Commented May 1, 2017 at 19:10
  • $\begingroup$ I tried but it doesn't modify the exponentials $\endgroup$ Commented May 1, 2017 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
    Commented May 1, 2017 at 19:22
  • 3
    $\begingroup$ ExpToTrig can be useful for this. $\endgroup$ Commented May 1, 2017 at 19:22
  • 2
    $\begingroup$ Make sure to use E^x not e^x. $\endgroup$
    – kglr
    Commented May 1, 2017 at 19:31

0

Your Answer

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

Browse other questions tagged or ask your own question.