MatheramaMatherama
← Definite Integration
Definite Integration·Section 9·12 min read

Periodic Properties of Definite Integrals

In the study of calculus, many fundamental functions repeat their values at regular intervals. Trigonometric functions like sin⁡x\sin x, cos⁡x\cos x, and tan⁡x\tan x, as well as piecewise functions like the fractional part function {x}=x−⌊x⌋\{x\} = x - \lfloor x \rfloor, exhibit exact repetition known as periodicity.

When we integrate a periodic function over a very wide interval, such as:

∫0200π∣sin⁡x∣ dx,∫0100e{x} dx,∫100100+2πdx1+esin⁡x\int_0^{200\pi} |\sin x| \, dx, \qquad \int_0^{100} e^{\{x\}} \, dx, \qquad \int_{100}^{100 + 2\pi} \frac{dx}{1 + e^{\sin x}}

evaluating the integral directly by finding an antiderivative across hundreds of separate sub-intervals is tedious and error-prone.

Because a periodic function is built from identical repeating blocks (or "tiles"), its definite integral over any full period is identical to the integral over any other full period. By understanding how to shift, cut, paste, and tile these fundamental blocks, we can collapse massive integration limits into quick, elegant computations.


Fundamental Concepts of Periodic Functions§

Recall the definition of a periodic function:

[!NOTE] Definition: Periodic Function A function f(x)f(x) is said to be periodic if there exists a positive constant T>0T > 0 such that:

f(x+T)=f(x)for all x in the domain of ff(x + T) = f(x) \qquad \text{for all } x \text{ in the domain of } f

The smallest positive number TT for which this identity holds is called the fundamental period of f(x)f(x).

By repeated application of this definition, f(x+nT)=f(x)f(x + nT) = f(x) for every integer n∈Zn \in \mathbb{Z}.

Common Periodic Functions and Their Fundamental Periods§

  • sin⁡x\sin x, cos⁡x\cos x, sec⁡x\sec x, csc⁡x\csc x: Period T=2πT = 2\pi
  • tan⁡x\tan x, cot⁡x\cot x: Period T=πT = \pi
  • ∣sin⁡x∣|\sin x|, ∣cos⁡x∣|\cos x|, sin⁡2x\sin^2 x, cos⁡2x\cos^2 x: Period T=πT = \pi
  • The fractional part function {x}=x−⌊x⌋\{x\} = x - \lfloor x \rfloor: Period T=1T = 1
  • If f(x)f(x) has period TT, then f(kx)f(kx) has period T/∣k∣T/|k|. For instance, sin⁡(4x)\sin(4x) has period 2π/4=π/22\pi/4 = \pi/2, and {3x}\{3x\} has period 1/31/3.

The Cut-and-Paste Principle: Window Invariance§

The foundational theorem of periodic integration states that the integral of a periodic function over any interval whose length equals one full period TT is completely independent of where the interval begins.

Theorem: Single Period Translation Invariance§

If f(x)f(x) is continuous (or piecewise continuous) and periodic with fundamental period TT, then for any real number aa:

∫aa+Tf(x) dx=∫0Tf(x) dx\int_a^{a + T} f(x) \, dx = \int_0^T f(x) \, dx

Notice the remarkable power of this statement: the starting point aa has zero effect on the value of the integral. Whether a=0a = 0, a=100a = 100, a=−π/4a = -\pi/4, or a=2026a = \sqrt{2026}, the area remains identical!


Geometric Derivation: The Cut-and-Paste Proof§

To understand why this independence occurs, let us look at the geometry of the curve:

Consider the standard fundamental interval [0,T][0, T]. The area under the curve is:

∫0Tf(x) dx\int_0^T f(x) \, dx

Now slide the integration window to the right by an offset aa, so the new interval is [a,a+T][a, a + T].

We can split both the standard window [0,T][0, T] and the shifted window [a,a+T][a, a + T] at the boundary points aa and TT:

  • Region AA: The interval [0,a][0, a]
  • Region BB: The shared interval [a,T][a, T]
  • Region CC: The interval [T,a+T][T, a + T]

Geometric proof of the cut and paste principle for periodic definite integrals

