While searching for something totally unrelated to this, I came a cross a website that derived it in this fashion: the instanteous power in a capacitor is given by $$p_c= v_c(t)\cdot i_c$$
since $$i_c(t) = C\frac{dv_c}{dt}$$, this becomes $$p_c = v_c(t)\cdot C\frac{dv_c}{dt}$$
No issues so far....but, he then proceeds to write: $$\frac{dw_c(t)}{dt}=\frac{d}{dt}[\frac{1}{2}Cv_c^2(t)]$$.
power is the derivative of energy, so I get the left hand side of the equation. However, how does $$C\frac{dv_c}{dt}\cdot v_c(t)=\frac{d}{dt}[\frac{1}{2}Cv_c^2(t)]$$ on the right hand side of the equation?