 # APEX Calculus: for University of Lethbridge

## Section5.1Antiderivatives and Indefinite Integration

Given a function $$y=f(x)\text{,}$$ a differential equation is an equation that incorporates $$y\text{,}$$ $$x\text{,}$$ and the derivatives of $$y\text{.}$$ For instance, a simple differential equation is:
\begin{equation*} y' = 2x\text{.} \end{equation*}
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' = 2x\text{?}$$
Can you find another?
And yet another?
Hopefully you were able to come up with at least one solution: $$y = x^2\text{.}$$ “Finding another” may have seemed impossible until one realizes that a function like $$y=x^2+1$$ also has a derivative of $$2x\text{.}$$ 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\text{.}$$ The differential equation $$y' = 2x$$ has many solutions. This leads us to some definitions.

### Definition5.1.2.Antiderivatives and Indefinite Integrals.

Let a function $$f(x)$$ be given. An antiderivative of $$f(x)$$ is a function $$F(x)$$ such that $$\Fp(x) = f(x)\text{.}$$
The set of all antiderivatives of $$f(x)$$ is the indefinite integral of $$f\text{,}$$ denoted by
\begin{equation*} \int f(x) \,dx\text{.} \end{equation*}
Make a note about our definition: we refer to an antiderivative of $$f\text{,}$$ as opposed to the antiderivative of $$f\text{,}$$ since there is always an infinite number of them. We often use upper-case letters to denote antiderivatives.
When $$f$$ is continuous, knowing one antiderivative of $$f$$ allows us to find infinitely more, simply by adding a constant. Not only does this give us more antiderivatives, it gives us all of them.
Given a continuous function $$f$$ defined on an interval $$I$$ and one of its antiderivatives $$F\text{,}$$ we know all antiderivatives of $$f$$ on $$I$$ have the form $$F(x) + C$$ for some constant $$C\text{.}$$ Using Definition 5.1.2, we can say that
\begin{equation*} \int f(x) \,dx = F(x) + C\text{.} \end{equation*}
Note that we are abusing notation somewhat: when we write $$F(x)+C$$ on the right-hand side, we really mean the set of all such functions, for each real number value of $$C\text{.}$$ Let’s analyze this indefinite integral notation.
Figure 5.1.5 shows the typical notation of the indefinite integral. The integration symbol, $$\int\text{,}$$ 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 $$dx$$ 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 $$dx$$ are multiplied together; the $$dx$$ does not “just sit there.”
Another way of looking at the notation is that it tells us that $$f(x)\,dx$$ is the differential of $$F(x)\text{:}$$ $$dF(x) = f(x)\,dx\text{,}$$ confirming that $$F'(x)=f(x)\text{,}$$ as required of an antiderivative. The integral symbol can then be viewed as an instruction to “undo” the differential and recover the antiderivative $$F(x)\text{.}$$
Another important aspect of the $$dx$$ is that it tells us which variable we’re taking the antiderivative with respect to, much like how $$\lzo{x}$$ would mean to take the derivative with respect to $$x\text{,}$$ while $$\lzo{t}$$ would be the derivative with respect to $$t\text{.}$$
Let’s practice using this notation.

### Example5.1.6.Evaluating indefinite integrals.

Evaluate $$\int \sin(x) \,dx\text{.}$$
Solution 1. Video solution
Solution 2.
We are asked to find all functions $$F(x)$$ such that $$\Fp(x) = \sin(x)\text{.}$$ Some thought will lead us to one solution: $$F(x) = -\cos(x)\text{,}$$ because $$\lzoo{x}{-\cos(x)} = \sin(x)\text{.}$$
The indefinite integral of $$\sin(x)$$ is thus $$-\cos(x)\text{,}$$ plus a constant of integration. So:
\begin{equation*} \int \sin(x) \,dx = -\cos(x) + C\text{.} \end{equation*}
A commonly asked question is “What happened to the $$dx\text{?}$$” The unenlightened response is “Don’t worry about it. It just goes away.” A full understanding includes the following.
This process of antidifferentiation is really solving a differential question. The integral
\begin{equation*} \int \sin(x) \,dx \end{equation*}
presents us with a differential, $$dy = \sin(x) \, dx\text{.}$$ It is asking: “What is $$y\text{?}$$” We found lots of solutions, all of the form $$y = -\cos(x) +C\text{.}$$
Letting $$dy = \sin(x)\,dx\text{,}$$ rewrite
\begin{equation*} \int \sin(x) \,dx \text{ as } \int\,dy\text{.} \end{equation*}
This is asking: “What functions have a differential of the form $$dy\text{?}$$” The answer is “Functions of the form $$y+C\text{,}$$ where $$C$$ is a constant.” What is $$y\text{?}$$ We have lots of choices, all differing by a constant; the simplest choice is $$y = -\cos(x)\text{.}$$
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 $$dx\text{?}$$” with “It went away.”
Let’s practice once more before stating integration rules.

