Unit 6 · Topic 6.6

Rearrange definite integrals

Builds on Riemann sums and the definite integral as signed area. 13 minutes.

  1. Example 1Reverse or collapse integration bounds
  2. Example 2Split and combine intervals
  3. Example 3Apply linearity correctly
  4. Example 4Use symmetry

For \(a<b\), cut the interval \([a,b]\) into \(n\) subintervals of width \(\Delta x=\frac{b-a}{n}\). Choose a point \(x_i^*\) in each subinterval. Topic 6.3 defined the definite integral as the limit of the Riemann sums:

\[\int_a^b f(x)\,dx=\lim_{n\to\infty}\sum_{i=1}^{n} f(x_i^*)\,\Delta x\]

If \(f\) is continuous on \([a,b]\), the sums approach this limit whichever points \(x_i^*\) you choose. The integral is the signed area between the graph of \(f\) and the x-axis, where area below the axis counts as negative. This topic finds new integrals from known ones by reversing the bounds, splitting the interval or the integrand, and using symmetry.

Reversed bounds and adjoining intervals

A curve above the axis. The interval from a, marked by a faint dashed line, to b, marked by an orange line, is cut into six equal subintervals, and on each subinterval stands a teal rectangle as tall as the curve at the end of the subinterval nearer to a. An arrow along the axis runs from a to b. When b moves to the left of a, the arrow turns around and the rectangles turn red. When b reaches a, the rectangles disappear.

Figure 1The orange line marks \(b\), the faint dashed line marks \(a\), and the arrow along the axis runs from \(a\) to \(b\). The signed area of each rectangle is a term of the Riemann sum: teal rectangles count as positive, and red ones as negative.

In Figure 1, each rectangle, or strip, stands on one subinterval. It is as tall as the curve at one end of the subinterval, so its signed area is \(f(x_i^*)\,\Delta x\). Every width is positive and the curve lies above the axis, so every strip is teal.

The same sums make sense when \(b<a\), and their limit is again written \(\int_a^b f(x)\,dx\). Swap the bounds with the button under Figure 1. After the swap, \(b\) lies to the left of \(a\), so each width \(\frac{b-a}{n}\) is negative, and every strip turns red. Each height is still a value of \(f\) on its subinterval, so each sum is the negative of a Riemann sum from \(b\) to \(a\). Because \(f\) is continuous, those sums approach \(\int_b^a f(x)\,dx\), so \(\int_a^b f(x)\,dx=-\int_b^a f(x)\,dx\). Topic 6.4 used this as the definition of an integral with reversed bounds.

Move \(b\) onto \(a\). Every strip then has width 0, so every sum is 0, and the integral from \(a\) to \(a\) is 0. This needs only that \(f\) is defined at \(a\).

A curve above the axis, and the region under it from a to b, both marked by faint dashed lines. An orange line at c cuts the region into a teal piece from a to c and an orange striped piece from c to b. When c moves to the right of b, the teal piece reaches past b and the piece from c back to b turns red, lying over the part of the teal piece past b. When c moves to the left of a, the piece from a back to c is red.

Figure 2The faint dashed lines mark \(a\) and \(b\), and the orange line marks a cut at \(c\). It splits the region from \(a\) to \(b\) into a teal piece from \(a\) to \(c\) and an orange striped piece from \(c\) to \(b\). A piece that runs from right to left counts as negative and is red.

Integrals over adjoining intervals, which share an endpoint, add. For \(a<c<b\), cut the region at \(c\), as in Figure 2. The area above the x-axis splits into a part on each side of \(c\), and so does the area below it. Areas of regions that do not overlap add, so the signed areas of the two pieces add to the signed area of the whole. This property is called additivity.

It holds for every order of \(a\), \(b\) and \(c\). Move \(c\) to the right of \(b\) in Figure 2. The teal piece from \(a\) to \(c\) now reaches past \(b\). The piece from \(c\) back to \(b\) runs from right to left, so it is red. It cancels the part of the teal piece past \(b\). In symbols, additivity for \(a<b<c\) and the reversal of bounds give

\[\begin{aligned}&\int_a^b f(x)\,dx\\&=\int_a^c f(x)\,dx-\int_b^c f(x)\,dx\\&=\int_a^c f(x)\,dx+\int_c^b f(x)\,dx\end{aligned}\]

Each other order follows in the same way. If two of the points are equal, the rules for reversed and equal bounds give the same equation.

For a function with a jump or a hole, the integral is defined by additivity. On each piece between the breaks, integrate the continuous function that agrees with \(f\) except at the ends, and add.

