#d^2+6d+9 = (d+3)^2#
#2(d^2-9) = 2(d^2-3^2) = 2(d-3)(d+3)#
#2(d-3)(d+3)^2# will be divisible by both of these as it includes all the factors of each in the multiplicity that they occur in each. It is the simplest polynomial that does and therefore is the LCM.
#2(d-3)(d+3)^2#
#=2(d^2-9)(d+3)#
#=2(d^3+3d^2-9d-27)#
#=2d^3+6d^2-18d-54#