Expand the Trigonometric Expression (d^2+3)(d^2+2d+1)