Do \(x^2+y^2=1\), đặt \(\left\{{}\begin{matrix}x=sina\\y=cosa\end{matrix}\right.\)
\(P=\left(3-sina\right)\left(3-cosa\right)=9-3\left(sina+cosa\right)+sina.cosa\)
Đặt \(sina+cosa=t\Rightarrow t\in\left[-\sqrt{2};\sqrt{2}\right]\)
\(t^2=1+2sina.cosa\Rightarrow sina.cosa=\dfrac{t^2-1}{2}\)
\(P=9-3t+\dfrac{t^2-1}{2}=\dfrac{1}{2}t^2-3t+\dfrac{17}{2}\)
Xét hàm \(f\left(t\right)=\dfrac{1}{2}t^2-3t+\dfrac{17}{2}\) trên \(\left[-\sqrt{2};\sqrt{2}\right]\)
\(f'\left(t\right)=t-3=0\Rightarrow t=3\notin\left[-\sqrt{2};\sqrt{2}\right]\)
\(f\left(-\sqrt{2}\right)=\dfrac{19+6\sqrt{2}}{2}\) ; \(f\left(\sqrt{2}\right)=\dfrac{19-6\sqrt{2}}{2}\)
\(\Rightarrow P_{min}=f\left(\sqrt{2}\right)=\dfrac{19-6\sqrt{2}}{2}\) khi \(t=\sqrt{2}\)