Now observe what happens to the total area of the two windows:

Standard Window [0,T][0, T]:

∫0Tf(x) dx=Area(A)+Area(B)=∫0af(x) dx+∫aTf(x) dx\int_0^T f(x) \, dx = \text{Area}(A) + \text{Area}(B) = \int_0^a f(x) \, dx + \int_a^T f(x) \, dx

Shifted Window [a,a+T][a, a + T]:

∫aa+Tf(x) dx=Area(B)+Area(C)=∫aTf(x) dx+∫Ta+Tf(x) dx\int_a^{a + T} f(x) \, dx = \text{Area}(B) + \text{Area}(C) = \int_a^T f(x) \, dx + \int_T^{a + T} f(x) \, dx

Notice that both windows share the exact same middle piece, Region BB.

What about Region AA and Region CC? Region CC lies on the interval [T,a+T][T, a + T]. If we shift this entire region horizontally to the left by TT units (using the transformation x→x−Tx \to x - T), it lands directly on top of [0,a][0, a]!

Because f(x)f(x) has period TT, the height of the curve at every point in Region CC, f(t+T)f(t + T), is identical to the height at the corresponding point in Region AA, f(t)f(t):

Area(C)=∫Ta+Tf(x) dx=∫0af(t+T) dt=∫0af(t) dt=Area(A)\text{Area}(C) = \int_T^{a + T} f(x) \, dx = \int_0^a f(t + T) \, dt = \int_0^a f(t) \, dt = \text{Area}(A)

Geometrically, we can literally cut Region CC off the right end of the shifted window and paste it onto the left end into Region AA. Together with the middle piece (Region BB), it reassembles into the standard fundamental window [0,T][0, T]:

∫aa+Tf(x) dx=Area(B)+Area(C)=Area(B)+Area(A)=∫0Tf(x) dx\int_a^{a + T} f(x) \, dx = \text{Area}(B) + \text{Area}(C) = \text{Area}(B) + \text{Area}(A) = \int_0^T f(x) \, dx

Algebraic Proof via Substitution§

We can confirm this result algebraically:

Split the integral at x=Tx = T:

∫aa+Tf(x) dx=∫aTf(x) dx+∫Ta+Tf(x) dx\int_a^{a + T} f(x) \, dx = \int_a^T f(x) \, dx + \int_T^{a + T} f(x) \, dx

In the second integral, substitute:

x=t+T  ⟹  dx=dtx = t + T \implies dx = dt
  • When x=Tx = T, t=T−T=0t = T - T = 0.
  • When x=a+Tx = a + T, t=(a+T)−T=at = (a + T) - T = a.

Since f(t+T)=f(t)f(t + T) = f(t) by periodicity:

∫Ta+Tf(x) dx=∫0af(t+T) dt=∫0af(t) dt\int_T^{a + T} f(x) \, dx = \int_0^a f(t + T) \, dt = \int_0^a f(t) \, dt

Renaming the dummy variable tt to xx:

∫Ta+Tf(x) dx=∫0af(x) dx\int_T^{a + T} f(x) \, dx = \int_0^a f(x) \, dx

Substitute this back into the split sum:

∫aa+Tf(x) dx=∫aTf(x) dx+∫0af(x) dx=∫0af(x) dx+∫aTf(x) dx=∫0Tf(x) dx\int_a^{a + T} f(x) \, dx = \int_a^T f(x) \, dx + \int_0^a f(x) \, dx = \int_0^a f(x) \, dx + \int_a^T f(x) \, dx = \int_0^T f(x) \, dx

The Calculus Proof: Differentiating with Respect to the Offset§

There is another elegant perspective on why this integral does not depend on aa.

Define the function:

g(a)=∫aa+Tf(x) dxg(a) = \int_a^{a + T} f(x) \, dx

Differentiate g(a)g(a) with respect to aa using the Leibniz Rule:

