A function is given by:
$$f(x) = \cases{e^x &$: x < 0$ \\ \cos(x) &: $x \ge 0$ }$$ Find $$\displaystyle{\int_{-\infty}^{\pi/2}f(x)dx}$$
Here comes my question - can I simply break this into two integrals - one from $-\infty$ to $0$ and the second one from $0$ to $\pi/2$ or I firstly have to prove that this function is integrable at $x = 0$, since it is not uniformly defined in any neighborhood of $x = 0$?
Piecewise continuous functions are integrable (assuming the pieces are integrable on the corresponding domains because you're dealing with improper integrals), so you can split the integral up the way you want.