I'm trying to calculate the following limit:
$$\lim_{x\to\pi} \dfrac{1}{x-\pi}\left(\sqrt{\dfrac{4\cos²x}{2+\cos x}}-2\right)$$
I thought of calculating this:
$$\lim_{t\to0} \dfrac{1}{t}\left(\sqrt{\dfrac{4\cos²(t+\pi)}{2+\cos(t+\pi)}}-2\right)$$
Which is the same as:
$$\lim_{t\to0} \dfrac{1}{t}\left(\sqrt{\dfrac{4\cos²t}{2-\cos t}}-2\right)$$
I don't have an idea about where to go from here.
Note that $a-b = \frac{a^2 -b^2}{a+b}$. Then:
$$ \frac{1}{t}\left(\sqrt{\frac{4\cos²t}{2-\cos t}}-2\right) = \frac{1}{t}\left(\frac{\frac{4\cos²t}{2-\cos t}-4}{\sqrt{\frac{4\cos²t}{2-\cos t}}+2}\right) = \frac{1}{t}\left(\frac{\frac{4\cos²t-8 + 4 \cos t}{2-\cos t}}{\sqrt{\frac{4\cos²t}{2-\cos t}}+2}\right) = \frac{\frac{4\cos²t-8 + 4 \cos t}{t(2-\cos t)}}{\sqrt{\frac{4\cos²t}{2-\cos t}}+2} $$
The limit of the denominator is easy, so we just need to calculate
$$ \lim_{t \to 0} \frac{4\cos²t-8 + 4 \cos t}{t(2-\cos t)} = \lim_{t \to 0} \frac{4 (\cos t + 2)(\cos t - 1)}{t(2-\cos t)} = 4\cdot 3 \cdot \lim_{t \to 0}\frac{\cos t - 1}{t} = 0 $$