Set , so . This integration by substitution gives
The antiderivative is taken on either interval separated by . Differentiating verifies the sign and factor .

There are unlisted articles, also show them or only show them.