The indefinite integral is .
Apply sum and difference rule in integration:.
.
Let
Apply derivative on each side with respect to .
.
Substitute and
in
.
Apply formulae: and
.
Substitute .
.
.
.