Is there any mistake in my approach for solving $ \int_0^{\pi/2} \frac{ \cos x}{3 \cos x + \sin x} \, dx $ ?? I had to evaluate this integral .
$$
\int_0^{\pi/2} \frac{\cos x}{3 \cos x + \sin x} \, dx
$$
Here is how I proceeded 
Dividing $N^r$ And $D^r$ by $\cos^3 x$
$$
\int_0^{\pi/2} \frac{ \sec^2 x}{3 \sec^2 x + \tan x \sec^2 x}\, dx \\
$$
Substituting $\tan x = t$
$$
\int_0^\infty \frac{ 1 }{(1+t^2)(t+3)} \, dt \\
$$
Then by using Partial Fractions , I got the answer as 
$$
\frac{1}{10} \log (t+3) - \frac{1}{20} \log (t^2 + 1) + \frac{3}{10} \arctan (t)  \biggr|_{0}^{\infty}
$$
But while substituting the limits , the answer comes out be be infinity which is wrong .
Is there any mistake in my approach ??

$$\int_0^\infty \frac{ 1 }{(1+t^2)(t+3)} \, dt =\class{steps-node}{\cssId{steps-node-1}{\dfrac{1}{10}}}{\displaystyle\int_0^\infty}\dfrac{1}{t+3}\,\mathrm{d}t-\class{steps-node}{\cssId{steps-node-2}{\dfrac{1}{10}}}{\displaystyle\int_0^\infty}\dfrac{t-3}{t^2+1}\,\mathrm{d}t\\=\dfrac{\ln\left(\left|t+3\right|\right)}{10}-\dfrac{\ln\left(t^2+1\right)}{20}+\dfrac{3\arctan\left(t\right)}{10}\biggr|_{0}^{\infty}\\$$
$$=\frac1{20}\ln\frac{(t+3)^2}{1+t^2}+\dfrac{3\arctan\left(t\right)}
{10}\biggr|_{0}^{\infty}$$
$$\lim_{t \to \infty}\frac1{20}\ln\frac{(t+3)^2}{1+t^2}=\frac 1 {20}\ln1=0$$
$$=0+\frac{3 \pi}{20}-\left(\frac{1}{20}\ln9+0\right)$$
$$=\frac{3\pi-\ln9}{20}$$
