to elaborate, what one normally does to find the integral over [a,b] of f(x) is the following:
first, one partitions [a,b] into "pieces" (sub-intervals).
next, one picks a value of f(x) in each "piece".
then one calculates the area of the rectangle with height f(xi*) (where the star means we picked xi in the i-th "piece" or subinterval "in some way" (yes, this is hand-waving, but often we make a standard choice, like the left-hand side, the right-hand side, or the mid-point), and width the length of our "piece" (sub-interval).
finally, we add all the rectangle areas together.
then, we repeat with a "finer chopping up" of our interval (more subintervals...perhaps these should be sub-sub-intervals? i dunno).
then, we take the limit as the "size" of our pieces goes to 0 (technically, as the "mesh" of our partition goes to 0), and we pray to the gods above that such a limit indeed exists, or else we're fugazi.
this is a labor-intensive process, fraught with gnashing of teeth, and pulling of hair (the cosmetic degradation is perhaps one reason why women are not as numerous in the mathematical sciences as they should be).
AND...to be sure we have "the" integral, we need to verify that we get the same answer (yes, the same limit), no matter HOW we "chop up the interval" OR choose the "representative height" (the xi* business). and this is a tall order, because there's just infinitely many ways to go about it (to be fair, the usual partitions are REGULAR partitions, where we just divide it into n equal pieces).
as you might suspect, continuous functions are our first choice for integrating, because as the sub-intervals get smaller, the different choices for f(xi*) matter less and less (they all "converge" to a common value, once the (sub-)intervals get "small enough").
well, it would be nice if there was an easier way.
and (for certain functions, which, fortunately for YOU, continuous functions fall into) that way is to "anti-differentiate": that is, guess a function F(x) that f(x) is the derivative OF:
f(x) = F'(x).
this is why differentiation is taught FIRST...to be any good at all with guessing what function f might be a derivative of, you ought to have some experience finding derivatives (you suspected all along that differentiation was going to be used later, right?).
it's not immediately clear that finding the slope of a curve, is somehow related to finding the area under a different curve. after all, slope is a "local" thing, and area is a "global" thing. but this is GREAT news, because slopes are relatively easy to compute, while areas are very difficult to compute (unless a region is very simple, like a square, for example).