Chapter 12 Week 2 In-Class: Riemann Sums → Derivatives → Antiderivatives

12.1 Trapezoidal Rule

The idea here is approximate the area under the curve using the area of a trapezoid.

Key Idea

We are following the same procedure as we did for Riemann Sums. The key differences

  • Need a new expression for the area

The area \(A\) of a trapezoid is given by

\[ A = \frac{1}{2}(b_1 + b_2)h \]

where:

  • \(b_1\) and \(b_2\) are the lengths of the two parallel sides (the bases),
  • \(h\) is the height, the perpendicular distance between the bases.

What could be replace \(b_1\) and \(b_2\) with?




12.2 Problem: Approximating an Integral with the Trapezoid Rule

Let
\[ f(x) = x^2 \] on the interval \([1,7]\).

Use the Trapezoid Rule with \(n = 3\) subintervals to approximate \[ \int_{1}^{7} f(x)\,dx. \]


12.2.1 Step 1: Set Up the Riemann Sum Framework

The trapezoid rule is built from a Riemann sum, where the interval \([a,b]\) is divided into \(n\) equal subintervals of width \[ \Delta x = \frac{b-a}{n}. \]

For this problem: \[ \Delta x = \]


12.2.2 Step 2: Identify the \(x_i\) and \(f(x_i)\) Values

The partition points (also called nodes) are defined by \[ x_i = a + i\Delta x, \quad i = 0,1,2,\dots,n. \]

Using \(a=1\) and \(\Delta x=2\): \[ \begin{aligned} x_0 &= \\ x_1 &= \\ x_2 &= \\ x_3 &= \end{aligned} \]

These \(x_i\) values mark the endpoints of each trapezoid.


12.2.3 Step 3: Trapezoid Rule as a Riemann Sum

The trapezoid rule can be written as a weighted Riemann sum: \[ T_n = \frac{\Delta x}{2} \left[ f(x_0) + 2f(x_1) + 2f(x_2) + \cdots + 2f(x_{n-1}) + f(x_n) \right]. \]

Important observations:

  • The first and last function values are counted once
  • All interior function values are counted twice

12.2.4 Step 4: Why This Formula Represents Trapezoids

On each subinterval \([x_{i-1}, x_i]\), the area is approximated by a trapezoid with:

  • Base width: \(\Delta x\)
  • Parallel sides: \(f(x_{i-1})\) and \(f(x_i)\)

The area of a single trapezoid is \[ \text{Area}_i = \frac{1}{2}\left[f(x_{i-1}) + f(x_i)\right]\Delta x. \]

Summing the areas of all trapezoids gives \[ \sum_{i=1}^{n} \frac{1}{2}\left[f(x_{i-1}) + f(x_i)\right]\Delta x, \] which simplifies to the trapezoid rule formula above.


12.2.5 Numerical Evaluation














12.2.6 Key Takeaway

The trapezoid rule is still a Riemann sum, but it improves accuracy by:

  • Using both left and right endpoint values
  • Approximating the region under the curve with trapezoids instead of rectangles

12.3 Definite Integrals and the Fundamental Theorem of Calculus

In the previous chapter, you developed an intuition for accumulation by approximating totals from rates using rectangles, tables, and graphs. You saw how adding up many small contributions can represent meaningful environmental quantities such as total rainfall, streamflow, carbon exchange, or pollutant transport. You also encountered the idea of signed accumulation, where gains and losses can offset each other over time.

This chapter formalizes those ideas.

Here, we move from “adding rectangles makes sense” to “integrals are well-defined mathematical objects with powerful and reliable properties.” You will learn how mathematicians define accumulation precisely, why different approximation methods converge to the same value, and how integrals connect directly back to derivatives through one of the most important results in calculus.

Rather than treating integrals as a new collection of formulas, this chapter emphasizes meaning first. Computation matters, but it is grounded in interpretation: what a definite integral represents, how it behaves, and why it works.

By the end of this chapter, you should clearly understand:

  • what a definite integral is and how it arises from limits of Riemann sums
  • why a definite integral represents accumulation, not just area
  • how integration and differentiation are connected
  • how to compute definite integrals efficiently without losing meaning

12.4 From Riemann Sums to Definite Integrals

In the previous chapter, you learned how to approximate accumulation by adding up rectangles under a rate curve. These approximations—left, right, midpoint, and trapezoidal—allowed you to estimate totals from discrete measurements and to reason carefully about overestimates, underestimates, and conservativeness.

In this section, we take the next conceptual step:

