Chapter 8
18 min read
Section 70 of 353

The Area Problem: Approximating with Rectangles

The Definite Integral

Learning Objectives

By the end of this section, you will be able to:

  1. Explain the area problem that motivated the development of integral calculus
  2. Approximate the area under a curve using left, right, and midpoint Riemann sums
  3. Calculate the width Δx\Delta x and sample points for a partition
  4. Express Riemann sums using sigma notation \sum
  5. Analyze how increasing the number of rectangles improves the approximation
  6. Connect Riemann sums to numerical integration in scientific computing
  7. Apply the concepts to real-world problems in physics, economics, and machine learning

The Big Picture: Why We Need to Calculate Areas

"Nature speaks in the language of differential equations, but she writes her answers in integrals."— Adapted from Galileo

In the first half of calculus, we learned about derivatives — how to find instantaneous rates of change. Now we turn to the inverse problem: given a rate of change, how do we find the total accumulated quantity?

This question appears everywhere in science and engineering:

🚗 Physics

  • Velocity → Distance traveled
  • Force × Distance → Work done
  • Power × Time → Energy consumed
  • Current × Time → Total charge

📈 Economics

  • Marginal cost → Total cost
  • Revenue rate → Total revenue
  • Consumer surplus calculations
  • Present value of income streams

🧬 Biology

  • Growth rate → Population size
  • Drug absorption → Total dosage
  • Reaction rates → Product formed
  • Blood flow measurements

🤖 Machine Learning

  • PDF → CDF (probability calculations)
  • Expected value computations
  • Loss function optimization
  • Kernel methods and RBFs

The Core Question of Integration

Given a function f(x)f(x) and an interval [a,b][a, b], how do we calculate the total area between the curve and the x-axis?

For simple shapes (rectangles, triangles), we have formulas. But what about curves like y=x2y = x^2 or y=sin(x)y = \sin(x)? This is the area problem that integral calculus solves.


Historical Origins: From Archimedes to Riemann

The quest to find areas under curves has ancient roots, but the rigorous foundation we use today took millennia to develop.

Archimedes and the Method of Exhaustion (c. 250 BCE)

The Greek mathematician Archimedes of Syracuse developed the method of exhaustion to find the area of a parabolic segment. His key insight: approximate the curved region with increasingly fine polygons whose area we can calculate.

Archimedes showed that the area under a parabola from 0 to 1 is exactly frac13\\frac{1}{3} — a result we can verify using integral calculus: int01x2,dx=frac13\\int_0^1 x^2\\,dx = \\frac{1}{3}.

Newton and Leibniz (1670s)

Isaac Newton and Gottfried Wilhelm Leibniz independently discovered the Fundamental Theorem of Calculus, which connected differentiation and integration. This made calculating areas systematic rather than ad hoc.

Bernhard Riemann (1854)

The German mathematician Bernhard Riemann provided the rigorous foundation for integration in his 1854 thesis. He defined the integral as the limit of sums of rectangles — what we now call Riemann sums. His approach works for a broad class of functions and laid the groundwork for modern analysis.

Why Riemann's Approach Matters

Before Riemann, integration was defined only for "nice" functions. Riemann's definition precisely characterized which functions are integrable and provided a computational method (approximating with rectangles) that generalizes to numerical algorithms used in computers today.


The Area Problem: Setting Up the Challenge

Consider the function f(x)=x2f(x) = x^2 on the interval [0,2][0, 2]. We want to find the area of the region bounded by:

  • The curve y=x2y = x^2 above
  • The x-axis below (y=0y = 0)
  • The vertical line x=0x = 0 on the left
  • The vertical line x=2x = 2 on the right

This region has a curved boundary, so we cannot use the simple formulas for rectangles (A=bhA = bh) or triangles (A=frac12bhA = \\frac{1}{2}bh). We need a new approach.

The Key Insight: Approximate, Then Take a Limit

Riemann's brilliant idea: even though we cannot calculate the area of the curved region directly, we can calculate the area of rectangles. So:

  1. Divide the interval [a,b][a, b] into nn smaller subintervals
  2. Construct a rectangle on each subinterval with height determined by the function
  3. Sum the areas of all rectangles to get an approximation
  4. Refine by increasing nn (more, thinner rectangles)
  5. Take the limit as ntoinftyn \\to \\infty to get the exact area

Approximating with Rectangles

Let's make this concrete. We want to approximate the area under f(x)=x2f(x) = x^2 on [0,2][0, 2].

Step 1: Partition the Interval

Divide [0,2][0, 2] into nn equal subintervals. Each subinterval has width:

Deltax=fracban=frac20n=frac2n\\Delta x = \\frac{b - a}{n} = \\frac{2 - 0}{n} = \\frac{2}{n}

The endpoints of the subintervals are:

x0=0,quadx1=frac2n,quadx2=frac4n,quadldots,quadxn=2x_0 = 0, \\quad x_1 = \\frac{2}{n}, \\quad x_2 = \\frac{4}{n}, \\quad \\ldots, \\quad x_n = 2

In general, xi=a+icdotDeltax=frac2inx_i = a + i \\cdot \\Delta x = \\frac{2i}{n} for i=0,1,2,ldots,ni = 0, 1, 2, \\ldots, n.

Step 2: Choose Sample Points

For each subinterval [xi1,xi][x_{i-1}, x_i], we need to choose a point to evaluate ff. This determines the rectangle's height. Common choices:

MethodSample Point x*ᵢVisual Effect
Left Riemann Sumx*ᵢ = xᵢ₋₁ (left endpoint)Rectangle height from left edge of subinterval
Right Riemann Sumx*ᵢ = xᵢ (right endpoint)Rectangle height from right edge of subinterval
Midpoint Rulex*ᵢ = (xᵢ₋₁ + xᵢ)/2 (midpoint)Rectangle height from center of subinterval

Step 3: Calculate Rectangle Areas and Sum

Each rectangle has width Deltax\\Delta x and height f(xi)f(x^*_i). The area of the ii-th rectangle is:

Ai=f(xi)cdotDeltaxA_i = f(x^*_i) \\cdot \\Delta x

The total area of all nn rectangles is the Riemann sum:

Rn=sumi=1nf(xi)cdotDeltaxR_n = \\sum_{i=1}^{n} f(x^*_i) \\cdot \\Delta x

Types of Riemann Sums

Left Riemann Sum (LnL_n)

Use the left endpoint of each subinterval:

Ln=sumi=1nf(xi1)cdotDeltax=sumi=0n1f(xi)cdotDeltaxL_n = \\sum_{i=1}^{n} f(x_{i-1}) \\cdot \\Delta x = \\sum_{i=0}^{n-1} f(x_i) \\cdot \\Delta x

For an increasing function, the left sum underestimates the area because each rectangle lies entirely below the curve.

Right Riemann Sum (RnR_n)

Use the right endpoint of each subinterval:

Rn=sumi=1nf(xi)cdotDeltaxR_n = \\sum_{i=1}^{n} f(x_i) \\cdot \\Delta x

For an increasing function, the right sum overestimates the area because each rectangle extends above the curve.

Midpoint Riemann Sum (MnM_n)

Use the midpoint of each subinterval:

Mn=sumi=1nfleft(fracxi1+xi2right)cdotDeltaxM_n = \\sum_{i=1}^{n} f\\left(\\frac{x_{i-1} + x_i}{2}\\right) \\cdot \\Delta x

The midpoint rule often gives a better approximation for the same number of rectangles because overestimates and underestimates tend to cancel.

Which Sum to Use?

All three methods converge to the same limit (the definite integral) as ntoinftyn \\to \\infty. For practical computation with finite n:

  • Midpoint is usually most accurate (error decreases as O(1/n2)O(1/n^2))
  • Left/Right are simpler but less accurate (error O(1/n)O(1/n))
  • Trapezoidal rule (average of left and right) is also O(1/n2)O(1/n^2)

