Hy vọng bạn học BĐT Cauchy rồi
\(x\ne-1\)
Đặt \(\left(x+1\right)^2=a>0\Rightarrow P=\frac{\left(a+2\right)\left(a+8\right)}{a}=\frac{a^2+10a+16}{a}\)
\(P=a+\frac{16}{a}+10\ge2\sqrt{a.\frac{16}{a}}+10=18\)
\(\Rightarrow P_{min}=18\) khi \(a=4\Leftrightarrow\left[{}\begin{matrix}x=1\\x=-3\end{matrix}\right.\)