g′(a)=dda∫aa+Tf(x) dx=f(a+T)⋅dda(a+T)−f(a)⋅dda(a)g'(a) = \frac{d}{da} \int_a^{a + T} f(x) \, dx = f(a + T) \cdot \frac{d}{da}(a + T) - f(a) \cdot \frac{d}{da}(a) g′(a)=f(a+T)⋅1−f(a)⋅1=f(a+T)−f(a)g'(a) = f(a + T) \cdot 1 - f(a) \cdot 1 = f(a + T) - f(a)

Because f(x)f(x) is periodic with period TT, f(a+T)=f(a)f(a + T) = f(a):

g′(a)=f(a)−f(a)=0g'(a) = f(a) - f(a) = 0

A function whose derivative is zero everywhere must be a constant function! Therefore, g(a)g(a) has the exact same value for every single choice of aa. To find this constant value, substitute a=0a = 0:

g(a)=g(0)=∫0Tf(x) dxg(a) = g(0) = \int_0^T f(x) \, dx

Exploiting Parameter Independence in Problem Solving§

Because the value of ∫aa+Tf(x) dx\int_a^{a + T} f(x)\,dx is completely independent of aa, we are free to choose whatever value of aa makes the calculation easiest!


Example 1: Choosing a Convenient Lower Limit§

Evaluate:

I=∫aa+π∣cos⁡x∣ dxfor any a∈RI = \int_a^{a + \pi} |\cos x| \, dx \qquad \text{for any } a \in \mathbb{R}

Solution:

The function f(x)=∣cos⁡x∣f(x) = |\cos x| is periodic with period T=πT = \pi. Because the length of integration is (a+π)−a=π(a + \pi) - a = \pi (exactly one period), the integral is independent of aa.

We can choose any convenient value of aa. Let us pick a=−π/2a = -\pi/2:

I=∫−π/2π/2∣cos⁡x∣ dxI = \int_{-\pi/2}^{\pi/2} |\cos x| \, dx

Why choose −π/2-\pi/2? Because on the interval [−π/2,π/2][-\pi/2, \pi/2], cos⁡x≥0\cos x \ge 0, which means ∣cos⁡x∣=cos⁡x|\cos x| = \cos x! The absolute value signs disappear entirely:

I=∫−π/2π/2cos⁡x dx=[sin⁡x]−π/2π/2=sin⁡(π2)−sin⁡(−π2)=1−(−1)=2I = \int_{-\pi/2}^{\pi/2} \cos x \, dx = \Big[ \sin x \Big]_{-\pi/2}^{\pi/2} = \sin\left(\frac{\pi}{2}\right) - \sin\left(-\frac{\pi}{2}\right) = 1 - (-1) = 2

Notice how much simpler this was than trying to integrate over an arbitrary interval [a,a+π][a, a + \pi] where cos⁡x\cos x changes signs at unknown interior points!


Example 2: Eliminating an Intractable Parameter§

Evaluate:

I=∫100100+2πsin⁡x1+cos⁡2x dxI = \int_{100}^{100 + 2\pi} \frac{\sin x}{1 + \cos^2 x} \, dx

Solution:

The integrand f(x)=sin⁡x1+cos⁡2xf(x) = \frac{\sin x}{1 + \cos^2 x} has fundamental period T=2πT = 2\pi because:

f(x+2π)=sin⁡(x+2π)1+cos⁡2(x+2π)=sin⁡x1+cos⁡2x=f(x)f(x + 2\pi) = \frac{\sin(x + 2\pi)}{1 + \cos^2(x + 2\pi)} = \frac{\sin x}{1 + \cos^2 x} = f(x)

The interval [100,100+2π][100, 100 + 2\pi] has length 2π2\pi, which is exactly one period. By the translation invariance theorem, we can replace the lower limit 100100 with 00:

I=∫02πsin⁡x1+cos⁡2x dxI = \int_0^{2\pi} \frac{\sin x}{1 + \cos^2 x} \, dx

Now substitute u=cos⁡x  ⟹  du=−sin⁡x dxu = \cos x \implies du = -\sin x\,dx:

  • When x=0x = 0, u=cos⁡0=1u = \cos 0 = 1.
  • When x=2πx = 2\pi, u=cos⁡2π=1u = \cos 2\pi = 1.
I=∫11−du1+u2=0I = \int_1^1 \frac{-du}{1 + u^2} = 0

