[Math] Integrate a rational function with a denominator in the form a – cos(x)

calculus

I am preparing for a basic level calculus test and came across this problem:

$$ \int_0^{\pi/2} \dfrac{1}{2-\cos{x}} dx$$

Which appears to be simple enough before I realize that I can't multiply the top and bottom by $ 2+\cos{x} $ and get anywhere fast. The prompt and Wolfram Alpha suggest a u-substitution of $ u = \tan{\frac{x}{2}} $ but I really have no idea how to implement that. How is this substitution used? Is this even an appropriate problem for my current level of math knowledge?

Best Answer

hint: use the sub $u = \tan( x/2), \cos t = \frac{1-u^2}{1+u^2}$ and some partial fraction.

differencing you get $$du = (1 + u^2) dx/2, x = 0 \to u = 0, x = \pi/2\to u = 1$$ therefore the $\int_0^{\pi/2} \frac{dx}{2-\cos x}$ is transformed into $$\int_0^1 \frac{2du}{(1 + u^2} \frac{1}{\left(2 - \frac{1-u^2}{1+u^2}\right)} =2 \int_0^1\frac{du}{3u^2 + 1} = \frac{2}{3} \int_0^1 \frac{du}{u^2 + 1/3}$$ can you continue now?

Related Question