# 5.1 Antiderivatives and Indefinite Integration

Given a function $y=f(x)$, a differential equation is one that incorporates $y$, $x$, and the derivatives of $y$. For instance, a simple differential equation is:

 $y\mkern 1.35mu ^{\prime}=2x.$

Solving a differential equation amounts to finding a function $y$ that satisfies the given equation. Take a moment and consider that equation; can you find a function $y$ such that $y\mkern 1.35mu ^{\prime}=2x$?

Can you find another?

And yet another?

Hopefully one was able to come up with at least one solution: $y=x^{2}$. “Finding another” may have seemed impossible until one realizes that a function like $y=x^{2}+1$ also has a derivative of $2x$. Once that discovery is made, finding “yet another” is not difficult; the function $y=x^{2}+123{,}456{,}789$ also has a derivative of $2x$. The differential equation $y\mkern 1.35mu ^{\prime}=2x$ has many solutions. This leads us to some definitions.

###### Definition 5.1.1 Antiderivatives

Let a function $f(x)$ be given. An antiderivative of $f(x)$ is a function $F(x)$ such that $F\mkern 1.35mu ^{\prime}(x)=f(x)$.

We refer to an antiderivative of $f$, as opposed to the antiderivative of $f$, since antiderivatives are not unique. We often use upper-case letters to denote antiderivatives.

###### Theorem 5.1.1 Antiderivative Forms

Let $F(x)$ and $G(x)$ be antiderivatives of $f(x)$ on an interval. Then there exists a constant $C$ such that

 $G(x)=F(x)+C.$
• Proof

Suppose that $a$ and $b$ are two distinct points in the interval. Then by applying the Mean Value Theorem to the function $G(x)-F(x)$, there is a point $c$ between $a$ and $b$ so that

 $(G(b)-F(b))-(G(a)-F(a))=(G^{\prime}(c)-F^{\prime}(c))(b-a)=(f(c)-f(c))(b-a)=0.$

Because this holds for any $a$ and $b$ in the interval, $G(b)-F(b)$ is constant for all possible $b$. ∎

Given a function $f$ and one of its antiderivatives $F$, we know all antiderivatives of $f$ have the form $F(x)+C$ for some constant $C$.

###### Definition 5.1.2 Indefinite Integrals

The set of all antiderivatives of $f(x)$ is the indefinite integral of $f$, denoted by

 $\int f(x)\operatorname{d}\!x.$

Using Definitions 5.1.1 and 5.1.2, we can say that on an interval

 $\int f(x)\operatorname{d}\!x=F(x)+C.$

Let’s analyze this indefinite integral notation.

The integration symbol, $\int$, is in reality an “elongated S,” representing “take the sum.” We will later see how sums and antiderivatives are related.

The function we want to find an antiderivative of is called the integrand. It contains the differential of the variable we are integrating with respect to. The $\int$ symbol and the differential $\operatorname{d}\!x$ are not “bookends” with a function sandwiched in between; rather, the symbol $\int$ means “find all antiderivatives of what follows,” and the function $f(x)$ and $\operatorname{d}\!x$ are multiplied together; the $\operatorname{d}\!x$ does not “just sit there.”

Let’s practice using this notation.

###### Example 5.1.1 Evaluating indefinite integrals

Evaluate $\displaystyle\int\sin x\operatorname{d}\!x$.

SolutionWe are asked to find all functions $F(x)$ such that $F\mkern 1.35mu ^{\prime}(x)=\sin x$. Some thought will lead us to one solution: $F(x)=-\cos x$, because
$\frac{\operatorname{d}\!}{\operatorname{d}\!x}(-\cos x)=\sin x$.

The indefinite integral of $\sin x$ is thus $-\cos x$, plus a constant of integration. So:

 $\int\sin x\operatorname{d}\!x=-\cos x+C.$

A commonly asked question is “What happened to the $\operatorname{d}\!x$?” The unenlightened response is “Don’t worry about it. It just goes away.” A full understanding includes the following.

