Tutorials › Calculus I › Periodicity as an Integration Shortcut

Integral Evaluation Strategies · Tutorial 1174 of 1495

Periodicity as an Integration Shortcut

Use a function’s period to translate definite integrals and evaluate intervals that contain one or more complete periods.

Advanced 10 min read

What You'll Learn

  • Define a period and distinguish a period from a function’s least positive period.
  • Prove that every interval of one period has the same integral.
  • Translate an integral by an integer multiple of the period.
  • Decompose an interval into full periods and a remainder.
  • Evaluate integrals over several periods, including a periodic piecewise-defined function.
  • Avoid treating every periodic function as if its integral over a period were zero.

Why Periodicity Helps with Integration

A periodic function repeats its values at regular intervals. That repetition can make a definite integral easier to evaluate: a long interval may contain several copies of the same full-period contribution, and an interval can often be translated to one with more convenient endpoints.

The key point is that the integral over a full period does not depend on where that period begins. This is true even if the starting point is not a familiar endpoint such as \(0\). Once this fact is established, an interval spanning several periods can be separated into complete periods and a shorter remainder.

Periods and Periodic Functions

Definition: A function \(f:\mathbb{R}\to\mathbb{R}\) is periodic with period \(T\) if \(T>0\) and \(f(x+T)=f(x)\) for every \(x\in\mathbb{R}\). A function may have more than one period; \(T\) need not be its least positive period.

For example, \(3+\sin x\) has period \(2\pi\), because \(\sin(x+2\pi)=\sin x\). Its values repeat, but the function is not identically zero. Periodicity therefore does not by itself determine the value of an integral; we also need the integral over one period.

In what follows, assume that \(f\) is continuous, or at least integrable on every finite interval under consideration, and is periodic on \(\mathbb{R}\). These conditions ensure the definite integrals used below exist. Write

$$ P=\int_c^{c+T} f(x)\,dx $$

for the integral over one period, initially using any starting point \(c\). We will show that this value is independent of \(c\).

Every Full Period Has the Same Integral

Theorem: If \(f\) has period \(T>0\) and is integrable on finite intervals, then for every real \(a\), $$ \int_a^{a+T} f(x)\,dx=\int_0^T f(x)\,dx. $$ More generally, for every real \(h\), $$ \int_{a+h}^{a+h+T} f(x)\,dx=\int_a^{a+T} f(x)\,dx. $$

Here is a proof using additivity of definite integrals and a translation of the integration variable. First consider a shift \(s\) with \(0\leq s<T\). Split the shifted interval at \(a+T\):

$$ \int_{a+s}^{a+s+T} f(x)\,dx = \int_{a+s}^{a+T} f(x)\,dx + \int_{a+T}^{a+s+T} f(x)\,dx. $$

In the second integral, set \(u=x-T\). Then \(dx=du\), and its endpoints \(a+T\) and \(a+s+T\) become \(a\) and \(a+s\). Periodicity gives \(f(u+T)=f(u)\), so

$$ \int_{a+T}^{a+s+T} f(x)\,dx = \int_a^{a+s} f(u+T)\,du = \int_a^{a+s} f(u)\,du. $$

Adding this to the first part recombines adjacent intervals:

$$ \int_{a+s}^{a+s+T} f(x)\,dx = \int_{a+s}^{a+T} f(x)\,dx + \int_a^{a+s} f(x)\,dx = \int_a^{a+T} f(x)\,dx. $$

For a general shift \(h\), write \(h=mT+s\), where \(m\) is an integer and \(0\leq s<T\). Translation by \(mT\) preserves the function values, since repeated use of \(f(x+T)=f(x)\) gives \(f(x+mT)=f(x)\) for every integer \(m\). Thus shifting both endpoints by \(mT\) leaves the integral unchanged. The result for the remaining shift \(s\) follows from the calculation above. This proves the theorem for every \(h\).

In particular, choosing \(a=0\) shows that every full-period integral equals \(\int_0^T f(x)\,dx\). Denote this common value by \(P\). The value \(P\) can be positive, negative, or zero, depending on \(f\).

Translating an Integral by a Whole Number of Periods

A related shortcut applies when both endpoints are shifted by the same integer multiple of \(T\). For any integer \(k\), substitution \(u=x-kT\) gives

$$ \int_{a+kT}^{b+kT} f(x)\,dx = \int_a^b f(u+kT)\,du = \int_a^b f(u)\,du. $$

