How do you find:
$$\int_0^\pi\frac{dx}{(5+3\cos x)^3}$$
and
$$\int_0^\pi\frac{\sin^2x }{(5+3\cos x)^3}dx$$
by differentiating under the integral sign? I know you can get the result by using $\tan\left(\frac{x}{2}\right)$ substitution but I need to solve it via Feynman's Trick.
I am given the general result that:
$$\int_0^\pi\frac{dx}{a+b\cos x}= \frac{\pi}{\sqrt{a^2-b^2}}$$