The intimidating starting point 100100 was completely irrelevant.


Example 3: Constant Integral Functions§

Let F(x)=∫xx+2πdt1+esin⁡tF(x) = \int_x^{x + 2\pi} \frac{dt}{1 + e^{\sin t}}. Show that F(x)F(x) is a constant function, and find its value.

Solution:

The integrand f(t)=11+esin⁡tf(t) = \frac{1}{1 + e^{\sin t}} has fundamental period T=2πT = 2\pi because sin⁡(t+2π)=sin⁡t\sin(t + 2\pi) = \sin t. The length of integration is (x+2π)−x=2π(x + 2\pi) - x = 2\pi, which is exactly one period.

By our theorem, F(x)F(x) is completely independent of xx:

F(x)=∫02πdt1+esin⁡tF(x) = \int_0^{2\pi} \frac{dt}{1 + e^{\sin t}}

To evaluate this integral, apply King's Rule on [0,2π][0, 2\pi]: Replace tt with 2π−t2\pi - t:

F(x)=∫02πdt1+esin⁡(2π−t)=∫02πdt1+e−sin⁡t=∫02πesin⁡tesin⁡t+1 dtF(x) = \int_0^{2\pi} \frac{dt}{1 + e^{\sin(2\pi - t)}} = \int_0^{2\pi} \frac{dt}{1 + e^{-\sin t}} = \int_0^{2\pi} \frac{e^{\sin t}}{e^{\sin t} + 1} \, dt

Adding the two expressions:

2F(x)=∫02π[11+esin⁡t+esin⁡t1+esin⁡t] dt=∫02π1 dt=2π2F(x) = \int_0^{2\pi} \left[ \frac{1}{1 + e^{\sin t}} + \frac{e^{\sin t}}{1 + e^{\sin t}} \right] \, dt = \int_0^{2\pi} 1 \, dt = 2\pi

Dividing by 22:

F(x)=πF(x) = \pi

Thus, F(x)=πF(x) = \pi for all x∈Rx \in \mathbb{R}.


Multiple Periods: Tiling and Scaling§

Now that we understand a single period, what happens when we integrate over nn full periods?

Theorem: Multiple Full Periods§

If f(x)f(x) is periodic with period TT, then for any integer n∈Zn \in \mathbb{Z}:

∫0nTf(x) dx=n∫0Tf(x) dx\int_0^{nT} f(x) \, dx = n \int_0^T f(x) \, dx

and more generally, for any starting point a∈Ra \in \mathbb{R}:

∫aa+nTf(x) dx=n∫0Tf(x) dx\int_a^{a + nT} f(x) \, dx = n \int_0^T f(x) \, dx

Proof

Split the integral over [a,a+nT][a, a + nT] into nn consecutive intervals, each of length TT:

∫aa+nTf(x) dx=∑k=0n−1∫a+kTa+(k+1)Tf(x) dx\int_a^{a + nT} f(x) \, dx = \sum_{k=0}^{n-1} \int_{a + kT}^{a + (k+1)T} f(x) \, dx

Notice that each term is an integral over an interval of length TT:

[a+kT, a+(k+1)T]=[c, c+T]where c=a+kT[a + kT, \, a + (k+1)T] = [c, \, c + T] \qquad \text{where } c = a + kT

By our single-period translation invariance theorem, every single one of these nn integrals is equal to the fundamental area ∫0Tf(x) dx\int_0^T f(x)\,dx:

∫a+kTa+(k+1)Tf(x) dx=∫0Tf(x) dx\int_{a + kT}^{a + (k+1)T} f(x) \, dx = \int_0^T f(x) \, dx

Summing these nn identical values:

∫aa+nTf(x) dx=∑k=0n−1∫0Tf(x) dx=n∫0Tf(x) dx\int_a^{a + nT} f(x) \, dx = \sum_{k=0}^{n-1} \int_0^T f(x) \, dx = n \int_0^T f(x) \, dx

Tiling n full periods and the fractional part function

Geometrically, integrating over nn periods is simply tiling nn identical copies of the fundamental area block next to each other!


