Tutorials › AP Calculus › Linearity and Constant-Multiple Properties

Riemann Sums and Definite Integrals · Tutorial 446 of 999

Linearity and Constant-Multiple Properties

Use the linearity of definite integrals to simplify sums, differences, and constant multiples of integrable functions.

Beginner 8 min read

What You'll Learn

  • State the linearity and constant-multiple properties for definite integrals.
  • Explain why the properties follow from the corresponding Riemann-sum rules.
  • Separate sums and differences of integrands before integrating.
  • Factor constants outside definite integrals correctly.
  • Recognize why linearity does not allow a product to be split into separate integrals.
  • Check calculations by recombining the component integrals.

Why Linearity Matters

A definite integral can describe accumulated change, signed area, or the limit of a sum of many small contributions. When the quantity being accumulated is a sum of simpler quantities, it is useful to compute the contributions separately and then combine them. The linearity properties of definite integrals make this possible.

For example, if a rate is the sum of two rates, its total accumulation over the same interval is the sum of the two separate accumulations. Likewise, multiplying a rate by a constant multiplies its accumulation by that constant. These are exact properties, not approximations.

In this tutorial, assume the interval has endpoints \(a<b\). The properties apply when the functions involved are Riemann integrable on \([a,b]\). Continuous functions on a closed interval are an important sufficient case.

The Linearity Properties

Theorem: If \(f\) and \(g\) are Riemann integrable on \([a,b]\), and \(c\) is a real constant, then $$ \int_a^b \bigl(f(x)+g(x)\bigr)\,dx = \int_a^b f(x)\,dx+\int_a^b g(x)\,dx $$ and $$ \int_a^b c f(x)\,dx = c\int_a^b f(x)\,dx. $$ Consequently, $$ \int_a^b \bigl(c f(x)+d g(x)\bigr)\,dx = c\int_a^b f(x)\,dx+d\int_a^b g(x)\,dx $$ for any real constants \(c\) and \(d\).

The difference rule follows from the sum and constant-multiple rules by taking the constant to be \(-1\):

$$ \int_a^b \bigl(f(x)-g(x)\bigr)\,dx = \int_a^b f(x)\,dx-\int_a^b g(x)\,dx. $$

These rules require the functions being combined to be integrable on the same interval. The coefficients \(c\) and \(d\) are constants with respect to \(x\); they do not vary across the interval.

Why the Rules Work: A Riemann-Sum Derivation

The definite integral is the limit of Riemann sums. Choose a partition of \([a,b]\), with subinterval widths \(\Delta x_i\), and choose a sample point \(\xi_i\) in each subinterval. For an integrable function \(f\), the corresponding Riemann sum is \(\sum_{i=1}^{n}f(\xi_i)\Delta x_i\), and suitable Riemann sums approach \(\int_a^b f(x)\,dx\) as the partition is refined.

The key fact is that sums for \(f\) and \(g\) can use the same partition and the same sample points. At each sample point, adding the function values before multiplying by the width gives exactly the same result as adding the two separate contributions.

1
Use a common partition.
For each subinterval, use the same width \(\Delta x_i\) and sample point \(\xi_i\) for both functions.
2
Distribute within each subinterval.
The equality \((f(\xi_i)+g(\xi_i))\Delta x_i=f(\xi_i)\Delta x_i+g(\xi_i)\Delta x_i\) holds for every \(i\).
3
Add the contributions.
Summing over all subintervals gives \(\sum_{i=1}^{n}(f(\xi_i)+g(\xi_i))\Delta x_i=\sum_{i=1}^{n}f(\xi_i)\Delta x_i+\sum_{i=1}^{n}g(\xi_i)\Delta x_i\).
4
Take the limit.
As the partition is refined, each Riemann sum approaches its definite integral. The limit of the sum on the right is the sum of the two limits, giving the integral addition rule.

This proves the sum rule: the equality is true for each common-partition Riemann sum, and the functions are integrable, so the relevant limits exist. The constant-multiple rule follows by the same reasoning, because \(c f(\xi_i)\Delta x_i=c\bigl(f(\xi_i)\Delta x_i\bigr)\) for every subinterval. Taking limits gives \(\int_a^b cf(x)\,dx=c\int_a^b f(x)\,dx\).

Worked Example: Combining Known Integral Values

Worked Example: Combining Known Integral Values

Suppose \(f\) and \(g\) are integrable on \([0,3]\), with \(\int_0^3 f(x)\,dx=4\) and \(\int_0^3 g(x)\,dx=-1\). Find \(\int_0^3 (2f(x)-5g(x))\,dx\).

Apply linearity, taking the constants \(2\) and \(-5\) outside their integrals:

$$ \begin{aligned} \int_0^3 \bigl(2f(x)-5g(x)\bigr)\,dx &=2\int_0^3 f(x)\,dx-5\int_0^3 g(x)\,dx\\ &=2(4)-5(-1)\\ &=8+5\\ &=13. \end{aligned} $$

Check by combining the weighted contributions: \(2\) times the first integral contributes \(8\), while \(-5\) times the second integral contributes \(5\), because the second integral is \(-1\). Their sum is \(8+5=13\), as required.

Worked Example: Integrating a Polynomial by Separating Terms

Worked Example: Integrating a Polynomial by Separating Terms

Find \(\int_0^2 (3x^2+4x)\,dx\). To show the component values directly from the Riemann-sum definition, divide \([0,2]\) into \(n\) equal subintervals and use right endpoints \(x_i=2i/n\). The width is \(\Delta x=2/n\).

First calculate the integral of \(x^2\) from its right-endpoint sums:

$$ \begin{aligned} \sum_{i=1}^{n}x_i^2\Delta x &=\sum_{i=1}^{n}\left(\frac{2i}{n}\right)^2\frac{2}{n}\\ &=\frac{8}{n^3}\sum_{i=1}^{n}i^2\\ &=\frac{8}{n^3}\cdot\frac{n(n+1)(2n+1)}{6}\\ &=\frac{8}{6}\left(2+\frac{3}{n}+\frac{1}{n^2}\right). \end{aligned} $$

As \(n\) increases without bound, \(3/n\) and \(1/n^2\) approach \(0\), so \(\int_0^2 x^2\,dx=8/3\).

For \(x\), the same right endpoints give:

$$ \begin{aligned} \sum_{i=1}^{n}x_i\Delta x &=\sum_{i=1}^{n}\frac{2i}{n}\frac{2}{n}\\ &=\frac{4}{n^2}\sum_{i=1}^{n}i\\ &=\frac{4}{n^2}\cdot\frac{n(n+1)}{2}\\ &=2\left(1+\frac{1}{n}\right). \end{aligned} $$

Taking the limit gives \(\int_0^2 x\,dx=2\). Now apply linearity:

$$ \begin{aligned} \int_0^2 (3x^2+4x)\,dx &=3\int_0^2 x^2\,dx+4\int_0^2 x\,dx\\ &=3\left(\frac{8}{3}\right)+4(2)\\ &=8+8\\ &=16. \end{aligned} $$

Check by recombining the two component contributions: \(3(8/3)=8\) and \(4(2)=8\), so the total is \(8+8=16\).

Worked Example: A Constant Term and a Variable Term

Worked Example: A Constant Term and a Variable Term

Find \(\int_1^5 (7-2x)\,dx\). The constant function \(7\) has integral \(7\) times the interval width, which is \(5-1=4\). Thus \(\int_1^5 7\,dx=7(4)=28\).

For the other term, use \(n\) equal subintervals of width \(4/n\) and right endpoints \(x_i=1+4i/n\). Its Riemann sum for \(x\) is

$$ \begin{aligned} \sum_{i=1}^{n}x_i\frac{4}{n} &=\sum_{i=1}^{n}\left(1+\frac{4i}{n}\right)\frac{4}{n}\\ &=4+\frac{16}{n^2}\sum_{i=1}^{n}i\\ &=4+\frac{16}{n^2}\cdot\frac{n(n+1)}{2}\\ &=4+8\left(1+\frac{1}{n}\right). \end{aligned} $$

As \(n\) increases without bound, this approaches \(4+8=12\). Therefore \(\int_1^5 x\,dx=12\). Separate the terms and factor out \(-2\):

$$ \begin{aligned} \int_1^5 (7-2x)\,dx &=\int_1^5 7\,dx-2\int_1^5 x\,dx\\ &=28-2(12)\\ &=28-24\\ &=4. \end{aligned} $$

Check the two contributions: the constant term contributes \(28\), and the term \(-2x\) contributes \(-24\). Their sum is \(28+(-24)=4\).

A Common Mistake: Splitting a Product

Linearity allows an integrand that is a sum or difference to be separated. It does not allow a product to be split into the product of two integrals. For example, in general, \(\int_a^b f(x)g(x)\,dx\) is not equal to \(\left(\int_a^b f(x)\,dx\right)\left(\int_a^b g(x)\,dx\right)\). The Riemann-sum proof does not establish such a rule: distributing a sum over addition is valid, but multiplying separate accumulated totals does not reproduce the sum of the products \(f(\xi_i)g(\xi_i)\Delta x_i\).

A related error is to omit a term when expanding an expression before using linearity. Consider \(\int_0^1 (x+2)^2\,dx\). A wrong calculation might write \((x+2)^2=x^2+4\), then conclude that the integral is \(1/3+4=13/3\). The expansion is incorrect: the cross term \(4x\) is missing.

The correct expansion is \((x+2)^2=x^2+4x+4\). Using linearity and the component values \(\int_0^1 x^2\,dx=1/3\), \(\int_0^1 x\,dx=1/2\), and \(\int_0^1 1\,dx=1\), the correct result is

$$ \int_0^1 (x+2)^2\,dx = \frac{1}{3}+4\left(\frac{1}{2}\right)+4(1) = \frac{1}{3}+2+4 = \frac{19}{3}. $$

The correction is to expand accurately first, then apply linearity to the resulting sum.

How to Use Linearity Reliably

When simplifying a definite integral, identify the terms and their constant coefficients. Separate only sums and differences, keep every term on the same interval, and check that each coefficient is constant with respect to the variable of integration. The properties can simplify an integral, but they do not by themselves provide the value of every integral; each component still needs to be evaluated by an appropriate method.

Key takeaway: For integrable functions on the same interval, integration preserves addition and subtraction, and constant factors can be taken outside. These rules follow because the corresponding equalities hold for Riemann sums before taking limits.

Check Your Understanding

Use the linearity properties and show the main algebraic steps in each answer.

  1. If \(\int_0^2 f(x)\,dx=3\) and \(\int_0^2 g(x)\,dx=5\), what is \(\int_0^2 (4f(x)-g(x))\,dx\)?
  2. Rewrite \(\int_1^4 (6x^2+3)\,dx\) as a sum of constant multiples of integrals.
  3. In the Riemann-sum derivation, why must the same partition and sample points be used for the two functions?
  4. Is \(\int_a^b (f(x)+g(x))\,dx=\int_a^b f(x)\,dx+\int_a^b g(x)\,dx\) valid when both functions are integrable on \([a,b]\)? State the property that justifies your answer.
  5. Explain why linearity does not imply that the integral of a product is the product of the integrals.

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon