I am reading this text about how to solve integrals for functions that are symmetric (even or odd):
Here's the proof:
Am I right that they left out some useful equivalences like: $dx = -du$? Because we eventually u substitute $dx$ for $-du$ right?
Also I am most confused about this line:
How did we get to: $$-\int_0^a f(-u)(-du)$$
But how did the -a change to an a? Is it because there are 2 ways to evaluate integrals, one of them being this concept:
How did the negatives cancel in the last part? Is it because the negative in front of $-du$ cancelled with the negative outside of the integral?
Also why are we subbing u for -x?
Also, it's weird that they write "we make the substitution $u = -x$ when really we're subbing the $x = -u$ right?



Hint:
The substitution $x=-u$ is the same as $u=-x$ and implies that $dx= -du$.
also if limit of integration is $x=a$ it becomes $-u=a$ that is equivalent to $u=-a$.