$\newcommand{\dollar}{\} \DeclareMathOperator{\erf}{erf} \DeclareMathOperator{\arctanh}{arctanh} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&}$

## Section5.2Antiderivatives from Formulas

###### Motivating Questions
• If we have a function given by a formula, is there a way to write down the antiderivative?

• How can we find the area between two curves?

The general problem of finding an antiderivative is difficult. In part, this is due to the fact that we are trying to undo the process of differentiating, and the undoing is much more difficult than the doing. For example, while it is evident that an antiderivative of $f(x) = \sin(x)$ is $F(x) = -\cos(x)$ and that an antiderivative of $g(x) = x^2$ is $G(x) = \frac{1}{3} x^3\text{,}$ combinations of $f$ and $g$ can be far more complicated. Consider the functions

\begin{equation*} 5\sin(x) - 4x^2, \ x^2 \sin(x), \ \frac{\sin(x)}{x^2}, \ \text{and} \ \sin(x^2)\text{.} \end{equation*}

In the above cases, the antiderivative might not be obvious and in some cases, for example, $\sin(x^2)$ the antiderivative cannot be written down using elementary functions. This warrants the question, how do we find an antiderivative from a function given by a formula in general? We will begin to answer that question in this chapter.

### SubsectionBasic antiderivatives

What is involved in trying to find an antiderivative for each? From our experience with derivative rules, we know that derivatives of sums and constant multiples of basic functions are simple to execute, but derivatives involving products, quotients, and composites of familiar functions are more complicated. Therefore, it stands to reason that antidifferentiating products, quotients, and composites of basic functions may be even more challenging. We defer our study of all but the most elementary antiderivatives to later in the text.

Before proceeding any further it will be useful to state two properties.

###### Properties of Antiderivatives: Sums and Constant Multiples

Let $f$ and $g$ be functions that have an antiderivative and $c$ a constant then

\begin{align*} \int\left(f(x) \pm g(x)\right) dx &= \int f(x)dx \pm \int g(x)dx\\ \int cf(x) dx &= c\int f(x)dx\text{.} \end{align*}

In other words, the antiderivative of a sum is the sum of the antiderivatives.

We forgo a formal proof of these properties but note that they are a consequence of the Constant Multiple Rule and Sum Rule for derivatives in Section2.1.

We do note that whenever we know the derivative of a function, we have a function-derivative pair, so we also know the antiderivative of a function. For instance, since we know that

\begin{equation*} \frac{d}{dx}[-\cos(x)] = \sin(x)\text{,} \end{equation*}

we also know that $F(x) = -\cos(x)$ is an antiderivative of $f(x) = \sin(x)\text{.}$ $F$ and $f$ together form a function-derivative pair. Clearly, every basic derivative rule leads us to such a pair, and thus to a known antiderivative.

In Example5.14, we will construct a list of the basic antiderivatives we know at this time. Those rules will help us antidifferentiate sums and constant multiples of basic functions. For example, since $-\cos(x)$ is an antiderivative of $\sin(x)$ and $\frac{1}{3}x^3$ is an antiderivative of $x^2\text{,}$ it follows that

\begin{equation*} F(x) = -5\cos(x) - \frac{4}{3}x^3 \end{equation*}

is an antiderivative of $f(x) = 5\sin(x) - 4x^2\text{.}$

Finally, before proceeding to build a list of common functions whose antiderivatives we know, we recall that each function has more than one antiderivative. Because the derivative of any constant is zero, we may add a constant of our choice to any antiderivative. For instance, we know that $G(x) = \frac{1}{3}x^3$ is an antiderivative of $g(x) = x^2\text{.}$ But we could also have chosen $G(x) = \frac{1}{3}x^3 + 7\text{,}$ since in this case as well, $G'(x) = x^2\text{.}$ If $g(x) = x^2\text{,}$ we say that the general antiderivative of $g$ is

\begin{equation*} G(x) = \frac{1}{3}x^3 + C\text{,} \end{equation*}

