Chapter 09
Integral: Area and Accumulation, a Bridge to Probability
Integration is the inverse of differentiation. It is used for area under a curve, cumulative quantities, and for probability and expectation.
Math diagram by chapter
Select a chapter to see its diagram below. View the flow of basic math at a glance.
The gap between the rectangles and the curve shrinks as you use more slices; in the limit you get the exact area (the integral).
The definite integral represents the area under the curve. Find an antiderivative and plug in the upper and lower limits.
What is the integral?
The integral is the inverse of differentiation. If differentiation is like slicing bread very thin (finding the rate of change), integration is putting those thin slices back together to get the original amount (area or total quantity). The symbol (integral) is a stretched letter S for Sum. The Fundamental Theorem of Calculus rigorously proves that differentiation and integration are inverse operations. Thanks to it, we can compute definite integrals by finding an antiderivative instead of taking limits directly.
It is the precise tool for area under a curve. For a wiggly curve, we add infinitely many very thin rectangles (width almost 0) to get the exact area. Mathematically it means the total of accumulated change.
A definite integral has a fixed start and end . To compute it we first find the antiderivative (the function whose derivative is the integrand), then take — i.e. “later state minus initial state” — to get the accumulated result (area or total amount).
Essential for cumulative quantities in daily life. A car’s speed changes every moment; integrating it over time gives total distance. Integrating the flow from a tap gives total water in the bathtub. Whenever we “add up” a changing quantity, we use integration.
Key to continuous probability. For continuous data (height, weight), “probability that height is between 170–180 cm” is the area under the probability density curve over that interval — i.e. the integral. So the integral value is the probability of that event.
It underlies AI decision-making. When AI chooses under uncertainty, it computes expectation (each outcome times its probability, summed). That sum is mathematically an integral. Generative models (VAE, Diffusion) and reinforcement learning (expected cumulative reward) cannot move a single step without integration.
In physics, work and energy: integrating force over distance gives work; integrating acceleration gives velocity, integrating velocity gives position — used to predict trajectories and motion.
In economics, integration is used to find total demand or supply over time and to compute consumer and producer surplus for market efficiency.
AI performance and optimization: AUC (Area Under Curve) is literally an integral. Normalization (making total probability 1) also involves integration over the whole range. Every time we treat data flow probabilistically inside a network, integration is at work.
For a definite integral, follow ① identify lower and upper limits →
② find the “undo” function →
③ (value at upper limit) − (value at lower limit).
What is an “antiderivative”? — It’s the function you get when you undo the derivative of the expression inside the integral. Example: the derivative of is , so if we “undo” that, the antiderivative of is . You can just think of it as the function we plug the limits into and subtract — no need to worry about the name.
Step 1: Identify lower and upper limits — In , is the lower limit and is the upper limit. If you see , then lower is 1 and upper is 3.
Step 2: Find the “undo” function (antiderivative) — Find a function that, when differentiated, gives the expression inside the integral. Common rules: → , constant → . stays (its derivative is itself). For : e.g. , . For a sum, find the “undo” for each term and add them.
Step 3: Substitute and subtract — Plug the upper limit into , plug the lower limit , and subtract: . That’s the answer.
Check and tips — Differentiate your to make sure you get the integrand back. Always use .
What is an "indefinite integral"? — When there are no upper/lower limits, we write the antiderivative + C only. Example: . Here is any constant. If a problem later asks "what is the value at ?", you just plug 2 into ; in this course we take , so the answer is . Think of the indefinite integral as the antiderivative with used in definite integrals.
“Find the value of the antiderivative at a given point” — When the problem gives you the antiderivative (e.g. ) and asks “what is the value at ?”, substitute 2 into that expression. With , is the answer.
Example problems and step-by-step solutions. (Steps
①·
②·
③ for definite integrals;
①·
② only for the substitution example.)
Ex 1.
① Lower 0, upper 2.
② "Undo" of is .
③ → 6
Ex 2.
① Lower 1, upper 3.
② "Undo" of is .
③ → 8
Ex 3.
① Lower 0, upper 2.
② →, → so .
③ → 4
Ex 4. , value at ?
① Substitute into .
② , ⇒ → 4
Problem types and how to solve
- TypeConstant definite
- Description
- How to get the answerAntiderivative . (upper) − (lower) = .
- TypeLinear definite
- Description
- How to get the answerAntiderivative . Compute .
- TypeAntiderivative value
- DescriptionIndefinite integral given, value at
- How to get the answerSubstitute into that expression. ( ⇒ .)
| Type | Description | How to get the answer |
|---|---|---|
| Constant definite | Antiderivative . (upper) − (lower) = . | |
| Linear definite | Antiderivative . Compute . | |
| Antiderivative value | Indefinite integral given, value at | Substitute into that expression. ( ⇒ .) |
Example (constant definite)
Find .
Solution
Antiderivative is . . → Answer 6
Example (linear definite)
Find .
Solution
Antiderivative is . . → Answer 8
Example (antiderivative value)
Given , find the value at . ()
Solution
Substitute into → . → Answer 4