Given known integrand of the form: $a(f(u))$ Find:
$$\int a (f(u))du$$
Let substitution be $u=g(v)$ such that $f(g(v))=h(v)$. Then $f'(u)du=h'(v)dv\Rightarrow du=\frac{h'(v)}{f'(u)}dv$ (If $\exists u,f'(u)=0$, then $\exists v, h(v)=C$)
Therefore: $\int a (f(u))du = \int \frac{a(f(g(v)))h'(v)}{f'(g(v))}dv= \int \frac{a(h(v))h'(v)}{f'(g(v))}dv$. Let $A(x)=\int a(x) dx$. Then using integration by parts
$$\int \frac{a(h(v))h'(v)}{f'(g(v))}dv=\frac{A(h(v))}{f'(g(v))}+\int \frac{A(h(v))}{(f'(g(v)))^2}f''(g(v))g'(v)dv=\frac{A(f(u))}{f'(g(v))}+\int \frac{A(f(u))}{(f'(u))^2}f''(u)du$$