# Evaluate the following integrals:

Question:

Evaluate $\int \frac{1}{\sin (x-a) \sin (x-b)} d x$

Solution:

Let $I=\int \frac{1}{\sin (x-a) \sin (x-b)} d x$

Multiply and divide $\frac{1}{\sin (a-b)}$ in R.H.S we get,

$I=\frac{1}{\sin (a-b)} \int \frac{\sin (a-b)}{\sin (x-a) \sin (x-b)} d x$

We can write above integral as:

$=\frac{1}{\sin (a-b)} \int \frac{\sin (a-b+x-x)}{\sin (x-a) \sin (x-b)} d x$

$=\frac{1}{\sin (a-b)} \int \frac{\sin [(x-b)-(x-a)]}{\sin (x-a) \sin (x-b)} d x$

$=\frac{1}{\sin (a-b)} \int\left[\frac{\sin (x-b) \cos (x-a)-\cos (x-b) \sin (x-a)}{\sin (x-a) \sin (x-b)}\right] d x$

$[\because \sin (A+B)=\sin A \cdot \cos B-\cos A \cdot \sin B]$

$=\frac{1}{\sin (a-b)} \int\left[\frac{\sin (x-b) \cos (x-a)}{\sin (x-a) \sin (x-b)}-\frac{\cos (x-b) \sin (x-a)}{\sin (x-a) \sin (x-b)}\right] d x$

By simplifying we get,

$=\frac{1}{\sin (a-b)} \int\left[\frac{\cos (x-a)}{\sin (x-a)}-\frac{\cos (x-b)}{\sin (x-b)}\right] d x$

$=\frac{1}{\sin (a-b)} \int[\cot (x-a)-\cot (x-b)] d x$

$=\frac{1}{\sin (a-b)}[\log |\sin (x-a)|-\log |\sin (x-b)|]+C$

$\left[\because \int \cot x d x=\log |\sin x|+C\right]$

$=\frac{1}{\sin (a-b)}\left[\log \left|\frac{\sin (x-a)}{\sin (x-b)}\right|\right]+C$

$\therefore I=\int \frac{1}{\sin (x-a) \sin (x-b)} d x=\frac{1}{\sin (a-b)}\left[\log \left|\frac{\sin (x-a)}{\sin (x-b)}\right|\right]+C$