Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Force Log to Simplify?' topicStudent Support Forum > General > Archives > "Force Log to Simplify?"

Next Comment >Help | Reply To Topic
Author Comment/Response
04/01/09 2:45pm

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[1]:= Simplify[Log[Exp[r]*S^(1 - r)] + r Log[S]]

Out[1]= 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,

URL: ,

Subject (listing for 'Force Log to Simplify?')
Author Date Posted
Force Log to Simplify? Quadari 04/01/09 2:45pm
Re: Force Log to Simplify? yehuda ben-s... 04/02/09 04:38am
Re: Force Log to Simplify? James Rohal 04/03/09 9:47pm
Re: Force Log to Simplify? S. 09/29/11 07:28am
Next Comment >Help | Reply To Topic