wrong sign in the derivative