Разложите на множители 3d+2-8d^2-12d^3
3d-12d^3+2-8d^2=3d(1-4d^2)+2(1-4d^2)=3d(1-2d)(1+2d)+2(1-2d)(1+2d)