I have some fairly large expressions I'm trying to simplify and I've noticed that Log is not simplifying as I'm expecting it to. Here's an example:
In:= Simplify[Log[Exp[r]*S^(1 - r)] + r Log[S]]
Out= r Log[S] + Log[E^r S^(1 - r)]
Even if I specify in the assumptions that r and S are real I get the same output.
Now, it seems to me that:
Log[E^r S^(1-r)] + r Log[S]= r + (1-r) Log[S] + r Log[S]
Therefore my expression should simplify to:
r + Log[S]
1) Why doesn't Mathematica do this, even if I specify that everything is Real.
2) Is there a way I can force it to do this?
Thanks to all who respond,