This is the integrand:
1/beta/(2*z)/(1 - beta) // TraditionalForm
Integrating with respect to z
, gives
Integrate[1/beta/(2*z)/(1 - beta), z]
-(Log[-2 (-1 + beta) beta z]/(2 (-1 + beta) beta))
What I hope to get is from doing so:
1/beta/2/(1 - beta)*Integrate[1/z, z]
Log[z]/(2 (1 - beta) beta)
But if I look at the two answers, they are not equivalent, eg the difference does not simplify to 0.
Should I make some assumptions in the first case? Or Am I doing something wrong?
Update:
ans1 = Integrate[1/beta/(2*z)/(1 - beta), z]
ans2 = 1/beta/2/(1 - beta)*Integrate[1/z, z]
tmp = ans1 - ans2 // FullSimplify
I was thinking that tmp
should be zero, but I was wrong. It is a constant, which is free of z
.
So both answers are correct.
But could I get the desired answer in the first place anyway?
Log[ab] = Log[a] + Log[b]
for real positive numbers, and the indefinite is unique only up to a constant.) $\endgroup$