Solving for the tangent of an inverse secant function
Hello, I am trying to evaluate this expression but haven't figured out how...
$$\tan(\sec^{-1}(x))$$
In Wolfram Alpha it evaluates to the following :
$$\sqrt{1 - \frac 1 {x^2}} x $$
How does one arrive at this ? I am using this in the context of trig substitution.
\begin{align} \tan\sec^{-1}x &= \dfrac{\sin\sec^{-1}x}{\cos\sec^{-1}x} \\ &= \dfrac{\sqrt{1-\cos^2\sec^{-1}x}}{\cos\sec^{-1}x} \\ &= \sec\sec^{-1}x\sqrt{1-\dfrac{1}{\sec^2\sec^{-1}x}} \\ &= x\sqrt{1-\dfrac{1}{x^2}} \end{align}