I am looking for a way to express $\tan(x) + \sec(x)$ as a function expressed in terms of a single trigonometric function. So far I have it down to:
$$ \frac{\sqrt{1 - \cos^2 x} + 1}{\cos(x)} $$
Is there a more clean way to define this. Basically I have:
$$ y = \frac{\sqrt{1 - \cos^2 x} + 1}{\cos(x)} $$
and I need to express $x(y)$.
$$ \begin{align} & \tan x + \sec x = \frac{\sin x + 1}{\cos x} = \frac{\cos y + 1}{\sin y} = \frac{1}{\left( \frac{\sin y}{1+\cos y} \right)} = \frac{1}{\tan\frac y 2} \\[15pt] = {} & \cot\frac y 2 = \cot\left(\frac{\frac\pi2 - x}{2}\right) = \cot\left(\frac\pi4-\frac x2\right) \end{align} $$ where $y=\dfrac\pi2-x$.
One of many tangent half-angle formulas says $$ \tan x+\sec x = \tan\left(\frac\pi4 + \frac x 2\right). $$ Privately I think of this as the "cartographer's tangent half-angle formula" because of the occurrence of the function $x\mapsto\log(\tan x+\sec x)$ in the Mercator projection. The Mercator projection is characterized ("characterized" in the precisely defined mathematical sense of the word) by the fact that that compass bearings correspond to directions on the map, so that, for example $13^\circ$ east of north on the earth always corresponds to $13^\circ$ clockwise from straight up on the map, regardless of geographic location.