Numerical Approximations of Area Under a Curve

Numerical Approximations of Area Under a Curve
Loading the math board and drawing, please wait…
2015-06-30 19:13
This interactive GeoGebra example dynamically demonstrates how to approximate the area under a curve using left-endpoint, right-endpoint, midpoint rectangles, and trapezoids, showing how the approximations converge to the exact integral value as the number of subdivisions increases. The core mathematical concepts include the geometric interpretation of definite integrals, Riemann sums, the trapezoidal rule, and error analysis in numerical integration. Construction highlights: using Textfield and inputBox objects to let users adjust the function, interval endpoints a and b, and the number of subdivisions n; using Sequence and Element to generate partition points and corresponding function values; using the Integral command to compute the exact area; constructing lists for left, right, midpoint, and trapezoidal approximations; and displaying the approximations, exact value, and errors via text objects. This example is suitable for high school seniors or introductory university calculus courses, helping students intuitively grasp the definition of the integral and numerical approximation techniques, and explore the convergence rates of different methods.

GeoGebra Commands & Parameters

  1. Textfield(a) → inputBox1
  2. Textfield(b) → inputBox2
  3. Sequence(Polygon[(a + (i * dx), 0), (a + ((i + 1) * dx), 0), (a + ((i + 1) * dx), f(a + (i * dx))), (a + (i * dx), f(a + (i * dx)))], i, 0, n - 1) → liats
  4. Sequence(Polygon[(a + (i * dx), 0), (a + ((i + 1) * dx), 0), (a + ((i + 1) * dx), f(a + ((i + 1) * dx))), (a + (i * dx), f(a + ((i + 1) * dx)))], i, 0, n - 1) → right
  5. Sequence(Polygon[(a + (i * dx), 0), (a + ((i + 1) * dx), 0), (a + ((i + 1) * dx), f(a + (((2 * i) + 1) / 2 * dx))), (a + (i * dx), f(a + (((2 * i) + 1) / 2 * dx)))], i, 0, n - 1) → mid
  6. Sequence(Polygon[(a + (i * dx), 0), (a + ((i + 1) * dx), 0), (a + ((i + 1) * dx), f(a + ((i + 1) * dx))), (a + (i * dx), f(a + (i * dx)))], i, 0, n - 1) → trape
  7. Textfield(f) → inputBox3
  8. Element(larea, SelectedIndex[Method]) → ac
  9. Integral(f, a, b) → act

AI Drawing Prompt Reference

Create an interactive demonstration of the area under a curve where the user can enter a function, interval endpoints a and b, and the number of subdivisions n. Plot the function and automatically draw four sets of approximating shapes: left‑endpoint rectangles, right‑endpoint rectangles, midpoint rectangles, and trapezoids. Compute and display the exact definite integral together with each approximation and its error, so that increasing n visibly shows all methods converging to the true area.
The prompt above was compiled from the original drawing commands and is for reference only.