I have the task: find maximum an minimum of $$f(x) = x_1(\pi - x_1)\sin x_2 + x_2 \cos x_1$$ on X where $$X = \{x\in R^2\ |\ x_1\in [0, \pi], x_2 \ge 0\}.$$ First thing i did was system : \begin{equation*} \begin{cases} \frac{\partial f(x)}{\partial x_1} = 0\\ \frac{\partial f(x)}{\partial x_2} = 0\\ \end{cases} \end{equation*} and i got \begin{equation*} \begin{cases} \sin x_2(\pi - 2x_1) - x_2\sin x_1 = 0\\ (\pi x_1 - x_1^2)\cos x_2 + \cos x_1 = 0\\ \end{cases} \end{equation*} and i didn't solve it .
Wolfram says:
