How do you integrate 3xex2+1dx?

1 Answer

In this case, the integrand is the derivative of a function composition (up to a multiplicative constant):
g(y)=ey
f(x)=x2+1
g(f(x))=ex2+1
ddx[g(f(x))]=ddx[ex2+1]=2xex2+1

The only difference is the multiplicative constant (it's 2 instead of 3), so we can rewrite the integral to look like the derivative of ex2+1 by working with multiplicative constants:
3xex2+1dx=322xex2+1dx=32ex2+1+C


Another (very similar) way of solving this was to consider the substitution u(x)=x2+1. We could relate the two differentials du=2xdx and rewrite the integral in terms of u:
3xex2+1dx=32ex2+1(2xdx)=32eudu=32eu+C
Now we could return back to x:
32eu+C=32ex2+1+C