Interactive Riemann Sum Explorer

Use the interactive visualization below to explore how different types of Riemann sums approximate the area under various curves. Adjust the number of rectangles and watch the approximation improve!

📊Interactive Riemann Sum Explorer
01230.04.59.0xf(x)
Current Function
f(x)=x2f(x) = x^2
Interval: [0, 3]
Riemann Sum Formula
Rn=i=14f(xi)ΔxR_n = \sum_{i=1}^{4} f(x_i^*) \cdot \Delta x
Δx=304=0.7500\Delta x = \frac{3 - 0}{4} = 0.7500
MetricValue
Left Riemann Sum (n = 4)5.906250
Exact Area (definite integral)9.000000
Error3.093750 (34.38%)
Key Insight

As n increases, the Riemann sum approaches the exact area under the curve. Try increasing n to 50+ and watch the error shrink.


Convergence: How Approximations Improve

As we increase the number of rectangles, our approximation gets better. But how quickly does it improve? Let's analyze the convergence.

📈Convergence: How Fast Do Approximations Improve?

Let's compute the area under f(x)=x2f(x) = x^2 from x=0x = 0 to x=2x = 2. The exact answer is 832.667\frac{8}{3} \approx 2.667. Watch how different methods converge as we increase the number of rectangles.


Sigma Notation: The Language of Sums

To express Riemann sums compactly, we use sigma notation (summation notation), denoted by the Greek capital letter sigma: Sigma\\Sigma.

The Structure of Sigma Notation

sumi=1nai=a1+a2+a3+cdots+an\\sum_{i=1}^{n} a_i = a_1 + a_2 + a_3 + \\cdots + a_n
ComponentMeaning
ΣSum (add up all terms)
i = 1Start index (lower limit)
nEnd index (upper limit)
aᵢGeneral term (formula for each addend)

Examples

sumi=15i=1+2+3+4+5=15\\sum_{i=1}^{5} i = 1 + 2 + 3 + 4 + 5 = 15
sumi=14i2=12+22+32+42=1+4+9+16=30\\sum_{i=1}^{4} i^2 = 1^2 + 2^2 + 3^2 + 4^2 = 1 + 4 + 9 + 16 = 30
sumk=032k=20+21+22+23=1+2+4+8=15\\sum_{k=0}^{3} 2^k = 2^0 + 2^1 + 2^2 + 2^3 = 1 + 2 + 4 + 8 = 15

Useful Summation Formulas

SumClosed FormExample
Σᵢ₌₁ⁿ 1nΣ₁⁵ 1 = 5
Σᵢ₌₁ⁿ in(n+1)/2Σ₁⁵ i = 5(6)/2 = 15
Σᵢ₌₁ⁿ i²n(n+1)(2n+1)/6Σ₁⁵ i² = 5(6)(11)/6 = 55
Σᵢ₌₁ⁿ i³[n(n+1)/2]²Σ₁⁵ i³ = 15² = 225

These formulas are crucial for evaluating Riemann sums algebraically before taking the limit.


Worked Examples

Example 1: Left Riemann Sum for f(x) = x² on [0, 2] with n = 4

Step 1: Calculate Deltax\\Delta x

Deltax=frac204=frac12=0.5\\Delta x = \\frac{2 - 0}{4} = \\frac{1}{2} = 0.5

Step 2: Identify left endpoints

x0=0,quadx1=0.5,quadx2=1,quadx3=1.5x_0 = 0, \\quad x_1 = 0.5, \\quad x_2 = 1, \\quad x_3 = 1.5

Step 3: Evaluate f at each left endpoint

f(0)=0,quadf(0.5)=0.25,quadf(1)=1,quadf(1.5)=2.25f(0) = 0, \\quad f(0.5) = 0.25, \\quad f(1) = 1, \\quad f(1.5) = 2.25

