1

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

a*b*Exp[u+v]+c*Exp[u]

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?

VividD
  • 3,660
  • 4
  • 26
  • 42
Maryam.D
  • 11
  • 2
  • 1
    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. – gpap Mar 24 '14 at 12:40

2 Answers2

3

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?

Jens
  • 97,245
  • 7
  • 213
  • 499
1

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.

Alexei Boulbitch
  • 39,397
  • 2
  • 47
  • 96