Maximum and Minimum on Closed Intervals

Find the absolute max of the function f(x)=cos⁡x⋅e−xf\left(x\right)=\cos x\cdot e^{-x} on [0,π]\left[0,\pi\right]
More Maximum and Minimum on Closed Intervals Questions: