Take an indefinite integral on $f(x)$ is $x$ bound in this expression, as on the other side we get an expression that depends on $x$ for example $$\int f(x) dx = e^x+c$$
We get an expression that depends on $x$ but subsituting for $x$ in left -hand expression is entirely meaningless.