Approximation of Area Under a Curve using Rectangles

Introduction to Area Visualization
Simple Rectangular Plot
  • Scenario: A landowner pays taxes on a rectangular plot of land.

  • Dimensions: Width is represented by x (e.g., in meters) and length by y (e.g., in meters).

  • Visualization:

    • The bottom left corner can be conventionally set at the origin (0,0) of a Cartesian coordinate system.

    • The bottom right corner is then located at (x,0), signifying the extent along the x-axis.

    • The top left corner is at (0,y), indicating the height or length along the y-axis.

    • The top right corner is at (x,y), completing the rectangle's boundary.

  • Area Calculation: The area of this basic rectangular plot is calculated using the fundamental geometric formula: Area = width \times length, or simply A = x \times y. This provides an exact area for perfectly rectangular shapes.

Modeling Length as a Function (y=f(x))

To generalize the concept of area beyond simple rectangles, we can describe the length (y) as a function of the width (x), i.e., y = f(x). This allows for more complex shapes where the length might vary along the width.

  • Scenario 1: Constant Function (f(x) = 5)

    • Description: In this case, the length (y) remains constant at 5 units, irrespective of the width (x). This models a traditional rectangular plot where one dimension is fixed.

    • Visualization: On an x-y coordinate plane, this function appears as a horizontal line at y=5. If we consider the area from x=0 to some arbitrary x, it is bounded by this horizontal line, the x-axis, the y-axis, and a vertical line at x.

    • Area: When the width extends from 0 to some x value, the area enclosed is 5 \times x. This is still a perfect rectangle, with a fixed height (length) of 5 and a variable width of x.

  • Scenario 2: Linear Function (f(x) = 2x)

    • Description: Here, the length (y) is directly proportional to the width (x). For every unit increase in x, the y value (height) increases by 2 units, reflecting a shape whose height changes steadily.

    • Visualization: This function graphs as a straight line passing through the origin (0,0) with a positive slope of m=2. If we are interested in the area from x=0 to some value of x, the top boundary is this sloping line.

    • Shape Formed: When considering the area from 0 to some x beneath this function and above the x-axis, it forms a right-angled triangle.

    • Area Calculation:

      • The base of the triangle is the interval along the x-axis, which is x.

      • The height of the triangle is determined by the function at the endpoint x, so height is f(x) = 2x.

      • The standard formula for the area of a triangle is (1/2) \times \text{base} \times \text{height}.

      • Substituting our values: A = (1/2) \times x \times (2x) = x^2. This means the area grows quadratically with the width, even though the bounding function is linear.

The Challenge of Complex Shapes: Approximating Area Under f(x) = x^2
The Problem Defined
  • Scenario: Consider a more complex land shape defined by the function f(x) = x^2 (a parabola). How would we find its area from, for instance, x=0 to x=1 (or any arbitrary interval [a,b])?

  • Visualization: A parabolic curve, which starts from the origin (0,0) and smoothly curves upwards, increasing in slope as x increases.

  • Difficulty: Unlike simple rectangles or triangles, there is no straightforward, direct geometric formula to calculate the exact area of a parabolic segment bounded by the x-axis. The continuous curvature of the top boundary means that the shape is not composed of elementary polygons, making traditional area formulas insufficient.

Initial Ideas and Their Limitations
  • Breaking into smaller, known shapes (e.g., triangles): This approach is inherently difficult because the slope of the curve is constantly changing. To accurately approximate with triangles, one would need to continuously re-evaluate the angle and dimensions of each tiny triangle, making the process highly complex, non-generalizable, and computationally intensive for manual calculation. A truly accurate approximation would require an infinite number of infinitesimally small triangles, leading us back to the core challenge of calculus.

  • Using a few large rectangles: This provides a rough approximation (e.g., an overestimate or underestimate depending on how heights are chosen), but the inaccuracy can be significant. This is particularly problematic for practical applications like land tax assessment, where a landowner would justly not want to pay for more land than they actually own due to imprecise measurement errors, nor would the state wish to collect less than due.

Modeling Principles for Area Approximation
Goal of the Modeling Method
  • The primary goal is to provide a generalized, systematic process that can calculate the approximate area under any continuous curve over any given interval. This method should work regardless of how the function changes or what the length of the interval is.

  • The method should be repetitive (algorithmic) and easy to redeploy with different functions, varying interval parameters, or differing levels of desired precision. This reusability is key to its utility in calculus.

Choosing Simple Shapes for Approximation
  • Preferred Shapes: Rectangles or trapezoids are chosen due to their predictable and constant geometric properties. Their areas are defined by simple width and height measurements, which are easy to calculate and program.

  • Why not triangles? While triangles are simple, they don't "fit" well under arbitrary curves without constant re-adjustment of their base and height to match the changing slope of the curve. This makes them less suitable for a generalized, repetitive process where the shape elements need to be uniform and easily calculable across the interval.

