Visualization of Double Integrals with Riemann Sum Approximation
Loading the math board and drawing, please wait…
In collections
Calculus - GeoGebra Book
This GeoGebra example demonstrates the geometric interpretation and numerical approximation of the double integral ∬f(x,y)dA. The integration domain is defined on the xy-plane using Polygon and Segment commands, while the integrand surface f(x,y) is rendered via Function and CurveCartesian commands in 3D. The key feature employs Prism and Sequence commands to construct Riemann sum columns: the domain is subdivided into a grid of small rectangles, and above each sub-rectangle a prism is generated with height equal to the function value at a chosen sample point. The sum of the volumes of these prisms approximates the volume under the surface, providing an intuitive visual bridge between discrete Riemann sums and the exact double integral. Users can interact with sliders labeled m and n to adjust the grid density along the x- and y-directions respectively. As m and n increase, the partition becomes finer, and the Riemann sum approximation visibly converges toward the true integral value. The approximated sum and the exact integral are displayed numerically on the screen, allowing learners to observe the convergence behavior in real time. This applet is designed for multivariable calculus instruction, helping students build a strong geometric intuition for double integrals as volumes of solid regions bounded by a surface and its projection onto the xy-plane. By dynamically linking algebraic computation with three-dimensional visualization, it reinforces the conceptual foundation that double integrals arise as limits of Riemann sums and clarifies the relationship between analytic definitions and their geometric counterparts.
GeoGebra Commands & Parameters
Point(yAxis) → Y1Point(yAxis) → Y2Point(xAxis) → X1Point(xAxis) → X2Min(x(X1), x(X2)) → a1Max(x(X1), x(X2)) → a2Min(y(Y1), y(Y2)) → b1Max(y(Y1), y(Y2)) → b2Polygon(P1, P2, P3, P4) → poly1, p1, p2, p3, p4Segment(X2, P1) → seg01Segment(X1, P2) → seg02Segment(Y1, P1) → seg03Segment(Y2, P4) → seg04Function(f(s, t), s, a1, a2, t, b1, b2) → f2Segment(P1, Q1) → seg05Segment(P2, Q2) → seg06Segment(P3, Q3) → seg07Segment(P4, Q4) → seg08Sequence(Segment[(a1 + (k * dx), b1), (a1 + (k * dx), b2)], k, 1, m - 1) → segXsSequence(Segment[(a1, b1 + (k * dy)), (a2, b1 + (k * dy))], k, 1, n - 1) → segYsPointIn(poly1) → PMax(1, ceil((m * (x0 - a1) / (a2 - a1)))) → m0Max(1, ceil((n * (y0 - b1) / (b2 - b1)))) → n0Prism(Polygon[P5, P6, P7, P8], f(Midpoint[P5, P7])) → prismP, Q5, edgeAP5, edgeBP6, edgeCP7, edgeDP8, edgeAB, edgeBC, edgeCD, edgeAD, Q6, Q7, Q8, faceABP6P5, faceBCP7P6, faceCDP8P7, faceADP8P5, faceABCDCurveCartesian(s, b1, f(s, b1), s, a1, a2) → curveY1CurveCartesian(s, b2, f(s, b2), s, a1, a2) → curveY2CurveCartesian(a1, s, f(a1, s), s, b1, b2) → curveX1CurveCartesian(a2, s, f(a2, s), s, b1, b2) → curveX2Sequence(Sequence[Prism[Polygon[(a1 + ((j - 1) * dx), b1 + ((k - 1) * dy)), (a1 + (j * dx), b1 + ((k - 1) * dy)), (a1 + (j * dx), b1 + (k * dy)), (a1 + ((j - 1) * dx), b1 + (k * dy))], f(a1 + ((j - 1 / 2) * dx), b1 + ((k - 1 / 2) * dy))], k, 1, n], j, 1, m) → prismsPointIn(z = 0) → FlagPPoint(Line[FlagP, FlagP + (0, 0, 1)]) → FlagQSegment(FlagP, FlagQ) → FlagPolePoint(FlagPole) → APoint(FlagPole) → BPoint(Segment[A, B]) → PmPoint(Segment[A, B]) → PnPoint(Line[FuncCenter, FuncCenter + (0, 0, 1)]) → FuncHSegment(FuncH, FuncCenter) → segFuncControlsPoint(FlagPole) → FlagPCon
AI Drawing Prompt Reference
Create a 3D visualization of a double-integral approximation under the surface z = f(x,y) over the rectangle domain [a1,a2] × [b1,b2]. First, draw the rectangle boundary on the xy-plane and add reference curves corresponding to the surface along the four edges of the rectangle. Then subdivide the domain into a grid with m parts in the x-direction and n parts in the y-direction. For each small sub-rectangle, choose its center as the sampling point and build a vertical prism above that sub-rectangle; set the prism’s height equal to f evaluated at the center point. Arrange all prisms so they form a stepped solid approximating the volume under the surface, while keeping the edge curves visible to show how the prisms relate to the underlying surface.
The prompt above was compiled from the original drawing commands and is for reference only.