The recognition pattern
\[
\boxed{
\int f(g(x))g'(x)\,dx
=
\int f(u)\,du
}
\]
Set \(u=g(x)\), then calculate \(du=g'(x)\,dx\).
Example 7 · Basic substitution
\[
\int2x(x^2+4)^5dx
\]
Let
\[
u=x^2+4.
\]
Then
\[
du=2x\,dx.
\]
So
\[
\int u^5du=\frac{u^6}{6}+C.
\]
\[
\boxed{\frac{(x^2+4)^6}{6}+C}
\]
Example 8 · Coefficient adjustment
\[
\int x(3x^2+1)^4dx
\]
Let
\[
u=3x^2+1,\qquad du=6x\,dx.
\]
Therefore
\[
x\,dx=\frac16du.
\]
\[
\frac16\int u^4du
=
\frac{u^5}{30}+C.
\]
\[
\boxed{\frac{(3x^2+1)^5}{30}+C}
\]
Example 9 · Exponential recognition
\[
\int(2x+3)e^{x^2+3x}dx
\]
Let
\[
u=x^2+3x.
\]
Then
\[
du=(2x+3)dx.
\]
Hence
\[
\int e^u\,du=e^u+C.
\]
\[
\boxed{e^{x^2+3x}+C}
\]
Example 10 · Important pattern
\[
\boxed{
\int(2ax+b)e^{ax^2+bx+c}dx
=
e^{ax^2+bx+c}+C
}
\]
This works because the derivative of
\(ax^2+bx+c\) is exactly \(2ax+b\).
\[
\int(6x-4)e^{3x^2-4x+7}dx
=
\boxed{e^{3x^2-4x+7}+C}.
\]
Example 11 · Logarithmic recognition
\[
\int\frac{2x+1}{x^2+x+7}dx
\]
Let
\[
u=x^2+x+7.
\]
Since
\[
du=(2x+1)dx,
\]
the integral becomes
\[
\int\frac1u\,du=\ln|u|+C.
\]
\[
\boxed{\ln(x^2+x+7)+C}
\]
because \(x^2+x+7>0\) for all real \(x\).
Example 12 · When the derivative is only a multiple
\[
\int\frac{5x}{x^2+9}dx
\]
Let \(u=x^2+9\), so \(du=2x\,dx\).
Therefore
\[
\frac52\int\frac1u\,du.
\]
\[
\boxed{\frac52\ln(x^2+9)+C}
\]