\(f\left(x\right)=\frac{x^2}{2}-4\ln\left(3-x\right)\) trên đoạn \(\left[-2;1\right]\)
Ta có :
\(f'\left(x\right)=x+\frac{4}{3-x}=\frac{-x^2+3x+4}{3-x}=0\Leftrightarrow-x^2+3x+4=0\)
\(\Leftrightarrow\left[\begin{array}{nghiempt}x=-1\in\left[-2;1\right]\\x=4\notin\left[-2;1\right]\end{array}\right.\)
Mà :
\(\begin{cases}f\left(-2\right)=2-4\ln5\\f\left(-1\right)=\frac{1}{2}-8\ln2=\frac{1-16\ln2}{2}\\f\left(1\right)=\frac{1}{2}-4\ln2=\frac{1-8\ln2}{2}\end{cases}\) \(\Rightarrow\begin{cases}Max_{x\in\left[-2;1\right]}f\left(x\right)=\frac{1-8\ln2}{2};x=1\\Min_{x\in\left[-2;1\right]}f\left(x\right)=\frac{1-16\ln2}{2};x=-1\end{cases}\)