Math question

i want to differentiate, find slope of, this equation:
c^2 = a^2 + b^2 - 2ab*cos C
^ c and ^ C are different.
you’ve probably guessed it’s law of cosine.

i can do the first part, but what about 2ab*cos C?
thanks in advance.