It is important to note that when we say proportional, the increase in the value of the independent variable (in this case, distance x) will also increase the value of the dependent variable (density, d). Using k as the proportionality constant, the answer to this question would then be,
d = kx