It looks like you simply need to factor out the variable $d$ from each expression. Note that $$(da+dbi)^n = (d(a+bi))^n = d^n(a+bi)^n.$$
It looks like you simply need to factor out the variable $d$ from each expression. Note that $$(da+dbi)^n = (d(a+bi))^n = d^n(a+bi)^n.$$