\(\left(3x+1\right)^2-\left(3x-1\right)^2\)
\(=\left(3x+1-3x+1\right)\left(3x+1+3x-1\right)\)
\(=2\cdot6x\)
\(=12x\)
_________
\(\left(x+y\right)^2-\left(x-y\right)^2\)
\(=\left(x+y+x-y\right)\left(x+y-x+y\right)\)
\(=2x\cdot2y\)
\(=4xy\)
\(\left(x+y\right)^3+\left(x-y\right)^3\)
\(=\left(x+y+x-y\right)\left[\left(x+y\right)^2-\left(x+y\right)\left(x-y\right)+\left(x-y\right)^2\right]\)
\(=2x\cdot\left(x^2+2xy+y^2-x^2+y^2+x^2-2xy+y^2\right)\)
\(=2x\cdot\left(x^2+3y^2\right)\)
______
\(x^3+y^3+z^3-3xyz\)
\(=\left(x+y\right)^3-3xy\left(x-y\right)+z^3+3xyz\)
\(=\left[\left(x+y\right)^3+z^3\right]-3xy\left(x+y+z\right)\)
\(=\left(x+y+z\right)^3-3z\left(x+y\right)\left(x+y+z\right)-3xy\left(x-y-z\right)\)
\(=\left(x+y+z\right)\left[\left(x+y+z\right)^2-3z\left(x+y\right)-3xy\right]\)
\(=\left(x+y+z\right)\left(x^2+y^2+z^2+2xy+2xz+2yz-3xz-3yz-3xy\right)\)
\(=\left(x+y+z\right)\left(x^2+y^2-xy-xz-yz\right)\)