Factorize x3−8y3+27z3+18xyz
x3−8y3+27z3+18xyz=(x)3+(−2y)3+(3z)3−3×x×(−2y)(3z)=(x−2y+3z)(x2+4y2+9z2+2xy+6yz−3zx)