Ta có :
\(f'\left(x\right)=2x\ln x-x=x\left(2\ln x-1\right)=0\)
\(\Leftrightarrow\left[\begin{array}{nghiempt}x=0\\\ln x=\frac{1}{2}\ln\sqrt{e}\end{array}\right.\)
\(\Leftrightarrow\left[\begin{array}{nghiempt}x=0\notin\left[\frac{1}{e};e^2\right]\\x=\sqrt{e}\in\left[\frac{1}{e};e^2\right]\end{array}\right.\)
Mà : \(\begin{cases}f\left(\frac{1}{e}\right)=-\frac{1}{e^2}\\f\left(e\right)=\frac{e}{2}\\f\left(e^2\right)=2e^4\end{cases}\) \(\Rightarrow\begin{cases}Max_{x\in\left[\frac{1}{e};e^2\right]}f\left(x\right)=2e^4;x=e^2\\Min_{x\in\left[\frac{1}{e};e^2\right]}f\left(x\right)=\frac{-1}{e^2};x=\frac{1}{e}\end{cases}\)