# Thread: How would i integrate this.

1. ## How would i integrate this.

$\displaystyle \frac{cosx}{sinx} * cos x dx$

Im so lost that second cos x is really thorwing me off

2. My initial guess would be to simplify it to...
$\displaystyle \frac{\cos^2(x)}{\sin(x)} = \frac{1-\sin^2(x)}{\sin(x)} = \frac{1}{\sin(x)} - \sin(x)$

But integrating 1/sin(x) is not exactly trivial.

Will have another think

3. Nah that's still the best I can come up with.

$\displaystyle \int \frac{1}{\sin(x)} dx = \int \frac{\sin(x)}{\sin^2(x)}dx = \frac{\sin(x)}{1-\cos^2(x)} dx$.

Let $\displaystyle u = \cos(x)$, $\displaystyle du = \sin(x)dx$

Hence integral becomes...

$\displaystyle \int \frac{1}{1-u^2}du = arctanh(u)$

4. Hello, x5pyd3rx!

$\displaystyle \int \frac{\cos x}{\sin x}\cdot\cos x\, dx$

$\displaystyle \int\frac{\cos^2\!x}{\sin x}\,dx \;\;=\;\;\int\frac{1-\sin^2\!x}{\sin x}\,dx \;\;=\;\;\int\left(\frac{1}{\sin x} - \sin x\right)\,dx$

. . . . . . . .$\displaystyle =\;\int(\csc x - \sin x)\,dx \;\;=\;\;\ln|\csc x - \cot x| + \cos x + C$

5. Originally Posted by Soroban
Hello, x5pyd3rx!

$\displaystyle \int\frac{\cos^2\!x}{\sin x}\,dx \;\;=\;\;\int\frac{1-\sin^2\!x}{\sin x}\,dx \;\;=\;\;\int\left(\frac{1}{\sin x} - \sin x\right)\,dx$

. . . . . . . .$\displaystyle =\;\int(\csc x - \sin x)\,dx \;\;=\;\;\ln|\csc x - \cot x| + \cos x + C$

That.

Is easier.