Step 4: Calculate the sum

L4=(0+0.25+1+2.25)times0.5=3.5times0.5=1.75L_4 = (0 + 0.25 + 1 + 2.25) \\times 0.5 = 3.5 \\times 0.5 = 1.75

Result: L4=1.75L_4 = 1.75

(The exact area is frac83approx2.667\\frac{8}{3} \\approx 2.667, so we underestimate by about 0.92)

Example 2: Using Sigma Notation and Formulas

Calculate the left Riemann sum for f(x)=x2f(x) = x^2 on [0,2][0, 2] with nn rectangles, then take the limit as ntoinftyn \\to \\infty.

Setup:

Deltax=frac2n,quadxi=frac2in\\Delta x = \\frac{2}{n}, \\quad x_i = \\frac{2i}{n}

Left endpoints: xi1=frac2(i1)nx_{i-1} = \\frac{2(i-1)}{n}

Height of i-th rectangle:

f(xi1)=left(frac2(i1)nright)2=frac4(i1)2n2f(x_{i-1}) = \\left(\\frac{2(i-1)}{n}\\right)^2 = \\frac{4(i-1)^2}{n^2}

Riemann sum:

Ln=sumi=1nfrac4(i1)2n2cdotfrac2n=frac8n3sumi=1n(i1)2L_n = \\sum_{i=1}^{n} \\frac{4(i-1)^2}{n^2} \\cdot \\frac{2}{n} = \\frac{8}{n^3} \\sum_{i=1}^{n} (i-1)^2

Substitute j = i - 1:

=frac8n3sumj=0n1j2=frac8n3cdotfrac(n1)n(2n1)6= \\frac{8}{n^3} \\sum_{j=0}^{n-1} j^2 = \\frac{8}{n^3} \\cdot \\frac{(n-1)n(2n-1)}{6}

Simplify:

=frac8(n1)(2n1)6n2=frac4(n1)(2n1)3n2= \\frac{8(n-1)(2n-1)}{6n^2} = \\frac{4(n-1)(2n-1)}{3n^2}

Take the limit:

limntoinftyfrac4(n1)(2n1)3n2=limntoinftyfrac4(2n23n+1)3n2=frac83\\lim_{n \\to \\infty} \\frac{4(n-1)(2n-1)}{3n^2} = \\lim_{n \\to \\infty} \\frac{4(2n^2 - 3n + 1)}{3n^2} = \\frac{8}{3}

Result: The exact area is frac83approx2.667\\frac{8}{3} \\approx 2.667

Preview of the Definite Integral

What we just computed — the limit of Riemann sums — is the definite integral:

int02x2,dx=limntoinftyLn=frac83\\int_0^2 x^2\\,dx = \\lim_{n \\to \\infty} L_n = \\frac{8}{3}

In later sections, we'll learn the Fundamental Theorem of Calculus, which provides a much faster way to evaluate such integrals without computing limits!


Real-World Applications

Physics: Distance from Velocity

If a car's velocity is v(t)v(t) meters per second, the distance traveled from time t=at = a to t=bt = b is:

textDistance=intabv(t),dt\\text{Distance} = \\int_a^b v(t)\\,dt

Riemann sums provide an intuitive interpretation: in each small time interval Deltat\\Delta t, the car travels approximately v(ti)cdotDeltatv(t_i) \\cdot \\Delta t meters. Summing over all intervals gives total distance.

Economics: Total Revenue from Marginal Revenue

If MR(q)MR(q) is the marginal revenue (additional revenue per unit), total revenue from selling QQ units is:

TR=int0QMR(q),dqTR = \\int_0^Q MR(q)\\,dq

Biology: Total Growth from Growth Rate

If a population grows at rate r(t)r(t) organisms per day, the total population change over [a,b][a, b] days is:

DeltaP=intabr(t),dt\\Delta P = \\int_a^b r(t)\\,dt