where $C$ represents an arbitrary real number constant. Regardless of the formula for $g\text{,}$ including $+C$ in the formula for its antiderivative $G$ results in the most general possible antiderivative.

In the following example, we work to build a list of basic functions whose antiderivatives we already know.

###### Example5.14

Use your knowledge of derivatives of basic functions to complete the above table of antiderivatives. For each entry, your task is to find a function $F$ whose derivative is the given function $f\text{.}$

###### Antiderivative of $\frac{1}{x}$

The antiderivative of $\frac{1}{x}$ is $\ln|x|+C\text{.}$ The absolute value sign comes about by considering two cases separately. For $x>0\text{,}$ we have that

\begin{equation*} \frac{d}{dx}\left(\ln(x)\right)=\frac{1}{x} \end{equation*}

On the other hand, for $x< 0\text{,}$ $\ln|x|=\ln(-x)\text{,}$ so

\begin{equation*} \frac{d}{dx}\left(\ln(-x)\right)=\frac{1}{-x}(-1)=\frac{1}{x} \end{equation*}
Hint

You might start by constructing a list of all the basic functions whose derivative you know.

 given function, $f(x)$ antiderivative, $F(x)$ $k\text{,}$ ($k \ne 0$) $kx+C$ $x^n\text{,}$ $n \ne -1$ $\frac{1}{n+1}x^{n+1}+C$ $\frac{1}{x}$ $\ln|x|+C$ $\sin(x)$ $-\cos(x)+C$ $\cos(x)$ $\sin(x)+C$ $\sec(x) \tan(x)$ $\sec(x)+C$ $\csc(x) \cot(x)$ $-\csc(x)+C$ $\sec^2 (x)$ $\tan(x)+C$ $\csc^2 (x)$ $\cot(x)+C$ $e^x$ $e^x+C$ $a^x$ $(a \gt 1)$ $\frac{1}{\ln(a)} a^x+C$ $\frac{1}{1+x^2}$ $\arctan(x)+C$ $\frac{1}{\sqrt{1-x^2}}$ $\arcsin(x)+C$
Solution
 given function, $f(x)$ antiderivative, $F(x)$ $k\text{,}$ ($k \ne 0$) $kx+C$ $x^n\text{,}$ $n \ne -1$ $\frac{1}{n+1}x^{n+1}+C$ $\frac{1}{x}$ $\ln|x|+C$ $\sin(x)$ $-\cos(x)+C$ $\cos(x)$ $\sin(x)+C$ $\sec(x) \tan(x)$ $\sec(x)+C$ $\csc(x) \cot(x)$ $-\csc(x)+C$ $\sec^2 (x)$ $\tan(x)+C$ $\csc^2 (x)$ $\cot(x)+C$ $e^x$ $e^x+C$ $a^x$ $(a \gt 1)$ $\frac{1}{\ln(a)} a^x+C$ $\frac{1}{1+x^2}$ $\arctan(x)+C$ $\frac{1}{\sqrt{1-x^2}}$ $\arcsin(x)+C$

### SubsectionEvaluating Definite Integrals Involving Expressions

Now that we have some basic antiderivatives in hand we can proceed to solve problems involving the definite integral when the integrand is an expression. Specifically, we seek to use antiderivatives and the Fundamental Theorem of Calculus to evaluate expressions like $\displaystyle \int_0^1 \left(x^3 - x - e^x + 2\right) \,dx\text{.}$

Since our current interest in antiderivatives is so that we can evaluate definite integrals by the Fundamental Theorem of Calculus the constant $C$ is actually irrelevant, and mathematicians genrally omit it in these types of problems. To see why, consider the definite integral

\begin{equation*} \int_0^1 x^2 \, dx\text{.} \end{equation*}

For the integrand $g(x) = x^2\text{,}$ suppose we find and use the general antiderivative $G(x) = \frac{1}{3} x^3 + C\text{.}$ Then, by the Fundamental Theorem of Calculus,

