Midpoint Rule Calculator
Type a function, an interval and a number of rectangles to use the midpoint rule.
Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).
A number such as 0 or 1/2, pi, e, inf or -inf.
A number larger than the lower limit, pi, e, inf or -inf.
A whole number of equal intervals, 1 or more.
Try
Result
You entered
Exact integral
Show the work
Midpoint Riemann sum
Cut into 4 equal intervals and add up the areas of 4 rectangles; each rectangle is as tall as the curve at the middle of its interval.
Using
Width of each interval
Divide the length of the interval by the number of rectangles.
Heights
Evaluate at each of the 4 points.
Add up
Multiply the sum of the heights by the width.
Result
The midpoint Riemann sum with 4 intervals.