Solve integral $$\int\frac{1}{(x^2-3)\sqrt{x^2+2}}dx$$
I tried substituting $$x=\tan(t)=\frac{\sin(t)}{\cos(t)}\:;\:dx=\frac{1}{\cos^2(t)}dt$$
So $$\:{x^2+2}=\frac{\sin^2(t)+2\cos^2(t)}{\cos^2(t)}=\frac{(1-\cos^2(t))+2\cos^2(t)}{\cos^2(t)}=\frac{1+\cos^2(t)}{\cos^2(t)}=\tan^2(t)$$
$$\sqrt{x^2+2}=\tan(t)$$
And $$\:x^2-3=\frac{1-4\cos^2(t)}{\cos^2(t)}$$
After putting both into main integral i have $$\int\frac{\cos(t)}{\sin(t)\cdot(1-4\cos^3(t))}dt=?$$
Now need a bit of help if possible.
p.s Is there any other method or is it fine with this sub.?
Thank you in advance :)
$\sin x$comes out as $\sin x$. – A-Level Student Apr 10 '21 at 20:56