Problem: Evaluate the integral with parameter
Solution: This integral clearly fits into the box integration by parts, namely it is the type "removing powers". We therefore apply the appropriate method.
The integral for g is elementary, just a simple linear substitution, and we do not let the parameter bother us.
An experienced integrator would do it right ahead in his head. However, we
have a problem here, what if
Now we check on the case
That was really simple. Now we put it together.