Consider the indefinite integral $$\int x^2 \,d(x^2).$$ It evaluates fairly easily to $\tfrac{x^4}{2} + C$. My question is about what happens when we start evaluating definite integrals with respect to these functions. In a specific example, how would $\displaystyle \int_0^2 x^2 \,d(x^2)$ be evaluated? Would it be: $$\int_0^2 x^2 \,d(x^2)=\left[\frac{1}{2}\cdot\left(x^2\right)^2\right]_0^2 =\frac{4}{2}-0=2 $$ with the limits applying to $x^2$, or would it be: $$\int_0^2 x^2 \,d(x^2)=\left[\frac{1}{2}\cdot x^4\right]_0^2 =\frac{16}{2}-0=8 $$ with the limits applying to $x$.
Hope someone can clarify, thanks in advance!