Think of it in terms of something simpler. You know that . But is NOT equal to for every function f! That would make integration trivial. What you are doing is essentially a substitution. And if you let u= f(x), then you also have to let du= f'(x)dx.