Sign up freeSign in

Courses · Calculus 1 · Unit guide

Calculus 1: Antiderivatives and Riemann sums

From plus C and initial values to rectangles, sigma notation and the definite integral

This unit covers: Indefinite integrals, initial value problems, sigma notation, left, right and midpoint sums, the definite integral.

Take the unit quiz Study the flashcards Make flashcards from my notes
Calculus 1: Antiderivatives and Riemann sums mindmap: What an antiderivative is, The indefinite integral and the power rule, Why the plus C matters, Initial value problems, Sigma notation and its formulas, Building a Riemann sum, Left, right and midpoint sums, Overestimate or underestimate?, The definite integral as a limit
The unit on one page. Open the image to save or print it.

Quick dare: what's the antiderivative of two x? If you said x squared and stopped, you've made this unit's most common mistake. In a first calculus course, this unit runs from undoing derivatives to adding up rectangles, and ends at the definite integral.

In this guide
  1. What an antiderivative is
  2. The indefinite integral and the power rule
  3. Why the plus C matters
  4. Initial value problems
  5. Sigma notation and its formulas
  6. Building a Riemann sum
  7. Left, right and midpoint sums
  8. Overestimate or underestimate?
  9. The definite integral as a limit

What an antiderivative is

Let's start with the definition, because everything else builds on it. An antiderivative of f is any function F whose derivative is f on the interval you care about. So x squared is an antiderivative of two x, since its derivative is two x. But x squared plus seven also works, and so does x squared minus a hundred. That's the key point: antiderivatives never come alone.

F is an antiderivative of f on an interval if F′(x) = f(x) for every x in that interval. Definition of an antiderivative

Key points.

  • An antiderivative reverses differentiation
  • F′(x) = f(x) on the whole interval
  • x² is an antiderivative of 2x, and so is x² + 7

The indefinite integral and the power rule

We write the whole family of antiderivatives as an indefinite integral. The integral of x to the n is x to the n plus one, over n plus one, plus C. That works for every n except negative one, because you'd divide by zero. For one over x, the answer is the natural log of the absolute value of x, plus C. So the integral of three x squared plus four x minus five is x cubed plus two x squared minus five x, plus C.

∫xⁿ dx = xⁿ⁺¹/(n+1) + C
n ≠ −1
∫1/x dx = ln|x| + C
∫(3x² + 4x − 5) dx
= x³ + 2x² − 5x + C

Key points.

  • Power rule: raise the exponent by one, divide by the new exponent
  • It fails for n = −1, where the answer is ln|x| + C
  • Integrate term by term and add one + C at the end

Why the plus C matters

Here's why the constant isn't a technicality. If two functions have the same derivative on an interval, they differ by a constant. Picture x squared, x squared plus one, and x squared minus two. At any given x, all three curves have exactly the same slope, so they're just copies shifted up or down. The indefinite integral names that whole family, and plus C is how you say so.

Key points.

  • All antiderivatives differ by a constant
  • Their graphs are vertical shifts of each other
  • Same slope at every x, different heights

Initial value problems

An initial value problem picks one member of the family. Suppose f prime of x is six x squared minus two, and f of one equals five. First we antidifferentiate, getting two x cubed minus two x plus C. Then we plug in one: two minus two plus C equals five. So C equals five, and the answer is f of x equals two x cubed minus two x plus five.

f′(x) = 6x² − 2,  f(1) = 5
f(x) = 2x³ − 2x + C
f(1) = 2 − 2 + C = 5
C = 5
f(x) = 2x³ − 2x + 5

Key points.

  • Antidifferentiate to get the general solution with + C
  • Plug in the initial condition to solve for C
  • The result is one specific function

Sigma notation and its formulas

Now we switch to areas, and for that we need a compact way to write long sums. Capital sigma, with i running from one to n, of a sub i means a one plus a two, all the way to a sub n. Two formulas do most of the work. The sum of i is n times n plus one, over two. The sum of i squared is n times n plus one times two n plus one, over six. For example, one through ten adds to ten times eleven over two, which is fifty five.

Σ (i=1 to n) ai = a1 + a2 + … + an
Σ i = n(n+1)/2
Σ i² = n(n+1)(2n+1)/6
Σ (i=1 to 10) i = 10·11/2 = 55

Key points.

  • Sigma is shorthand for adding many terms
  • Sum of i from 1 to n is n(n+1)/2
  • Sum of i² from 1 to n is n(n+1)(2n+1)/6

