I have encountered the following integral:
$$\int_{0}^{\pi} \sin ^{n}(\eta) d \eta=\underbrace{\left[\left(\sin ^{n-1}(\eta)\right)(-\cos (\eta))\right]_{\eta=0}^{\pi}}_{=0} -\int_{0}^{\pi}\left((n-1) \sin ^{n-2}(\eta) \cos (\eta)\right)(-\cos (\eta)) d \eta$$
But I'm not getting how did the integral evaluate to become what is on the right side of the above equation. I am trying to do integration by parts but in vain. Could you please show me the missing steps?
The right hand side can then be simplified to look like: $$=(n-1) \int_{0}^{\pi} \cos ^{2}(\eta) \sin ^{n-2}(\eta) d \eta$$