# Is the integral of a smooth function continuous?

Suppose I have a function $f(a,x):\mathbb{R}^2\rightarrow\mathbb{R}$ that is smooth (i.e. infinitely differentiable) over its entire domain $\mathbb{R}^2$. Let $I(a)=\int_{-\infty}^{\infty}f(a,x)dx$. Suppose that we know that $|I(a)|<\infty$ for all $a\in \mathbb{R}$. Is $I(a)$ continuous? If not, are there additional conditions on $f(a,x)$ that can guarantee continuity of $I(a)$?

-

Consider e.g. $$f(a,x) = e^{-(x - 1/a)^2} \ \text{for}\ a \ne 0, \ f(0,x) = 0$$
Then $I(a) = \sqrt{\pi}$ for $a \ne 0$ but $I(0) = 0$.