You may have forgotten that is a constant and counted it as a variable. In formula III, C depends on only one variable, so it is not a joint variation.