### Example5.1.7.Evaluating indefinite integrals.

Evaluate $$\int\left(3x^2 + 4x+5\right)\,dx\text{.}$$
Solution 1. Video solution
Solution 2.
We seek a function $$F(x)$$ whose derivative is $$3x^2+4x+5\text{.}$$ 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\text{?}$$ Some thought will lead us to a cubic, specifically $$x^3+C_1\text{,}$$ where $$C_1$$ is a constant.
What functions have a derivative of $$4x\text{?}$$ 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\text{,}$$ where $$C_2$$ is a constant.
Finally, what functions have a derivative of $$5\text{?}$$ Functions of the form $$5x+C_3\text{,}$$ where $$C_3$$ is a constant.
\begin{equation*} \int\left(3x^2+4x+5\right)\,dx = x^3+C_1+2x^2+C_2+5x+C_3\text{.} \end{equation*}
We do not need three separate constants of integration; combine them as one constant, giving the final answer of
\begin{equation*} \int\left(3x^2+4x+5\right)\,dx = x^3+2x^2+5x+C\text{.} \end{equation*}
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\text{.}$$
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:
\begin{equation*} \lzoo{x}{\int f(x)\,dx} = f(x)\text{.} \end{equation*}
Differentiation “undoes” the work done by antidifferentiation.
Theorem 2.7.17 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.
We highlight a few important points from Theorem 5.1.8.
• \begin{equation*} \int c\cdot f(x)\,dx = c\cdot \int f(x)\,dx \end{equation*}
This is the Constant Multiple Rule: we can temporarily ignore constants when finding antiderivatives, just as we did when computing derivatives (i.e., $$\lzoo{x}{3x^2}$$ is just as easy to compute as $$\lzoo{x}{x^2}$$). An example:
\begin{equation*} \int 5\cos(x) \,dx = 5\cdot\int \cos(x) \,dx = 5\cdot (\sin(x) +C) = 5\sin(x) + C\text{.} \end{equation*}
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$$”.
• \begin{equation*} \int \big(f(x)\pm g(x)\big)\,dx =\int f(x)\,dx\pm \int g(x)\,dx \end{equation*}
This 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.7. So:
\begin{align*} \int(3x^2+4x+5)\, dx \amp = \int 3x^2\, dx + \int 4x\,dx + \int 5\,dx\\ \amp = 3\int x^2\, dx + 4\int x\,dx + \int 5 \,dx\\ \amp = 3\cdot \frac13x^3 + 4\cdot \frac12x^2+5x+C\\ \amp = x^3+2x^2+5x+C \end{align*}
In practice we generally do not write out all these steps, but we demonstrate them here for completeness.
• \begin{equation*} \int x^n\,dx =\frac{1}{n+1}x^{n+1}+ C\quad(n\neq -1) \end{equation*}
This is the Power Rule of indefinite integration. There are two important things to keep in mind:
1. Notice the restriction that $$n\neq -1\text{.}$$ This is important: $$\int \frac{1}{x}\,dx \neq$$$$\frac{1}{0}x^0+C$$”; rather, see the last rule from the list.
2. 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 $$1$$ to the power, then second divide by the power.
• \begin{equation*} \int \frac{1}x\,dx = \ln\abs{x}+C \end{equation*}
Note that this rule uses the absolute value of $$x\text{.}$$ 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 infinitely many antiderivatives. Therefore we cannot ask “What is the velocity of an object whose acceleration is -32 fts2?”, 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.

#### Example5.1.10.Solving initial value problems.