margin: Note: Recall from Definition 4.3.1 that $\operatorname{d}\!x$ is any nonzero real number and $\operatorname{d}\!y=f\,^{\prime}(x)\operatorname{d}\!x$. Λ

This process of antidifferentiation is really solving a differential question. The integral

 $\int\sin x\operatorname{d}\!x$

presents us with a differential, $\operatorname{d}\!y=\sin x\operatorname{d}\!x$. It is asking: “What is $y$?” We found lots of solutions, all of the form $y=-\cos x+C$.

Letting $\operatorname{d}\!y=\sin x\operatorname{d}\!x$, rewrite

 $\int\sin x\operatorname{d}\!x\quad\text{as}\quad\int\operatorname{d}\!y.$

This is asking: “What functions have a differential of the form $\operatorname{d}\!y$?” The answer is “Functions of the form $y+C$, where $C$ is a constant.” What is $y$? We have lots of choices, all differing by a constant; the simplest choice is $y=-\cos x$.

Understanding all of this is more important later as we try to find antiderivatives of more complicated functions. In this section, we will simply explore the rules of indefinite integration, and one can succeed for now with answering “What happened to the $\operatorname{d}\!x$?” with “It went away.”

Let’s practice once more before stating integration rules.

###### Example 5.1.2 Evaluating indefinite integrals

Evaluate $\displaystyle\int(3x^{2}+4x+5)\operatorname{d}\!x$.

SolutionWe seek a function $F(x)$ whose derivative is $3x^{2}+4x+5$. When taking derivatives, we can consider functions term-by-term, so we can likely do that here.

What functions have a derivative of $3x^{2}$? Some thought will lead us to a cubic, specifically $x^{3}+C_{1}$, where $C_{1}$ is a constant.

What functions have a derivative of $4x$? Here the $x$ term is raised to the first power, so we likely seek a quadratic. Some thought should lead us to $2x^{2}+C_{2}$, where $C_{2}$ is a constant.

Finally, what functions have a derivative of $5$? Functions of the form $5x+C_{3}$, where $C_{3}$ is a constant.

 $\int(3x^{2}+4x+5)\operatorname{d}\!x=x^{3}+C_{1}+2x^{2}+C_{2}+5x+C_{3}.$

We do not need three separate constants of integration; combine them as one constant, giving the final answer of

 $\int(3x^{2}+4x+5)\operatorname{d}\!x=x^{3}+2x^{2}+5x+C.$

It is easy to verify our answer; take the derivative of $x^{3}+2x^{3}+5x+C$ and see we indeed get $3x^{2}+4x+5$.

This final step of “verifying our answer” is important both practically and theoretically. In general, taking derivatives is easier than finding antiderivatives so checking our work is easy and vital as we learn.

We also see that taking the derivative of our answer returns the function in the integrand. Thus we can say that:

 $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\left(\int f(x)\operatorname{d}% \!x\right)=f(x).$

Differentiation “undoes” the work done by antidifferentiation.

Theorem 2.6.1 gave a list of the derivatives of common functions we had learned at that point. We restate part of that list here to stress the relationship between derivatives and antiderivatives. This list will also be useful as a glossary of common antiderivatives as we learn.

###### Theorem 5.1.2 Derivatives and Antiderivatives

(a) $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}cf(x)\bigr{)}=c\cdot f\,% ^{\prime}(x)$ (b) $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}f(x)\pm g(x)\bigr{)}=$   $f\,^{\prime}(x)\pm g^{\prime}(x)$ (c) $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}C\bigr{)}=0$ (a) $\int c\cdot f(x)\operatorname{d}\!x=c\cdot\int f(x)\operatorname{d}\!x$ (b) $\int\bigl{(}f(x)\pm g(x)\bigr{)}\operatorname{d}\!x=$   $\int f(x)\operatorname{d}\!x\pm\int g(x)\operatorname{d}\!x$ (c) $\int 0\operatorname{d}\!x=C$

