You "can't remember"? You just wrote it two lines above!

For n a positive integer, yes, thatwillbe a valid proof once you use trig identities to show how you got from to .

DeMoivre's formula is true for n any number, of course, not just positive integers. It would think the simplest way to prove it is to use the fact that .