\(P^2=2x^2+2x+18-2\sqrt{\left[\left(x-2\right)^2+1\right]\left[\left(x+3\right)^2+4\right]}\)
\(P^2\le2x^2+2x+18-2\sqrt{\left[\left(x-2\right)\left(x+3\right)+2\right]^2}\)
\(P^2\le2x^2+2x+18-2\left(x^2+x-4\right)\)
\(P^2\le26\Rightarrow P\le\sqrt{26}\)
Dấu "=" xảy ra khi \(x=7\)