We highlight a few important points from Theorem 5.1.2:

• Rule #(a) states $\int c\cdot f(x)\operatorname{d}\!x=c\cdot\int f(x)\operatorname{d}\!x$. This is the Constant Multiple Rule: we can temporarily ignore constants when finding antiderivatives, just as we did when computing derivatives (i.e., $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}3x^{2}\bigr{)}$ is just as easy to compute as $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}x^{2}\bigr{)}$). An example:

 $\int 5\cos x\operatorname{d}\!x=5\cdot\int\cos x\operatorname{d}\!x=5\cdot(% \sin x+C)=5\sin x+C.$

In the last step we can consider the constant as also being multiplied by 5, but “5 times a constant” is still a constant, so we just write “$C$ ”.

• Rule #(b) is the Sum/Difference Rule: we can split integrals apart when the integrand contains terms that are added/subtracted, as we did in Example 5.1.2. So:

 $\displaystyle\int(3x^{2}+4x+5)\operatorname{d}\!x$ $\displaystyle=\int 3x^{2}\operatorname{d}\!x+\int 4x\operatorname{d}\!x+\int 5% \operatorname{d}\!x$ $\displaystyle=3\int x^{2}\operatorname{d}\!x+4\int x\operatorname{d}\!x+\int 5% \operatorname{d}\!x$ $\displaystyle=3\cdot\frac{1}{3}x^{3}+4\cdot\frac{1}{2}x^{2}+5x+C$ $\displaystyle=x^{3}+2x^{2}+5x+C$

In practice we generally do not write out all these steps, but we demonstrate them here for completeness.

###### Theorem 5.1.3 Derivatives and Antiderivatives

Common Derivatives (d) $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}x^{n}\bigr{)}=n\cdot x^{% n-1}\vphantom{\frac{x^{n}}{n}}$ (e) $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}\ln\left\lvert x\right% \rvert\bigr{)}=\frac{1}{x}$ (f) $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}e^{x}\bigr{)}=e^{x}$ (g) $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}\sin x\bigr{)}=\cos x$ (h) $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}\cos x\bigr{)}=-\sin x$ (i) $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}\tan x\bigr{)}=\sec^{2}x$ (j) $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}\cot x\bigr{)}=-\csc^{2}x$ (k) $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}\sec x\bigr{)}=\sec x\tan x$ (l) $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\bigl{(}\csc x\bigr{)}=-\csc x\cot x$ Common Indefinite Integrals (d) $\int x^{n}\operatorname{d}\!x=\frac{x^{n+1}}{n+1}+C$($n\neq-1$) (e) $\int\frac{1}{x}\operatorname{d}\!x=\ln\left\lvert x\right\rvert+C$ (f) $\int e^{x}\operatorname{d}\!x=e^{x}+C$ (g) $\int\cos x\operatorname{d}\!x=\phantom{-}\sin x+C$ (h) $\int\sin x\operatorname{d}\!x=-\cos x+C$ (i) $\int\sec^{2}x\operatorname{d}\!x=\phantom{-}\tan x+C$ (j) $\int\csc^{2}x\operatorname{d}\!x=-\cot x+C$ (k) $\int\sec x\tan x\operatorname{d}\!x=\phantom{-}\sec x+C$ (l) $\int\csc x\cot x\operatorname{d}\!x=-\csc x+C$

• Rule #(d) is the Power Rule of indefinite integration. There are two important things to keep in mind:

1. (a)

Notice the restriction that $n\neq-1$. This is important: $\int\frac{1}{x}\operatorname{d}\!x\neq$$\frac{1}{0}x^{0}+C$”; rather, see Rule #(e).

2. (b)

We are presenting antidifferentiation as the “inverse operation” of differentiation. Here is a useful quote to remember:

“Inverse operations do the opposite things in the opposite order.”

When taking a derivative using the Power Rule, we first multiply by the power, then second subtract 1 from the power. To find the antiderivative, do the opposite things in the opposite order: first add one to the power, then second divide by the power.

