Skip to content
Lesson 9 of 10 · Calculus I

Antiderivatives and Riemann sums

Reverse differentiation to find antiderivatives, and build the definite integral from sums of thin rectangles.

24 min

Antiderivatives

An antiderivative of f is a function F with F′ = f. If F is one, so is F + C for any constant C, because constants vanish on differentiation. The whole family is the indefinite integral:

∫ f(x) dx = F(x) + C

∫=
xⁿ dx (n ≠ −1)xⁿ⁺¹/(n + 1) + C
1/x dxlnx+ C
eˣ dxeˣ + C
sin x dx−cos x + C
cos x dxsin x + C

Always check by differentiating your answer. Sums and constant multiples pass through the integral sign.

How do you find the area under a curve y = f(x) from x = a to x = b? Slice it into n thin strips of width Δx = (b − a)/n. Treat each strip as a rectangle whose height is f at a chosen point (left end, right end or midpoint). Add them up:

Riemann sum = f(x₁)Δx + f(x₂)Δx + … + f(xₙ)Δx

As n grows, the rectangles hug the curve and the sums approach one number: the definite integral

∫ₐᵇ f(x) dx = lim (n→∞) of the Riemann sum.

It is a signed area: area above the x-axis counts positive, below counts negative. If f is increasing, a left sum underestimates and a right sum overestimates.

Estimate ∫₀² x² dx using a right Riemann sum with n = 4 rectangles. Then compare with the left sum.

  1. 1

    Δx = (2 − 0)/4 = 0.5

    Width of each strip.

1/5

Find ∫ (3x² − 4x + 5) dx.

  1. 1

    ∫ 3x² dx = x³

    3 · x³/3.

1/4
Try it

With b = 2, n = 4 this gives 3.75. Raise n step by step: 10, 50, 200. The sum falls toward the exact area b³/3 = 8/3 ≈ 2.667. Try b = 3 and compare the 200-rectangle sum with 9.

2
4

Right Riemann sum for x² on [0, b]

—

Common misconception

“The definite integral is always the (positive) area between the curve and the x-axis.”

In first examples the curve sits above the axis, and 'area under the curve' is how integrals are introduced.

What is actually true

The integral is a signed total. Where f < 0 the contribution is negative. ∫₀⁴ (x − 2) dx = 0, since the triangle below the axis cancels the one above. For total area, split at the roots and add absolute values.

How to catch yourself

Sketch the graph first and look for where it crosses the axis.

  • An antiderivative F satisfies F′ = f; the indefinite integral is F + C.
  • ∫ xⁿ dx = xⁿ⁺¹/(n + 1) + C for n ≠ −1.
  • A Riemann sum adds heights × width over n strips; Δx = (b − a)/n.
  • The definite integral is the limit of Riemann sums and is a signed area.
  • For increasing f, left sums underestimate and right sums overestimate.
Check yourself

Practice.

1Multiple choice

∫ (6x² + 2) dx =

  • A2x³ + 2x + C
  • B12x + C
  • C6x³ + 2x + C
  • D2x³ + C
2Numeric answer

Left Riemann sum for ∫₀² x² dx with n = 4.

3Numeric answer

Find ∫₀⁴ (x − 2) dx, using areas of triangles.

4Multiple choice

For an increasing function, a right Riemann sum is:

  • Aalways smaller than the integral
  • Balways larger than the integral
  • Cexactly equal to the integral
  • Dunrelated to the integral

Practise this lesson, not just read it

In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of Calculus I is planned around your week. Free.