Indefinite integration of $\int\frac{1}{\cos(x-1)\cos(x-2)\cos(x-3)}\,\textrm dx$ 
Integrate $$\int\dfrac{1}{\cos(x-1)\cos(x-2)\cos(x-3)}\,\textrm dx$$

My Attempt:
Using, $$\tan A-\tan B=\dfrac{\sin(A-B)}{\cos A\cdot \cos B}$$
The given integral can be transformed as
$$\int\dfrac{\tan(x-1)}{\cos(x-2)}\,\textrm dx - \int\dfrac{\tan(x-3)}{\cos(x-3)}\,\textrm dx$$
The right most integral can be calculated easily by writing $\tan(x-3)$ as $\frac{\sin(x-3)}{\cos(x-3)}$ and then by a substituiton $\cos(x-3)$ as $t$. But I have no clue for the left most integral. How to evaluate that?

Little bit of trigonometry
$$\begin{align}
\frac{\tan(x-1)}{\cos(x-2)} 
&= \frac{\tan(x-1)}{\cos((x-1) - 1)} \\
&= \frac{\tan(x-1)}{\cos(x-1)\cos 1  + \sin(x-1)\sin 1} \\
&= \frac{\tan(x-1)\sec(x-1)}{\cos 1 + \tan(x-1)\sin 1} \\
&= \frac{d\left(\sec(x-1)\right)}{\cos1 + \sin 1 \sqrt{\sec^2(x-1) - 1}} \\
&= \frac{du}{\cos 1 + \sin 1 \sqrt{u^2-1}}\end{align}$$
So, we are to calculate in a more general case
$$\begin{align}
\int \frac{du}{a+b\sqrt{u^2-1}} \end{align}$$
You can find a solution for this here and it gives
$$\frac{1}{2b}\ln\frac{|\sqrt{u^2-1}-1|}{|\sqrt{u^2-1}+1|} + \frac{a}{b\sqrt{a^2+b^2}}\left(\text{artanh}\frac{bu}{\sqrt{b^2+a^2}} - \text{artanh}\frac{\sqrt{b^2+a^2}\sqrt{u^2-1}}{au}\right) + C$$
Now substitute back $\sqrt{u^2 - 1} = \tan(x-1)$ and $a = \cos 1$, $b = \sin 1$ to get something prettier.
