(a)
Let $\log{\sec{x = y}}$
$\Rightarrow \frac{1}{\cos x} = e^{y} = e^{y/2 + y/2} = e^{y/2.e^{y}/2}$
$\therefore\ \frac{1}{\cos x} = \frac{e^{y/2}}{e^{- y/2}}$
By componendo and Dividendo rule
$\frac{1 + \cos x}{1 - \cos x} = \frac{e^{y/2} + e^{- y/2}}{e^{y/2} - e^{- y/2}}$
$\Rightarrow \cot^{2}{\left( \frac{x}{2} \right) = \coth\left( \frac{y}{2} \right)}$
$\Rightarrow y = 2\coth^{- 1}\left( cosec^{2}\frac{x}{2} - 1 \right)$