Sums and constant multiples

A wavy curve above the axis with the teal region under it from a to b. A green band of varying height sits on the curve, so its top edge is a second wavy curve. A slider multiplies the height of the first curve by a factor k from 1 to 2, and a faint dashed curve keeps its original height.

Figure 3The teal region lies under the graph of \(k\,f\), and for \(k>1\) the faint dashed curve is the graph of \(f\). The green band has height \(g(x)\) at each \(x\), so its top edge is the graph of \(k\,f+g\).

Let \(f\) and \(g\) be continuous on the interval from \(a\) to \(b\), with the bounds in either order. Each term of a Riemann sum for \(f+g\) splits into a term for \(f\) and a term for \(g\):

\[\begin{aligned}&\sum_{i=1}^{n}\big(f(x_i^*)+g(x_i^*)\big)\,\Delta x\\&=\sum_{i=1}^{n} f(x_i^*)\,\Delta x+\sum_{i=1}^{n} g(x_i^*)\,\Delta x\end{aligned}\]

As \(n\) grows, the left side approaches the integral of \(f+g\), and the sums on the right approach the integrals of \(f\) and \(g\). By the sum law for limits, the integral of \(f+g\) is the integral of \(f\) plus the integral of \(g\). In Figure 3, the green band adds its height \(g(x)\) to the height of the curve at each \(x\). The region under its top edge is the teal region together with the band.

A constant factor \(k\) comes out of the sum: \(\sum k\,f(x_i^*)\,\Delta x=k\sum f(x_i^*)\,\Delta x\). By the constant multiple law for limits, the integral of \(k\,f\) is \(k\) times the integral of \(f\). Move the slider for \(k\) in Figure 3. Every height of the curve is multiplied by \(k\), and so is the teal area. With \(k=-1\), the two rules give the integral of a difference.

If the integrand is a constant \(k\), every term is \(k\,\Delta x\). Every sum, and therefore the integral, is \(k\,n\,\Delta x=k(b-a)\), the signed area of a rectangle of height \(k\) and width \(b-a\). Together, the rules for sums and constant multiples are called linearity.

No rule of this kind holds for products or quotients. From 0 to 4, the integral of \(x\) is 8, the area of a triangle, so the integral of \(3x\) is 24. The product of the integrals of 3 and \(x\) is \(12\cdot 8=96\), four times too large, because 12 already contains the width 4. The quotient of the integrals of \(3x\) and 3 is \(\frac{24}{12}=2\), not the integral 8 of their quotient \(x\).

Even and odd functions

The graph of an odd function, which rises from the origin to a hump on the right and falls to a matching dip on the left. The region from minus b to b, marked by orange lines, is teal above the axis on the right and red below the axis on the left, and the two parts have the same size. One button turns the curve into an even one, a hump above the axis that is the same on both sides of the y-axis, and both halves of the region are then teal. Another stacks a green band of height 0.5 on the odd curve, across the whole region.

Figure 4The region runs from \(-b\) to \(b\), marked by orange lines, and the vertical line is the y-axis. Teal parts lie above the x-axis and count as positive, and red parts lie below it and count as negative. The green band has height 0.5 and counts as positive everywhere.

A function \(f\) is even if \(f(-x)=f(x)\) for every \(x\) in its domain. Its graph is then its own mirror image in the y-axis, as for \(x^2\) and \(\cos x\). The function is odd if \(f(-x)=-f(x)\), so that its graph looks the same after a half-turn about the origin, as for \(x^3\) and \(\sin x\).

Let \(f\) be continuous on \([-b,b]\), where \(b>0\). Split the integral at 0 by additivity. Each subinterval of \([0,b]\) in a Riemann sum has a mirror subinterval of the same width in \([-b,0]\). An odd \(f\) has opposite heights at mirror points \(x\) and \(-x\). Every Riemann sum on \([0,b]\) therefore has a mirror sum on \([-b,0]\) with the opposite value. In the limit, \(\int_{-b}^{0} f(x)\,dx=-\int_0^b f(x)\,dx\), so the two halves cancel and the integral from \(-b\) to \(b\) is 0. In Figure 4, the red half is the teal half after a half-turn about the origin.

Use the first button under Figure 4 to make \(f\) even. Mirror points now have equal heights, so the two halves have the same signed area. The integral from \(-b\) to \(b\) is then twice the integral from 0 to \(b\).

