\(P\le\sqrt{\left(1+1\right)\left(x-1+9-x\right)}=\sqrt{16}=4\) (Bunhiacopxki)
\(\Rightarrow P_{max}=4\) khi \(x-1=9-x\Rightarrow x=5\)
\(P=\sqrt{x-1}+\sqrt{9-x}\ge\sqrt{x-1+9-x}=2\sqrt{2}\)
\(\Rightarrow P_{min}=2\sqrt{2}\) khi \(\left[{}\begin{matrix}x-1=0\\9-x=0\end{matrix}\right.\) \(\Rightarrow\left[{}\begin{matrix}x=1\\x=9\end{matrix}\right.\)