Definition: Area Bounded by a Curve
  • Refers to: This phrase specifically refers to the region between the curve (or function, f(x)) and the x-axis.

  • Interval: The area is always considered over a specific interval along the x-axis, typically denoted from x=a to x=b.

  • Notation: The interval is usually written as x \text{ is in the interval } [a,b], meaning that x includes both the starting point a and the ending point b.

  • Common Phrase: This concept is frequently simplified and referred to as "the area underneath the curve," implying the region between f(x) and the x-axis.

Approximating Area Using Rectangles: The Riemann Sum Concept
Core Assumptions for Rectangular Approximation

When using rectangles to approximate area, certain fundamental assumptions are made to ensure clarity and accuracy:

  1. Rectangles Do Not Overlap: Each rectangle occupies a unique portion of the area. This prevents double-counting of area, which is a crucial practical and ethical consideration (e.g., to ensure fair land taxation or accurate material estimation).

  2. Rectangles Have Equal Width: By dividing the total interval into sub-intervals of the same size, the width of each approximating rectangle is uniform. This significantly simplifies the calculation and generalization of the method, as the width becomes a common factor in area calculations.

Notation and Variables
  • w: This variable consistently represents the uniform width of each individual rectangle in the approximation.

  • n: This variable denotes the total number of rectangles utilized to approximate the area over the given interval. A larger n generally implies a more accurate approximation.

Calculating the Width of Each Rectangle (w)
  • For a given interval [a, b] on the x-axis and a specified number of n rectangles to be used for approximation:

    • The total width of the interval is simply the difference between the endpoints: (b-a).

    • Each rectangle's uniform width is then given by dividing the total interval width by the number of rectangles: w = \frac{b-a}{n}.

  • Example: For an interval from 0 to 1 ([a,b] = [0,1]) that is to be approximated using n=3 rectangles, the width of each rectangle would be w = (1-0)/3 = 1/3.

General Principle: Accuracy with More Rectangles
  • A fundamental principle in Riemann sums is that as the number of rectangles (n) used for the approximation increases, the sum of their areas becomes increasingly accurate. This approximation gets progressively closer to the actual value of the area under the curve. This is because increasing n simultaneously decreases the width of each rectangle (w), leading to smaller gaps between the curve and the top of the rectangles (or smaller overlaps if the curve is decreasing), thereby providing a more precise fit to the curve's shape.

Worked Example: Right-Endpoint Riemann Sums
Example 1: Approximating Area Under f(x) = x^2 from x=0 to x=1 using n=3 Rectangles
  • Function: f(x) = x^2

  • Interval: [a, b] = [0, 1]

  • Number of Rectangles: n=3

Steps:

  1. Calculate Width (w):

    • Using the formula w = \frac{b-a}{n}, we get w = \frac{1-0}{3} = \frac{1}{3}. Each rectangle will have a width of 1/3 unit.

  2. Define x-coordinates for Right Endpoints:

    • Since we are using the right endpoint of each sub-interval to determine the height of the rectangle, we start at a+w for the first rectangle and continue adding w:

      • For the 1st rectangle: x_1 = a + w = 0 + 1/3 = 1/3 (This is the right boundary of the first sub-interval).

      • For the 2nd rectangle: x_2 = a + 2w = 0 + 2(1/3) = 2/3 (Right boundary of the second sub-interval).

      • For the 3rd rectangle: x_3 = a + 3w = 0 + 3(1/3) = 3/3 = 1 (Right boundary of the third sub-interval, which is also the end of the total interval).

  3. Determine Heights of Rectangles:

    • Each rectangle's height is given by evaluating the function f(x) at its respective right endpoint:

      • Height 1: h1 = f(x1) = f(1/3) = (1/3)^2 = 1/9

      • Height 2: h2 = f(x2) = f(2/3) = (2/3)^2 = 4/9

      • Height 3: h3 = f(x3) = f(3/3) = (3/3)^2 = 9/9 = 1

  4. Calculate Area of Each Rectangle: (Ai = w \times hi)

    • A_1 = (1/3) \times f(1/3) = (1/3) \times (1/3)^2 = (1/3) \times (1/9) = 1/27

    • A_2 = (1/3) \times f(2/3) = (1/3) \times (2/3)^2 = (1/3) \times (4/9) = 4/27

    • A_3 = (1/3) \times f(3/3) = (1/3) \times (3/3)^2 = (1/3) \times (9/9) = 9/27

  5. Calculate Total Approximate Area (A_{\text{approx}}):

    • The total approximate area is the sum of the areas of the individual rectangles:
      A{\text{approx}} \approx A1 + A2 + A3

    • Substitute the individual area calculations:
      A_{\text{approx}} \approx (1/3) \times f(1/3) + (1/3) \times f(2/3) + (1/3) \times f(3/3)

    • Factoring out the common width (w=1/3) simplifies the expression:
      A_{\text{approx}} \approx (1/3) \times [f(1/3) + f(2/3) + f(3/3)]

    • Substituting the function f(x) = x^2:
      A{\text{approx}} \approx (1/3) \times [(1/3)^2 + (2/3)^2 + (3/3)^2] A{\text{approx}} \approx (1/3) \times [1/9 + 4/9 + 9/9]
      A_{\text{approx}} \approx (1/3) \times [14/9] = 14/27

    • This approximation of 14/27 \approx 0.5185 can be compared to the actual integral value of \int{0}^{1} x^2 dx = [x^3/3]{0}^{1} = 1/3 \approx 0.3333. The difference highlights that with only 3 rectangles, the right-endpoint approximation for an increasing function like x^2 overestimates the area, as the rectangles extend above the curve.

