step-by-step
1\cdot cos\left(\frac{\pi}{4}+\pi n\right)+\left(-1\right)\cdot sin\left(\frac{\pi }{4}+\pi n\right)
he