Here d varies directly with cube of w, and inversely with p. So w cube have to be in the numerator and p have to be in the denominator. And we need to use k for constant of proportionality. Therefore the required equation is
In direct proportionality, the relatioship is linear that is as w increases, d increases and as w decreases d decreases and for inverse, it is opposite .