Is the differentiation of the law of cosines ($c^2= a^2 + b^2 - 2ab\cos C$) this? a, b, c, A, B, and C are functions of time t.
$$2c \frac{dc}{dt} = 2a \frac{da}{dt} + 2b\frac{db}{dt} - 2b \cos C \frac{da}{dt} - 2 a \cos C \frac{db}{dt} + 2ab \sin C \frac{dC}{dt}$$