Skip to main content

Section 4.8 Antiderivatives

Learning Objectives.

Note: This is section 4.10 in the standard OpenStax Calculus book. This book skips the sections on L'Hopital's Rule and Newton's Method.
  • Find the general antiderivative of a given function.

  • Explain the terms and notation used for an indefinite integral.

  • State the power rule for integrals.

  • Use antidifferentiation to solve simple initial-value problems.

At this point, we have seen how to calculate derivatives of many functions and have been introduced to a variety of their applications. We now ask a question that turns this process around: Given a function \(f,\) how do we find a function with the derivative \(f\) and why would we be interested in such a function?

We answer the first part of this question by defining antiderivatives. The antiderivative of a function \(f\) is a function with a derivative \(f.\) Why are we interested in antiderivatives? The need for antiderivatives arises in many situations, and we look at various examples throughout the remainder of the text. Here we examine one specific example that involves rectilinear motion. In our examination in Derivatives 3 of rectilinear motion, we showed that given a position function \(s(t)\) of an object, then its velocity function \(v(t)\) is the derivative of \(s(t)\)—that is, \(v(t)=s'(t).\) Furthermore, the acceleration \(a(t)\) is the derivative of the velocity \(v(t)\)—that is, \(a(t)=v'(t)=s\text{ ″ }(t).\) Now suppose we are given an acceleration function \(a,\) but not the velocity function \(v\) or the position function \(s.\) Since \(a(t)=v'(t),\) determining the velocity function requires us to find an antiderivative of the acceleration function. Then, since \(v(t)=s'(t),\) determining the position function requires us to find an antiderivative of the velocity function. Rectilinear motion is just one case in which the need for antiderivatives arises. We will see many more examples throughout the remainder of the text. For now, let’s look at the terminology and notation for antiderivatives, and determine the antiderivatives for several types of functions. We examine various techniques for finding antiderivatives of more complicated functions later in the text, Volume 2.

Subsection 4.8.1 The Reverse of Differentiation

At this point, we know how to find derivatives of various functions. We now ask the opposite question. Given a function \(f,\) how can we find a function with derivative \(f?\) If we can find a function \(F\) derivative \(f,\) we call \(F\) an antiderivative of \(f.\)

Definition 4.157.

A function \(F\) is an antiderivative of the function \(f\) if

\begin{equation*} F'(x)=f(x) \end{equation*}

for all \(x\) in the domain of \(f.\)

