Since is a constant, we are not going to explicitly differentiate it, since , where k is a constant, is 0. For the first term , remember that .
For the second term, remember that . So if , then .
Where did you get the idea that was a constant? is the only variable in the problem! And what in the world does the derivative of have to do with this?