• Note that Rule #(e) incorporates the absolute value of $x$. The exercises will work the reader through why this is the case; for now, know the absolute value is important and cannot be ignored.

## Initial Value Problems

In Section 2.3 we saw that the derivative of a position function gave a velocity function, and the derivative of a velocity function describes acceleration. We can now go “the other way:” the antiderivative of an acceleration function gives a velocity function, etc. While there is just one derivative of a given function, there are infinite antiderivatives. Therefore we cannot ask “What is the velocity of an object whose acceleration is $-32$ft/s${}^{2}$?”, since there is more than one answer.

We can find the answer if we provide more information with the question, as done in the following example. Often the additional information comes in the form of an initial value, a value of the function that one knows beforehand.

###### Example 5.1.3 Solving initial value problems

The acceleration due to gravity of a falling object is $-32$ ft/s${}^{2}$. At time $t=3$, a falling object had a velocity of $-10$ ft/s. Find the equation of the object’s velocity.

SolutionWe want to know a velocity function, $v(t)$. We know two things:

• The acceleration, i.e., $v\mkern 1.35mu ^{\prime}(t)=-32$, and

• the velocity at a specific time, i.e., $v(3)=-10$.

Using the first piece of information, we know that $v(t)$ is an antiderivative of $v\mkern 1.35mu ^{\prime}(t)=-32$. So we begin by finding the indefinite integral of $-32$:

 $v(t)=\int(-32)\operatorname{d}\!t=-32t+C.$

Now we use the fact that $v(3)=-10$ to find $C$:

 $\displaystyle v(t)$ $\displaystyle=-32t+C$ $\displaystyle v(3)$ $\displaystyle=-10$ $\displaystyle-32(3)+C$ $\displaystyle=-10$ $\displaystyle C$ $\displaystyle=86$

Thus $v(t)=-32t+86$. We can use this equation to understand the motion of the object: when $t=0$, the object had a velocity of $v(0)=86$ ft/s. Since the velocity is positive, the object was moving upward.

When did the object begin moving down? Immediately after $v(t)=0$:

 $-32t+86=0\quad\Rightarrow\quad t=\frac{43}{16}\approx 2.69\text{s}.$

Recognize that we are able to determine quite a bit about the path of the object knowing just its acceleration and its velocity at a single point in time.

###### Example 5.1.4 Solving initial value problems

Find $f(t)$, given that $f\,^{\prime\prime}(t)=\cos t$, $f\,^{\prime}(0)=3$ and $f(0)=5$.

SolutionWe start by finding $f\,^{\prime}(t)$, which is an antiderivative of $f\,^{\prime\prime}(t)$:

 $f\,^{\prime}(t)=\int f\,^{\prime\prime}(t)\operatorname{d}\!t=\int\cos t% \operatorname{d}\!t=\sin t+C.$

So $f\,^{\prime}(t)=\sin t+C$ for the correct value of $C$. We are given that $f\,^{\prime}(0)=3$, so:

 $f\,^{\prime}(0)=3\quad\Rightarrow\quad\sin 0+C=3\quad\Rightarrow\quad C=3.$

Using the initial value, we have found $f\,^{\prime}(t)=\sin t+3.$ We now find $f(t)$ by integrating again.

 $f(t)=\int f\,^{\prime}(t)\operatorname{d}\!t=\int(\sin t+3)\operatorname{d}\!t% =-\cos t+3t+C.$

We are given that $f(0)=5$, so

 $\displaystyle-\cos 0+3(0)+C$ $\displaystyle=5$ $\displaystyle-1+C$ $\displaystyle=5$ $\displaystyle C$ $\displaystyle=6$

Thus $f(t)=-\cos t+3t+6$.

This section introduced antiderivatives and the indefinite integral. We found they are needed when finding a function given information about its derivative(s). For instance, we found a position function given a velocity function.

