Consider heat conduction in a rod described by $$ \frac{\partial u}{\partial t} = \kappa \frac{\partial^2 u}{\partial x^2},$$ with constant thermal conductivity $\kappa$. Show that if $u$ satisfies this equation, $u^2$ satisfies $$\frac{\partial u^2}{\partial t} = 2\kappa\left[\frac{\partial}{\partial x}\left(u\frac{\partial u}{\partial x}\right)-\left(\frac{\partial u}{\partial x}\right)^2\right].$$
I have no clue how to show the above. Should I use the chain rule and product rule somehow, or is it something else entirely? Help would be greatly appreciated.