(b)
$\sec{\theta + \tan{\theta = k}}$ …(i)
$\Rightarrow \ \ \frac{\sec^{2}{\theta - \tan^{2}\theta}}{\sec{\theta - \tan\theta}} = k$
$\Rightarrow \sec{\theta - \tan{\theta = \frac{1}{k}}}$ …(ii)
On adding Eqs. (i) and (ii), we get
$2\sec{\theta = k + \frac{1}{k} = \frac{k^{2} + 1}{k}}$
$\Rightarrow \cos{\theta = \frac{2k}{k^{2} + 1}}$