how to differentiate complex powers