I m doing this interal with Mathematica
Integrate[(((1+b*t)^2)t)^(-1),t,Assumptions->b>0]
what I get back is
1/(1 + b t) + Log[-b t] - Log[1 + b t]
However there is a problem with the second term: imagine I set b to some positive number, as well as t, this would lead to an imaginary number instead a real one, as should be for a real integral. Indeed, just changing the sign works good, but I am puzzled about why Mathematica choses this solution. I guess must be related to choosing some branch for the logarithm or something similar, but still I don't figure out what Any suggestions?
1/2 (e^ix+e^-ix)than are you sure real integration cannot have complex solutions ? – Pankaj Sejwal Jul 19 '13 at 18:22Mathematicahas to choose certain branch working on the symbolic level. When passing to definite integrals sometimes there appear some problems and in order to resolve them we have to work on case by case basis. Closely related problem you could find here Why does Integrate declare a convergent integral divergent? – Artes Jul 19 '13 at 18:55Integrate[(((1 + b*t)^2) t)^(-1), {t, Infinity, t}, GenerateConditions -> False]~~>1/(1 + b t) - 2 ArcTanh[1 + 2 b t] - Log[-b] + Log[b]- gotta love the last two terms. But seriously, the most one can expect from an indefiniteIntegrateis that the derivative of the result is equivalent to the integrand. – Michael E2 Jul 19 '13 at 22:29