In the next section, we will see how position and velocity are unexpectedly related by the areas of certain regions on a graph of the velocity function. Then, in Section 5.4, we will see how areas and antiderivatives are closely tied together.

## Exercises 5.1

### Terms and Concepts

1. 1.

Define the term “antiderivative” in your own words.

2. 2.

Is it more accurate to refer to “the” antiderivative of $f(x)$ or “an” antiderivative of $f(x)$?

3. 3.

Use your own words to define the indefinite integral of $f(x)$.

4. 4.

Fill in the blanks: “Inverse operations do the              things in the              order.”

5. 5.

What is an “initial value problem”?

6. 6.

The derivative of a position function is a              function.

7. 7.

The antiderivative of an acceleration function is a              function.

8. 8.

If $F(x)$ is an antiderivative of $f(x)$, and $G(x)$ is an antiderivative of $g(x)$, give an antiderivative of $f(x)+g(x)$.

### Problems

In Exercises 9–42., evaluate the given indefinite integral.

1. 9.

$\displaystyle\int 3x^{3}\operatorname{d}\!x$

2. 10.

$\displaystyle\int x^{8}\operatorname{d}\!x$

3. 11.

$\displaystyle\int(10x^{2}-2)\operatorname{d}\!x$

4. 12.

$\displaystyle\int\operatorname{d}\!t$

5. 13.

$\displaystyle\int\frac{1}{3t^{2}}\operatorname{d}\!t$

6. 14.

$\displaystyle\int\frac{3}{t^{2}}\operatorname{d}\!t$

7. 15.

$\displaystyle\int\frac{1}{\sqrt{x}}\operatorname{d}\!x$

8. 16.

$\displaystyle\int\sec^{2}\theta\operatorname{d}\!\theta$

9. 17.

$\displaystyle\int\sin\theta\operatorname{d}\!\theta$

10. 18.

$\displaystyle\int(\sec x\tan x+\csc x\cot x)\operatorname{d}\!x$

11. 19.

$\displaystyle\int 5e^{\theta}\operatorname{d}\!\theta$

12. 20.

$\displaystyle\int\frac{e^{t}}{2}\operatorname{d}\!t$

13. 21.

$\displaystyle\int(2t+3)^{2}\operatorname{d}\!t$

14. 22.

$\displaystyle\int(t^{2}+3)(t^{3}-2t)\operatorname{d}\!t$

15. 23.

$\displaystyle\int x^{2}x^{3}\operatorname{d}\!x$

16. 24.

$\displaystyle\int e^{\pi}\operatorname{d}\!x$

17. 25.

$\displaystyle\int\frac{3}{x^{4}}\operatorname{d}\!x$

18. 26.

$\displaystyle\int\frac{4x^{5}-7}{x^{3}}\operatorname{d}\!x$

19. 27.

$\displaystyle\int\sqrt{x^{7}}\operatorname{d}\!x$

20. 28.

$\displaystyle\int\frac{x^{3}-7x}{\sqrt{x}}\operatorname{d}\!x$

21. 29.

$\displaystyle\int 5-\frac{2}{3}x^{2}+\frac{3}{4}x^{3}\operatorname{d}\!x$

22. 30.

$\displaystyle\int u^{6}-2u^{5}-u^{3}+\frac{2}{7}\operatorname{d}\!u$

23. 31.

$\displaystyle\int(u+4)(2u+1)\operatorname{d}\!u$

24. 32.

$\displaystyle\int\sqrt{t}(t^{2}+3t+2)\operatorname{d}\!t$

25. 33.

$\displaystyle\int\frac{1+\sqrt{x}+x}{\sqrt{x}}\operatorname{d}\!x$

26. 34.

$\displaystyle\int\sin^{2}x+\cos^{2}x\operatorname{d}\!x$

27. 35.

$\displaystyle\int 2+\tan^{2}\theta\operatorname{d}\!\theta$

28. 36.

$\displaystyle\int\sec t(\sec t+\tan t)\operatorname{d}\!t$

29. 37.

