We do not know for sure that is constant, so you should leave it in a form involving . If happens to be constant the derivative will still work out to be 0.
So in this case, assuming you typed the problem correctly and we are differentiating with respect to , (D) would be correct.