Can someone explain to me how to do the following problem please?:

"Find the values of p for which the integral converges and evaluate the integral for those values of p."

Integral of 1/x^p dx on the interval [0,1]

Any help would be greatly appreciated!

Thanks in advance!