I know that this should not be done, but I was wondering if there is an intuitive reason why a function of x should not be in an integral limit.
In the same vein, suppose I had limits of an jntegral with respect to x, which were functions of a variable a. Now if I were to take the derivative of this integral with respect to a, I cannot pull the derivative inside of the integral sign without making some corrections (I have just read about partial derivatives and do not have a full understanding of them yet, but I know there are extra terms when you 'differentiate under the integral sign').
I think the answer underlying both of the above points stems from the same idea, which is why I grouped them together in one question.