1

Is there a way to ask Mathematica to simplify expressions it generates, like:

$e^{-\frac{A t}{v^3}-\frac{v^2}{2 w^2}} \left(-1+e^{\frac{A t}{v^3}}\right)$

into a more readable form by taking out the common factor, like:

$e^{-\frac{v^2}{2 w^2}} \left(1-e^{-\frac{A t}{v^3}}\right)$

Here is the Mma code to simplify the first equation:

Simplify[E^(-((A t)/v^3) - v^2/(2 w^2)) (-1 + E^((A t)/v^3))]
kotozna
  • 319
  • 1
  • 6

1 Answers1

2

into a more readable form by taking out the common factor, like:

$e^{-\frac{v^2}{2 w^2}} \left(1-e^{-\frac{A t}{v^3}}\right)$

You could try

ClearAll["Global`*"]
expr = E^(-((A t)/v^3) - v^2/(2 w^2)) (-1 + E^((A t)/v^3))
expr /. Exp[a_ + b_]*c_ :> Exp[b]*Simplify[Exp[a]*c]

Mathematica graphics

But this might not work for all cases because the main problem is that Mathematica likes to write $e^a e^b$ as $e^{a+b}$ by default. See How to tell Mathematica to avoid simplification of product of exponentials with the same base? and other links in it for more discussion on this.

Nasser
  • 143,286
  • 11
  • 154
  • 359