I would like to know how partial derivatives under the integral work, and whether the obvious expected translation of the Leibniz integral rule is correct. I am asking this for the purpose as solving the same question I asked here. But I thought this more basic detail needed asking here in a separate question.
src1 claims an answer in the case with constant integral bounds.
src2 and src3 give answers but somehow in the process of answering, the problem got switched to the regular-d derivative, which defeats the whole point of my question.
src3 (skip to Fredrik's responses)
The Leibniz integral rule states $$ \frac{d}{dx} \int\limits_{a(x)}^{b(x)} f(x,t) dt = f(x,b(x))\frac{d}{dx}b(x) - f(x,a(x))\frac{d}{dx}a(x) + \int\limits_{a(x)}^{b(x)} \frac{\partial}{\partial x} f(x,t) dt $$ To me, the obvious translation to a partial derivative would be to simply replace all regular-d derivatives with partial-$\partial$ derivatives. $$ \frac{\partial}{\partial x} \int\limits_{a(x)}^{b(x)} f(x,t) dt =^{(??)} f(x,b(x))\frac{\partial}{\partial x}b(x) - f(x,a(x))\frac{\partial}{\partial x}a(x) + \int\limits_{a(x)}^{b(x)} \frac{\partial}{\partial x} f(x,t) dt $$ Is this correct? Is it even necessary? Since partial derivatives keep everything else constant, maybe it is always correct to say? $$ \frac{\partial}{\partial x} \int\limits_{a(x)}^{b(x)} f(x,t) dt =^{(??)} \int\limits_{a(x)}^{b(x)} \frac{\partial}{\partial x} f(x,t) dt $$
The $\infty$-dimension wrinkle is,
what if x is actually a continuous differentiable (and perhaps even monotonic) function of another variable y, which $f$ and the integral bounds may depend on? This would come from calculus-of-variations problems. So, $$x = g(y)$$ $$ \frac{\partial}{\partial x} \int\limits_{a(x(y),y)}^{b(x(y),y)} f(x(y),y,t) dt =^{(??)} f(x,b(x(y),y))\frac{\partial}{\partial x}b(x(y),y) - f(x,a(x(y),y))\frac{\partial}{\partial x}a(x(y),y) + \int\limits_{a(x(y),y)}^{b(x(y),y)} \frac{\partial}{\partial x} f(x(y),y,t) dt $$
This source also makes a useful statement, but it also has to do with regular-d derivatives src4
Important follow-up - the constant integrand case (not 'continuous'?)
So, the answer is that this is actually necesarry for the Liebniz Integral rule to be correct. See Abheziko's response to other q. It must be that $$ \frac{\partial}{\partial x} \int\limits_{a(x)}^{b(x)} f(x,t) dt = \int\limits_{a(x)}^{b(x)} \frac{\partial}{\partial x} f(x,t) dt $$
However, I think this assumes that f is continuous and that $\frac{df}{dt}$ is continuous?
So, what if $f(x,t) = t$ (or any other constant wrt x)?
Suddenly we have a break down of consistency. For example:
$$ \frac{\partial}{\partial x} \int\limits_{x}^{2x} t dt = \\ = \frac{\partial}{\partial x}(2x^2 - \frac{x}{2}) \\ = 4x- \frac{1}{2} \\ $$ Alternatively, by simply bringing the partial inside the integral... $$ \int\limits_{x}^{2x} \frac{\partial}{\partial x} t dt = \\ \int\limits_{x}^{2x} 0 dt = \\ 0 $$ and $4x-\frac{1}{2}\neq 0$ unless $x=\frac{-1}{8}$.
What assumption is being broken here?