Chapter 8
15 min read
Section 74 of 353

Properties of Definite Integrals

The Definite Integral

Learning Objectives

By the end of this section, you will be able to:

  1. Apply the constant multiple rule and sum rule to simplify integrals
  2. Use the additivity property to split integrals at intermediate points
  3. Understand what happens when integration limits are reversed or equal
  4. Apply comparison properties to bound integrals between known values
  5. Connect these properties to expected value computations in probability
  6. Recognize how linearity of integration appears in machine learning algorithms

The Big Picture: Why Properties Matter

"The properties of definite integrals are the rules of the game — they tell us how to manipulate and simplify integrals without computing them directly."

In the previous sections, we defined the definite integral as a limit of Riemann sums and explored how to approximate it numerically. But computing integrals from the definition every time would be tedious and error-prone. The properties of definite integrals provide powerful shortcuts that allow us to:

  • Break complex integrals into simpler pieces using additivity
  • Pull constants out of integrals using the constant multiple rule
  • Integrate sums term by term using the sum rule
  • Estimate integral values using comparison properties

The Linearity Principle

The most important insight is that integration is a linear operation. This means it respects addition and scalar multiplication — the same properties that make matrices, derivatives, and expected values so powerful in mathematics.

These properties will be essential when we reach the Fundamental Theorem of Calculus, which connects integration to antiderivatives and provides an efficient method for computing definite integrals exactly.


Historical Context

The properties of definite integrals were developed alongside the integral itself in the 17th century. Isaac Newton (1642–1727) and Gottfried Wilhelm Leibniz (1646–1716) independently discovered that integration satisfies algebraic properties analogous to those of finite sums.

The linearity of integration reflects a deep principle: integration is a way of "adding up" infinitely many infinitesimal pieces. Just as finite sums satisfy (ai+bi)=ai+bi\sum (a_i + b_i) = \sum a_i + \sum b_i, integrals satisfy [f(x)+g(x)]dx=f(x)dx+g(x)dx\int [f(x) + g(x)] \, dx = \int f(x) \, dx + \int g(x) \, dx.

From Sums to Integrals

Every property of definite integrals has an analog in finite sums. The integral is the "continuous limit" of a sum, so it inherits all the algebraic properties of summation.


Property 1: Zero Width Integral

The simplest property states that if the upper and lower limits are equal, the integral is zero:

Zero Width Property

aaf(x)dx=0\int_a^a f(x) \, dx = 0

Why does this make sense? The definite integral represents the signed area under a curve. If the interval has zero width, there is no area — regardless of how "tall" the function is at that point.

Geometrically, you're asking for the area of a region with zero width — a vertical line segment has no area.


Property 2: Reversing Limits

Swapping the upper and lower limits negates the integral:

Reversing Limits Property

baf(x)dx=abf(x)dx\int_b^a f(x) \, dx = -\int_a^b f(x) \, dx

Intuition

Think of the integral as measuring "directed area" or "signed accumulation." Moving from aa to bb accumulates area in one direction; moving from bb to aa accumulates it in the opposite direction.

This property is crucial in physics, where the direction of integration matters. For example, work done moving an object from A to B is the negative of work done moving from B to A (if we push in the same direction).

Memory Aid

Reversing limits is like walking a path backwards — you cover the same distance but in the opposite direction. In terms of signed area or accumulation, the sign flips.


Property 3: Constant Multiple Rule

Constants can be "pulled out" of definite integrals, just like they can be pulled out of derivatives and finite sums:

Constant Multiple Rule

abcf(x)dx=cabf(x)dx\int_a^b c \cdot f(x) \, dx = c \cdot \int_a^b f(x) \, dx

where cc is any constant

Why This Works

Consider the Riemann sum definition. If we multiply the function by a constant:

i=1ncf(xi)Δx=ci=1nf(xi)Δx\sum_{i=1}^{n} c \cdot f(x_i^*) \Delta x = c \cdot \sum_{i=1}^{n} f(x_i^*) \Delta x

The constant factors out of every term in the sum, so it factors out of the limit as well.

Example

Given: 02f(x)dx=5\int_0^2 f(x) \, dx = 5

Find: 023f(x)dx\int_0^2 3f(x) \, dx

023f(x)dx=302f(x)dx=35=15\int_0^2 3f(x) \, dx = 3 \cdot \int_0^2 f(x) \, dx = 3 \cdot 5 = 15

Property 4: Sum and Difference Rules

The integral of a sum (or difference) is the sum (or difference) of the integrals:

