\(C=6\left(c-d\right)\left(c+d\right)\left(c+d\right)+12\left(c-d\right)\left(c-d\right)\left(c+d\right)+c^3+3c^2d+3cd^2+d^3+8\left(c^3-3c^2d+3cd^2-d^3\right)\)
\(C=6\left(c^2-d^2\right)\left(c+d\right)+12\left(c-d\right)\left(c^2-d^2\right)+c^3+3c^2d+3cd^2+d^3+8\left(c^3-3c^2d+3cd^2-d^3\right)\)\(C=6\left(c^3+c^2d-cd^2-d^3\right)+12\left(c^3-c^2d-cd^2-d^2\right)+c^3+3c^2d+3cd^2+d^3+8\left(c^3-3c^2d+3cd^2-d^3\right)\)
\(C=27c^3-27c^2d-39cd^2-25d^3\)