Machine Learning Connections

Integration concepts appear throughout machine learning, often in surprising places.

Probability: PDF to CDF

For a continuous random variable with probability density function f(x)f(x), the cumulative distribution function is:

F(x)=P(Xleqx)=intinftyxf(t),dtF(x) = P(X \\leq x) = \\int_{-\\infty}^{x} f(t)\\,dt

Numerical integration (Riemann sums) allows us to compute probabilities when the integral has no closed-form solution.

Expected Value

The expected value of a continuous random variable:

E[X]=intinftyinftyxcdotf(x),dxE[X] = \\int_{-\\infty}^{\\infty} x \\cdot f(x)\\,dx

Monte Carlo Integration in Training

Many machine learning algorithms use Monte Carlo integration — a randomized version of Riemann sums. Instead of systematic sample points, we use random samples:

intf(x),dxapproxfrac1nsumi=1nf(xi),quadxisimtextUniform\\int f(x)\\,dx \\approx \\frac{1}{n} \\sum_{i=1}^{n} f(x_i), \\quad x_i \\sim \\text{Uniform}

This is used in stochastic gradient descent (sampling mini-batches), reinforcement learning (policy gradients), and variational inference.

Why Numerical Integration Matters for ML

Modern neural networks require computing gradients of loss functions. The loss is often an expectation (an integral over data distribution). Since we can't integrate analytically, we use mini-batch sampling — essentially a Monte Carlo Riemann sum!


Python Implementation

Computing Riemann Sums

Let's implement Riemann sums in Python and see convergence in action:

Riemann Sum Implementation
🐍riemann_sums.py
3Riemann Sum Function

This function implements all three types of Riemann sums: left endpoint, right endpoint, and midpoint. Each method samples the function at different points within each subinterval.

15Calculating Δx

The width of each rectangle is Δx = (b - a) / n. This divides the interval [a, b] into n equal parts. As n increases, Δx shrinks, and our approximation improves.

EXAMPLE
For [0, 2] with n = 4: Δx = 2/4 = 0.5
18Left Endpoint Samples

For left sums, we evaluate f at the left edge of each subinterval: x₀ = a, x₁ = a + Δx, ..., xₙ₋₁ = b - Δx. The left endpoints systematically underestimate the area for increasing functions.

21Right Endpoint Samples

For right sums, we evaluate f at the right edge: x₁ = a + Δx, x₂ = a + 2Δx, ..., xₙ = b. Right endpoints overestimate for increasing functions.

24Midpoint Samples

For midpoint sums, we evaluate f at the center of each subinterval. This tends to balance over- and underestimation, converging faster (O(Δx²) vs O(Δx)).

30Computing the Sum

The Riemann sum is Σf(xᵢ*)·Δx — the sum of rectangle areas. NumPy's vectorized operations make this efficient: evaluate f at all sample points, then sum the products.

