Evaluate: $$\int\frac{x^2-3x+1}{\sqrt{1-x^2}}dx$$ Please tell me where I committed the mistake as the answer I got does not match with the actual answer of $$=\frac{3sin^{-1}(x)}{2}+3\sqrt{1-x^2}-\frac{(\sqrt{1-x^2})x}{2}+c$$
Let $$t=\sqrt{1-x^2}$$ $$dx=\frac{-\sqrt{1-x^2}}{x}dt$$ $$x^2=1-t^2$$ $$x=\sqrt{1-t^2}$$ $$dx=\frac{-t}{\sqrt{1-t^2}}dt$$ Using all these values, I substituted them into the integral: $$\int\frac{[(1-t^2)-3(\sqrt{1-t^2})+1]}{t}\frac{-t.dt}{\sqrt{1-t^2}}$$ $$-\int(\frac{1-t^2}{\sqrt{1-t^2}}-3\frac{\sqrt{1-t^2}}{\sqrt{1-t^2}}+\frac{1}{\sqrt{1-t^2}})dt$$ This simplified to give: $$=\frac{-3sin^{-1}(\sqrt{1-x^2})}{2}+3\sqrt{1-x^2}-\frac{(\sqrt{1-x^2})x}{2}+c$$