Sum Rule

ab[f(x)+g(x)]dx\int_a^b [f(x) + g(x)] \, dx
=abf(x)dx+abg(x)dx= \int_a^b f(x) \, dx + \int_a^b g(x) \, dx

Difference Rule

ab[f(x)g(x)]dx\int_a^b [f(x) - g(x)] \, dx
=abf(x)dxabg(x)dx= \int_a^b f(x) \, dx - \int_a^b g(x) \, dx

The Power of Linearity

Combining the constant multiple rule with the sum rule gives us the full linearity property:

Linearity of Integration

ab[c1f(x)+c2g(x)]dx=c1abf(x)dx+c2abg(x)dx\int_a^b [c_1 f(x) + c_2 g(x)] \, dx = c_1 \int_a^b f(x) \, dx + c_2 \int_a^b g(x) \, dx

This is the same property that makes expected values, derivatives, and linear algebra so powerful. Linear operators are predictable and well-behaved.

Interactive: Linearity Properties

Explore the constant multiple rule and sum rule with this interactive visualizer:

Linearity of the Definite Integral
Constant Multiple Rule
abcf(x)dx=cabf(x)dx\int_a^b c \cdot f(x) \, dx = c \cdot \int_a^b f(x) \, dx
abf(x)dx\int_a^b f(x) \, dx
6.490
ab2f(x)dx\int_a^b 2f(x) \, dx
12.980
Verification:
12.980=2×6.490=12.980

Property 5: Additivity Over Intervals

One of the most useful properties allows us to split an integral at any intermediate point:

Additivity Property

abf(x)dx=acf(x)dx+cbf(x)dx\int_a^b f(x) \, dx = \int_a^c f(x) \, dx + \int_c^b f(x) \, dx

for any cc (not necessarily between a and b)

Why This Matters

This property is essential for:

  • Piecewise functions: When a function has different formulas on different intervals, we can integrate each piece separately
  • Numerical methods: Breaking an integral into smaller subintervals often improves accuracy
  • Theoretical proofs: Many calculus theorems require splitting integrals at strategic points

Example: Piecewise Function