53 lines without explanation
1import numpy as np
2import matplotlib.pyplot as plt
3
4def riemann_sum(f, a, b, n, method='left'):
5    """
6    Compute the Riemann sum for function f on [a, b] with n rectangles.
7
8    Parameters:
9    - f: The function to integrate
10    - a, b: Interval endpoints
11    - n: Number of rectangles (subintervals)
12    - method: 'left', 'right', or 'midpoint'
13
14    Returns: The Riemann sum approximation of the integral
15    """
16    # Width of each rectangle
17    delta_x = (b - a) / n
18
19    # Generate the sample points based on method
20    if method == 'left':
21        # Left endpoints: a, a+Δx, a+2Δx, ..., a+(n-1)Δx
22        x_samples = np.linspace(a, b - delta_x, n)
23    elif method == 'right':
24        # Right endpoints: a+Δx, a+2Δx, ..., b
25        x_samples = np.linspace(a + delta_x, b, n)
26    elif method == 'midpoint':
27        # Midpoints: a+Δx/2, a+3Δx/2, ..., b-Δx/2
28        x_samples = np.linspace(a + delta_x/2, b - delta_x/2, n)
29    else:
30        raise ValueError("method must be 'left', 'right', or 'midpoint'")
31
32    # Sum up the rectangle areas: f(x_i) * Δx
33    heights = f(x_samples)
34    total_area = np.sum(heights * delta_x)
35
36    return total_area
37
38# Define our function: f(x) = x^2
39def f(x):
40    return x ** 2
41
42# Interval [0, 2], exact integral = (2^3)/3 - (0^3)/3 = 8/3 ≈ 2.667
43a, b = 0, 2
44exact_integral = 8/3
45
46print("Approximating ∫₀² x² dx = 8/3 ≈ 2.6667")
47print()
48print(f"{'n':>6} {'Left Sum':>12} {'Right Sum':>12} {'Midpoint':>12} {'Exact':>12}")
49print("-" * 60)
50
51for n in [2, 4, 8, 16, 32, 64, 128]:
52    left = riemann_sum(f, a, b, n, 'left')
53    right = riemann_sum(f, a, b, n, 'right')
54    mid = riemann_sum(f, a, b, n, 'midpoint')
55    print(f"{n:>6} {left:>12.6f} {right:>12.6f} {mid:>12.6f} {exact_integral:>12.6f}")
56
57print()
58print("Notice how all methods converge to 8/3 ≈ 2.6667 as n increases!")
59print("The midpoint rule converges faster (quadratic vs linear error decay).")

Visualizing Riemann Sums

Here's how to create visualizations like the interactive explorer above:

Riemann Sum Visualization
🐍riemann_visualization.py
3Visualization Function

This function creates a visual representation of a Riemann sum, showing both the curve and the approximating rectangles. Visualization helps build geometric intuition.

14Plot the True Curve

We first plot the actual function f(x) using many points (200) to get a smooth curve. This red curve is what we are trying to measure the area under.

27Sample Point Selection

For each rectangle, we determine where to evaluate f. The sample point determines the height of the rectangle. Different choices (left, right, midpoint) give different approximations.

37Drawing Rectangles

Matplotlib's Rectangle patch creates each approximating rectangle. The alpha parameter (0.4) makes them semi-transparent so we can see overlapping regions and the curve behind.

55Comparing Methods

Creating side-by-side plots of left, right, and midpoint sums helps visualize how different sampling strategies affect the approximation. Notice how left underestimates and right overestimates for f(x) = x².

63 lines without explanation
1import numpy as np
2import matplotlib.pyplot as plt
3
4def visualize_riemann_sum(f, a, b, n, method='left', ax=None):
5    """
6    Visualize a Riemann sum with rectangles.
7    """
8    if ax is None:
9        fig, ax = plt.subplots(figsize=(10, 6))
10
11    delta_x = (b - a) / n
12
13    # Plot the actual curve
14    x_curve = np.linspace(a, b, 200)
15    y_curve = f(x_curve)
16    ax.plot(x_curve, y_curve, 'r-', linewidth=2, label='f(x) = x²')
17
18    # Colors for different methods
19    colors = {'left': 'blue', 'right': 'green', 'midpoint': 'purple'}
20    color = colors.get(method, 'blue')
21
22    total_area = 0
23
24    # Draw rectangles
25    for i in range(n):
26        # Rectangle left and right edges
27        left_edge = a + i * delta_x
28        right_edge = left_edge + delta_x
29
30        # Sample point depends on method
31        if method == 'left':
32            sample_x = left_edge
33        elif method == 'right':
34            sample_x = right_edge
35        else:  # midpoint
36            sample_x = (left_edge + right_edge) / 2
37
38        height = f(sample_x)
39        total_area += height * delta_x
40
41        # Draw rectangle
42        rect = plt.Rectangle((left_edge, 0), delta_x, height,
43                            facecolor=color, edgecolor='black',
44                            alpha=0.4, linewidth=1)
45        ax.add_patch(rect)
46
47        # Mark sample point
48        ax.plot(sample_x, height, 'ko', markersize=6)
49
50    ax.set_xlabel('x')
51    ax.set_ylabel('f(x)')
52    ax.set_title(f'{method.capitalize()} Riemann Sum (n={n}): Area ≈ {total_area:.4f}')
53    ax.legend()
54    ax.grid(True, alpha=0.3)
55    ax.set_xlim(a - 0.1, b + 0.1)
56    ax.set_ylim(0, max(y_curve) * 1.1)
57
58    return total_area
59
60# Create visualization comparing all three methods
61fig, axes = plt.subplots(1, 3, figsize=(15, 5))
62
63for ax, method in zip(axes, ['left', 'right', 'midpoint']):
64    visualize_riemann_sum(lambda x: x**2, 0, 2, n=6, method=method, ax=ax)
65
66plt.tight_layout()
67plt.savefig('riemann_comparison.png', dpi=150)
68plt.show()

