Question Number 192687 by Mastermind last updated on 24/May/23
$$\frac{\mathrm{1}}{\pi}\int_{\mathrm{0}} ^{\mathrm{2}\pi} \mathrm{xcos}\left(\mathrm{nx}\right)\mathrm{dx} \\ $$$$ \\ $$$$\mathrm{Help}! \\ $$
Answered by Subhi last updated on 24/May/23
$$ \\ $$$${x}={u}\:\:\:\:\:\Rrightarrow\:\:\:{du}\:=\:{dx} \\ $$$${cos}\left({nx}\right){dx}\:=\:{dv} \\ $$$${v}=\frac{\mathrm{1}}{{n}}\int{n}.{cos}\left({nx}\right)\:=\:\frac{\mathrm{1}}{{n}}.{sin}\left({nx}\right) \\ $$$$\int{u}.{dv}\:=\:{u}.{v}−\int{v}.{du} \\ $$$$=\:{x}.\frac{{sin}\left({nx}\right)}{{n}}−\frac{\mathrm{1}}{{n}}\int{sin}\left({nx}\right).{dx} \\ $$$${x}.\frac{{sin}\left({nx}\right)}{{n}}+\frac{\mathrm{1}}{{n}^{\mathrm{2}} }\int−{n}.{sin}\left({nx}\right).{dx} \\ $$$${x}.\frac{{sin}\left({nx}\right)}{{n}}+\frac{\mathrm{1}}{{n}^{\mathrm{2}} }.{cos}\left({nx}\right)+{c} \\ $$$$\frac{\mathrm{1}}{\pi}\int{x}.{cos}\left({nx}\right){dx}\:=\:{x}.\frac{{sin}\left({nx}\right)}{{n}\pi}+\frac{\mathrm{1}}{{n}^{\mathrm{2}} .\pi}{cos}\left({nx}\right)+{c} \\ $$
Commented by Subhi last updated on 24/May/23
$${to}\:{find}\:{the}\:{definite}\:{integral},\:{it}\:{will}\:{differ}\:{if}\:\left({n}\right)\:{is}\:{integer}\:{or}\:{fraction} \\ $$$$ \\ $$