Theorem: Difference of Integer Multiples§

For any integers m,n∈Zm, n \in \mathbb{Z}:

∫mTnTf(x) dx=(n−m)∫0Tf(x) dx\int_{mT}^{nT} f(x) \, dx = (n - m) \int_0^T f(x) \, dx

Proof

Split the integral at 00:

∫mTnTf(x) dx=∫0nTf(x) dx−∫0mTf(x) dx\int_{mT}^{nT} f(x) \, dx = \int_0^{nT} f(x) \, dx - \int_0^{mT} f(x) \, dx

Using the previous theorem:

=n∫0Tf(x) dx−m∫0Tf(x) dx=(n−m)∫0Tf(x) dx= n \int_0^T f(x) \, dx - m \int_0^T f(x) \, dx = (n - m) \int_0^T f(x) \, dx

Theorem: Incomplete and Fractional Bounds§

What if the upper limit is not an exact integer multiple of TT?

For any integer n∈Zn \in \mathbb{Z} and any real number bb:

∫nTnT+bf(x) dx=∫0bf(x) dx\int_{nT}^{nT + b} f(x) \, dx = \int_0^b f(x) \, dx

Proof

Substitute x=t+nT  ⟹  dx=dtx = t + nT \implies dx = dt.

  • When x=nTx = nT, t=0t = 0.
  • When x=nT+bx = nT + b, t=bt = b.

Since f(t+nT)=f(t)f(t + nT) = f(t):

∫nTnT+bf(x) dx=∫0bf(t+nT) dt=∫0bf(t) dt=∫0bf(x) dx\int_{nT}^{nT + b} f(x) \, dx = \int_0^b f(t + nT) \, dt = \int_0^b f(t) \, dt = \int_0^b f(x) \, dx

The General Decomposition Rule

Whenever an integral has limits from 00 to nT+αnT + \alpha where 0≤α<T0 \le \alpha < T:

∫0nT+αf(x) dx=∫0nTf(x) dx+∫nTnT+αf(x) dx=n∫0Tf(x) dx+∫0αf(x) dx\int_0^{nT + \alpha} f(x) \, dx = \int_0^{nT} f(x) \, dx + \int_{nT}^{nT + \alpha} f(x) \, dx = n \int_0^T f(x) \, dx + \int_0^\alpha f(x) \, dx

The integral cleanly decomposes into nn complete periods plus a partial final piece!


The Fractional Part Function in Definite Integration§

The fractional part function {x}=x−⌊x⌋\{x\} = x - \lfloor x \rfloor is one of the most important periodic functions in competitive mathematics.

Key Properties of the Fractional Part§

  • Periodicity: {x+1}={x}\{x + 1\} = \{x\} for all xx. The fundamental period is T=1T = 1.

  • Piecewise Definition: On each unit interval [k,k+1)[k, k + 1) for k∈Zk \in \mathbb{Z}:

    ⌊x⌋=k  ⟹  {x}=x−k\lfloor x \rfloor = k \implies \{x\} = x - k
  • Range: 0≤{x}<10 \le \{x\} < 1.

Fundamental Integrals of the Fractional Part§

Over the fundamental period [0,1][0, 1], we have {x}=x\{x\} = x. Therefore, the integral of any expression g({x})g(\{x\}) on [0,1][0, 1] is simply the ordinary integral of g(x)g(x):

∫01{x} dx=∫01x dx=[x22]01=12\int_0^1 \{x\} \, dx = \int_0^1 x \, dx = \left[ \frac{x^2}{2} \right]_0^1 = \frac{1}{2} ∫01{x}2 dx=∫01x2 dx=[x33]01=13\int_0^1 \{x\}^2 \, dx = \int_0^1 x^2 \, dx = \left[ \frac{x^3}{3} \right]_0^1 = \frac{1}{3} ∫01e{x} dx=∫01ex dx=[ex]01=e−1\int_0^1 e^{\{x\}} \, dx = \int_0^1 e^x \, dx = \Big[ e^x \Big]_0^1 = e - 1 ∫01dx1+{x}=∫01dx1+x=[ln⁡(1+x)]01=ln⁡2\int_0^1 \frac{dx}{1 + \{x\}} = \int_0^1 \frac{dx}{1 + x} = \Big[ \ln(1 + x) \Big]_0^1 = \ln 2

