Prove, from first principles, that the derivative of kx3 kx^3\,kx3 is 3kx23kx^23kx2, where k k\,k is a constant.