Both rules need an interval symmetric about 0 and a function that is even or odd. Use the last button to add 0.5 to the odd \(f\). The function \(f+0.5\) is neither even nor odd. The integral of \(f\) is still 0, but the green band adds the area \(0.5\cdot 2b\), so the integral from \(-b\) to \(b\) is \(b\).

Example 1

Reverse or collapse integration bounds

Let \(F(x)=\displaystyle\int_0^x \sqrt{9-t^2}\,dt\) for \(-3\le x\le 3\). Find \(F(0)\) and \(F(-3)\).

Solution

The integrand is continuous on \([-3,3]\), where \(9-t^2\ge 0\). At \(x=0\) the bounds are equal, so \(F(0)=0\).

At \(x=-3\) the upper bound is less than the lower bound. Reversing the bounds changes the sign of the integral:

\[\begin{aligned}F(-3)&=\int_0^{-3}\sqrt{9-t^2}\,dt\\&=-\int_{-3}^{0}\sqrt{9-t^2}\,dt\end{aligned}\]

The graph of \(y=\sqrt{9-t^2}\) is the upper half of the circle \(t^2+y^2=9\), whose radius is 3. From \(-3\) to 0, the region under it is a quarter of the disk, with area \(\frac14\pi\cdot 3^2=\frac{9\pi}{4}\). Therefore \(F(-3)=-\frac{9\pi}{4}\).

As a check of the sign, \(F'(x)=\sqrt{9-x^2}\) by topic 6.4, which is positive for \(-3<x<3\). The function \(F\) therefore increases on \([-3,3]\), and \(F(-3)\) is less than \(F(0)=0\).

Example 2

Split and combine intervals

Let \(f\) be a continuous function with \(\displaystyle\int_2^9 f(x)\,dx=5\) and \(\displaystyle\int_9^4 f(x)\,dx=8\). Find \(\displaystyle\int_2^4 f(x)\,dx\).

Solution

Additivity holds for every order of the bounds, so the integral from 2 to 4 splits at 9, although 9 lies outside \([2,4]\):

\[\begin{aligned}&\int_2^4 f(x)\,dx\\&=\int_2^9 f(x)\,dx+\int_9^4 f(x)\,dx\\&=5+8=13\end{aligned}\]

As a check, use the points in increasing order. The reversal of bounds gives \(-8\) for the integral from 4 to 9. Additivity then gives \(13+(-8)=5\) for the integral from 2 to 9, as given.

Example 3

Apply linearity correctly

Let \(f\) and \(g\) be continuous functions with \(\displaystyle\int_1^5 f(x)\,dx=6\) and \(\displaystyle\int_1^5 g(x)\,dx=-2\). Find \(\displaystyle\int_1^5 \big(3f(x)-g(x)+7\big)\,dx\).

Solution

By linearity, the integral splits into three integrals from 1 to 5, and the factor 3 comes out of the first. The constant 7 gives a rectangle of height 7 and width \(5-1=4\):

\[\begin{aligned}&3\int_1^5 f(x)\,dx-\int_1^5 g(x)\,dx\\&\quad+\int_1^5 7\,dx\\&=3(6)-(-2)+7\cdot 4\\&=18+2+28=48\end{aligned}\]

No rule splits a product, so these values do not give \(\int_1^5 f(x)\,g(x)\,dx\).

Example 4

Use symmetry

Evaluate \(\displaystyle\int_{-3}^{3}\left(4-|x|+\frac{\sin x}{1+x^2}\right)dx\).

Solution

The integrand is the sum of \(4-|x|\) and \(\frac{\sin x}{1+x^2}\), which are continuous for every \(x\), and the interval is symmetric about 0. By linearity, integrate each of them on its own. The fraction is odd, because \(\sin(-x)=-\sin x\) and \((-x)^2=x^2\):

\[\frac{\sin(-x)}{1+(-x)^2}=-\frac{\sin x}{1+x^2}\]

Its integral from \(-3\) to 3 is therefore 0. The function \(4-|x|\) is even, because \(|-x|=|x|\). From 0 to 3, its graph is the line \(y=4-x\). The region under it is a trapezoid with parallel sides 4 and 1 and width 3, so its area is \(\frac{15}{2}\):

\[\begin{aligned}\int_{-3}^{3}\big(4-|x|\big)\,dx&=2\int_0^3 (4-x)\,dx\\&=2\cdot\frac{15}{2}=15\end{aligned}\]

The integral is \(15+0=15\). As a check, the region under \(4-|x|\) is a rectangle 6 wide and 4 tall with two corner triangles of area \(\frac92\) removed, and \(24-9=15\).

Each example is one of the four skills of topic 6.6 in Which & Why: AP Calculus.