I am trying to get a better understanding on how we can manipulate the infinitesimal dx in an integral $$\int f(x) dx$$
I have come across the following $$ d(\cos (x)) = -\sin(x) dx$$
Therefore
$$\int^{x=2\pi}_{x=0} dx \sin(x) \cos(x) = - \int^{x = 2\pi}_{x=0} d(\cos(x)) \cos(x) = - \dfrac{1}{2} [ \cos^{2}(x)]^{x=2\pi}_{x=0} = -\dfrac{1}{2}[1-1] = 0$$
This looks to me like the chain rule can be applied to infinitesimals in analogy to differentiation.
However, today I'm trying to solve the following problem : prove $$\delta(ax) = \dfrac{\delta(x)}{|a|}$$
Following the hint I looked at $$\int d(ax)\delta(ax) = 1 = \int d(ax)\delta(-ax)$$ Since $$\int d(ax)\delta(ax) = 1 \quad \text{and} \quad \delta(x) = \delta(-x)$$
From this it would seem $$d(ax) = |a|dx$$ giving $$\int d(ax)\delta(ax) = |a|\int dx \delta(ax) = |a|\int dx \delta(-ax) = \int dx \delta(x) = 1$$ as expected.
I would have naively assumed $d(ax) = a \space dx$
In summary, I have no idea how to treat d(f(x)), and I'm not sure where to look for information. Could someone help me gain a better understanding ? Unfortunately I have only taken a few undergraduate maths courses so far, so I couldn't understand anything too complex.