Try it yourself · Class 12 Maths · Definite Integral as Area

Definite integral as area: Riemann sums with left, right, midpoint and trapezoids

The definite integral is the limit of sums of thin rectangles under a curve. The simulation draws the rectangles or trapezoids for a function you choose, adds up their areas and compares the total with the exact integral.

The blue curve is . The orange pieces are the rectangles (or trapezoids) whose areas add up to the Riemann sum; the exact integral is the area under the curve.

The simulation needs JavaScript; everything it shows is explained below.

What to change

  • Function tabs: on , on or on .
  • Rule tabs: Left, Right, Midpoint or Trapezoid; this chooses the height each strip uses.
  • Rectangles n: from 1 to 50 in steps of 1 (start at 4); the width is .

What to watch

  • , Left, n = 4: the sum is 1.7500 against the exact 2.6667, an error of -0.9167; Right gives 3.7500 (+1.0833), because is increasing.
  • , Midpoint, n = 10: the sum is 2.6600, an error of only -0.0067; Trapezoid at n = 50 gives 2.6672, an error of +0.0005.
  • , n = 4: Left and Right both give 1.8961 (error -0.1039), while Midpoint gives 2.0523 (error +0.0523); the exact integral is 2.0000.
  • , n = 4: Left gives 4.1463 and Right 6.1463 around the exact 5.3333; at n = 50 they are 5.2488 and 5.4088.

The formula

is the point in the -th strip where the height is read (left end, right end or middle); is the strip width. The sum approaches the integral as grows.

Try these questions

Work each one out with the simulation, tap to see the answer, then try the chapter quiz.

  1. Bihar Board 2025

    Find the area of the region between the -axis and the curve , from to .
    Show the answer
    2
  2. CBSE

    **Evaluate as a limit of sums:**
    Show the answer
  3. CBSE 2025

    The area of the region enclosed by the curve and the lines and and x-axis is :
    1. sq. units
    2. sq. units
    3. sq. units
    4. sq. units
    Show the answer
    (C) sq. units

More to try in Definite Integral as Area

Every simulation in the Lab