Riemann sums are a process.
The definite integral is the result of that process.


12.4.1 Riemann Sums as Structured Approximations

A Riemann sum is a structured way to approximate accumulation:

  1. Partition an interval \([a,b]\)
  2. Choose a representative rate in each slice
  3. Multiply rate by width
  4. Add all contributions

This mirrors how environmental data are handled in practice: discrete measurements represent continuous processes.


12.4.2 From Finite Sums to a Limit

A Riemann sum has the form: \[ \sum_{i=1}^n f(x_i^*)\Delta x \]

As \(n \to \infty\), rectangles become thinner and approximation error shrinks.


12.4.3 Defining the Definite Integral

The definite integral is defined as: \[ \int_a^b f(x)\,dx = \lim_{n\to\infty} \sum_{i=1}^n f(x_i^*)\Delta x \]

This definition formalizes accumulation with perfect resolution.


12.4.4 Conceptual Meaning

The expression \[ \int_a^b f(x)\,dx \] means:

The total accumulated effect of the rate \(f(x)\) as \(x\) runs from \(a\) to \(b\)


12.5 Evaluating a Definite Integral (Step by Step)

Before learning shortcut rules for integrals, it is essential to practice the core process used to evaluate a definite integral. This section will guide you through that process one step at a time, with checkpoints to help you reflect on what each step means.


12.5.1 What does a definite integral represent?

A definite integral, \[ \int_a^b f(x)\,dx, \] represents the net accumulation of a quantity whose rate or density is given by \(f(x)\) over the interval \([a,b]\).


12.5.2 Step 1: Identify the function being accumulated

Consider the integral: \[ \int_1^4 x^2\,dx. \]

Checkpoint 1

  • What is the function being accumulated?

  • Over what interval does the accumulation occur?

  • Function: __________________________

  • Interval: __________________________


12.5.3 Step 2: Find an antiderivative

To evaluate a definite integral, you first need an antiderivative.

