Show solutionHide solution
We want to factorise
\[27x^3+y^3+z^3-9xyz.\]First, write the first term as a cube:
\[27x^3=(3x)^3.\]So the expression becomes
\[(3x)^3+y^3+z^3-9xyz.\]Now recall the identity
\[a^3+b^3+c^3-3abc=(a+b+c)(a^2+b^2+c^2-ab-bc-ca).\]Take
\[a=3x,\qquad b=y,\qquad c=z.\]Then
\[3abc=3(3x)(y)(z)=9xyz,\]which matches the last term. Therefore,
\[27x^3+y^3+z^3-9xyz=(3x+y+z)\bigl((3x)^2+y^2+z^2-(3x)y-yz-z(3x)\bigr).\]Simplify the second factor:
\[(3x)^2=9x^2,\qquad (3x)y=3xy,\qquad z(3x)=3xz.\]Hence
\[27x^3+y^3+z^3-9xyz=(3x+y+z)(9x^2+y^2+z^2-3xy-yz-3xz).\]Thus the required factorisation is
\[\boxed{(3x+y+z)(9x^2+y^2+z^2-3xy-yz-3xz)}.\]

