If u(x) is a fuction of x, then, by the chain rule, the derivative of [itex]u^2[/itex] is 2u times the derivative of u.
If y is a function of x, then the derivative of [itex](y')^2[/itex], with respect to x, is [itex]2y'[/itex] times the derivative of y' which is, of course, y''. That is, the derivative if [itex](y')^2[/itex] is [itex]2y' y''[/itex].