If $ \sin^{-1}(x)+\tan^{-1}(x) = \frac{\pi}{2},$ find $2x^2+1$.
My attempt: $\cos (\sin^{-1}(x)+\tan^{-1}(x)) = \sqrt{1-x^2}\sqrt{\frac{1}{1+x^2}}-\frac{x^2}{\sqrt{x^2+1}} = 0.$
So we have $1-x^2=x^2$ which means $x= \frac{1}{\sqrt{2}}$which would mean $2x^2+1=2$.However, my book says that the answer is $\sqrt{5}$.
Where am I messing up?
Source:- BITSAT 2019
We don't have $1-x^2=x^2$ but $\sqrt{1-x^2}=x^2$ which means $x^2=\frac{-1+\sqrt5}2$ hence $2x^2+1=\sqrt5.$