Evaluating Large Limits with Fractional Parts§

Using the periodic tiling theorem ∫0nf(x) dx=n∫01f(x) dx\int_0^n f(x)\,dx = n \int_0^1 f(x)\,dx (since T=1T = 1):

∫0n{x} dx=n∫01x dx=n2\int_0^n \{x\} \, dx = n \int_0^1 x \, dx = \frac{n}{2} ∫0ne{x} dx=n∫01ex dx=n(e−1)\int_0^n e^{\{x\}} \, dx = n \int_0^1 e^x \, dx = n(e - 1) ∫0ndx1+{x}=n∫01dx1+x=nln⁡2\int_0^n \frac{dx}{1 + \{x\}} = n \int_0^1 \frac{dx}{1 + x} = n \ln 2

Interplay Between Floor and Fractional Part§

Integrals often combine the floor function ⌊x⌋\lfloor x \rfloor and the fractional part {x}\{x\}:

I=∫0n⌊x⌋f({x}) dx(n∈N)I = \int_0^n \lfloor x \rfloor f(\{x\}) \, dx \qquad (n \in \mathbb{N})

The Evaluation Strategy

Split the interval [0,n][0, n] into nn unit intervals [k,k+1][k, k + 1]:

I=∑k=0n−1∫kk+1⌊x⌋f({x}) dxI = \sum_{k=0}^{n-1} \int_k^{k+1} \lfloor x \rfloor f(\{x\}) \, dx

On each sub-interval [k,k+1)[k, k + 1):

  • ⌊x⌋=k\lfloor x \rfloor = k (a constant number!).
  • {x}=x−k\{x\} = x - k.

Substitute t=x−k  ⟹  dx=dtt = x - k \implies dx = dt, where tt runs from 00 to 11:

∫kk+1⌊x⌋f({x}) dx=k∫kk+1f(x−k) dx=k∫01f(t) dt\int_k^{k+1} \lfloor x \rfloor f(\{x\}) \, dx = k \int_k^{k+1} f(x - k) \, dx = k \int_0^1 f(t) \, dt

Now pull the integral outside the summation:

I=∑k=0n−1(k∫01f(t) dt)=(∑k=0n−1k)∫01f(t) dtI = \sum_{k=0}^{n-1} \left( k \int_0^1 f(t) \, dt \right) = \left( \sum_{k=0}^{n-1} k \right) \int_0^1 f(t) \, dt

Recall the arithmetic sum ∑k=0n−1k=(n−1)n2\sum_{k=0}^{n-1} k = \frac{(n-1)n}{2}:

∫0n⌊x⌋f({x}) dx=n(n−1)2∫01f(x) dx\int_0^n \lfloor x \rfloor f(\{x\}) \, dx = \frac{n(n - 1)}{2} \int_0^1 f(x) \, dx

Miscellaneous Examples§


Example 4: A Large Trigonometric Power Integral§

Evaluate:

I=∫0100π1−cos⁡2x dxI = \int_0^{100\pi} \sqrt{1 - \cos 2x} \, dx

Solution:

Use the half-angle trigonometric identity 1−cos⁡2x=2sin⁡2x1 - \cos 2x = 2\sin^2 x:

1−cos⁡2x=2sin⁡2x=2∣sin⁡x∣\sqrt{1 - \cos 2x} = \sqrt{2\sin^2 x} = \sqrt{2} |\sin x|

The function ∣sin⁡x∣|\sin x| is periodic with fundamental period T=πT = \pi. The upper limit 100π100\pi is an integer multiple of the period: n=100n = 100.

Applying the tiling theorem:

I=∫0100π2∣sin⁡x∣ dx=1002∫0π∣sin⁡x∣ dxI = \int_0^{100\pi} \sqrt{2} |\sin x| \, dx = 100 \sqrt{2} \int_0^\pi |\sin x| \, dx

On the interval [0,π][0, \pi], sin⁡x≥0\sin x \ge 0, so ∣sin⁡x∣=sin⁡x|\sin x| = \sin x:

∫0π∣sin⁡x∣ dx=∫0πsin⁡x dx=[−cos⁡x]0π=−(−1)−(−1)=2\int_0^\pi |\sin x| \, dx = \int_0^\pi \sin x \, dx = \Big[ -\cos x \Big]_0^\pi = -(-1) - (-1) = 2

Therefore:

I=1002⋅2=2002I = 100\sqrt{2} \cdot 2 = 200\sqrt{2}

Example 5: Incomplete Boundary Integral§

Evaluate:

I=∫020π+π/4∣sin⁡x∣ dxI = \int_0^{20\pi + \pi/4} |\sin x| \, dx

Solution:

The fundamental period of ∣sin⁡x∣|\sin x| is T=πT = \pi. The upper limit is of the form nT+αnT + \alpha where n=20n = 20, T=πT = \pi, and α=π/4\alpha = \pi/4.

Apply the incomplete bound decomposition rule:

I=20∫0π∣sin⁡x∣ dx+∫0π/4∣sin⁡x∣ dxI = 20 \int_0^\pi |\sin x| \, dx + \int_0^{\pi/4} |\sin x| \, dx

Evaluate the two pieces:

  • The full period piece: ∫0πsin⁡x dx=2\int_0^\pi \sin x\,dx = 2.
  • The partial piece on [0,π/4][0, \pi/4]:
∫0π/4sin⁡x dx=[−cos⁡x]0π/4=−12−(−1)=1−12\int_0^{\pi/4} \sin x \, dx = \Big[ -\cos x \Big]_0^{\pi/4} = -\frac{1}{\sqrt{2}} - (-1) = 1 - \frac{1}{\sqrt{2}}

Combining both parts:

I=20(2)+(1−12)=40+1−22=41−12I = 20(2) + \left( 1 - \frac{1}{\sqrt{2}} \right) = 40 + 1 - \frac{\sqrt{2}}{2} = 41 - \frac{1}{\sqrt{2}}

Example 6: Floor and Fractional Part Interaction§

Evaluate:

I=∫010x{x} dxI = \int_0^{10} x \{x\} \, dx

Solution:

Write xx in terms of its integer part and fractional part: x=⌊x⌋+{x}x = \lfloor x \rfloor + \{x\}.

I=∫010(⌊x⌋+{x}){x} dx=∫010⌊x⌋{x} dx+∫010{x}2 dxI = \int_0^{10} \big( \lfloor x \rfloor + \{x\} \big) \{x\} \, dx = \int_0^{10} \lfloor x \rfloor \{x\} \, dx + \int_0^{10} \{x\}^2 \, dx

Evaluate each term separately:

First term: Using our formula ∫0n⌊x⌋{x} dx=n(n−1)2∫01x dx\int_0^n \lfloor x \rfloor \{x\}\,dx = \frac{n(n - 1)}{2} \int_0^1 x\,dx with n=10n = 10:

∫010⌊x⌋{x} dx=10×92∫01x dx=45×12=452\int_0^{10} \lfloor x \rfloor \{x\} \, dx = \frac{10 \times 9}{2} \int_0^1 x \, dx = 45 \times \frac{1}{2} = \frac{45}{2}

Second term: Using periodic tiling for {x}2\{x\}^2 with period T=1T = 1:

∫010{x}2 dx=10∫01x2 dx=10×13=103\int_0^{10} \{x\}^2 \, dx = 10 \int_0^1 x^2 \, dx = 10 \times \frac{1}{3} = \frac{10}{3}

Adding the two components:

I=452+103=135+206=1556I = \frac{45}{2} + \frac{10}{3} = \frac{135 + 20}{6} = \frac{155}{6}

Example 7: Combining Periodicity with King's Rule§

Evaluate:

I=∫0200πdx1+esin⁡xI = \int_0^{200\pi} \frac{dx}{1 + e^{\sin x}}

Solution:

The integrand f(x)=11+esin⁡xf(x) = \frac{1}{1 + e^{\sin x}} has fundamental period T=2πT = 2\pi. The upper limit is 200π=100×(2π)200\pi = 100 \times (2\pi), so n=100n = 100.

