Integrals: the basics

Approximating area with rectangles

The area under a curve can be approximated by splitting the interval into thin rectangles and adding up their areas.

S≈∑k=0n−1f(xk) Δx,Δx=b−an, xk=a+k Δx\begin{gathered} S\approx\sum_{k=0}^{n-1}f(x_k)\,\Delta x, \\[4pt] \Delta x=\frac{b-a}{n},\ x_k=a+k\,\Delta x \end{gathered}

Splitting a≤x≤ba\le x\le b into nn equal parts gives rectangles of width Δx=b−an\Delta x=\dfrac{b-a}{n}. Taking each height as f(x)f(x) at the left endpoint, the sum of the rectangle areas approximates the area under the curve.

For example, splitting y=x2y=x^2, 0≤x≤10\le x\le 1 into 4 parts gives width 14\dfrac14 and left endpoints x=0, 14, 12, 34x=0,\ \dfrac14,\ \dfrac12,\ \dfrac34. The 4th height is (34)2=916\left(\dfrac34\right)^2=\dfrac{9}{16}, and the sum is

14(0+116+416+916)=732\begin{gathered} \frac14\left(0+\frac{1}{16}+\frac{4}{16}+\frac{9}{16}\right) \\[4pt] =\frac{7}{32} \end{gathered}

As the rectangles get thinner, the sum approaches the area under the curve (here 13\dfrac13). This is the idea behind the definite integral.

Examples

  1. 01Split into 44 equal parts and take heights at the left endpoints. What is the height of the 44th rectangle?y=x2,0≤x≤1\displaystyle y=x^{2}, \quad 0 \le x \le 1AnswerHide
    Answer916\displaystyle \frac{9}{16}

    Steps

    1. x\displaystyle x=34\displaystyle = \frac{3}{4}
    2. The height there is
    3. y\displaystyle y=(34)2=916\displaystyle = \left(\frac{3}{4}\right)^2 = \frac{9}{16}
  2. 02Split this interval into 44 equal parts. What is the width of one rectangle?0≤x≤3\displaystyle 0 \le x \le 3AnswerHide
    Answer34\displaystyle \frac{3}{4}

    Steps

    1. 3−04\displaystyle \frac{3 - 0}{4}=34\displaystyle = \frac{3}{4}
  3. 03Split this interval into 33 equal parts. What is the width of one rectangle?0≤x≤6\displaystyle 0 \le x \le 6AnswerHide
    Answer2\displaystyle 2

    Steps

    1. 6−03\displaystyle \frac{6 - 0}{3}=2\displaystyle = 2
  4. 04Split this interval into 33 equal parts. What is the width of one rectangle?0≤x≤4\displaystyle 0 \le x \le 4AnswerHide
    Answer43\displaystyle \frac{4}{3}

    Steps

    1. 4−03\displaystyle \frac{4 - 0}{3}=43\displaystyle = \frac{4}{3}
  5. 05Split this interval into 66 equal parts. What is the width of one rectangle?0≤x≤2\displaystyle 0 \le x \le 2AnswerHide
    Answer13\displaystyle \frac{1}{3}

    Steps

    1. 2−06\displaystyle \frac{2 - 0}{6}=13\displaystyle = \frac{1}{3}

FAQ

Q1Should the height come from the left or right endpoint?AnswerHide
A
Either one approaches the same area as the rectangles get thinner (for a continuous function). With a coarse split the values differ: for an increasing function like y=x2y=x^2, left endpoints give a smaller value and right endpoints a larger one.
Q2With 4 parts and left endpoints, where is the left edge of the 4th rectangle?AnswerHide
A
At x=a+3Δxx=a+3\Delta x. The 1st rectangle starts at x=ax=a (k=0k=0), so the 4th is k=3k=3. For 0≤x≤10\le x\le 1 that is x=34x=\dfrac34.

Published 2026-10-14 · Updated 2026-10-14