Unit 6 · Topic 6.7

Evaluate with antiderivatives

Builds on the Fundamental Theorem of Calculus, Part 1, and the Mean Value Theorem. 13 minutes.

  1. Example 1Find a suitable antiderivative
  2. Example 2Evaluate at the bounds in the correct order
  3. Example 3Handle a changing formula
  4. Example 4Interpret the definite result

The definite integral \(\int_a^b f(x)\,dx\) is the signed area between the graph of \(f\) and the \(x\)-axis from \(a\) to \(b\). Area below the axis counts as negative. Its definition as a limit of Riemann sums (topic 6.3) takes many steps to evaluate, and geometry gives it only for simple shapes. This topic computes it with an antiderivative of \(f\) on an interval, a function \(\cb{F}\) whose derivative is \(f\) at every \(x\) in the interval:

\[\cb{F}'(x)=f(x)\]

For example, \(x^3\) is an antiderivative of \(3x^2\), and so is \(x^3+5\), because the derivative of a constant is 0. You will see that the integral is the change in any antiderivative from \(a\) to \(b\).

The integral is the rise of an antiderivative

On top, a wavy curve f is positive, then negative between about 2.9 and 5, then positive again. The region between it and the axis from a fixed lower bound a to an orange edge b is shaded, teal above the axis and red below it. Below, the graph of an antiderivative F rises where f is positive and falls where f is negative. An orange arrow beside it rises from the height of F at a, marked by a faint dashed line, to the height of F at b. Buttons move the graph of F up, draw a red dashed curve G that follows F but jumps up at one point, with its own red arrow, and split the orange arrow at the zeros of f into green arrows where F rises and a red arrow where it falls.

Figure 1The shaded region runs from \(a\) to \(\cy{b}\), teal above the axis and red below it, where area counts as negative. The lower graph is an antiderivative \(\cb{F}\) of \(f\), and the orange arrow rises from \(F(a)\) to \(F(b)\). One button adds a red dashed function \(\cr{G}\) with a break and a red arrow for its rise. Another splits the orange arrow at the zeros of \(f\) into green rises and red falls.

In Figure 1, the shaded region lies between the graph of a continuous function \(f\) and the \(x\)-axis. It runs from \(a\) to the orange line at \(\cy{b}\), its moving edge, so its signed area is \(\int_a^b f(x)\,dx\). The lower graph is an antiderivative \(\cb{F}\) of \(f\), so its slope at each \(x\) is the height \(f(x)\) of the upper curve. An orange arrow just right of \(\cy{b}\) rises from the height \(F(a)\), marked by a faint dashed line, to \(F(b)\), so its length is \(\cy{F(b)-F(a)}\).

Move \(\cy{b}\) to the right. Where \(f\) is positive, the region gains teal area and \(F\) rises, so the arrow grows. Where \(f\) is negative, the region gains red area and \(F\) falls, so the arrow shrinks. The arrow and the signed area change together.

To prove that they are equal, compare \(F\) with the accumulation function \(A(x)=\int_a^x f(t)\,dt\) of topic 6.4. Because \(f\) is continuous on \([a,b]\), the Fundamental Theorem of Calculus, Part 1, gives \(A'(x)=f(x)\) for every \(x\) in \([a,b]\). The difference \(D(x)=F(x)-A(x)\) therefore has derivative \(f(x)-f(x)=0\) there.

Because \(D\) has a derivative at every point of \([a,b]\), it is continuous there (topic 2.4). The Mean Value Theorem (topic 5.1) therefore applies to \(D\) on \([a,b]\). It gives a point between \(a\) and \(b\) where the derivative of \(D\) equals \(\frac{D(b)-D(a)}{b-a}\). That derivative is 0, so \(D(b)=D(a)\):

\[\begin{aligned}F(b)-A(b)&=F(a)-A(a)\\F(b)-F(a)&=A(b)-A(a)\end{aligned}\]

The value \(A(b)\) is the integral from \(a\) to \(b\), and \(A(a)=0\), because an integral whose bounds are equal is 0 (topic 6.6). Therefore \(F(b)-F(a)=\int_a^b f(x)\,dx\), and the arrow measures the signed area at every position of \(b\). This result is the Fundamental Theorem of Calculus, Part 2, which some books call the Evaluation Theorem. Topic 6.1 proved it, as the Net Change Theorem, when \(f\) rises and falls a finite number of times. The proof here covers every continuous \(f\). Part 1 needs \(f\) to be continuous on \([a,b]\). The Mean Value Theorem step needs \(F'(x)=f(x)\) at every point of \([a,b]\), which makes \(D\) differentiable with \(D'(x)=0\).

Any antiderivative gives the same value. Press Add a constant to F. The whole lower graph moves up, and the arrow keeps its length, because a constant \(C\) cancels:

\[\begin{aligned}&\big(F(b)+C\big)-\big(F(a)+C\big)\\&=F(b)-F(a)\end{aligned}\]

The simplest antiderivative, with no constant, is therefore enough, and the integral is a number with no \(C\) in it.

The theorem needs \(F'(x)=f(x)\) at every \(x\) in \([a,b]\). Press Draw a function with a break. A red dashed curve \(\cr{G}\) appears, which runs along \(F\), jumps up at one point, and then runs parallel to \(F\). Its slope is \(f(x)\) everywhere except at the jump. Once \(\cy{b}\) passes the jump, the red arrow \(\cr{G(b)-G(a)}\) is longer than the orange one, so it is not the integral.

A formula can hide such a break. The function \(-\frac1x\) has derivative \(\frac{1}{x^2}\) at every \(x\neq 0\), but neither function is defined at 0. On \([-1,1]\), the integrand \(\frac{1}{x^2}\) is therefore not continuous, and \(-\frac1x\) is not an antiderivative of it, so the theorem does not apply. The difference \(-\frac11-\left(-\frac{1}{-1}\right)=-2\) cannot be the integral of a function that is never negative.

Finding an antiderivative

Each basic derivative formula, read backward, gives an antiderivative. The power rule multiplies by the exponent and lowers it by one. Its reverse raises the exponent by one and divides by the new exponent. The derivative of \(\frac{x^{n+1}}{n+1}\) is \(\frac{(n+1)x^n}{n+1}=x^n\). The rule needs \(n\neq -1\), because it would divide by 0.

For the exponent \(-1\), use \(\ln|x|\), which is defined for \(x\neq 0\). For \(x>0\), its derivative is \(\frac1x\) (topic 2.7). For \(x<0\), it equals \(\ln(-x)\), and the chain rule gives the derivative \(\frac{1}{-x}\cdot(-1)=\frac1x\). In the same way, \(\sin x\) is an antiderivative of \(\cos x\), \(-\cos x\) is one of \(\sin x\), and \(e^x\) is one of \(e^x\).

The derivative of a sum is the sum of the derivatives, and a constant factor stays in front (topic 2.6). You can therefore find an antiderivative term by term. If a quotient has a single power of \(x\) as its denominator, divide each term of the numerator by it, as in \(\frac{x^2+1}{x^2}=1+x^{-2}\). To check an antiderivative, differentiate it. The result must be \(f\).

The bracket \(\Big[F(x)\Big]_a^b\) means \(F(b)-F(a)\), the value at the upper bound minus the value at the lower bound. The other order, \(F(a)-F(b)\), is the integral from \(b\) to \(a\), the negative of the integral from \(a\) to \(b\) (topic 6.6). If \(F(a)\) is negative or has several terms, put it in parentheses before you subtract.

When the formula changes

Suppose that \(f\) is continuous on \([a,b]\) but changes from a formula \(f_1\) to a formula \(f_2\) at a point \(c\) between \(a\) and \(b\). Because \(f\) is continuous, \(f_1(c)=f_2(c)\), so \(f=f_1\) on \([a,c]\) and \(f=f_2\) on \([c,b]\). An antiderivative of \(f_1\) has the wrong slope where \(f_2\) differs from \(f_1\), so split the integral at \(c\) (topic 6.6). Each piece is the integral of one continuous formula, which the theorem evaluates with an antiderivative \(F_1\) of \(f_1\) or \(F_2\) of \(f_2\).

An absolute value is a changing formula: \(|f(x)|=f(x)\) where \(f(x)\ge 0\), and \(|f(x)|=-f(x)\) where \(f(x)<0\). Its formula changes where \(f\) changes sign, so split at the zeros of \(f\) between \(a\) and \(b\).

Press Split at the zeros of f under Figure 1. The edge moves to the right. The arrow splits into one arrow per piece between \(a\), the zeros of \(f\) and \(\cy{b}\): green where \(F\) rises, red where it falls. The integral is the net rise, the green lengths minus the red lengths. The integral of \(|f(x)|\) counts every piece as positive. It is the sum of all the lengths, which is the area of the shaded region. The integral and the area are equal only when \(f\ge 0\) on \([a,b]\).

When \(f\) is a rate, the integral is the net change in the quantity, in units of \(f\) times units of \(x\) (topic 6.1).

Example 1

Find a suitable antiderivative

Evaluate \(\displaystyle\int_1^9 \frac{x+2}{\sqrt{x}}\,dx\).

Solution

The integrand is continuous on \([1,9]\), because \(\sqrt{x}>0\) there. There is no quotient rule for antiderivatives, so first divide each term by \(\sqrt{x}=x^{1/2}\):

\[\frac{x+2}{\sqrt{x}}=x^{1/2}+2x^{-1/2}\]

Raise each exponent by one and divide by the new exponent, with the factor 2 in front:

\[\begin{aligned}F(x)&=\frac{x^{3/2}}{3/2}+2\cdot\frac{x^{1/2}}{1/2}\\&=\tfrac23x^{3/2}+4x^{1/2}\end{aligned}\]

Its derivative is \(x^{1/2}+2x^{-1/2}\), the integrand, so \(F\) is an antiderivative. The value at the upper bound minus the value at the lower bound is

\[\begin{aligned}\int_1^9\frac{x+2}{\sqrt{x}}\,dx&=\Big[\tfrac23x^{3/2}+4x^{1/2}\Big]_1^9\\&=(18+12)-\left(\tfrac23+4\right)\\&=\tfrac{76}{3}\end{aligned}\]

Example 2

Evaluate at the bounds in the correct order

Evaluate \(\displaystyle\int_{-\pi/2}^{\pi/3}\cos x\,dx\).

Solution

The integrand is continuous for every \(x\), and \(\sin x\) is an antiderivative of \(\cos x\), because the derivative of \(\sin x\) is \(\cos x\). The value at the upper bound comes first. The value at the lower bound, \(\sin\left(-\frac{\pi}{2}\right)=-1\), goes in parentheses:

\[\begin{aligned}\int_{-\pi/2}^{\pi/3}\cos x\,dx&=\Big[\sin x\Big]_{-\pi/2}^{\pi/3}\\&=\frac{\sqrt3}{2}-(-1)\\&=1+\frac{\sqrt3}{2}\end{aligned}\]

The answer is positive, as it must be, because \(\cos x\ge 0\) on \(\left[-\frac{\pi}{2},\frac{\pi}{3}\right]\), so the region lies above the axis.

Example 3

Handle a changing formula

The function \(f\) is defined by \[f(x)=\begin{cases}3-x^2, & x\le 1\\ x+1, & x>1.\end{cases}\] Evaluate \(\displaystyle\int_{-1}^{4} f(x)\,dx\).

Solution

At \(x=1\), both formulas give 2, so \(f\) is continuous. Each formula then holds on its whole closed piece, \(3-x^2\) on \([-1,1]\) and \(x+1\) on \([1,4]\). Split the integral at 1. On each piece, use an antiderivative of the formula that holds there:

\[\begin{aligned}\int_{-1}^{1}\left(3-x^2\right)dx&=\Big[3x-\tfrac{x^3}{3}\Big]_{-1}^{1}\\&=\tfrac83-\left(-\tfrac83\right)=\tfrac{16}{3}\end{aligned}\]
\[\begin{aligned}\int_{1}^{4}(x+1)\,dx&=\Big[\tfrac{x^2}{2}+x\Big]_{1}^{4}\\&=12-\tfrac32=\tfrac{21}{2}\end{aligned}\]

The integral over \([-1,4]\) is the sum of the two pieces:

\[\int_{-1}^{4} f(x)\,dx=\tfrac{16}{3}+\tfrac{21}{2}=\tfrac{95}{6}\]

As a check, the region over \([1,4]\) is a trapezoid with parallel sides 2 and 5 and width 3, so its area is \(\frac{21}{2}\).

Example 4

Interpret the definite result

A particle moves along the \(x\)-axis with velocity \(v(t)=6-2t\) meters per second for \(0\le t\le 4\). Find \(\displaystyle\int_0^4 v(t)\,dt\) and explain what it means. Then find the total distance that the particle travels.

Solution

The velocity is continuous, and \(F(t)=6t-t^2\) is an antiderivative of it. A constant added to \(F\) would cancel in the difference, so the answer has no constant:

\[\begin{aligned}\int_0^4 v(t)\,dt&=\Big[6t-t^2\Big]_0^4\\&=8-0=8\end{aligned}\]

The velocity is the rate of change of the position, so the integral is the displacement, the net change in position. Its unit is meters per second times seconds, or meters. At \(t=4\), the particle is 8 meters to the right of its starting point.

The distance counts motion in both directions as positive. The velocity is positive for \(t<3\) and negative for \(t>3\), so split the interval at 3:

\[\begin{aligned}\int_0^3 v(t)\,dt&=9-0=9\\\int_3^4 v(t)\,dt&=8-9=-1\end{aligned}\]

The particle moves 9 meters forward and 1 meter back, so it travels \(9+1=10\) meters. The integral, \(9-1=8\), is the signed total.

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