Interactive Calculus
Riemann Sums
Visualize left, right, and midpoint Riemann sums.
The region is under y = x² from 0 to 3. The exact integral is ∫₀³ x² dx = 9. The drawing starts with midpoint rectangles and a small number of them, controlled by a slider.
Left, right, and midpoint rules use the same interval and only move the sample point inside each rectangle. More rectangles follow the curve more closely. The signed area stays positive here because x² is nonnegative on [0, 3].
Equation
riemann sum of y=x^2 from 0 to 3
What the calculus picture shows
Calculus examples in the graph workflow draw a process, not only a final number. A derivative can appear as a tangent, a secant sliding toward that tangent, or a transformed parent function. A Riemann sum draws rectangles whose areas approach a definite integral.
The exact symbolic result and the picture answer different questions. The picture shows how the approximation moves. The value, when the integral exists, is the limit of those approximations. Generate Graph keeps the original sentence in the input so you can edit the function or the bounds.
Reading the input
riemann sum of y=x^2 from 0 to 3— This line is part of the example input and is sent to DGS unchanged.
Try a change
- Edit one number in the field, then use Generate Graph. The studio opens on the homepage with the edited text and runs it.
- Use Open in DGS Studio when you want the expression loaded but not run yet.
Generate Graph posts the expression to the studio graph engine and draws the result on the homepage. The editable field is the entire input, including every line.