You may have thought that because the variable in formula II was squared it was not a joint variation. In formula I, d depends on only one variable, so it is not a joint variation.