Rút gọn biểu thức:
a) \(A=\left(x-y\right)^3+\left(y+x\right)^3+\left(y-x\right)^3-3xy\left(x+y\right)\)
b) \(B=3x^2\left(x+1\right)\left(x-1\right)-\left(x^2-1\right)\left(x^4+x^2+1\right)+\left(x^2-1\right)^3\)
c) \(C=\left(x+y\right)\left(x^2-xy+y^2\right)+\left(x-y\right)\left(x^2+xy+y^2\right)-2x^3\)
d) \(D=\left(x+1\right)^3+\left(x-1\right)^3+x^3-3x\left(x+1\right)\left(x-1\right)\)