An antiderivative of \(f(x)\) is a function \(F(x)\) such that
\[ F'(x) = f(x). \]

Practice

Find an antiderivative of: \[ f(x) = x^2 \]

\[ F(x) = \rule{6cm}{0.15mm} \]

(Do not include a constant of integration.)


12.5.4 Step 3: Evaluate the antiderivative at the bounds

Next, evaluate your antiderivative at the upper bound and the lower bound.

Upper bound:

\[ F(4) = \rule{6cm}{0.15mm} \]

Lower bound:

\[ F(1) = \rule{6cm}{0.15mm} \]


12.5.5 Step 4: Subtract to find the net accumulation

The value of the definite integral is found by subtracting: \[ \int_1^4 x^2\,dx = F(4) - F(1). \]

Compute the difference:

\[ F(4) - F(1) = \rule{6cm}{0.15mm} \]


12.5.6 Step 5: Interpret the result

Your final answer represents the total accumulated amount of \(x^2\) from \(x=1\) to \(x=4\).

Reflection questions

  • Is your result positive or negative? Why does that make sense?
  • Would your answer change if you added a constant \(C\) to the antiderivative? Why or why not?

\[ \rule{12cm}{0.15mm} \]


12.6 Why there is no constant of integration

Suppose your antiderivative had included a constant \(C\): \[ F(x) + C. \]

When evaluating the definite integral, you would compute: \[ (F(4) + C) - (F(1) + C). \]

Checkpoint 2

  • What happens to the constant \(C\)?
  • What does this tell you about definite integrals?

\[ \rule{12cm}{0.15mm} \]


12.7 Summary: The Evaluation Process

Every definite integral is evaluated using the same three-step process:

  1. Find an antiderivative
  2. Evaluate it at the upper and lower bounds
  3. Subtract to find net accumulation

12.7.1 Optional Challenge

Evaluate the following using the same steps:

\[ \int_0^2 (3x^2)\,dx \]











12.8 Properties of Definite Integrals

12.8.1 Linearity

\[ \int_a^b [f(x)+g(x)]dx = \int_a^b f(x)dx + \int_a^b g(x)dx \]

\[ \int_a^b c f(x)\,dx = c\int_a^b f(x)\,dx \]

Linearity reflects additive physical processes.


12.8.2 Additivity Over Intervals

If \(a<c<b\), \[ \int_a^b f(x)dx = \int_a^c f(x)dx + \int_c^b f(x)dx \]


12.8.3 Reversing Limits

\[ \int_a^b f(x)dx = -\int_b^a f(x)dx \]

Direction matters.


12.8.4 Constant Functions

\[ \int_a^b c\,dx = c(b-a) \]

This anchors integration to everyday reasoning.


12.9 The Fundamental Theorem of Calculus (Part I)

Define an accumulation function: \[ A(x) = \int_a^x f(t)\,dt \]

Then: \[ A'(x) = f(x) \]

The rate of change of accumulation equals the original rate.


12.10 The Fundamental Theorem of Calculus (Part II)

If \(F'(x)=f(x)\), then: \[ \int_a^b f(x)\,dx = F(b) - F(a) \]

This works because accumulation functions are antiderivatives.


Worked Example

Suppose carbon flux is modeled by: \[ f(t)=3t^2 + 7 \quad \text{(kg/hr)} \]

Find net carbon exchange from \(t=1\) to \(t=4\).

Antiderivative:



Evaluate:












12.11 Conceptual Questions

Why are Riemann sums a process rather than a final answer?










12.12 Practice Problems

Evaluate: \[ \int_0^2 (3x^2+4x)\,dx \]










12.12.1 Key Takeaway

Definite integrals describe accumulated change.
Antiderivatives provide an efficient way to compute that change — but meaning always comes first.

12.13 Practice: Properties of Definite Integrals & the Fundamental Theorem of Calculus

These problems are designed to help you practice using the properties of definite integrals and the Fundamental Theorem of Calculus in a purposeful way.

As you work, ask yourself: - Can I simplify this integral before computing? - Does the sign of the rate matter? - What does the result represent physically?


12.14 Practice Set A: Linearity and Constants

12.14.1 A1. Using Linearity

Let \[ f(t) = 5t^2 - 4t + 6. \]

  1. Rewrite the integral using linearity: \[ \int_0^2 (5t^2 - 4t + 6)\,dt \]

  2. Identify which term you expect to contribute the most to the total accumulation.

  3. Evaluate the integral.


12.14.2 A2. Constant Multiple Rule

Suppose nutrient uptake is modeled by \[ N(t) = 12(0.5t^2 + 1) \quad \text{(mg/day)}. \]

  1. Rewrite the integral by factoring out the constant.
  2. Evaluate \[ \int_0^3 N(t)\,dt. \]
  3. Interpret your answer, including units.

12.14.3 A3. Accumulation with an Exponential Rate

Suppose the rate of carbon uptake by vegetation is modeled by \[ C(t) = 4e^{t} + 2 \quad \text{(kg/day)}. \]

  1. Use linearity to rewrite the integral \[ \int_0^2 (4e^{t} + 2)\,dt \] as a sum of two simpler integrals.

  2. Evaluate each integral and compute the total carbon uptake over \([0,2]\).

  3. Interpret your result, including units.


12.14.4 A4. Comparing Exponential and Linear Growth

Consider two accumulation processes over the interval \([0,2]\):

\[ f(t) = 4t + 2 \qquad g(t) = 4e^{t} + 2. \]

  1. Compute \[ \int_0^2 f(t)\,dt \quad \text{and} \quad \int_0^2 g(t)\,dt. \]

  2. Which process leads to greater total accumulation?

  3. Explain why exponential rates can produce much larger accumulation even over short time intervals.


12.14.5 Concept Check (Exponential Rates)

Without computing:

  • How does the shape of \(e^t\) influence accumulation compared to a linear rate?
  • What happens to the accumulation if the interval length increases slightly?

12.15 Practice Set B: Signed Accumulation and Additivity

12.15.1 B1. Positive vs. Negative Contributions

A wetland’s net nutrient flux is modeled by \[ R(t) = 6 - 2t \quad \text{(kg/day)}. \]

  1. Determine when the rate is positive and when it is negative.
  2. Sketch a graph of the rate.
  3. Split the integral at the appropriate time.
  4. Compute:
    • total nutrient input
    • total nutrient removal
    • net nutrient change on \([0,5]\)

12.15.2 B2. Same Net Change, Different Behavior

Two systems are observed over the interval \([0,4]\).

System A: \[ f(t) = 2 - t \]

System B: \[ g(t) = \sin\!\left(\frac{\pi t}{2}\right) \]

  1. Compute the net change for each system.
  2. Compare the total amount exchanged in each system.
  3. Explain how two systems can have the same net change but behave very differently.

12.16 Practice Set C: Accumulation Functions (FTC Part I)

12.16.1 C1. Building an Accumulation Function

Let \[ r(t) = 3t + 2 \quad \text{(kg/hr)}. \]

Define the accumulation function: \[ A(x) = \int_1^x r(t)\,dt. \]

  1. Find an explicit formula for \(A(x)\).
  2. Compute \(A(4)\).
  3. Explain what \(A'(x)\) represents.
  4. State the units of \(A(x)\).

12.16.2 C2. Interpreting Accumulation Without Computing

Based on the behavior of the rate function:

  • Where would the accumulation function increase most rapidly?
  • Where would it be concave up?
  • What would a flat section of the accumulation function represent?

12.17 Practice Set D: Evaluating Definite Integrals Using FTC Part II

12.17.1 D1. Two Approaches to Net Change

Let \[ f(t) = t^2 - 4t. \]

  1. Identify where the rate is positive and where it is negative.
  2. Compute the net change on \([0,5]\) by:
    • splitting the interval where the sign changes
    • using an antiderivative and FTC Part II
  3. Explain why both approaches give the same result.

12.18 Conceptual Reflection

Answer in complete sentences.

  1. Why are Riemann sums considered a process rather than a final result?
  2. When is it useful to split an integral before computing it?
  3. Can a system experience large total exchange but small net change? Explain.
  4. What information does a definite integral not provide on its own?

12.19 Practice Set E

12.19.1 E1. Linearity (Sum and Difference)

  1. Suppose
    \[ \int_{2}^{6} f(x)\,dx = 5 \quad \text{and} \quad \int_{2}^{6} g(x)\,dx = -3. \]
    Evaluate: \[ \int_{2}^{6} [f(x) + g(x)]\,dx \]

  1. Given
    \[ \int_{-1}^{3} h(x)\,dx = 7, \]
    find: \[ \int_{-1}^{3} [h(x) - 4]\,dx \]

  1. Let
    \[ \int_{0}^{4} p(x)\,dx = 6 \quad \text{and} \quad \int_{0}^{4} q(x)\,dx = 10. \]
    Compute: \[ \int_{0}^{4} [3p(x) - 2q(x)]\,dx \]

12.19.2 E2. Constant Multiple Rule

  1. If
    \[ \int_{1}^{5} r(x)\,dx = -2, \]
    evaluate: \[ \int_{1}^{5} 6r(x)\,dx \]

  1. Given
    \[ \int_{-2}^{2} f(x)\,dx = 9, \]
    find: \[ \int_{-2}^{2} \tfrac{1}{3} f(x)\,dx \]

12.19.3 E3. Additivity Over Intervals

  1. Suppose
    \[ \int_{0}^{3} f(x)\,dx = 4 \quad \text{and} \quad \int_{3}^{7} f(x)\,dx = -1. \]
    Find: \[ \int_{0}^{7} f(x)\,dx \]

  1. You are told that
    \[ \int_{1}^{4} g(x)\,dx = 6 \quad \text{and} \quad \int_{1}^{2} g(x)\,dx = 2. \]
    Determine: \[ \int_{2}^{4} g(x)\,dx \]

12.19.4 E4. Combining Multiple Properties

  1. Let
    \[ \int_{0}^{2} f(x)\,dx = 3, \quad \int_{2}^{5} f(x)\,dx = -1. \]
    Evaluate: \[ \int_{0}^{5} [2f(x) + 1]\,dx \]

  1. Suppose
    \[ \int_{-4}^{0} h(x)\,dx = -5 \quad \text{and} \quad \int_{0}^{4} h(x)\,dx = 7. \]
    Find: \[ \int_{-4}^{4} [-h(x)]\,dx \]

12.19.5 E5. Conceptual (No Computation Required)

  1. Without evaluating any integrals, explain why
    \[ \int_{a}^{b} [f(x) + c]\,dx \]
    can always be written as the sum of two simpler integrals.

What does each part represent?

12.20 Practice Set F: Indefinite Integrals

For each problem, find the most general antiderivative.
Be sure to include the constant of integration \(C\).


12.20.1 F1. Polynomial Function

Evaluate: \[ \int (4x^3 - 6x + 5)\,dx \]


12.20.2 F2. Constant Multiple and Power Rule

Evaluate: \[ \int 7x^{1/2}\,dx \]


12.20.3 F3. Exponential Function

Evaluate: \[ \int 3e^{x}\,dx \]


12.20.4 F4. Trigonometric Function (Sine)

Evaluate: \[ \int \sin x\,dx \]


12.20.5 F5. Trigonometric Function (Cosine)

Evaluate: \[ \int 5\cos x\,dx \]


Click to Unlock Solutions