Getting rid of -1 in exponents for power rule