If $\cos(n\pi)= (-1)^n$, then why is $-\frac{4}{n}\cos(n\pi) = \frac{4}{n}(-1)^{n+1}$?
I lectures has this written down in one of the solutions to an exercise however I'm not sure how he got $\frac{4}{n}(-1)^{n+1}$? I thought it would just be $-\frac{4}{n}. (-1)^n$? Am I missing something?
Thanks.
Those two things are equal, indeed $$-\frac{4}{n}(-1)^n=\frac{4}{n}(-1)^1(-1)^n=\frac{4}{n}(-1)^{n+1}.$$