\begin{align*} \int_0^1 x^2 \, dx &= \left. \frac{1}{3} x^3 + C \right|_0^1\\ &= \left(\frac{1}{3} (1)^3 + C \right) - \left(\frac{1}{3} (0)^3 + C \right)\\ &= \frac{1}{3} + C - 0 - C\\ &= \frac{1}{3}\text{.} \end{align*}

Observe that the $C$-values appear as opposites in the evaluation of the integral and thus do not affect the definite integral's value.

###### Example5.17

Use the FTC and the results in Table5.16 to evaluate the three given definite integrals.

1. $\displaystyle \int_0^1 \left(x^3 - x - e^x + 2\right) \,dx$

2. $\displaystyle \int_0^{\frac{\pi}{3}} (2\sin (t) - 4\cos(t) + \sec^2(t) - \pi) \, dt$

3. $\displaystyle \int_0^1 (\sqrt{x}-x^2) \, dx$

Hint

Be sure to recall the sum and constant multiple rules, which work not only for differentiating, but also for antidifferentiating.

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

2. $\int_0^{\frac{\pi}{3}} (2\sin (t) - 4\cos(t) + \sec^2(t) - \pi) \, dt = 1 - \sqrt{3} - \frac{\pi^2}{3}\text{.}$

3. $\int_0^1 (\sqrt{x} - x^2) \, dx = \frac{1}{3}\text{.}$

Solution
1. By standard antiderivative rules and the FTC,

\begin{align*} \int_0^1 \left(x^3 - x - e^x + 2\right) \,dx =\mathstrut \amp \left. \frac{1}{4} x^4 - \frac{1}{2}x^2 - e^x + 2x \right|_0^1\\ =\mathstrut \amp \left(\frac{1}{4} (1)^4 - \frac{1}{2}(1)^2 - e^1 + 2(1) \right) - \left(\frac{1}{4} (0)^4 - \frac{1}{2}(0)^2 - e^0 + 2(0) \right)\\ =\mathstrut \amp \frac{1}{4} - \frac{1}{2} - e + 2 - \left(0 - 0 - 1 + 0 \right)\\ =\mathstrut \amp -\frac{1}{4} - e + 3\\ =\mathstrut \amp \frac{11}{4} - 3\text{.} \end{align*}
2. Calculating the needed antiderivative and applying the FTC,

\begin{align*} \int_0^{\frac{\pi}{3}} (2\sin (t) - 4\cos(t) + \sec^2(t) - \pi) \, dt =\mathstrut \amp \left. \left(-2\cos(t) - 4\sin(t) + \tan(t) - \pi t \right) \right|_0^{\frac{\pi}{3}}\\ =\mathstrut \amp \left(-2\cos(\frac{\pi}{3}) - 4\sin(\frac{\pi}{3}) + \tan(\frac{\pi}{3}) - \pi (\frac{\pi}{3}) \right) -\\ \ \amp \left(-2\cos(0)) - 4\sin(0) + \tan(0) - \pi (0) \right)\\ =\mathstrut \amp -2 \cdot \frac{1}{2} - 4 \cdot \frac{\sqrt{3}}{2} + \sqrt{3} - \frac{\pi^2}{3} - (-2 - 0 + 0 - 0)\\ =\mathstrut \amp 1 - \sqrt{3} - \frac{\pi^2}{3}\text{.} \end{align*}
3. Noting that $\frac{d}{dx}[\frac{2}{3} x^{\frac{3}{2}}] = x^{\frac{1}{2}}\text{,}$ we find that

\begin{align*} \int_0^1 (\sqrt{x} - x^2) \, dx =\mathstrut \amp \left. \frac{2}{3}x^{\frac{3}{2}} - \frac{1}{3}x^3 \right|_0^1\\ =\mathstrut \amp \frac{2}{3} - \frac{1}{3} - (0 - 0 )\\ =\mathstrut \amp \frac{1}{3}\text{.} \end{align*}

### SubsectionIntegration and the Area between Two Curves

Integration allows us to find the area between a curve and the $x$-axis. In fact, by visually inspecting the graphs of two different curves we can develop a technique for finding the area between two curves. Consider the graphs of the curves $y=x^2+1$ and $y=x+3$ displayed in Figure5.18. We might ask if there is a way to find the area enclosed by these two curves as is colored in the figure.

