1/(x2) can be written as x-2
We know that to differentiate you need to multiply by the value of the old power and minus 1 from it. This means dy/dx of y=x-2 is -2x-3=-2/(x3)
To integrate you add one to the power and divide by the new power and add a constant. So the integral is (1/-1)x-1+c=-1/x + c