Common Pitfalls

Pitfall 1: Confusing n (number of rectangles) with Δx (width)

They are inversely related: Deltax=(ba)/n\\Delta x = (b-a)/n. More rectangles means smaller widths. When n increases, Δx decreases.

Pitfall 2: Off-by-one errors with indices

For a left sum, you use endpoints x0,x1,ldots,xn1x_0, x_1, \\ldots, x_{n-1} (not including xnx_n). For a right sum, you use x1,x2,ldots,xnx_1, x_2, \\ldots, x_n (not including x0x_0). Be careful with summation limits!

Pitfall 3: Assuming Riemann sums always converge

For the limit to exist (function to be Riemann integrable), the function must be "reasonably nice" — continuous, or at least bounded with only finitely many discontinuities. Pathological functions may not have well-defined integrals.

Numerical Precision

When computing Riemann sums with very large n on a computer, floating-point roundoff errors can accumulate. For production-quality numerical integration, use adaptive algorithms from libraries like scipy.integrate.


Test Your Understanding

📝Test Your UnderstandingScore: 0/8
Question 1 of 813% Complete

In a left Riemann sum, where is the height of each rectangle determined?


Summary

The area problem — finding the area under a curve — is the motivating question for integral calculus. We solve it by approximating with rectangles and taking a limit.

Key Concepts

ConceptDescription
Area ProblemFind area under a curve between two vertical lines
PartitionDivide [a, b] into n subintervals of width Δx = (b-a)/n
Left Riemann Sum LₙUse left endpoints: Σf(xᵢ₋₁)·Δx
Right Riemann Sum RₙUse right endpoints: Σf(xᵢ)·Δx
Midpoint MₙUse midpoints: Σf((xᵢ₋₁+xᵢ)/2)·Δx
ConvergenceAs n → ∞, all Riemann sums approach the exact area
Definite Integral∫ₐᵇf(x)dx = lim(n→∞) Σf(x*ᵢ)·Δx

Key Takeaways

  1. Approximation strategy: Use rectangles to approximate curved regions, then refine by using more rectangles
  2. Riemann sums are the sum of rectangle areas: sumf(xi)cdotDeltax\\sum f(x^*_i) \\cdot \\Delta x
  3. Three common types: left, right, and midpoint, differing only in sample point choice
  4. Convergence: all methods approach the same limit — the definite integral
  5. Sigma notation Sigma\\Sigma compactly expresses Riemann sums
  6. Practical importance: numerical integration in computers uses these ideas
  7. Connection to ML: Monte Carlo sampling is a randomized Riemann sum
The Essence of Integration:
"The definite integral captures total accumulation by summing infinitely many infinitesimally small contributions — the limit of a process that starts with humble rectangles."
Coming Next: In the next section, we'll explore Left, Right, and Midpoint Rules in more detail, comparing their accuracy and understanding why the midpoint rule converges faster.
Loading comments...