I had to calculate $$I= \int_{0}^{1}\frac{1}{1+x^2}\ln\bigg[\frac{x^2+x+1}{x^2-x+1}\bigg]\,\mathrm dx$$
from my Previous Question [1](which is now solved) but I wanted to have another solution ,So I proceed like this.
$$I=\int_{0}^{1}\frac{\ln(x^2+x+1)}{x^2+1}\,\mathrm dx-\int_{0}^{1}\frac{\ln(x^2-x+1)}{x^2+1}\,\mathrm dx$$
Let $x=\tan t \implies \mathrm dx=\sec^2 t \,\mathrm dt$
$$\implies I=\int_{0}^{\frac{\pi}{4}}\ln(\tan^2 x+\tan x+1)\,\mathrm dx-\int_{0}^{ \frac{\pi}{4}}\ln(\tan^2 x-\tan x+1)\,\mathrm dx$$
$$2(\tan^2 x+\tan x+1)=(2+\sin 2x)(1+\tan^2 x)$$
$$\implies I=\int_{0}^{ \frac{\pi}{4} }\Big[\ln(2+\sin 2x)+\ln(1+\tan^2 x)-\ln(2)\Big]\,\mathrm dx-\int_{0}^{ \frac{\pi}{4} }\Big[\ln(2-\sin 2x)+\ln(1+\tan^2 x)-\ln(2)\Big]\,\mathrm dx$$
$$\implies I=\frac12 \Bigg[\int_{0}^{ \frac{\pi}{2} }\ln(2+\sin x)\,\mathrm dx- \int_{0}^{ \frac{\pi}{2} }\ln(2-\sin x)\,\mathrm dx\Bigg]$$
We can group together the two log terms in the integral but then this Question will become same as my previous question[1], I want to calculate both of the integrals separately.
sin\space x
, so that the reader sees $sin\space x.$ But if you type\sin x
, then the viewer sees $\sin x,$ and that is standard usage. With\sin x
and\sin(x)
you see $\sin x$ and $\sin(x),$ with more horizontal space to the right of $\sin$ in the former than in the latter, i.e. the spacing is context -dependent (and the same applies to the left of $\sin$). Similarly with $\tan x$ and $\log x$: Use\tan
and\ln
. $\qquad$ – Michael Hardy Jun 30 '21 at 17:17