By the periodic tiling theorem:

I=100∫02πdx1+esin⁡xI = 100 \int_0^{2\pi} \frac{dx}{1 + e^{\sin x}}

Now evaluate J=∫02πdx1+esin⁡xJ = \int_0^{2\pi} \frac{dx}{1 + e^{\sin x}} using King's Rule on [0,2π][0, 2\pi]: Replace xx with 2π−x2\pi - x:

J=∫02πdx1+esin⁡(2π−x)=∫02πdx1+e−sin⁡x=∫02πesin⁡x1+esin⁡x dxJ = \int_0^{2\pi} \frac{dx}{1 + e^{\sin(2\pi - x)}} = \int_0^{2\pi} \frac{dx}{1 + e^{-\sin x}} = \int_0^{2\pi} \frac{e^{\sin x}}{1 + e^{\sin x}} \, dx

Adding the two equations:

2J=∫02π1+esin⁡x1+esin⁡x dx=∫02π1 dx=2π  ⟹  J=π2J = \int_0^{2\pi} \frac{1 + e^{\sin x}}{1 + e^{\sin x}} \, dx = \int_0^{2\pi} 1 \, dx = 2\pi \implies J = \pi

Therefore:

I=100⋅J=100πI = 100 \cdot J = 100\pi

Example 8: Rational Function of the Fractional Part§

Evaluate:

I=∫050dx2+{x}I = \int_0^{50} \frac{dx}{2 + \{x\}}

Solution:

The integrand 12+{x}\frac{1}{2 + \{x\}} is periodic with fundamental period T=1T = 1. The limits are from 00 to 5050 (so n=50n = 50).

Applying the periodic property:

I=50∫01dx2+{x}I = 50 \int_0^1 \frac{dx}{2 + \{x\}}

On the fundamental interval [0,1][0, 1], {x}=x\{x\} = x:

I=50∫01dx2+x=50[ln⁡(2+x)]01=50(ln⁡3−ln⁡2)=50ln⁡(32)I = 50 \int_0^1 \frac{dx}{2 + x} = 50 \Big[ \ln(2 + x) \Big]_0^1 = 50 \big( \ln 3 - \ln 2 \big) = 50 \ln\left(\frac{3}{2}\right)

Summary of Periodic Properties§

Property Formula Geometric Meaning
Window Invariance ∫aa+Tf(x) dx=∫0Tf(x) dx\int_a^{a + T} f(x)\,dx = \int_0^T f(x)\,dx Area over any interval of width TT is constant (independent of aa)
nn Periods from Origin ∫0nTf(x) dx=n∫0Tf(x) dx\int_0^{nT} f(x)\,dx = n \int_0^T f(x)\,dx Tiling nn identical fundamental blocks
nn Periods from aa ∫aa+nTf(x) dx=n∫0Tf(x) dx\int_a^{a + nT} f(x)\,dx = n \int_0^T f(x)\,dx Tiling nn blocks starting at any arbitrary point aa
Difference of Multiples ∫mTnTf(x) dx=(n−m)∫0Tf(x) dx\int_{mT}^{nT} f(x)\,dx = (n - m)\int_0^T f(x)\,dx Net area over n−mn - m periods
Incomplete Bounds ∫nTnT+bf(x) dx=∫0bf(x) dx\int_{nT}^{nT + b} f(x)\,dx = \int_0^b f(x)\,dx Shifting the boundary interval back to the origin
Fractional Part Rule ∫0ng({x}) dx=n∫01g(x) dx\int_0^n g(\{x\})\,dx = n \int_0^1 g(x)\,dx Integrating periodic {x}\{x\} over nn unit periods (T=1T = 1)
Floor & Fraction Product ∫0n⌊x⌋f({x}) dx=n(n−1)2∫01f(x) dx\int_0^n \lfloor x \rfloor f(\{x\})\,dx = \frac{n(n - 1)}{2} \int_0^1 f(x)\,dx Factoring out constant integer steps
Section 9 of 15 · Definite Integration

Mark this section complete when you have worked through its proofs.