It is not entirely clear what you wish to do.

I don't know the physics behind the question in detail, but I know how to differentiate. When you say that you want to find k by differentiation, I suppose you want to find a value of k that makes some function maximal or minimal? And a second question, exactly which of the given functions do you wish to differentiate?