I have the integral from $-\infty$ to $y^2$ of the function $(e^{-|x|})$ and I need to find the derivative of this. That is,
$$\frac{d}{dy} \int_{-\infty}^{y^2} e^{-|x|}\,dx$$
Usually derivative of integral is just the function, but I'm not sure in this case. Should I set up limits or how else should I approach this?
I thought that the derivative of an integral from $-\infty$ to $y^2$ of $(e^{-|x|}dx)$ would be $e^{-|x|}$
Let $$F(u)=\int_{-\infty}^u e^{-|x|}\,dx.$$ We want $\frac{d}{dy}(F(y^2))$. Let $u=y^2$. By the Chain Rule, we have $$\frac{d}{dy}(F(y^2))=2y\frac{d}{du} F(u).$$
By the Fundamental Theorem of Calculus, we have $\frac{d}{du}F(u)=e^{-|u|}$.
Remark: If the $-\infty$ part makes you uncomfortable, note that $F(y^2)=\int_{-\infty}^0 e^{-|x|}\,dx+\int_0^{y^2} e^{-|x|}\,dx$, and the first integral is just a constant.