Lời giải:
$xy+yz+xz=\frac{1}{2}[(x+y+z)^2-(x^2+y^2+z^2)]=\frac{1}{2}(a^2-b^2)$
$\frac{1}{x}+\frac{1}{y}+\frac{1}{z}=\frac{1}{c}$
$\Rightarrow xyz=c(xy+yz+xz)=\frac{1}{2}c(a^2-b^2)$
Khi đó:
$P=(x+y+z)^3-3(x+y)(y+z)(x+z)$
$=(x+y+z)^3-3[(x+y+z)(xy+yz+xz)-xyz]=(x+y+z)^3-3(xy+yz+xz)(x+y+z)+3xyz$
$=a^3-\frac{3}{2}a(a^2-b^2)+\frac{3}{2}c(a^2-b^2)$