The acceleration due to gravity of a falling object is -32 fts2. At time $$t=3\text{,}$$ a falling object had a velocity of -10 fts. Find the equation of the object’s velocity.
Solution 1. Video solution
Solution 2.
We want to know a velocity function, $$v(t)\text{.}$$ We know two things:
• The acceleration, i.e., $$v'(t)= -32\text{,}$$ and
• the velocity at a specific time, i.e., $$v(3) = -10\text{.}$$
Using the first piece of information, we know that $$v(t)$$ is an antiderivative of $$v'(t)=-32\text{.}$$ So we begin by finding the indefinite integral of $$-32\text{:}$$
\begin{equation*} \int (-32)\,dt = -32t+C=v(t)\text{.} \end{equation*}
Now we use the fact that $$v(3)=-10$$ to find $$C\text{:}$$
\begin{align*} v(t) \amp = -32t+C\\ v(3) \amp = -10\\ -32(3)+C \amp = -10\\ C \amp = 86 \end{align*}
Thus $$v(t)= -32t+86\text{.}$$ We can use this equation to understand the motion of the object: when $$t=0\text{,}$$ the object had a velocity of $$v(0) = 86$$fts. Since the velocity is positive, the object was moving upward.
When did the object begin moving down? Immediately after $$v(t) = 0\text{:}$$
\begin{equation*} -32t+86 = 0 \implies t = \frac{43}{16} \approx 2.69\text{s}\text{.} \end{equation*}
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.

#### Example5.1.11.Solving initial value problems.

Find $$f(t)\text{,}$$ given that $$\fpp(t) = \cos(t)\text{,}$$ $$\fp(0) = 3$$ and $$f(0) = 5\text{.}$$
Solution 1. Video solution
Solution 2.
We start by finding $$\fp(t)\text{,}$$ which is an antiderivative of $$\fpp(t)\text{:}$$
\begin{align*} \int \fpp(t)\,dt \amp = \int \cos(t) \,dt\\ \amp = \sin(t) + C\\ \amp = \fp(t)\text{.} \end{align*}
So $$\fp(t) = \sin(t) +C$$ for the correct value of $$C\text{.}$$ We are given that $$\fp(0) = 3\text{,}$$ so:
\begin{align*} \sin(0) +C \amp = 3\\ C \amp = 3\text{.} \end{align*}
Using the initial value, we have found $$\fp(t) = \sin(t) + 3\text{.}$$ We now find $$f(t)$$ by integrating again. We will use a different integration constant since we have already defined $$C$$ to equal $$3$$ above.
\begin{equation*} f(t)=\int \fp(t) \,dt = \int (\sin(t) +3)\,dt = -\cos(t) + 3t + D\text{.} \end{equation*}
We are given that $$f(0) = 5\text{,}$$ so
\begin{align*} -\cos(0) + 3(0) + D \amp = 5\\ -1 + C \amp = 5\\ C \amp = 6 \end{align*}
Thus $$f(t) = -\cos(t) + 3t + 6\text{.}$$
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 velocity function given an acceleration 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. This connection is incredibly important, as indicated by the name of the theorem that describes it: The Fundamental Theorem of Calculus.

### ExercisesExercises

#### Terms and Concepts

##### 1.
Define the term “antiderivative” in your own words.
##### 2.
Is it more accurate to refer to “the” antiderivative of $$f(x)$$ or “an” antiderivative of $$f(x)\text{?}$$
##### 3.
Use your own words to define the indefinite integral of $$f(x)\text{.}$$
##### 4.
Fill in the blanks: “Inverse operations do the things in the order.”
##### 5.
What is an “initial value problem”?
##### 6.
The derivative of a position function is a/an function.
##### 7.
An antiderivative of an acceleration function is a/an function.
##### 8.
If $$F(x)$$ is an antiderivative of $$f(x)\text{,}$$ and $$G(x)$$ is an antiderivative of $$g(x)\text{,}$$ give an antiderivative of $$f(x)+g(x)\text{.}$$

#### Problems

