DGS Studio

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

Try a change

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.

Edit and generate

Generate Graph opens the studio homepage and runs this field. Open in DGS Studio loads the same text and waits for you to generate it. The equation is sent once, as a query parameter.

Related examples