In fact, using the knowledge we have about integration, we can figure out this quantity exactly.

###### Example5.19

What is the exact area enclosed by the curves given by the functions $f(x)=x^2+1$ and $g(x)=x+3\text{?}$

Hint

It might help to answer the following questions:

• Where do the curves intersect?
• Based upon Figure5.18 how would you calculate exact area between $g(x)$ and the $x$-axis between the points of intersection?
• Based upon Figure5.18 how would you calculate exact area between $f(x)$ and the $x$-axis between the points of intersection?
• What is the relationship between the areas you calculated above?

$\frac{9}{2}$

Solution

The first step in solving this problem is to determine where the curves intersect. We can find the point of intersection by setting the two curves equal to each other.

\begin{align*} x^2+1 \amp=x+3\\ x^2-x-2 \amp=x+3\\ x^2-x-2 \amp=0\\ (x+1)(x-2) \amp=0 \end{align*}

Therefore, the curves intersect at two $x$-values, $x=-1,2\text{.}$ This means were are concerned with the interval $[-2,2]\text{.}$

We next note that on the interval in question, $[-2,2]\text{,}$ the curve $g(x)=x+3$ is above the curve $f(x)=x^2+1\text{.}$ We also note that $\int_{-1}^{2}(x+3)dx$ would give the area shown in Figure5.20 and $\int_{-1}^{2}(x^2+1)dx$ Figure5.21.

By overlaying Figure5.20 and Figure5.21 as in Figure5.22 you can see that Figure5.18 should be given by subtracting $\int_{-1}^{2}(x^2+1)dx$ from $\int_{-1}^{2}(x+3)dx\text{.}$

Therefore, the area between the curves $y=x^2+1$ and $y=x+3$ is given by the following quantity:

\begin{align*} \int_{-1}^{2}(x+3)\,dx-\int_{-1}^{2}(x^2+1)\,dx \amp= \int_{-1}^{2}\left((x+3)-(x^2+1)\right)\,dx\\ \mathstrut \amp=\int_{-1}^{2}(-x^2+x+2)\,dx\\ \mathstrut \amp= \left. -\frac{1}{3}x^3+\frac{1}{2}x^2+2x \right|_{-1}^{2}\\ \mathstrut \amp= \frac{9}{2} \end{align*}

### SubsectionExercises

The instantaneous velocity (in meters per minute) of a moving object is given by the function $v$ as pictured in Figure5.23. Assume that on the interval $0 \le t \le 4\text{,}$ $v(t)$ is given by $v(t) = -\frac{1}{4}t^3 + \frac{3}{2}t^2 + 1\text{,}$ and that on every other interval $v$ is piecewise linear, as shown.

1. Determine the exact distance traveled by the object on the time interval $0 \le t \le 4\text{.}$

2. What is the object's average velocity on $[12,24]\text{?}$

3. At what time is the object's acceleration greatest?

4. Suppose that the velocity of the object is increased by a constant value $c$ for all values of $t\text{.}$ What value of $c$ will make the object's total distance traveled on $[12,24]$ be 210 meters?

A function $f$ is given piecewise by the formula

\begin{equation*} f(x) = \begin{cases} -x^2 + 2x + 1, \amp \ \text{if} \ 0 \le x \lt 2 \\ -x + 3, \amp \ \text{if} \ 2 \le x \lt 3 \\ x^2 - 8x + 15, \amp \ \text{if} \ 3 \le x \le 5 \end{cases}\text{.} \end{equation*}
1. Determine the exact value of the net signed area enclosed by $f$ and the $x$-axis on the interval $[2,5]\text{.}$

2. Compute the exact average value of $f$ on $[0,5]\text{.}$

3. Find a formula for a function $g$ on $5 \le x \le 7$ so that if we extend the above definition of $f$ so that $f(x) = g(x)$ if $5 \le x \le 7\text{,}$ it follows that $\int_0^7 f(x) \, dx = 0\text{.}$