Find all values of k for which integral of x^2 from 2 to k =0 ?

#int_2^kx^2dx=0#

I have no idea how to do this and it is for a test tomorrow... I know that the answer is 2 but I don't understand why