Building a Riemann sum

A Riemann sum approximates the area under a curve with rectangles. You split the interval from a to b into n equal pieces, each of width delta x, which is b minus a over n. In each piece you choose a sample point, and the function's value there is the rectangle's height. Then you add up height times width across all n rectangles, and that total is your estimate.

  1. Compute Δx = (b − a)/n
  2. Mark endpoints xi = a + iΔx
  3. Choose sample points: left, right or midpoint
  4. Find each height f(xi*)
  5. Add up f(xi*)Δx over all n rectangles

Left, right and midpoint sums

Let's try x squared from zero to two with four rectangles, so delta x is one half. The left sum uses heights at zero, a half, one and one and a half, giving one point seven five. The right sum uses a half through two, giving three point seven five. The midpoint sum uses the centers of each piece, and that works out to two point six two five, much closer to the true area.

f(x) = x² on [0, 2], n = 4, Δx = 0.5
L4 = 0.5(0 + 0.25 + 1 + 2.25) = 1.75
R4 = 0.5(0.25 + 1 + 2.25 + 4) = 3.75
M4 = 0.5(0.0625+0.5625+1.5625+3.0625)
M4 = 2.625

Key points.

  • x² on [0, 2] with four rectangles of width 0.5
  • Left 1.75, right 3.75, midpoint 2.625
  • The midpoint sum is closest to the true 8/3

Overestimate or underestimate?

Students often mix up which sum is too big. Think about where each rectangle touches the curve. If the function is increasing, the left endpoint is the lowest point in each piece, so the left sum underestimates and the right sum overestimates, just like our one point seven five and three point seven five. If the function is decreasing, it flips. Either way, more rectangles shrink the error.

Increasing function

  • Left sum underestimates
  • Right sum overestimates
  • x² on [0, 2]: 1.75 < area < 3.75

Decreasing function

  • Left sum overestimates
  • Right sum underestimates
  • Rectangles hang above or below the curve

The definite integral as a limit

The definite integral from a to b of f is the limit of the Riemann sums as n goes to infinity. It's a number, not a family, and it measures net signed area, so area below the axis counts as negative. For x squared on zero to two, delta x is two over n and x sub i is two i over n. The sum becomes eight over n cubed times the sum of i squared. Using our formula, that heads to sixteen sixths, which is eight thirds.

∫ₐᵇ f(x) dx = lim (n→∞) Σ f(xi)Δx
∫₀² x² dx: Δx = 2/n, xi = 2i/n
Σ (4i²/n²)(2/n) = (8/n³) Σ i²
= (8/n³) · n(n+1)(2n+1)/6
→ 16/6 = 8/3 ≈ 2.667

Key points.

  • Definite integral = limit of Riemann sums as n → ∞
  • It gives net signed area; area below the axis counts negative
  • Using Σ i², the integral of x² from 0 to 2 is 8/3

Remember this

If you remember one thing, it's this: an indefinite integral is a family, so write plus C, while a definite integral is one number, the limit of Riemann sums. Now quiz yourself on the material..

Practice this unit

  • Calculus 1: Antiderivatives and Riemann Sums quiz15 multiple-choice questions with explanations · no account needed
  • Calculus 1: Limits and Continuity quiz15 multiple-choice questions with explanations · no account needed
  • Calculus 1: The Derivative as a Limit quiz15 multiple-choice questions with explanations · no account needed
  • Calculus 1: Antiderivatives and Riemann Sums37 flashcards · study free
  • Calculus 1: Limits and Continuity36 flashcards · study free
  • Calculus 1: The Derivative as a Limit32 flashcards · study free
  • Calculus 1: Differentiation Rules33 flashcards · study free

Every Calculus 1 deck and quiz: the Calculus 1 page.

Other Calculus 1 unit guides

  • Limits and continuityStudy guide
  • The derivative as a limitStudy guide
  • Differentiation rulesStudy guide
  • Chain rule and implicit differentiationStudy guide
  • Related ratesStudy guide
  • Curve sketching and the Mean Value TheoremStudy guide
  • OptimizationStudy guide
  • Linear approximation and L’Hôpital’s ruleStudy guide
  • Fundamental Theorem of Calculus and substitutionStudy guide

Try it with your own material

Upload a PDF, slides or notes and study the deck in minutes. Making your own cards is free with no limits.

Make flashcards from my notesSee how Quizcard works