\[c^{3} + d^{3} - 3cd(c + d) =\]
\[= (c + d)\left( c^{2} - cd + d^{2} \right) - 3cd(c + d) =\]
\[= (c + d)\left( c^{2} - cd + d^{2} - 3cd \right) =\]
\[= (c + d)\left( c^{2} - 4cd + d^{2} \right).\]