Consider the function \(f(x)=2x.\) Knowing the power rule of differentiation, we conclude that \(F(x)=x^2\) is an antiderivative of \(f\) since \(F'(x)=2x.\) Are there any other antiderivatives of \(f?\) Yes; since the derivative of any constant \(C\) is zero, \(x^2+C\) is also an antiderivative of \(2x.\) Therefore, \(x^2+5\) and \(x^2-\sqrt{2}\) are also antiderivatives. Are there any others that are not of the form \(x^2+C\) for some constant \(C?\) The answer is no. From Corollary \(2\) of the Mean Value Theorem, we know that if \(F\) and \(G\) are differentiable functions such that \(F'(x)=G'(x),\) then \(F(x)-G(x)=C\) for some constant \(C.\) This fact leads to the following important theorem.

We use this fact and our knowledge of derivatives to find all the antiderivatives for several functions.

Example 4.159. Finding Antiderivatives.

For each of the following functions, find all antiderivatives.

  1. \(\displaystyle f(x)=3x^2\)

  2. \(\displaystyle f(x)=\frac{1}{x}\)

  3. \(\displaystyle f(x)=4x^3+2x\)

  4. \(\displaystyle f(x)=e^x\)

Solution.
  1. Because

    \begin{equation*} \frac{d}{dx}(x^3)=3x^2 \end{equation*}
    then \(F(x)=x^3\) is an antiderivative of \(3x^2.\) Therefore, every antiderivative of \(3x^2\) is of the form \(x^3+C\) for some constant \(C,\) and every function of the form \(x^3+C\) is an antiderivative of \(3x^2.\)

  2. Let \(f(x)=\ln |x|.\) For \(x\gt 0,f(x)=\ln (x)\) and

    \begin{equation*} \frac{d}{dx}(\ln x)=\frac{1}{x}. \end{equation*}
    For \(x\lt 0,f(x)=\ln (-x)\) and
    \begin{equation*} \frac{d}{dx}(\ln (-x))=-\frac{1}{-x}=\frac{1}{x}. \end{equation*}
    Therefore,
    \begin{equation*} \frac{d}{dx}(\ln |x|)=\frac{1}{x}. \end{equation*}
    Thus, \(F(x)=\ln |x|\) is an antiderivative of \(\frac{1}{x}.\) Therefore, every antiderivative of \(\frac{1}{x}\) is of the form \(\ln |x|+C\) for some constant \(C\) and every function of the form \(\ln |x|+C\) is an antiderivative of \(\frac{1}{x}.\)

  3. We have

    \begin{equation*} \frac{d}{dx}(x^4)=4x^3 \end{equation*}
    then \(F(x)=x^4\) is an antiderivative of \(4x^3.\) Similarly,
    \begin{equation*} \frac{d}{dx}(x^2)=2x \end{equation*}
    then \(F(x)=x^2\) is an antiderivative of \(2x.\) Therefore, every antiderivative of \(4x^3+2x\) is of the form \(x^4+x^2+C\) for some constant \(C,\) and every function of the form \(x^4+x^2+C\) is an antiderivative of \(4x^3+2x.\)

  4. Since

    \begin{equation*} \frac{d}{dx}(e^x)=e^x, \end{equation*}
    then \(F(x)=e^x\) is an antiderivative of \(e^x.\) Therefore, every antiderivative of \(e^x\) is of the form \(e^x+C\) for some constant \(C\) and every function of the form \(e^x+C\) is an antiderivative of \(e^x.\)

Checkpoint 4.160.

Find all antiderivatives of \(f(x)=-\frac{1}{x^2}.\)

Hint.

What function has a derivative of \(-\frac{1}{x^2}?\)

Solution.

\(\frac{1}{x}\)

Subsection 4.8.2 Indefinite Integrals

We now look at the formal notation used to represent antiderivatives and examine some of their properties. These properties allow us to find antiderivatives of more complicated functions. Given a function \(f,\) we use the notation \(f'(x)\) or \(\frac{df}{dx}\) to denote the derivative of \(f.\) Here we introduce notation for antiderivatives. If \(F\) is an antiderivative of \(f,\) we say that \(F(x)+C\) is the most general antiderivative of \(f\) and write

\begin{equation*} \int f(x)dx =F(x)+C. \end{equation*}

The symbol \(\int \) is called an integral sign, and \(\int f(x)dx \) is called the indefinite integral of \(f.\)

Definition 4.161.

Given a function \(f,\) the indefinite integral of \(f,\) denoted

\begin{equation*} \int f(x)dx , \end{equation*}

is the most general antiderivative of \(f.\) If \(F\) is an antiderivative of \(f,\) then

\begin{equation*} \int f(x)dx =F(x)+C. \end{equation*}

The expression \(f(x)\) is called the integrand and the variable \(x\) is the variable of integration.

Given the terminology introduced in this definition, the act of finding the antiderivatives of a function \(f\) is usually referred to as integrating \(f.\)

For a function \(f\) and an antiderivative \(F,\) the functions \(F(x)+C,\) where \(C\) is any real number, is often referred to as the family of antiderivatives of \(f.\) For example, since \(x^2\) is an antiderivative of \(2x\) and any antiderivative of \(2x\) is of the form \(x^2+C,\) we write

\begin{equation*} \int 2x dx=x^2+C . \end{equation*}

The collection of all functions of the form \(x^2+C,\) where \(C\) is any real number, is known as the family of antiderivatives of \(2x.\) Figure 4.162 shows a graph of this family of antiderivatives.

"The graphs for y = x2 + 2, y = x2 + 1, y = x2, y = x2 - 1, and y = x2 - 2 are shown."
Figure 4.162. The family of antiderivatives of \(2x\) consists of all functions of the form \(x^2+C,\) where \(C\) is any real number.

For some functions, evaluating indefinite integrals follows directly from properties of derivatives. For example, for \(n\neq -1,\)

\begin{equation*} \int x^ndx=\frac{x^{n+1}}{n+1}+C , \end{equation*}

which comes directly from

\begin{equation*} \frac{d}{dx}\left(\frac{x^{n+1}}{n+1}\right)=(n+1)\frac{x^n}{n+1}=x^n. \end{equation*}

This fact is known as the power rule for integrals.

Evaluating indefinite integrals for some other functions is also a straightforward calculation. The following table lists the indefinite integrals for several common functions.

Table 4.164. Integration Formulas
Differentiation Formula Indefinite Integral
\(\frac{d}{dx}(k)=0\) \(\int kdx= \int kx^0dx =kx+C\)
\(\frac{d}{dx}(x^n)=nx^{n-1}\) \(\int x^ndn =\frac{x^{n+1}}{n+1}+C\) for \(n\neq -1\)
\(\frac{d}{dx}(\ln |x|)=\frac{1}{x}\) \(\int \frac{1}{x}dx=\ln |x| +C\)
\(\frac{d}{dx}(e^x)=e^x\) \(\int e^xdx =e^x+C\)
\(\frac{d}{dx}(a^x)=(\ln a)a^x\) \(\int a^xdx =\frac{a^x}{\ln a}+C\)

From the definition of indefinite integral of \(f,\) we know

\begin{equation*} \int f(x)dx=F(x)+C \end{equation*}

if and only if \(F\) is an antiderivative of \(f.\) Therefore, when claiming that

\begin{equation*} \int f(x)dx=F(x)+C \end{equation*}

it is important to check whether this statement is correct by verifying that \(F'(x)=f(x).\)

Example 4.165. Verifying an Indefinite Integral.

Each of the following statements is of the form \(\int f(x)dx=F(x)+C .\) Verify that each statement is correct by showing that \(F'(x)=f(x).\)

  1. \(\displaystyle \int (x+e^x) dx=\frac{x^2}{2}+e^x+C\)

  2. \(\displaystyle \int xe^xdx =xe^x-e^x+C\)

Solution.
  1. Since

    \begin{equation*} \frac{d}{dx}\left(\frac{x^2}{2}+e^x+C\right)=x+e^x, \end{equation*}
    the statement
    \begin{equation*} \int (x+e^x) dx=\frac{x^2}{2}+e^x+C \end{equation*}
    is correct. Note that we are verifying an indefinite integral for a sum. Furthermore, \(\frac{x^2}{2}\) and \(e^x\) are antiderivatives of \(x\) and \(e^x,\) respectively, and the sum of the antiderivatives is an antiderivative of the sum. We discuss this fact again later in this section.

  2. Using the product rule, we see that

    \begin{equation*} \frac{d}{dx}(xe^x-e^x+C)=e^x+xe^x-e^x=xe^x. \end{equation*}
    Therefore, the statement
    \begin{equation*} \int xe^xdx =xe^x-e^x+C \end{equation*}
    is correct. Note that we are verifying an indefinite integral for a product. The antiderivative \(xe^x-e^x\) is not a product of the antiderivatives. Furthermore, the product of antiderivatives, \(x^2e^x/2\) is not an antiderivative of \(xe^x\) since
    \begin{equation*} \frac{d}{dx}\left(\frac{x^2e^x}{2}\right)=xe^x+\frac{x^2e^x}{2}\neq xe^x. \end{equation*}
    In general, the product of antiderivatives is not an antiderivative of a product.

Checkpoint 4.166.

Verify that \(\int 3\sqrt{x} dx=2\sqrt{x^3}+C. \)

Hint.

Calculate \(\displaystyle{\frac{d}{dx}\left(2\sqrt{x^3}+C\right)}.\)

Solution.

\(\displaystyle{\frac{d}{dx}\left(2\sqrt{x^3}+C\right)=\frac{d}{dx}\left(2x^{3/2}+C\right)=3\sqrt{x}}\)

In Table 4.164, we listed the indefinite integrals for many elementary functions. Let’s now turn our attention to evaluating indefinite integrals for more complicated functions. For example, consider finding an antiderivative of a sum \(f+g.\) In Example 4.165a. we showed that an antiderivative of the sum \(x+e^x\) is given by the sum \((\frac{x^2}{2})+e^x\)—that is, an antiderivative of a sum is given by a sum of antiderivatives. This result was not specific to this example. In general, if \(F\) and \(G\) are antiderivatives of any functions \(f\) and \(g,\) respectively, then

\begin{equation*} \frac{d}{dx}(F(x)+G(x))=F'(x)+G'(x)=f(x)+g(x). \end{equation*}

Therefore, \(F(x)+G(x)\) is an antiderivative of \(f(x)+g(x)\) and we have

\begin{equation*} \int (f(x)+g(x)) dx=F(x)+G(x)+C. \end{equation*}

Similarly,

\begin{equation*} \int (f(x)-g(x)) dx=F(x)-G(x)+C. \end{equation*}

In addition, consider the task of finding an antiderivative of \(kf(x),\) where \(k\) is any real number. Since

\begin{equation*} \frac{d}{dx}(kf(x))=k\frac{d}{dx}F(x)=kf'(x) \end{equation*}

for any real number \(k,\) we conclude that

\begin{equation*} \int kf(x)dx =kF(x)+C. \end{equation*}

These properties are summarized next.

From this theorem, we can evaluate any integral involving a sum, difference, or constant multiple of functions with antiderivatives that are known. Evaluating integrals involving products, quotients, or compositions is more complicated (see Example 4.165b. for an example involving an antiderivative of a product.) We look at and address integrals involving these more complicated functions in Introduction to Integration 5. In the next example, we examine how to use this theorem to calculate the indefinite integrals of several functions.

Example 4.168. Evaluating Indefinite Integrals.

Evaluate each of the following indefinite integrals:

  1. \(\displaystyle \int (5x^3-7x^2+3x+4)dx \)

  2. \(\displaystyle \int \frac{x^2+4\sqrt[3]{x} }{x} dx\)

  3. \(\displaystyle \int (x+1)(x+2) dx \)

  4. \(\displaystyle \int (2^x+7e^x) dx \)

Solution.
  1. Using Theorem 4.167, we can integrate each of the four terms in the integrand separately. We obtain

    \begin{equation*} \int (5x^3-7x^2+3x+4)dx = \int 5x^3dx- \int 7x^2dx + \int 3x dx + \int 4dx . \end{equation*}
    From the second part of Theorem 4.167, each coefficient can be written in front of the integral sign, which gives
    \begin{equation*} \int 5x^3dx- \int 7x^2dx + \int 3x dx + \int 4dx =5 \int x^3dx-7 \int x^2dx +3 \int x dx +4 \int 1dx. \end{equation*}
    Using the power rule for integrals, we conclude that
    \begin{equation*} \int (5x^3-7x^2+3x+4)dx =\frac{5}{4}x^4-\frac{7}{3}x^3+\frac{3}{2}x^2+4x+C. \end{equation*}

  2. Rewrite the integrand as

    \begin{equation*} \frac{x^2+4\sqrt[3]{x} }{x}=\frac{x^2}{x}+\frac{4\sqrt[3]{x}}{x}. \end{equation*}
    Then, to evaluate the integral, integrate each of these terms separately. Using the power rule, we have
    \begin{align*} \int (x+\frac{4}{x^{2/3}}) dx\amp = \int x dx+4 \int x^{-2/3} dx\\ \amp =\frac{1}{2}x^2+4\frac{1}{(\frac{-2}{3})+1}x^{(-2/3)+1}+C\\ \amp =\frac{1}{2}x^2+12x^{1/3}+C. \end{align*}

  3. Rewrite the integrand as

    \begin{equation*} (x+1)(x+2)=x^2+3x+2. \end{equation*}
    Therefore,
    \begin{equation*} \int (x+1)(x+2) dx = \int x^2+3x+2 dx =\frac{1}{3}x^3+\frac{3}{2}x^2+2x+C. \end{equation*}

  4. Using Theorem 4.167, we can integrate each of the two terms in the integrand separately. We obtain

    \begin{equation*} \int (2^x+7e^x)dx = \int 2^xdx+\int 7e^xdx . \end{equation*}
    From the second part of Theorem 4.167, each coefficient can be written in front of the integral sign, which gives
    \begin{equation*} \int 2^xdx+7\int e^xdx. \end{equation*}
    Using Table 4.164, we conclude that
    \begin{equation*} \int (2^x+7e^x)dx = \frac{2^x}{\ln 2}+7e^x+C. \end{equation*}

Checkpoint 4.169.

Evaluate \(\int (4x^3-5x^2+x-7)dx .\)

Hint.

Integrate each term in the integrand separately, making use of the power rule.

Solution.

\(x^4-\frac{5}{3}x^3+\frac{1}{2}x^2-7x+C\)

Subsection 4.8.3 Initial-Value Problems

We look at techniques for integrating a large variety of functions involving products, quotients, and compositions later in the text. Here we turn to one common use for antiderivatives that arises often in many applications: solving differential equations.

A differential equation is an equation that relates an unknown function and one or more of its derivatives. The equation

\begin{equation} \frac{dy}{dx}=f(x)\tag{4.8.1} \end{equation}

is a simple example of a differential equation. Solving this equation means finding a function \(y\) with a derivative \(f.\) Therefore, the solutions of (4.8.1) are the antiderivatives of \(f.\) If \(F\) is one antiderivative of \(f,\) every function of the form \(y=F(x)+C\) is a solution of that differential equation. For example, the solutions of

\begin{equation*} \frac{dy}{dx}=6x^2 \end{equation*}

are given by

\begin{equation*} y= \int 6x^2dx=2x^3+C . \end{equation*}

Sometimes we are interested in determining whether a particular solution curve passes through a certain point \((x_0,y_0)\)—that is, \(y(x_0)=y_0.\) The problem of finding a function \(y\) that satisfies a differential equation

\begin{equation*} \frac{dy}{dx}=f(x) \end{equation*}

with the additional condition

\begin{equation*} y(x_0)=y_0 \end{equation*}

is an example of an initial-value problem. The condition \(y(x_0)=y_0\) is known as an initial condition. For example, looking for a function \(y\) that satisfies the differential equation

\begin{equation*} \frac{dy}{dx}=6x^2 \end{equation*}

and the initial condition

\begin{equation*} y(1)=5 \end{equation*}

is an example of an initial-value problem. Since the solutions of the differential equation are \(y=2x^3+C,\) to find a function \(y\) that also satisfies the initial condition, we need to find \(C\) such that \(y(1)=2(1)^3+C=5.\) From this equation, we see that \(C=3,\) and we conclude that \(y=2x^3+3\) is the solution of this initial-value problem as shown in the following graph.

"The graphs for y = 2x3 + 6, y = 2x3 + 3, y = 2x3, and y = 2x3 - 3 are shown."
Figure 4.170. Some of the solution curves of the differential equation \(\frac{dy}{dx}=6x^2\) are displayed. The function \(y=2x^3+3\) satisfies the differential equation and the initial condition \(y(1)=5.\)

Example 4.171. Solving an Initial-Value Problem.

Solve the initial-value problem

\begin{equation*} \frac{dy}{dx}=2e^x,\;y(0)=5. \end{equation*}
Solution.

First we need to solve the differential equation. If \(\frac{dy}{dx}=2e^x,\) then

\begin{equation*} y= \int 2e^x dx =2e^x+C. \end{equation*}

Next we need to look for a solution \(y\) that satisfies the initial condition. The initial condition \(y(0)=5\) means we need a constant \(C\) such that \(2e^0+C=5.\) Therefore,

\begin{equation*} C=5-2e^0=3. \end{equation*}

The solution of the initial-value problem is \(y=2e^x+3.\)

Checkpoint 4.172.

Solve the initial value problem \(\frac{dy}{dx}=3x^{-2},y(1)=2.\)

Hint.

Find all antiderivatives of \(f(x)=3x^{-2}.\)

Solution.

\(y=-\frac{3}{x}+5\)

Initial-value problems arise in many applications. Next we consider a problem in which a driver applies the brakes in a car. We are interested in how long it takes for the car to stop. Recall that the velocity function \(v(t)\) is the derivative of a position function \(s(t),\) and the acceleration \(a(t)\) is the derivative of the velocity function. In earlier examples in the text, we could calculate the velocity from the position and then compute the acceleration from the velocity. In the next example we work the other way around. Given an acceleration function, we calculate the velocity function. We then use the velocity function to determine the position function.

Example 4.173. Decelerating Car.

A car is traveling at the rate of \(88\) ft/sec \((60\) mph) when the brakes are applied. The car begins decelerating at a constant rate of \(15\) ft/sec2.

  1. How many seconds elapse before the car stops?

  2. How far does the car travel during that time?

Solution.
  1. First we introduce variables for this problem. Let \(t\) be the time (in seconds) after the brakes are first applied. Let \(a(t)\) be the acceleration of the car (in feet per seconds squared) at time \(t.\) Let \(v(t)\) be the velocity of the car (in feet per second) at time \(t.\) Let \(s(t)\) be the car’s position (in feet) beyond the point where the brakes are applied at time \(t.\) The car is traveling at a rate of \(88 \text{ ft/sec }.\) Therefore, the initial velocity is \(v(0)=88\) ft/sec. Since the car is decelerating, the acceleration is

    \begin{equation*} a(t)=-15\text{ft/s}^2. \end{equation*}
    The acceleration is the derivative of the velocity,
    \begin{equation*} v'(t)=-15. \end{equation*}
    Therefore, we have an initial-value problem to solve:
    \begin{equation*} v'(t)=-15,v(0)=88. \end{equation*}
    Integrating, we find that
    \begin{equation*} v(t)=-15t+C. \end{equation*}
    Since \(v(0)=88,C=88.\) Thus, the velocity function is
    \begin{equation*} v(t)=-15t+88. \end{equation*}
    To find how long it takes for the car to stop, we need to find the time \(t\) such that the velocity is zero. Solving \(-15t+88=0,\) we obtain \(t=\frac{88}{15}\) sec.

  2. To find how far the car travels during this time, we need to find the position of the car after \(\frac{88}{15}\) sec. We know the velocity \(v(t)\) is the derivative of the position \(s(t).\) Consider the initial position to be \(s(0)=0.\) Therefore, we need to solve the initial-value problem

    \begin{equation*} s'(t)=-15t+88,s(0)=0. \end{equation*}
    Integrating, we have
    \begin{equation*} s(t)=-\frac{15}{2}t^2+88t+C. \end{equation*}
    Since \(s(0)=0,\) the constant is \(C=0.\) Therefore, the position function is
    \begin{equation*} s(t)=-\frac{15}{2}t^2+88t. \end{equation*}
    After \(t=\frac{88}{15}\) sec, the position is \(s(\frac{88}{15})\approx 258.133\) ft.

Example 4.174. Marginal Cost.

Find the cost function, \(C(x)\text{,}\) if the marginal cost is \(10e^x+40x-100\) and fixed costs are $1000.
Solution.
Recall that the marginal cost is \(C'(x)\text{.}\) Thus,
\begin{equation*} C(x)=\int 10e^x+40x-100 dx=10e^x+20x^2-100x+C. \end{equation*}
Using [cross-reference to target(s) "fixedcost_1.3" missing or not unique], \(C(0)=1000\) which we can use to find our integration contant:
\begin{equation*} 10e^0+20(0)-100(0)+C=1000 \end{equation*}
\begin{equation*} C=990. \end{equation*}
Therefore, \(C(x)=10e^x+20x^2-100x+990\text{.}\)

Checkpoint 4.175. Marginal Profit.

Find the profit function, \(P(x)\text{,}\) if the marginal profit is \(2x^2+4x\) where \(x\) is the number of units sold and profit is in dollars. Assume that the profit earned is 0 dollars when 0 units are sold.

Hint.

Recall that the marginal profit is \(P'(x).\)

Solution.

\(P(x)=\frac{2}{3}x^3+2x^2\)

Subsection 4.8.4 Key Concepts

  • If \(F\) is an antiderivative of \(f,\) then every antiderivative of \(f\) is of the form \(F(x)+C\) for some constant \(C.\)

  • Solving the initial-value problem

    \begin{equation*} \frac{dy}{dx}=f(x),y(x_0)=y_0 \end{equation*}
    requires us first to find the set of antiderivatives of \(f\) and then to look for the particular antiderivative that also satisfies the initial condition.