Ta có : \(P=\frac{1}{\left(a+b\right)^3}\left(\frac{1}{a^3}+\frac{1}{b^3}\right)+\frac{3}{\left(a+b\right)^4}\left(\frac{1}{a^2}+\frac{1}{b^2}\right)+\frac{6}{\left(a+b\right)^5}\left(\frac{1}{a}+\frac{1}{b}\right)\)
=> \(P=\frac{1}{\left(a+b\right)^3}\left(\frac{a^3+b^3}{a^3b^3}\right)+\frac{3}{\left(a+b\right)^4}\left(\frac{a^2+b^2}{a^2b^2}\right)+\frac{6}{\left(a+b\right)^5}\left(\frac{a+b}{ab}\right)\)
=> \(P=\frac{1}{\left(a+b\right)^3}\left(\frac{a^3+b^3}{1}\right)+\frac{3}{\left(a+b\right)^4}\left(\frac{a^2+b^2}{1}\right)+\frac{6}{\left(a+b\right)^5}\left(\frac{a+b}{1}\right)\)
=> \(P=\frac{a^3+b^3}{\left(a+b\right)^3}+\frac{3\left(a^2+b^2\right)}{\left(a+b\right)^4}+\frac{6\left(a+b\right)}{\left(a+b\right)^5}\)
=> \(P=\frac{\left(a+b\right)\left(a^2+ab+b^2\right)}{\left(a+b\right)^3}+\frac{3\left(a^2+b^2+2a\right)-6a}{\left(a+b\right)^4}+\frac{6\left(a+b\right)}{\left(a+b\right)^5}\)
=> \(P=\frac{\left(a+b\right)\left(a^2+ab+b^2\right)}{\left(a+b\right)^3}+\frac{3\left(a+b\right)^2}{\left(a+b\right)^4}+\frac{6\left(a+b\right)}{\left(a+b\right)^5}-\frac{6}{\left(a+b\right)^4}\)
=> \(P=\frac{a^2+ab+b^2}{\left(a+b\right)^2}+\frac{3}{\left(a+b\right)^2}+\frac{6}{\left(a+b\right)^4}-\frac{6}{\left(a+b\right)^4}\)
=> \(P=\frac{a^2+ab+b^2}{\left(a+b\right)^2}+\frac{3}{\left(a+b\right)^2}=\frac{2a^2+4ab+2b^2}{\left(a+b\right)^2}-\frac{a^2+b^2}{\left(a+b\right)^2}\)
=> \(P=2-\frac{a^2+b^2}{\left(a+b\right)^2}=1+\frac{-2}{\left(a+b\right)^2}\)