I want to know generally how we differentiate a function $F(x)$ in the following form, $$F(x)=\int_a^x f(x,t)dt$$ For example, if we can work out the explicit form of $F(x)$ as the example below $$F(x)=\int_0^x e^{xt}dt=\frac{e^{x^2}-1}{x}$$ if we differentiate $F(x)$, we get $$\frac {dF(x)}{dx}=\frac{2x^2e^{x^2}-e^{x^2}+1}{x^2}$$ This simple example shows a very different approach from the case when we different $F(x)=\int_a^xf(t)dt$, which simply gives us $f(x)$.
Now suppose I have the formula for calculating the money I get after $T$ years, $P(T)$ with continuous depositing, of which the rate is given by $S(t)$, and continuous compounding, of which the annual rate is given by $r$. The formula is $$P(T)=\int_0^TS(t)e^{r(T-t)}dt$$ Since the $S(t)$ is not given explicitly, then how do I get an expression for $\frac{dP(T)}{dT}$?
I have tried using the first principle by $$\frac{dP(T)}{dT}=\lim_{\Delta T\to0} \frac{P(T+\Delta T)-P(T)}{\Delta T}$$ and I could not figure it out. Is there a way to find an expression for the derivative $\frac{dP(T)}{dT}$?
We have that $$ \eqalign{ & F(x + dx) - F(x) = \int_{t = a}^{x + dx} {f(x + dx,t)dt} - \int_{t = a}^x {f(x,t)dt} = \cr & = \int_{t = a}^x {\left( {f(x + dx,t) - f(x,t)} \right)dt} + \int_{t = x}^{x + dx} {f(x + dx,t)dt} = \cr & = \left( {\int_{t = a}^x {f_x (x,t)dt} } \right)dx + f(x + dx,x)dx = \cr & = \left( {\int_{t = a}^x {f_x (x,t)dt} } \right)dx + f(x,x)dx + f_x (x,x)\left( {dx} \right)^2 \quad \Rightarrow \cr }$$
So in your example $$ \eqalign{ & {d \over {dx}}F(x) = \int_{t = 0}^x {{\partial \over {\partial x}}e^{\,x\,t} dt} + e^{\,x^{\,2} } = \cr & = \int_{t = 0}^x {te^{\,x\,t} dt} + e^{\,x^{\,2} } = \left. {{{e^{\,x\,t} \left( {tx - 1} \right)} \over {x^2 }}\,} \right|_{t = 0}^x + e^{\,x^{\,2} } = \cr & = {{e^{\,x^{\,2} } \left( {\,x^{\,2} - 1} \right)} \over {x^2 }} + {1 \over {x^2 }} + e^{\,x^{\,2} } = {{\,2e^{\,x^{\,2} } x^{\,2} - e^{\,x^{\,2} } + 1} \over {x^2 }} \cr} $$