The first order derivative function is
,
and
.
Anti derivative of
is
.
Therefore the anti derivative of
is

, where
is a constant.
Substitute
and
in
.

Now substitute
in
.
Therefore the antiderivative of
is
.
Substitute
and
in
.

Now substitute
in
.
Therefore the antiderivative of
is
.
when
.
when
.