$\displaystyle\int\frac{1-\sin^{2}t}{\sin^{2}t}\operatorname{d}\!t$

30. 38.

$\displaystyle\int\frac{\sin 2x}{\sin x}\operatorname{d}\!x$

31. 39.

$\displaystyle\int\frac{4+6u}{\sqrt{u}}\operatorname{d}\!u$

32. 40.

$\displaystyle\int\frac{\sin\theta+\sin\theta\tan^{2}\theta}{\sec^{2}\theta}% \operatorname{d}\!\theta$

33. 41.

$\displaystyle\int\frac{2+t}{\root 3 \of{t^{2}}}\operatorname{d}\!t$

34. 42.

$\displaystyle\int\sqrt[4]{x^{5}}+\sqrt[5]{x^{4}}\operatorname{d}\!x$

In Exercises 43–52., find $f(x)$ described by the given initial value problem.

1. 43.

$f\,^{\prime}(x)=\sin x$ and $f(0)=2$

2. 44.

$f\,^{\prime}(x)=5e^{x}$ and $f(0)=10$

3. 45.

$f\,^{\prime}(x)=4x^{3}-3x^{2}$ and $f(-1)=9$

4. 46.

$f\,^{\prime}(x)=\sec^{2}x$ and $f(\pi/4)=5$

5. 47.

$f\,^{\prime\prime}(x)=7x$ and $f\,^{\prime}(1)=-1$, $f(1)=10$

6. 48.

$f\,^{\prime\prime}(x)=5e^{x}$ and $f\,^{\prime}(0)=3$, $f(0)=5$

7. 49.

$f\,^{\prime\prime}(\theta)=\sin\theta$ and $f\,^{\prime}(\pi)=2$, $f(\pi)=4$

8. 50.

$f\,^{\prime\prime}(x)=0$ and $f\,^{\prime}(1)=3$, $f(1)=1$

9. 51.

$f\,^{\prime}(x)=\dfrac{-2}{x^{3}}$ and $f(1)=2$

10. 52.

$f\,^{\prime}(x)=\dfrac{1}{\sqrt{x}}$ and $f(4)=0$

1. 53.
This problem investigates why Theorem 5.1.2 states that $\displaystyle\int\frac{1}{x}\operatorname{d}\!x=\ln\left\lvert x\right\rvert+C$. (a) What is the domain of $y=\ln x$? (b) Find $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\big{(}\ln x\big{)}$. (c) What is the domain of $y=\ln(-x)$? (d) Find $\frac{\operatorname{d}\!}{\operatorname{d}\!x}\big{(}\ln(-x)\big{)}$. (e) You should find that $1/x$ has two types of antiderivatives, depending on whether $x>0$ or $x<0$. In one expression, give a formula for $\displaystyle\int\frac{1}{x}\operatorname{d}\!x$ that takes these different domains into account, and explain your answer.
2. 54.

An object is moving so that its velocity at time $t$ is given by $v(t)=3\sqrt{t}$. If the object was at the origin at time $t=0$, find it’s position $s(t)$ at time $t$.

3. 55.

A nickel dropped from the top of the North Dakota State Capital Building has acceleration $a(t)=-32$ ft/sec${}^{2}$ (ignoring air resistance), initial velocity $v(0)=0$, and initial height $s(0)=241.67$ ft. How long will it take the nickel to hit the ground?

4. 56.

Given the graph of $f$ below, sketch the graph of the antiderivative $F$ of $f$ that passes through the origin. What do the graphs of the other antiderivatives of $f$ look like?

5. 57.

Given the graph of $f$ below, sketch the graph of the antiderivative $F$ of $f$ that passes through the origin. What do the graphs of the other antiderivatives of $f$ look like?

### Review

1. 58.

Use information gained from the first and second derivatives to sketch $\displaystyle f(x)=\frac{1}{e^{x}+1}$.

2. 59.

Given $y=x^{2}e^{x}\cos x$, find $\operatorname{d}\!y$.