What is $dx$ in integration?
The motivation behind integration is to find the area under a curve. You do this, schematically, by breaking up the interval $[a, b]$ into little regions of width $\Delta x$ and adding up the areas of the resulting rectangles. Here's an illustration from Wikipedia:
Then we want to make an identification along the lines of
$$\sum_x f(x)\Delta x\approx\int_a^b f(x)\,dx,$$
where we take those rectangle widths to be vanishingly small and refer to them as $dx$.
There are multiple ways of explaing what the $dx$ means.
Practical explanation: It says we are integrating over variable $x$. If we were to integrate over variable $t$, we would write $dt$ instead, and so on.
Infinitesimal explanation: We can think of an integral as the limit of a sum: The area under the graph of a (positive) function $f$ can be approximated by the sum $\sum_x f(x) \Delta x$, and in the limit, we make $\Delta x$ arbitrarily small and call it $dx$ (an "infinitesimal" quantity). Jonathan's answer explain that in detail.
Advanced explanation: In vector analysis, $dx$ takes meaning as a differential form (roughly, something that behaves like an infinitesimaly small piece of a curve).
Leibniz, who introduced this notation in the 17th century, thought of $dx$ as an infinitely small increment of $x$, and at least as a heuristic, that is an immensely useful idea.
However, note some other points:
- $\displaystyle\int f(x,y)\,dx$ differs from $\displaystyle\int f(x,y)\,dy$. In one case, one integrates a function of $x$, and $y$ is constant; in the other these roles are reversed and one might be integrating a very different function.
- If $f(x)$ is in meters per second and $dx$ is in seconds, then $f(x)\,dx$ is in meters, and so is the integral. These things should be dimensionally correct, and are not so without the "$dx$".
- Sometimes one has a dot-product or a cross-product or a matrix product or some other sort of product between $f(x)$ and $dx$. How would one specify that without the "$dx$" written there?
- When doing substitutions, it becomes important to distinguish between $dx$ and $du$, etc.