This identity lets us move an interval to a more convenient location without changing its integral. It does not say that an arbitrary interval has the same integral as a full period: the interval’s length matters. In particular, an interval of length \(T\) has integral \(P\), while an interval of a different length generally includes a different amount of the repeated pattern.

Worked Example: Translating a Full Period of a Trigonometric Function

Evaluate \(\int_{\pi/3}^{7\pi/3}(2+\cos x)\,dx\). The function \(2+\cos x\) has period \(2\pi\), and the interval has length \(7\pi/3-\pi/3=2\pi\). Therefore the integral is one full-period integral, equal to the integral over \([0,2\pi]\).

$$ \begin{aligned} \int_{\pi/3}^{7\pi/3}(2+\cos x)\,dx &=\int_0^{2\pi}(2+\cos x)\,dx\\ &=\left[2x+\sin x\right]_0^{2\pi}\\ &=(4\pi+\sin 2\pi)-(0+\sin 0)\\ &=4\pi. \end{aligned} $$

Check by evaluating an antiderivative at the original endpoints. Since \(2x+\sin x\) is an antiderivative,

$$ \begin{aligned} \left[2x+\sin x\right]_{\pi/3}^{7\pi/3} &=\left(\frac{14\pi}{3}+\frac{\sqrt{3}}{2}\right) -\left(\frac{2\pi}{3}+\frac{\sqrt{3}}{2}\right)\\ &=4\pi. \end{aligned} $$

The endpoint sine terms cancel, confirming the translated full-period calculation.

Several Full Periods and a Remainder

Suppose \(b\geq a\). Divide the interval length by \(T\): choose an integer \(q\geq 0\) and a remainder \(r\) with \(0\leq r<T\) such that \(b-a=qT+r\). Split the interval into \(q\) consecutive pieces of length \(T\) and one final piece of length \(r\). Each full-period piece contributes \(P\), so

Result: If \(b-a=qT+r\), where \(q\) is a nonnegative integer and \(0\leq r<T\), then $$ \int_a^b f(x)\,dx = qP+\int_{a+qT}^{a+qT+r} f(x)\,dx = qP+\int_a^{a+r} f(x)\,dx. $$ The second equality follows by translating the remainder interval by \(qT\).

This formula separates the repeated contribution from the part that does not make up a complete period. The remainder must still be evaluated; periodicity alone does not make it vanish.

Worked Example: Two Full Periods and a Partial Period

Let \(f\) be the triangular periodic function of period \(2\) defined on one period by

$$ f(x)= \begin{cases} x, & 0\leq x\leq 1,\\ 2-x, & 1\leq x\leq 2, \end{cases} \qquad f(x+2)=f(x). $$

Evaluate \(\int_{-1/2}^{9/2}f(x)\,dx\). The interval length is \(9/2-(-1/2)=5=2(2)+1\), so it contains two full periods and a remainder of length \(1\). The full-period integral is the area of two triangles, each with base \(1\) and height \(1\):

$$ P=\int_0^1 x\,dx+\int_1^2(2-x)\,dx =\frac{1}{2}+\frac{1}{2}=1. $$

The remainder can be translated by \(2\) to \([3/2,5/2]\), or by periodicity evaluated as the interval \([-1/2,1/2]\). Split that interval at \(0\). On \([-1/2,0]\), periodicity gives \(f(x)=f(x+2)=2-(x+2)=-x\); on \([0,1/2]\), \(f(x)=x\). Thus

$$ \begin{aligned} \int_{-1/2}^{1/2}f(x)\,dx &=\int_{-1/2}^{0}(-x)\,dx+\int_0^{1/2}x\,dx\\ &=\left[-\frac{x^2}{2}\right]_{-1/2}^{0} +\left[\frac{x^2}{2}\right]_0^{1/2}\\ &=\frac{1}{8}+\frac{1}{8} =\frac{1}{4}. \end{aligned} $$

Therefore the two full periods contribute \(2P=2\), and the remainder contributes \(1/4\):

$$ \int_{-1/2}^{9/2} f(x)\,dx =2(1)+\frac{1}{4} =\frac{9}{4}. $$

Check using an antiderivative. Define \(G(x)=x^2/2\) on \([0,1]\), and \(G(x)=2x-x^2/2-1\) on \([1,2]\), then extend it by \(G(x+2)=G(x)+1\). On the first segment \(G'(x)=x=f(x)\); on the second \(G'(x)=2-x=f(x)\). The formulas and derivatives agree at the join, and the extension has derivative \(f\) because \(f\) is periodic. Now \(G(1/2)=1/8\), so \(G(-1/2)=G(3/2)-1=7/8-1=-1/8\). Also \(G(4+1/2)=G(1/2)+2=17/8\). Hence