Example 2: Approximating Area Under f(x) = x^3 from x=0 to x=2 using n=6 Rectangles
  • Function: f(x) = x^3

  • Interval: [a, b] = [0, 2]

  • Number of Rectangles: n=6

Steps:

  1. Calculate Width (w):

    • w = \frac{b-a}{n} = \frac{2-0}{6} = \frac{2}{6} = \frac{1}{3} The width of each of the 6 rectangles is 1/3.

  2. Define x-coordinates for Right Endpoints:

    • These are the points where the function's height will be evaluated. Starting from a+w up to b:

      • 1/3, 2/3, 3/3, 4/3, 5/3, 6/3 (Note that 6/3 simplifies to 2, which is the end of our interval).

  3. Determine Heights of Rectangles:

    • The heights are f(x) evaluated at each of the right endpoints:

      • f(1/3), f(2/3), f(3/3), f(4/3), f(5/3), f(6/3).

  4. Calculate Total Approximate Area (A_{\text{approx}}):

    • Factor out the common width w and sum the function evaluations:
      A_{\text{approx}} \approx w \times [f(1/3) + f(2/3) + f(3/3) + f(4/3) + f(5/3) + f(6/3)]

    • Substitute w=1/3 and f(x) = x^3:
      A_{\text{approx}} \approx (1/3) \times [(1/3)^3 + (2/3)^3 + (3/3)^3 + (4/3)^3 + (5/3)^3 + (6/3)^3]

    • Calculate the cubic terms:
      A_{\text{approx}} \approx (1/3) \times [1/27 + 8/27 + 27/27 + 64/27 + 125/27 + 216/27]

    • Sum the numerators, keeping the common denominator:
      A{\text{approx}} \approx (1/3) \times [(1+8+27+64+125+216)/27] A{\text{approx}} \approx (1/3) \times [441/27] = 441/81

    • Simplifying the fraction: 441/81 = 49/9 \approx 5.444. The actual integral value is \int{0}^{2} x^3 dx = [x^4/4]{0}^{2} = 2^4/4 - 0 = 16/4 = 4. Again, for an increasing function, the right-endpoint sum overestimates the actual area, but using more rectangles often brings the approximation closer to the true value.

Importance of Maintaining Unsimplified Fractions
  • When setting up the x-coordinates for determining the heights (e.g., 1/3, 2/3, 3/3 in the first example), it is often highly beneficial and instructive to keep them in their unsimplified fractional form (e.g., 3/3 instead of just 1). This practice helps in several ways:

    • Maintaining a common denominator: It ensures that all terms in the summation have the same denominator, which significantly streamlines the process of adding the fractions together.

    • Highlighting the general pattern: Keeping the fractions unsimplified makes the general pattern of i/n (or a + i \cdot w) for the i^{\text{th}} rectangle's endpoint clearly visible. This pattern is crucial for understanding and deriving the generalized Riemann Sum formula.

    • Ease of generalization: This consistent fractional representation simplifies the generalization of the summation into a mathematical series, which is a stepping stone to defining the definite integral.

Generalizing the Summation (Introduction to Riemann Sums)
  • The repetitive and systematic nature of calculating each rectangle's area and then summing them up (as eloquently demonstrated in the worked examples) strongly indicates a need for a more efficient and concise mathematical notation for summation. This is where summation notation (or sigma notation, \,\sum\,) becomes indispensable.

  • This systematic approach to approximating areas using sums of rectangles is the foundational concept for Riemann Sums. Riemann Sums provide the mathematical rigor to formally define the definite integral, which is the exact area under a curve. As n approaches infinity, the Riemann sum converges