I am two weeks into my first stats course and already I have noticed that, because my class ignores measure theory, the instructors are being sloppy about explaining which kinds of functions are Riemann integrable and which ones require more advanced tools. In general, I feel a lot of handwaving is going on and it seems like this is a generally accepted practice amongst the stat teachers.
For example of (not necessarily Riemann) handwaving,
$$\int e^{-x^2} dx$$ cannot be expressed in terms of elementary functions but the definite integral
$$\int_{-\infty}^{\infty}e^{-x^2} dx$$
can be.
Another example would be the Dirac delta function, which isn't a function but formed through "distributions" or something.
What are some examples of frequently used rules like these whose calculus is actually much trickier than one might expect?