##### Exercise Group.
Evaluate the indefinite integral. Don’t forget your constant of integration!
###### 9.
$$\int {8x^{5}}\, dx$$
###### 10.
$$\int {x^{9}}\, dx$$
###### 11.
$$\int \left({5x^{8}-6}\right)\, dx$$
###### 12.
$$\int dt$$
###### 13.
$$\int 1\, ds$$
###### 14.
$$\int {\frac{1}{5t^{8}}}\, dt$$
###### 15.
$$\int {\frac{6}{t^{4}}}\, dt$$
###### 16.
$$\int \frac{1}{\sqrt{x}}\, dx$$
###### 17.
$$\int {\sec\mathopen{}\left(\theta\right)\tan\mathopen{}\left(\theta\right)}\, d\theta$$
###### 18.
$$\int {\sin\mathopen{}\left(\theta\right)}\, d\theta$$
###### 19.
$$\int \left({\sec\mathopen{}\left(x\right)\tan\mathopen{}\left(x\right)-\csc\mathopen{}\left(x\right)\cot\mathopen{}\left(x\right)}\right)\, dx$$
###### 20.
$$\int {2e^{\theta}}\, d\theta$$
###### 21.
$$\int {3^{t}}\, dt$$
###### 22.
$$\int {\frac{4^{t}}{9}}\, dt$$
###### 23.
$$\int {\left(5t+2\right)^{2}}\, dt$$
###### 24.
$$\int {\left(t^{4}-5\right)\mathopen{}\left(t^{5}+2t\right)}\, dt$$
###### 25.
$$\int {x^{7}x^{9}}\, dx$$
###### 26.
$$\int {1.41421^{e}}\, dx$$
###### 27.
$$\int {r}\, dx$$
##### 28.
Consider the two integrals, $$\ds \int s^n\,ds$$ and $$\ds \int s^n\,dn\text{.}$$
###### (a)
What is the difference between these two indefinite integrals?
###### (b)
Evaluate $$\ds \int s^n\,ds\text{.}$$
###### (c)
Evaluate $$\ds \int s^n\,dn\text{.}$$
##### 29.
This problem investigates why Theorem 5.1.8 states that $$\ds \int \frac1x\,dx = \ln\abs{x} + C\text{.}$$
###### (a)
What is the domain of $$y = \ln(x)\text{?}$$
###### (b)
Find $$\lzoo{x}{\ln(x) }\text{.}$$
###### (c)
What is the domain of $$y = \ln(-x)\text{?}$$
###### (d)
Find $$\lzoo{x}{\ln(-x)}\text{.}$$
###### (e)
You should find that $$1/x$$ has two types of antiderivatives, depending on whether $$x \gt 0$$ or $$x\lt 0\text{.}$$ In one expression, give a formula for $$\ds \int \frac{1}{x}\, dx$$ that takes these different domains into account, and explain your answer.
##### Exercise Group.
Find the function determined by the given initial value problem.
###### 30.
$$\fp(x) = {\sin\mathopen{}\left(x\right)}$$ and $$f(0)= 7$$
###### 31.
$$\fp(x) = {2e^{x}}$$ and $$f(0)= 8$$
###### 32.
$$\fp(x) = {3x^{3}-6x}$$ and $$f(-2)= 9$$
###### 33.
$$\fp(x) = {\sec\mathopen{}\left(x\right)\tan\mathopen{}\left(x\right)}$$ and $$f\mathopen{}\left({\frac{\pi }{3}}\right)\mathclose{}= 6$$
###### 34.
$$\fp(x) = {5^{x}}$$ and $$f(2) = 5$$
###### 35.
$$\fpp(x)=6$$ and $$\fp(0)=2\text{,}$$ $$f(0)=5$$
###### 36.
$$\fpp(x)=4x$$ and $$\fp(1)=7\text{,}$$ $$f(1)=6$$
###### 37.
$$\fpp(x)={7e^{x}}$$ and $$\fp(0)=-3\text{,}$$ $$f(0)=-8$$
###### 38.
$$\fpp(\theta)={\cos\mathopen{}\left(\theta\right)}$$ and $$\fp\left({0}\right)=6\text{,}$$ $$f\left({0}\right)=9$$
###### 39.
$$\fpp(x)={30x^{4}+2^{x}+\cos\mathopen{}\left(x\right)}$$ and $$\fp(0)=0\text{,}$$ $$f(0)=2$$
###### 40.
$$\fpp(x)=0$$ and $$\fp(-5)=-2\text{,}$$ $$f(-5)=-1$$