Before I proceed, I am a high school student and have just started learning calculus.
OK
Now, I understand that an integral is basically the opposite of a derivative. I also understand that it finds the area under the graph of a function.
Based on what I understood, while integrating you take a very small change in the variable $x$ (or maybe $\mathrm{d}x$) such that the change in $f\left(x\right)$ is constant and therefore calculate the area of the rectangle and add the areas...
However, my question here is how does the integration tool include all the areas bound under its limit, it makes less sense to me. For example: $$\int_2^4 x\,\mathrm{d}x$$
Solving the integral:
You get
$$\frac{x^2}{2}$$
with limits $4$ and $2$.
So, now you substitute the limits and subtract them .....
but this is what feels weird, it looks like I'm only subtracting the area at $4$ and $2$,
How does this tool work
(Any response would be helpful) EDIT: (i want to make my question a bit more clear)
[My question is basically, how does integration include all the areas between the interval, i have seen a couple of proofs on the fundamental theorem of calculus however, that just seemed to explain why we subtract while integrating (to remove the constant term (i think).The problem i guess i am facing is that there is no hint of a summation of areas happening,and this is exactly what my question is -how do we know the areas are included??]