What is the difference between the below notations? I've often come across two ways of integrating which I think mean the same thing.

*

*$\displaystyle \int f(x) dx$

*$\displaystyle \int_{-\infty}^\infty f(x) dx$
Do these two mean the same thing because, both seem to integrating the function over the whole domain. If yes, then why don't we just use one of the two? And if no, then what's the difference?
 A: $\int f(x)dx$, without bounds, is taken to mean the antiderivative of $f$. It yields a family of functions, all of which have $f$ as their derivative. It's often called "indefinite integral", and uses integral notation, because of its close connection to (definite) integrals through the fundamental theorem of calculus.
$\int_{-\infty}^\infty f(x)dx$, with bounds (finite or infinite, or even just a domain, like so: $\int_{\Bbb R}f(x)dx$), is a (definite) integral, and yields a single number (assuming the integral exists).
A: I guess that your confusion is coming from some common notation in theoretical physics. They usually drop the infinite bounds of the definite integral. For instance in expressions like:
$$
\tilde{\psi}(k) = \int \psi(x) \, e^{ikx} \ \mathrm{d}x
$$
The integration domain of $(-\infty, \infty)$ is implicit.
A: I will just try to give a counter-example. Let's assume that $\int f(x) dx=\tan^{-1}x + c$ . Then, you can see the difference between the two expressions,$\int f(x)$dx being a family of curves whereas $\displaystyle \int_{-\infty}^\infty f(x) dx$ is a constant.
