The dot product of two functions, $f$ and $g$ in $C[a,b]$ is given by
$$f \cdot g = \int_a^b p(x)f(x)g(x)dx$$
where $p(x)$ is the weight function. If $p(x) = 1$ then,
$$f \cdot g = \int_a^b f(x)g(x)dx$$
The dot product for vectors is the sum of the multiplication of like components. Functions that are continuous over an interval can have infinite many values because there are infinitely many values you can put into the function. That is why an integral is used in the above definition above of the dot product of two functions.
My question involves the $dx$. I know it tells you what variable you are integrating over, but in Calc I, $dx$ had the purpose of giving a small length to a rectangle so that you could sum up all the areas of the small rectangles. If the dot product of $f$ and $g$ was defined as
$$f \cdot g = \int_a^bf(x)g(x)$$
without the differential, it would make sense to me, but you need a differential in all integrals. So why is the dot product the area under the function $q(x) = f(x)g(x)$? This question comes up a lot, especially in physics, since my professors will say we need to sum up something, but they just tack on the $d$ whatever.