Text

Simplify the expression cos(πx)+sin ⁣(π2+x)+cos(x)\cos(\pi-x)+\sin\!\left(\tfrac{\pi}{2}+x\right)+\cos(-x).