The derivative of a quantity raised to the n is n times that original quantity raised to the n-1, times the derivative of the quantity.