Solution (source code)

= Solution

Scaling every root scales its elementary <symmetric polynomials> by the corresponding powers of $d$. Therefore the <monic polynomial> is
$$
\boxed{X^3+dc_1X^2+d^2c_2X+d^3c_3.}
$$
This remains valid for $d=0$, when all three roots are zero; deriving it by symmetric coefficients avoids dividing by $d$.