∫ − π / 4 π / 4 2 2 ( cos x − sin x ) d x {\displaystyle \int _{-\pi /4}^{\pi /4}2{\sqrt {2}}(\cos {x}-\sin {x})\,dx} This equals 4.