How can I separate two parts of power of exponential functions in Mathematica? I have an expression similar to this one:


I want to set Exp[v] to zero. For this target I need to expand Exp[u+v] to Exp[u]*Exp[v], then set Exp[v]-> 0. How can I expand Exp[u+v] to Exp[u]*Exp[v] in Mathematica?

  • 1
    $\begingroup$ Hi Maryam, and welcome to Mathematica.SE. You will benefit greatly from this site if you do a little digging before asking a question. Yours seems to be answered by this and this. Remember to upvote good answers (and other people's questions) using the triangle above the number next to the post, and use the checkmark to "accept" the answer to your question that you think best answers it. $\endgroup$
    – gpap
    Mar 24 '14 at 12:40

To get an actual mathematically valid result that corresponds to your goal, you should not rely on pattern substitutions because they are not guaranteed to obey the principles of mathematical sanity.

Instead, I would suggest you do the following:

Limit[a*b*Exp[u + v] + c*Exp[u], v -> -Infinity]

(* ==> c E^u *)

Here I simply used the fact that an exponential goes to zero when its exponent goes to negative infinity along the real axis. I could have used a rule instead, but the function Limit is designed for this purpose, so why not use it?

  • $\begingroup$ Did you mean v -> -∞ rather than z? This answer would make a lot more sense if so... $\endgroup$ May 24 '14 at 3:12
  • 2
    $\begingroup$ @OleksandrR. How did you guess? I really was hoping nobody would be able to understand this answer. $\endgroup$
    – Jens
    May 24 '14 at 4:16

It depends on your ultimate aim. If it is only to look at, you might use this function:

    factorExp[expr_] := Times @@ Map[HoldForm[E^#] &, List @@ expr[[2]]]

The action is like follows:

Exp[(x - y)^2 + b*Sqrt[u - v] + a + x + y^m + z^3] // factorExp

Try it. However, each term is held, and as soon as you try to release hold the terms fuse for a well-known reason. So it is not for further use in the calculations, if any.


Your Answer

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

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