Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to do this integration: $$\int \sec (x-a) \sec (x-b)\ dx?$$

I want to this in the shortest possible way. Please guide me through.

share|cite|improve this question
Hint: try using $\sec(y) = 1/\cos(y)$ and $\cos(y)\cos(z) = \frac{1}{2}[\cos(y+z)+\cos(y-z)]$ – Dilip Sarwate Dec 8 '11 at 16:14
By "solve" I guess you mean "evaluate"... – GEdgar Dec 8 '11 at 16:19
Have you made any progress by using Dilip's hint? – The Chaz 2.0 Dec 8 '11 at 16:32
Probably not the shortest possible way but you can try to: 1. Type "integrate 1/[cos(x-a)*cos(x-b)]" into wolframalpha; 2. wait for a while; 3. click on "show steps"… – Martin Sleziak Dec 8 '11 at 18:07

This can be done via the following trick. Rewrite your integral as $${1 \over \sin(b - a)} \int {\sin(b - a) \over \cos(x - a)\cos(x - b)}\,dx$$ Note that $b - a = (x - a) - (x -b)$, so by the sine subtraction formula you have $$\sin(b - a) = \sin(x - a)\cos(x - b) - \sin(x - b)\cos(x - a)$$ Subtituting this back into your integral it becomes $${1 \over \sin(b - a)} \bigg(\int \tan(x - a)\,dx- \int \tan( x - b)\,dx\bigg)$$ $$ = {1 \over \sin(b - a)} \bigg(-\ln(\cos(x - a)) + \ln(\cos(x - b))\bigg) + C$$

share|cite|improve this answer
I was typing the same answer! – Quixotic Dec 8 '11 at 18:57
gotta be fast here ;) – Zarrax Dec 8 '11 at 19:04
Yeah,this is actually a text book problem :) – Quixotic Dec 8 '11 at 19:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.