$$ G(9/2)-G(-1/2)=\frac{17}{8}-\left(-\frac{1}{8}\right)=\frac{18}{8}=\frac{9}{4}, $$

which confirms the result.

Using the Shortcut When the Remainder Is Zero

If an interval has length exactly \(nT\) for a positive integer \(n\), it consists of \(n\) full periods and has integral \(nP\), regardless of its starting point. The function need not be positive, and the result need not be zero. The value depends on the net signed contribution over one period.

Worked Example: Four Full Periods with a Nonzero Integral

Evaluate \(\int_{-\pi/2}^{15\pi/2}(3+\sin x)\,dx\). The function has period \(2\pi\). The interval length is

$$ \frac{15\pi}{2}-\left(-\frac{\pi}{2}\right)=8\pi=4(2\pi), $$

so it consists of four full periods. Over one period,

$$ P=\int_0^{2\pi}(3+\sin x)\,dx =\left[3x-\cos x\right]_0^{2\pi} =6\pi. $$

Consequently, the integral is \(4P=24\pi\). Check directly with the same antiderivative \(3x-\cos x\):

$$ \begin{aligned} \left[3x-\cos x\right]_{-\pi/2}^{15\pi/2} &=\left(\frac{45\pi}{2}-\cos\frac{15\pi}{2}\right) -\left(-\frac{3\pi}{2}-\cos\left(-\frac{\pi}{2}\right)\right)\\ &=\frac{45\pi}{2}-\left(-\frac{3\pi}{2}\right)\\ &=24\pi. \end{aligned} $$

Both cosine terms are zero, so the direct evaluation agrees with the four-period calculation.

A Common Mistake: Assuming Periodic Integrals Vanish

A common error is to assume that the integral over a period must be zero because the function repeats. Repetition says that the signed area repeats; it does not say that positive and negative contributions cancel. For \(f(x)=2+\sin x\), the incorrect calculation would be

$$ \int_0^{2\pi}(2+\sin x)\,dx \overset{\text{wrong}}{=}0, $$

perhaps from noticing that the sine term has zero integral over a period. But the constant term contributes:

$$ \int_0^{2\pi}(2+\sin x)\,dx = \int_0^{2\pi}2\,dx+\int_0^{2\pi}\sin x\,dx = 4\pi+0 = 4\pi. $$

The correction is to calculate \(P\) for the whole function, including every term, before multiplying by the number of full periods. Periodicity gives a shortcut for repeating that value; it does not replace the calculation of the value itself.

When This Shortcut Matters

Periodicity is useful when endpoints are far apart, shifted away from convenient values, or arranged so the interval contains several full cycles. Instead of evaluating a long integral in one step, identify a period, compute one full-period integral, count the complete repetitions, and then handle any leftover interval.

1
Identify a period.
Verify that \(f(x+T)=f(x)\) for all relevant \(x\), with \(T>0\).
2
Compute one full-period integral.
Find \(P=\int_0^T f(x)\,dx\), or use any more convenient interval of length \(T\).
3
Count full periods and find the remainder.
Write the interval length as \(qT+r\), where \(0\leq r<T\).
4
Evaluate the remainder and combine.
Use periodicity to move the remainder to convenient endpoints, then add its integral to \(qP\).

For a reversed interval, the usual orientation rule applies: \(\int_b^a f(x)\,dx=-\int_a^b f(x)\,dx\). The periodicity calculations above can be applied to the interval in increasing order first, with the sign reversed afterward.

Check Your Understanding

Use the period and the integral over one period to justify each answer; do not assume that the integral of a periodic function over one period is zero.

  1. If \(f\) has period \(T\), why is \(\int_a^{a+T}f(x)\,dx\) independent of \(a\)?
  2. A function has period \(3\) and \(\int_0^3 f(x)\,dx=5\). What is \(\int_{7}^{16} f(x)\,dx\)?
  3. For a periodic function with period \(T\), what does translating both bounds by \(4T\) do to a definite integral?
  4. An interval has length \(5T/2\). How many complete periods does it contain, and what is the length of the remainder?
  5. Give a reason that periodicity alone does not imply \(\int_0^T f(x)\,dx=0\).

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): 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