Everyone's AI
Machine learningAI Papers
Loading...

Learn

🏅My achievements

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.

ab

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 ∫\int∫ (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 aaa and end bbb. To compute it we first find the antiderivative FFF (the function whose derivative is the integrand), then take F(b)−F(a)F(b) - F(a)F(b)−F(a) — 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 vvv changes every moment; integrating it over time ttt 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, use ① limits →
② antiderivative →
③ F(upper)−F(lower)F(\text{upper})-F(\text{lower})F(upper)−F(lower).
The antiderivative undoes the derivative of the expression inside ∫\int∫.
Rules: xnx^nxn — raise the power and divide by the new exponent; constant ccc — cxcxcx; exe^xex — unchanged; sums — term by term. Differentiate your FFF to verify; subtract (upper) − (lower).
An indefinite integral is F+CF+CF+C only. For “value at x=kx=kx=k”, usually take C=0C=0C=0 and substitute.
Simplest example: ∫023 dx\displaystyle\int_0^2 3\,dx∫02​3dx
Antiderivative 3x3x3x → (3⋅2)−(3⋅0)=6(3\cdot 2)-(3\cdot 0)=6(3⋅2)−(3⋅0)=6. Answer 6.
The table below goes from easy to varied integrands. Each row: antiderivative, then evaluate at both limits and subtract.
  • Problem∫023 dx\int_0^2 3\,dx∫02​3dx
  • SolutionAntiderivative 3x3x3x → (3⋅2)−(3⋅0)=6(3\cdot 2)-(3\cdot 0)=6(3⋅2)−(3⋅0)=6
  • Problem∫132x dx\int_1^3 2x\,dx∫13​2xdx
  • SolutionAntiderivative x2x^2x2 → 32−12=83^2-1^2=832−12=8
  • Problem∫02(1+x) dx\int_0^2 (1+x)\,dx∫02​(1+x)dx
  • SolutionAntiderivative x+x2/2x+x^2/2x+x2/2 → (2+22/2)−0=4(2+2^2/2)-0=4(2+22/2)−0=4
  • Problem∫2x dx=x2+C\int 2x\,dx = x^2+C∫2xdx=x2+C, at x=2x=2x=2 (C=0C=0C=0)
  • Solution22=42^2=422=4
ProblemSolution
∫023 dx\int_0^2 3\,dx∫02​3dxAntiderivative 3x3x3x → (3⋅2)−(3⋅0)=6(3\cdot 2)-(3\cdot 0)=6(3⋅2)−(3⋅0)=6
∫132x dx\int_1^3 2x\,dx∫13​2xdxAntiderivative x2x^2x2 → 32−12=83^2-1^2=832−12=8
∫02(1+x) dx\int_0^2 (1+x)\,dx∫02​(1+x)dxAntiderivative x+x2/2x+x^2/2x+x2/2 → (2+22/2)−0=4(2+2^2/2)-0=4(2+22/2)−0=4
∫2x dx=x2+C\int 2x\,dx = x^2+C∫2xdx=x2+C, at x=2x=2x=2 (C=0C=0C=0)22=42^2=422=4
Problem types and how to solve
  • TypeConstant definite
  • Description∫abc dx\int_a^b c\,dx∫ab​cdx
  • How to get the answerAntiderivative cxcxcx. (upper) − (lower) = c(b−a)c(b-a)c(b−a).
  • TypeLinear definite
  • Description∫ab(mx+k) dx\int_a^b (mx+k)\,dx∫ab​(mx+k)dx
  • How to get the answerAntiderivative m2x2+kx\frac{m}{2}x^2 + kx2m​x2+kx. Compute F(b)−F(a)F(b)-F(a)F(b)−F(a).
  • TypeAntiderivative value
  • DescriptionIndefinite integral given, value at x=kx=kx=k
  • How to get the answerSubstitute kkk into that expression. (C=0C=0C=0 ⇒ F(k)F(k)F(k).)
TypeDescriptionHow to get the answer
Constant definite∫abc dx\int_a^b c\,dx∫ab​cdxAntiderivative cxcxcx. (upper) − (lower) = c(b−a)c(b-a)c(b−a).
Linear definite∫ab(mx+k) dx\int_a^b (mx+k)\,dx∫ab​(mx+k)dxAntiderivative m2x2+kx\frac{m}{2}x^2 + kx2m​x2+kx. Compute F(b)−F(a)F(b)-F(a)F(b)−F(a).
Antiderivative valueIndefinite integral given, value at x=kx=kx=kSubstitute kkk into that expression. (C=0C=0C=0 ⇒ F(k)F(k)F(k).)

Example (constant definite)
Find ∫023 dx\int_0^2 3\,dx∫02​3dx.
Solution
Antiderivative is 3x3x3x. (3×2)−(3×0)=6(3\times 2)-(3\times 0)=6(3×2)−(3×0)=6. → Answer 6

Example (linear definite)
Find ∫132x dx\int_1^3 2x\,dx∫13​2xdx.
Solution
Antiderivative is x2x^2x2. 32−12=9−1=83^2-1^2=9-1=832−12=9−1=8. → Answer 8

Example (antiderivative value)
Given ∫2x dx=x2+C\int 2x\,dx = x^2+C∫2xdx=x2+C, find the value at x=2x=2x=2. (C=0C=0C=0)
Solution
Substitute 222 into x2x^2x2 → 444. → Answer 4