This concept I have asked a few people, but none of them are able to help me understand, so hope that there's a hero can save me from this problem!!!
My question occurs during substitution process, for example, sometimes we let $x = π - u$. Then after some manipulation of numbers, we then let $x = u$ and integrate the guy that we want to integrate. That doesn't seem intuitive to me, isn't that we are changing the definition of x by omiting the rule of arithematic? $x = u \implies x = π - x$. Why that operation doesn't affect the integration result?
Here is a concrete example illustrate my question
$$ \int^{π}_{0} \frac{x\sin(x)}{(1+\cos^2(x))} dx $$ then we let $x = π - u \implies dx = -du$ $$= \int^{π}_{0} \frac{(π - u)\sin(u)}{(1+\cos^2(u))} du$$ $$= \int^{π}_{0} \frac{π\sin(u)}{(1+\cos^2(u))} du - \int^{π}_{0} \frac{u\sin(u)}{(1+\cos^2(u))} du$$ And here (downward) is the part that I don't understand!!! (the x in _x_sin(x) in RHS)
we then let $x = u$ $$\int^{π}_{0} \frac{x\sin(x)}{(1+\cos^2(x))} dx = \int^{π}_{0} \frac{π\sin(u)}{(1+\cos^2(u))} du - \int^{π}_{0} \frac{x\sin(x)}{(1+\cos^2(x))} dx$$
move the rightmost guy to LHS and integrate RHS, solve the problem.
$$2\int^{π}_{0} \frac{x\sin(x)}{(1+\cos^2(x))} dx = \int^{π}_{0} \frac{π\sin(u)}{(1+\cos^2(u))} du$$
Why can we let $x = u$? isn't that we have given it the value $pi - u$ in the beginning?