# Solution of $\int_0^\infty\frac{\ln(1+{x^2})}{1+{x^2}}$ [closed]

How do I solve this? $$\int_0^\infty\frac{\ln(1+{x^2})}{1+{x^2}}$$ I know the answer is $\pi\ln2$.

## closed as off-topic by Carl Mummert, Watson, tatan, TravisJ, QwertySep 2 '16 at 19:25

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – Carl Mummert, Watson, tatan, TravisJ, Qwerty
If this question can be reworded to fit the rules in the help center, please edit the question.

• Posts which merely state a problem are discouraged on this site. Please improve your post by adding additional information. Where did the integral arise? Why is it of interest? What have you attempted already? – Carl Mummert Sep 2 '16 at 11:41
• this integral was often solved on this forum – Dr. Sonnhard Graubner Sep 2 '16 at 11:44
• There is search button on the top – Piotr Benedysiuk Sep 2 '16 at 12:00

Meh.

$$\int_0^{+\infty} \frac{\ln(1+x^2)}{1 + x^2}\ \text{d}x = \frac{1}{2}\int_{-\infty}^{+\infty} \frac{\ln(1+x^2)}{1 + x^2}\ \text{d}x$$

Now set

$$x=\tan y$$

and you get:

$$-\frac{4}{2} \int^{\pi/2}_0 \ln(\cos y)\ \text{d}y = \pi \ln 2$$

Other References

Evaluating $\int_0^{\infty}\frac{\ln(x^2+1)}{x^2+1}dx$

But I prefer my method.