Consider f(x)={xif 0x<12xif 1x2f(x) = \begin{cases} x & \text{if } 0 \leq x < 1 \\ 2 - x & \text{if } 1 \leq x \leq 2 \end{cases}

To compute 02f(x)dx\int_0^2 f(x) \, dx:

02f(x)dx=01xdx+12(2x)dx\int_0^2 f(x) \, dx = \int_0^1 x \, dx + \int_1^2 (2-x) \, dx
(split at x = 1 where the formula changes)

Interactive: Additivity Demo

Drag the split point c to see how the additivity property works in action:

Additivity Property of Integrals
Additivity Property
abf(x)dx=acf(x)dx+cbf(x)dx\int_a^b f(x) \, dx = \int_a^c f(x) \, dx + \int_c^b f(x) \, dx
ac\int_a^c
2.533
cb\int_c^b
5.733
ab\int_a^b
8.267
2.533+5.733=8.2678.267
Key Insight: The integral over a full interval equals the sum of integrals over sub-intervals. This works for any split point c between a and b.

Property 6: Comparison Properties

When we can't compute an integral exactly, comparison properties help us bound it between known values.

Non-negativity

If f(x)0f(x) \geq 0 for all x[a,b]x \in [a, b], then:

abf(x)dx0\int_a^b f(x) \, dx \geq 0

A non-negative function has a non-negative integral — you can't accumulate negative area if there is none.

Ordering Property

If f(x)g(x)f(x) \leq g(x) for all x[a,b]x \in [a, b], then:

abf(x)dxabg(x)dx\int_a^b f(x) \, dx \leq \int_a^b g(x) \, dx

If one function is always below another, its accumulated area is also smaller.

Bounding Property

If mf(x)Mm \leq f(x) \leq M for all x[a,b]x \in [a, b], then:

m(ba)abf(x)dxM(ba)m(b-a) \leq \int_a^b f(x) \, dx \leq M(b-a)

This bounds the integral between the areas of rectangles with heights m and M. It's useful for estimating integrals when the exact value is unknown.

Absolute Value Property

abf(x)dxabf(x)dx\left| \int_a^b f(x) \, dx \right| \leq \int_a^b |f(x)| \, dx

The absolute value of an integral is at most the integral of the absolute value. This is the continuous analog of the triangle inequality.

Interactive: Comparison Properties

Comparison Properties of Integrals
Bounding Property
m(ba)abf(x)dxM(ba)m(b-a) \leq \int_a^b f(x) \, dx \leq M(b-a)
where m = min f(x) and M = max f(x) on [a, b]
Lower Bound
4.500
m(b-a)
Integral
5.495
Upper Bound
6.000
M(b-a)
4.5005.4956.000

Real-World Applications

Physics: Work with Variable Forces

When computing work done by a force that changes with position, we often use the additivity property to handle piecewise forces:

Problem: A spring exerts force F(x)=kxF(x) = -kx for 0xx00 \leq x \leq x_0 and F(x)=kx0F(x) = -kx_0 (constant) for x>x0x > x_0 (spring is fully compressed).

The work to compress from 0 to 2x₀ uses additivity:

W=0x0kxdx+x02x0kx0dxW = \int_0^{x_0} kx \, dx + \int_{x_0}^{2x_0} kx_0 \, dx

Economics: Consumer Surplus

Consumer surplus — the benefit consumers receive from paying less than their maximum willingness to pay — is computed using the sum rule:

Consumer Surplus=0q[D(q)p]dq\text{Consumer Surplus} = \int_0^{q^*} [D(q) - p^*] \, dq

where D(q) is the demand curve and p* is the market price

Using the sum rule, this splits into the area under the demand curve minus a rectangle.

Probability: Expected Values

The expected value of a continuous random variable is:

E[X]=xf(x)dxE[X] = \int_{-\infty}^{\infty} x \cdot f(x) \, dx

The linearity of expected values — E[aX+b]=aE[X]+bE[aX + b] = aE[X] + b — comes directly from the linearity of integration.


Machine Learning Connection

The properties of definite integrals appear throughout machine learning, often in disguised forms.

Expected Loss and Risk

In statistical learning, the expected loss or risk of a model is:

R(f)=L(y,f(x))p(x,y)dxdyR(f) = \int L(y, f(x)) \cdot p(x, y) \, dx \, dy

The linearity properties allow us to:

  • Split the risk by class or region (additivity)
  • Scale loss functions without changing optimal solutions (constant multiple)
  • Combine multiple loss terms into a single objective (sum rule)

Monte Carlo Integration

Monte Carlo methods estimate integrals using random sampling. The estimate:

abf(x)dxbani=1nf(xi)\int_a^b f(x) \, dx \approx \frac{b-a}{n} \sum_{i=1}^{n} f(x_i)

This works because integration is linear — we can approximate the integral with a weighted sum, and the error analysis uses comparison properties to bound the approximation error.

Importance Sampling

Importance sampling rewrites integrals using the constant multiple rule:

f(x)p(x)dx=f(x)p(x)q(x)q(x)dx\int f(x) p(x) \, dx = \int f(x) \frac{p(x)}{q(x)} q(x) \, dx

This allows us to sample from a different distribution q(x) that may be easier to work with, while still estimating the original integral.

Linearity in Deep Learning

When computing gradients over batches in deep learning, we use linearity constantly. The gradient of a sum of losses equals the sum of gradients — this is why mini-batch gradient descent works.


Python Implementation

Verifying Integral Properties

Let's implement and verify the properties using numerical integration:

Verifying Integral Properties
🐍integral_properties.py
9Function Definitions

We define two functions f(x) = sin(x) + 1 and g(x) = cos(x) to demonstrate the properties. The +1 ensures f(x) is always positive.

14Constant Multiple Rule

We verify that ∫kf(x)dx = k·∫f(x)dx by computing both sides and comparing. This property lets us pull constants out of integrals.

25Sum Rule

The integral of a sum equals the sum of integrals: ∫[f(x)+g(x)]dx = ∫f(x)dx + ∫g(x)dx. This is fundamental for integrating complex expressions.

34Additivity Property

We can split an integral at any intermediate point: ∫[a→b] = ∫[a→c] + ∫[c→b]. This is crucial for piecewise functions and numerical methods.

44Reversing Limits

Swapping the limits negates the integral: ∫[b→a]f(x)dx = -∫[a→b]f(x)dx. This is used when the direction of integration matters.

49 lines without explanation
1import numpy as np
2from scipy import integrate
3
4def demonstrate_integral_properties():
5    """
6    Demonstrate the fundamental properties of definite integrals.
7    """
8    # Define our function: f(x) = sin(x) + 1
9    f = lambda x: np.sin(x) + 1
10    g = lambda x: np.cos(x)
11
12    a, b, c = 0, 3, 1.5
13    k = 2.5
14
15    # Property 1: Constant Multiple Rule
16    integral_f, _ = integrate.quad(f, a, b)
17    integral_kf, _ = integrate.quad(lambda x: k * f(x), a, b)
18
19    print("=== Constant Multiple Rule ===")
20    print(f"∫ f(x) dx = {integral_f:.4f}")
21    print(f"∫ {k}·f(x) dx = {integral_kf:.4f}")
22    print(f"{k} · ∫ f(x) dx = {k * integral_f:.4f}")
23    print(f"Verified: {np.isclose(integral_kf, k * integral_f)}")
24
25    # Property 2: Sum Rule
26    integral_g, _ = integrate.quad(g, a, b)
27    integral_sum, _ = integrate.quad(lambda x: f(x) + g(x), a, b)
28
29    print("\n=== Sum Rule ===")
30    print(f"∫ [f(x) + g(x)] dx = {integral_sum:.4f}")
31    print(f"∫ f(x) dx + ∫ g(x) dx = {integral_f + integral_g:.4f}")
32    print(f"Verified: {np.isclose(integral_sum, integral_f + integral_g)}")
33
34    # Property 3: Additivity
35    integral_ac, _ = integrate.quad(f, a, c)
36    integral_cb, _ = integrate.quad(f, c, b)
37    integral_ab, _ = integrate.quad(f, a, b)
38
39    print("\n=== Additivity Property ===")
40    print(f"∫[a→c] f(x) dx = {integral_ac:.4f}")
41    print(f"∫[c→b] f(x) dx = {integral_cb:.4f}")
42    print(f"Sum: {integral_ac + integral_cb:.4f}")
43    print(f"∫[a→b] f(x) dx = {integral_ab:.4f}")
44    print(f"Verified: {np.isclose(integral_ac + integral_cb, integral_ab)}")
45
46    # Property 4: Reversing Limits
47    integral_ba, _ = integrate.quad(f, b, a)
48
49    print("\n=== Reversing Limits ===")
50    print(f"∫[a→b] f(x) dx = {integral_ab:.4f}")
51    print(f"∫[b→a] f(x) dx = {integral_ba:.4f}")
52    print(f"Verified: {np.isclose(integral_ab, -integral_ba)}")
53
54demonstrate_integral_properties()

Machine Learning Applications

Here's how these properties appear in ML computations:

Integral Properties in ML
🐍integral_ml.py
3Monte Carlo Integration

Monte Carlo methods estimate integrals using random sampling. The linearity properties justify how we can scale and combine estimates.

14Sample Mean Connection

The integral equals (b-a) times the expected value of f(X). This uses the constant multiple rule: ∫f = (b-a)·(1/(b-a))·∫f.

28Expected Value as Integral

E[X] = ∫x·p(x)dx is a definite integral. All integral properties apply to expected value computations in probability.

38Linearity of Expectation

E[aX+b] = a·E[X] + b comes directly from the linearity of integration: ∫(af+b)dx = a∫f dx + b∫dx.

47Variance via Additivity

Variance computation uses both the sum rule (for E[X²] - E[X]²) and additivity over the integration domain.

57 lines without explanation
1import numpy as np
2
3def monte_carlo_integration(f, a, b, n_samples=10000):
4    """
5    Monte Carlo integration using integral properties.
6
7    Key insight: The linearity properties allow us to combine
8    multiple estimates and scale our results appropriately.
9    """
10    # Sample uniform random points
11    x = np.random.uniform(a, b, n_samples)
12
13    # Estimate integral using sample mean
14    # E[f(X)] ≈ (1/n) Σ f(x_i)
15    # ∫[a→b] f(x) dx ≈ (b-a) · E[f(X)]
16    sample_mean = np.mean(f(x))
17    integral_estimate = (b - a) * sample_mean
18
19    # Standard error (using CLT)
20    std_error = (b - a) * np.std(f(x)) / np.sqrt(n_samples)
21
22    return integral_estimate, std_error
23
24def demonstrate_ml_applications():
25    """
26    Show how integral properties appear in ML contexts.
27    """
28    # 1. Expected value computation
29    # E[X] = ∫ x · p(x) dx
30    # For a Gaussian: p(x) = (1/√(2π)) · exp(-x²/2)
31
32    def gaussian_pdf(x, mu=0, sigma=1):
33        return (1 / (np.sqrt(2 * np.pi) * sigma)) * \
34               np.exp(-((x - mu)**2) / (2 * sigma**2))
35
36    # Compute E[X] for standard normal
37    integrand = lambda x: x * gaussian_pdf(x)
38    mean_estimate, _ = monte_carlo_integration(integrand, -10, 10)
39    print(f"E[X] for N(0,1): {mean_estimate:.4f} (should be ≈ 0)")
40
41    # 2. Using linearity for E[aX + b]
42    # E[aX + b] = a·E[X] + b (from linearity of integration)
43    a, b_const = 2, 3
44    transformed = lambda x: (a * x + b_const) * gaussian_pdf(x)
45    direct, _ = monte_carlo_integration(transformed, -10, 10)
46    using_linearity = a * mean_estimate + b_const
47    print(f"E[2X + 3] directly: {direct:.4f}")
48    print(f"E[2X + 3] via linearity: {using_linearity:.4f}")
49
50    # 3. Variance computation uses additivity
51    # Var(X) = E[X²] - E[X]² = ∫x²p(x)dx - (∫xp(x)dx)²
52    second_moment = lambda x: (x**2) * gaussian_pdf(x)
53    ex2, _ = monte_carlo_integration(second_moment, -10, 10)
54    variance = ex2 - mean_estimate**2
55    print(f"\nVar(X) for N(0,1): {variance:.4f} (should be ≈ 1)")
56
57    # 4. Loss function integration in Bayesian ML
58    # E[L(θ)] = ∫ L(θ) · p(θ|data) dθ
59    print("\nBayesian Expected Loss uses integral additivity")
60    print("to combine loss contributions from different regions")
61
62demonstrate_ml_applications()

Common Mistakes to Avoid

Mistake 1: Forgetting to negate when reversing limits

Wrong: 31f(x)dx=13f(x)dx\int_3^1 f(x) \, dx = \int_1^3 f(x) \, dx

Correct: 31f(x)dx=13f(x)dx\int_3^1 f(x) \, dx = -\int_1^3 f(x) \, dx

Mistake 2: Applying linearity to products

Wrong: f(x)g(x)dx=(f(x)dx)(g(x)dx)\int f(x) g(x) \, dx = \left(\int f(x) \, dx\right) \cdot \left(\int g(x) \, dx\right)

Linearity only applies to sums and scalar multiples, NOT to products of functions. There is no simple product rule for integrals (unlike derivatives).

Mistake 3: Ignoring the interval in comparison properties

Wrong reasoning: "Since sin(x)1\sin(x) \leq 1 always, 0πsin(x)dx1\int_0^{\pi} \sin(x) \, dx \leq 1."

Correct: 0πsin(x)dx1(π0)=π\int_0^{\pi} \sin(x) \, dx \leq 1 \cdot (\pi - 0) = \pi

The bounding rectangle has width (b - a), not just height M.

Mistake 4: Confusing additivity directions

Additivity works in both directions:

  • Split: ab=ac+cb\int_a^b = \int_a^c + \int_c^b
  • Combine: ac+cb=ab\int_a^c + \int_c^b = \int_a^b

Both are valid and useful in different contexts.


Test Your Understanding

Test Your UnderstandingQuestion 1 of 6
According to the constant multiple rule, what is 025f(x)dx\int_0^2 5f(x) \, dx if 02f(x)dx=3\int_0^2 f(x) \, dx = 3?

Summary

The properties of definite integrals give us powerful tools for manipulating and reasoning about integrals without computing them directly.

The Six Key Properties

PropertyFormulaKey Use
Zero Width∫[a→a] f(x) dx = 0Boundary condition
Reverse Limits∫[b→a] = -∫[a→b]Direction matters
Constant Multiple∫ cf = c∫ fPull out constants
Sum Rule∫ (f + g) = ∫f + ∫gTerm-by-term integration
Additivity∫[a→b] = ∫[a→c] + ∫[c→b]Split/combine intervals
Comparisonm(b-a) ≤ ∫f ≤ M(b-a)Bound unknown integrals

Key Takeaways

  1. Integration is a linear operation — it respects addition and scalar multiplication
  2. The direction of integration matters — reversing limits negates the result
  3. Additivity allows us to break complex integrals into simpler pieces
  4. Comparison properties let us bound integrals we cannot compute exactly
  5. These properties underlie expected values, Monte Carlo methods, and risk computation in ML
The Core Insight:
"Integration is linear — it turns sums into sums and respects scaling. This simple fact has profound consequences throughout mathematics and its applications."
Coming Next: In the next section, we'll discover the Fundamental Theorem of Calculus — the remarkable connection between differentiation and integration that provides an exact method for computing definite integrals.
Loading comments...