My text book says that
$$ I = \int_{0}^\infty e^{-ax} sin^p ~x ~dx = \frac {p (p – 1)}{p^2 + a^2} \int_{0}^\infty e^{-ax} sin^{p-2}~x~dx $$
Can someone help me find this result? Because I only see when differentiating by parts $$ u = sin^p (x) $$ $$ du = p~cos(x)~sin^{p-1}~x $$ $$ dv = e^{-ax} $$ $$ v = \frac{–e^{-ax}}{a}$$ $$ so~I = 0 + \frac{p}{a}\int_{0}^\infty e^{-ax} cos(x)~sin^{p-1}~x~dx $$
and then again
$$ u = cos(x) sin^{p-1} (x) $$ $$ du = -sin^p (x) + (p-1)cos^2 (x) sin^{p-2} (x) $$ $$ dv = e^{-ax} $$ $$ v = \frac{–e^{-ax}}{a}$$ $$ so~I = 0 + \frac{p}{a^2}\int_{0}^\infty e^{-ax} ((p-1)cos^2(x) sin^{p-2} (x)~–~sin^p (x)) dx $$
and from there I get no further than $$ so~I = \frac{p}{a^2}\int_{0}^\infty e^{-ax} sin^{p-2}x~((p-1)cos^2(x) – sin^2 (x)) dx $$ ?
Where am I wrong in my attempt?