the cosine rule is
First the tricky bit:
similar to number 2, we use the product rule again on but this time with respect to c...this time yielding:
P.S. Someone more experienced might want to check this for you. I think it's ok though.