Question Number 164071 by kdaramaths last updated on 13/Jan/22
Answered by Ar Brandon last updated on 13/Jan/22
$${Z}=\underset{{k}=\mathrm{0}} {\overset{{n}} {\sum}}{e}^{{ikx}} =\frac{\mathrm{1}−{e}^{{i}\left({n}+\mathrm{1}\right){x}} }{\mathrm{1}−{e}^{{ix}} } \\ $$$$\:\:\:=\frac{{e}^{{i}\left(\frac{\left({n}+\mathrm{1}\right){x}}{\mathrm{2}}\right)} \left({e}^{−{i}\left(\frac{\left({n}+\mathrm{1}\right){x}}{\mathrm{2}}\right)} −{e}^{{i}\left(\frac{\left({n}+\mathrm{1}\right){x}}{\mathrm{2}}\right)} \right)}{{e}^{{i}\frac{{x}}{\mathrm{2}}} \left({e}^{−{i}\frac{{x}}{\mathrm{2}}} −{e}^{{i}\frac{{x}}{\mathrm{2}}} \right)} \\ $$$$\:\:\:={e}^{{i}\frac{{nx}}{\mathrm{2}}} \frac{\mathrm{sin}\left(\frac{\left({n}+\mathrm{1}\right){x}}{\mathrm{2}}\right)}{\mathrm{sin}\left(\frac{{x}}{\mathrm{2}}\right)}=\frac{\mathrm{sin}\left(\frac{\left({n}+\mathrm{1}\right){x}}{\mathrm{2}}\right)}{\mathrm{sin}\frac{{x}}{\mathrm{2}}}\left[\mathrm{cos}\frac{{nx}}{\mathrm{2}}+{i}\mathrm{sin}\frac{{nx}}{\mathrm{2}}\right] \\ $$$$\underset{{k}=\mathrm{0}} {\overset{{n}} {\sum}}\mathrm{sin}{kx}={Im}\underset{{k}=\mathrm{0}} {\overset{{n}} {\sum}}{e}^{{ix}} =\frac{\mathrm{sin}\left(\frac{\left({n}+\mathrm{1}\right){x}}{\mathrm{2}}\right)\mathrm{sin}\left(\frac{{nx}}{\mathrm{2}}\right)}{\mathrm{sin}\left(\frac{{x}}{\mathrm{2}}\right)} \\ $$$$=\frac{\mathrm{4sin}\left(\frac{\left({n}+\mathrm{1}\right){x}}{\mathrm{2}}\right)\mathrm{sin}\left(\frac{{nx}}{\mathrm{2}}\right)\mathrm{sin}\left(\frac{{x}}{\mathrm{2}}\right)}{\mathrm{4sin}^{\mathrm{2}} \frac{{x}}{\mathrm{2}}} \\ $$$$=\frac{\mathrm{2sin}\left(\frac{\left({n}+\mathrm{1}\right){x}}{\mathrm{2}}\right)\left[\mathrm{cos}\left(\frac{\left({n}−\mathrm{1}\right){x}}{\mathrm{2}}\right)−\mathrm{cos}\left(\frac{\left({n}+\mathrm{1}\right){x}}{\mathrm{2}}\right)\right]}{\mathrm{2}\left(\mathrm{1}−\mathrm{cos}{x}\right)} \\ $$$$=\frac{\left(\mathrm{sin}\left({nx}\right)+\mathrm{sin}{x}\right)−\left(\mathrm{sin}\left(\left({n}+\mathrm{1}\right){x}\right)\right.}{\mathrm{2}−\mathrm{2cos}{x}} \\ $$$$=\frac{\mathrm{sin}\left(\left({n}+\mathrm{1}\right){x}\right)−\mathrm{sin}\left({nx}\right)−\mathrm{sin}{x}}{\mathrm{2cos}{x}−\mathrm{2}} \\ $$