Skip to main content

CLP-1 Differential Calculus

Section 4.1 Introduction to Antiderivatives

Subsection 4.1.1 Introduction to Antiderivatives

So far in the course we have learned how to determine the rate of change (i.e. the derivative) of a given function. That is
\begin{gather*} \text{given a function } f(x) \text{ find } \diff{f}{x}. \end{gather*}
Along the way we developed an understanding of limits, which allowed us to define instantaneous rates of change — the derivative. We then went on to develop a number of applications of derivatives to modelling and approximation. In this last section we want to just introduce the idea of antiderivatives. That is
\begin{gather*} \text{given a derivative } \diff{f}{x} \text{ find the original function } f(x). \end{gather*}
For example — say we know that
\begin{align*} \diff{f}{x} &= x^2 \end{align*}
and we want to find \(f(x)\text{.}\) From our previous experience differentiating we know that derivatives of polynomials are again polynomials. So we guess that our unknown function \(f(x)\) is a polynomial. Further we know that when we differentiate \(x^n\) we get \(n x^{n-1}\) — multiply by the exponent and reduce the exponent by 1. So to end up with a derivative of \(x^2\) we need to have differentiated an \(x^3\text{.}\) But \(\diff{}{x} x^3 = 3x^2\text{,}\) so we need to divide both sides by 3 to get the answer we want. That is
\begin{align*} \diff{}{x} \left(\frac{1}{3}x^3 \right) &= x^2 \end{align*}
However we know that the derivative of a constant is zero, so we also have
\begin{align*} \diff{}{x} \left(\frac{1}{3}x^3 +1 \right) &= x^2\\ \end{align*}

and

\begin{align*} \diff{}{x} \left(\frac{1}{3}x^3 - \pi \right) &= x^2 \end{align*}
At this point it will really help the discussion to give a name to what we are doing.

Definition 4.1.1.

A function \(F(x)\) that satisfies
\begin{align*} \diff{}{x} F(x) &= f(x) \end{align*}
is called an antiderivative of \(f(x)\text{.}\)
Notice the use of the indefinite article there — an antiderivative. This is precisely because we can always add or subtract a constant to an antiderivative and when we differentiate we’ll get the same answer. We can write this as a lemma, but it is actually just Corollary 2.13.13 (from back in the section on the mean-value theorem) in disguise.
Because of this lemma we typically write antiderivatives with “\(+c\)” tacked on the end. That is, if we know that \(F'(x)=f(x)\text{,}\) then we would state that the antiderivative of \(f(x)\) is
\begin{gather*} F(x)+c \end{gather*}
where this “\(+c\)” is there to remind us that we can always add or subtract some constant and it will still be an antiderivative of \(f(x)\text{.}\) Hence the antiderivative of \(x^2\) is
\begin{gather*} \frac{1}{3}x^3 + c \end{gather*}
Similarly, the antiderivative of \(x^4\) is
\begin{gather*} \frac{1}{5}x^5 + c \end{gather*}
and for \(\sqrt{x} = x^{1/2}\) it is
\begin{gather*} \frac{2}{3}x^{3/2} + c \end{gather*}
This last one is tricky (at first glance) — but we can always check our answer by differentiating.
\begin{align*} \diff{}{x} \left(\frac{2}{3}x^{3/2} + c \right) &= \frac{2}{3} \cdot \frac{3}{2} x^{1/2} + 0 & \checkmark \end{align*}
Now in order to determine the value of \(c\) we need more information. For example, we might be asked
Given that \(g'(t) = t^2\) and \(g(3)=7\) find \(g(t)\text{.}\)
We are given the derivative and one piece of additional information and from these two facts we need to find the original function. From our work above we know that
\begin{align*} g(t) &= \frac{1}{3}t^3 + c \end{align*}
and we can find \(c\) from the other piece of information
\begin{align*} 7 = g(3) &= \frac{1}{3} \cdot 27 + c = 9+c \end{align*}
Hence \(c=-2\) and so
\begin{align*} g(t) &= \frac{1}{3}t^3 -2 \end{align*}
We can then very easily check our answer by recomputing \(g(3)\) and \(g'(t)\text{.}\) This is a good habit to get into.
Finding antiderivatives of polynomials is generally not too hard. We just need to use the rule
\begin{gather*} \text{if } f(x) = x^n \text{ then } F(x) = \frac{1}{n+1} x^{n+1} + c. \end{gather*}
Of course this breaks down when \(n=-1\text{.}\) In order to find an antiderivative for \(f(x)=\frac{1}{x}\) we need to remember that \(\diff{}{x}\log x = \frac{1}{x}\text{,}\) and more generally that \(\diff{}{x}\log |x| = \frac{1}{x}\text{.}\) See Example 2.10.4. So
\begin{gather*} \text{if } f(x)=\frac{1}{x} \text{ then } F(x) = \log|x| + c \end{gather*}
Note however, that both \(\frac{1}{x}\) and \(\log|x|\) are not defined at \(x=0\text{.}\) If you are interested, for example, in functions that are defined all \(x\ne 0\text{,}\) then, for any constants \(c_1\) and \(c_2\text{,}\)
\begin{equation*} F(x)=\left\{\begin{array}{rl} \log |x| + c_1 & x \gt 0\\ \log |x| + c_2 & x \lt 0 \end{array}\right. \end{equation*}
obeys \(F'(x) = \frac{1}{x}\) for all \(x\ne 0\text{.}\) However, typically, in applications, either all of the \(x\)’s of interest are strictly positive, or all of the \(x\)’s of interest are negative. In both of those cases, the general \(F(x)\) is \(\log|x| + c\text{.}\) So, typically, in tables of antiderivatives, the antiderivative of \(1/x\) is listed as \(\log|x| + c\text{.}\)

Example 4.1.3. Antiderivative of \(3x^5-7x^2+2x+3 + x^{-1} - x^{-2}\).

Let \(f(x) = 3x^5-7x^2+2x+3 + x^{-1} - x^{-2}\text{.}\) Then the antiderivative of \(f(x)\) is
\begin{align*} F(x) &= \frac{3}{6}x^6 - \frac{7}{3}x^3 + \frac{2}{2}x^2 + 3x +\log|x| - \frac{1}{-1} x^{-1} + c & \text{clean it up}\\ &= \frac{1}{2}x^6 - \frac{7}{3}x^3 + x^2 + 3x +\log|x| + x^{-1} + c \end{align*}
Now to check we should differentiate and hopefully we get back to where we started
\begin{align*} F'(x) &= \frac{6}{2}x^5 - \frac{7}{3} \cdot 3 x^2 + 2 x + 3 + \frac{1}{x} - x^{-2}\\ &= 3 x^5 - 7 x^2 + 2 x + 3 + \frac{1}{x} - x^{-2} & \checkmark \end{align*}
In your next calculus course you will develop a lot of machinery to help you find antiderivatives. At this stage about all that we can do is continue the sort of thing we have done. Think about the derivatives we know and work backwards. So, for example, we can take a list of derivatives
\(F(x)\) \(1\) \(x^n\) \(\sin x\) \(\cos x\) \(\tan x\) \(e^x\) \(\ln |x|\) \(\arcsin x\) \(\arctan x\)
\(f(x)=\diff{}{x}F(x)\) \(0\) \(nx^{n-1}\) \(\cos x\) \(-\sin x\) \(\sec^2 x\) \(e^x\) \(\frac{1}{x}\) \(\frac{1}{\sqrt{1-x^2}}\) \(\frac{1}{1+x^2}\)
and flip it upside down to give the tables of antiderivatives.
\(f(x)=\diff{}{x}F(x)\) \(0\) \(nx^{n-1}\) \(\cos x\) \(-\sin x\) \(\sec^2 x\) \(e^x\) \(\frac{1}{x}\)
\(F(x)\) \(c\) \(x^n+c\) \(\sin x+c\) \(\cos x+c\) \(\tan x+c\) \(e^x+c\) \(\ln |x|+c\)
\(f(x)=\diff{}{x}F(x)\) \(\frac{1}{\sqrt{1-x^2}}\) \(\frac{1}{1+x^2}\)
\(F(x)\) \(\arcsin x+c\) \(\arctan x+c\)
Here \(c\) is just a constant — any constant. But we can do a little more; clean up \(x^n\) by dividing by \(n\) and then replacing \(n\) by \(n+1\text{.}\) Similarly we can tweak \(\sin x\) by multiplying by \(-1\text{:}\)
\(f(x)=\diff{}{x}F(x)\) \(0\) \(x^{n}\) \(\cos x\) \(\sin x\) \(\sec^2 x\) \(e^x\) \(\frac{1}{x}\)
\(F(x)\) \(c\) \(\frac{1}{n+1}x^{n+1}+c\) \(\sin x+c\) \(-\cos x+c\) \(\tan x+c\) \(e^x+c\) \(\ln |x|+c\)
\(f(x)=\diff{}{x}F(x)\) \(\frac{1}{\sqrt{1-x^2}}\) \(\frac{1}{1+x^2}\)
\(F(x)\) \(\arcsin x+c\) \(\arctan x+c\)
Here are a couple more examples.

Example 4.1.4. Antiderivatives of \(\sin x, \cos 2x\) and \(\frac{1}{1+4x^2}\).

Consider the functions
\begin{align*} f(x) &= \sin x + \cos 2x & g(x) &= \frac{1}{1+4x^2} \end{align*}
Find their antiderivatives.
Solution The first one we can almost just look up our table. Let \(F\) be the antiderivative of \(f\text{,}\) then
\begin{align*} F(x) &= -\cos x + \sin 2x + c & \text{is not quite right}. \end{align*}
When we differentiate to check things, we get a factor of two coming from the chain rule. Hence to compensate for that we multiply \(\sin2x\) by \(\frac{1}{2}\text{:}\)
\begin{align*} F(x) &= -\cos x + \frac{1}{2} \sin 2x + c \end{align*}
Differentiating this shows that we have the right answer.
Similarly, if we use \(G\) to denote the antiderivative of \(g\text{,}\) then it appears that \(G\) is nearly \(\arctan x\text{.}\) To get this extra factor of \(4\) we need to substitute \(x \mapsto 2x\text{.}\) So we try
\begin{align*} G(x) &= \arctan(2x)+c & \text{which is nearly correct}. \end{align*}
Differentiating this gives us
\begin{align*} G'(x) &= \frac{2}{1+(2x)^2} = 2g(x) \end{align*}
Hence we should multiply by \(\frac{1}{2}\text{.}\) This gives us
\begin{align*} G(x) &= \frac{1}{2} \arctan(2x) + c. \end{align*}
We can then check that this is, in fact, correct just by differentiating.
Now let’s do a more substantial example.

Example 4.1.5. Position as antiderivative of velocity.

Suppose that we are driving to class. We start at \(x=0\) at time \(t=0\text{.}\) Our velocity is \(v(t) = 50\sin(t)\text{.}\) The class is at \(x=25\text{.}\) When do we get there?
Solution Let’s denote by \(x(t)\) our position at time \(t\text{.}\) We are told that
  • \(\displaystyle x(0) = 0\)
  • \(\displaystyle x'(t) = 50\sin t\)
We have to determine \(x(t)\) and then find the time \(T\) that obeys \(x(T)=25\text{.}\) Now armed with our table above we know that the antiderivative of \(\sin t\) is just \(-\cos t\text{.}\) We can check this:
\begin{align*} \diff{}{t}\left(-\cos t\right) &= \sin t \end{align*}
We can then get the factor of \(50\) by multiplying both sides of the above equation by 50:
\begin{align*} \diff{}{t}\left(-50\cos t\right) &= 50\sin t \end{align*}
And of course, this is just an antiderivative of \(50\sin t\text{;}\) to write down the general antiderivative we just add a constant \(c\text{:}\)
\begin{align*} \diff{}{t}\left(-50\cos t + c\right) &= 50\sin t \end{align*}
Since \(v(t) = \diff{}{t}x(t)\text{,}\) this antiderivative is \(x(t)\text{:}\)
\begin{align*} x(t) &= -50\cos t + c \end{align*}
To determine \(c\) we make use of the other piece of information we are given, namely
\begin{align*} x(0) &= 0.\\ \end{align*}

Substituting this in gives us

\begin{align*} x(0) &= -50\cos 0 + c = -50+c \end{align*}
Hence we must have \(c=50\) and so
\begin{align*} x(t) &= -50\cos t + 50 = 50(1-\cos t). \end{align*}
Now that we have our position as a function of time, we can determine how long it takes us to arrive there. That is, we can find the time \(T\) so that \(x(T)=25\text{.}\)
\begin{align*} 25 = x(T) &= 50(1-\cos T) & \text{so}\\ \frac{1}{2} &= 1-\cos T\\ -\frac{1}{2} &= -\cos T\\ \frac{1}{2} &= \cos T. \end{align*}
Recalling our special triangles, we see that \(T=\frac{\pi}{3}\text{.}\)
The example below shows how antiderivatives arise naturally when studying differential equations.

Example 4.1.6. Theorem 3.3.2 revisited..

Back in Section 3.3 we encountered a simple differential equation, namely equation 3.3.1. We were able to solve this equation by guessing the answer and then checking it carefully. We can derive the solution more systematically by using antiderivatives.
Recall equation 3.3.1:
\begin{align*} \diff{Q}{t} &= -k Q \end{align*}
where \(Q(t)\) is the amount of radioactive material at time \(t\) and we assume \(Q(t) \gt 0\text{.}\) Take this equation and divide both sides by \(Q(t)\) to get
\begin{align*} \frac{1}{Q(t)} \diff{Q}{t} &= -k \end{align*}
At this point we should
 1 
Well — perhaps it is better to say “notice that”. Let’s not make this a moral point.
think that the left-hand side is familiar. Now is a good moment to look back at logarithmic differentiation in Section 2.10.
The left-hand side is just the derivative of \(\log Q(t)\text{:}\)
\begin{align*} \diff{}{t}\left( \log Q(t) \right) &= \frac{1}{Q(t)} \diff{Q}{t}\\ &= -k \end{align*}
So to solve this equation, we are really being asked to find all functions \(\log Q(t)\) having derivative \(-k\text{.}\) That is, we need to find all antiderivatives of \(-k\text{.}\) Of course that is just \(-kt + c\text{.}\) Hence we must have
\begin{align*} \log Q(t) &= -kt +c \end{align*}
and then taking the exponential of both sides gives
\begin{align*} Q(t) &= e^{-kt+c} = e^c \cdot e^{-kt} = C e^{-kt} \end{align*}
where \(C = e^c\text{.}\) This is precisely Theorem 3.3.2.
The above is a small example of the interplay between antiderivatives and differential equations.
Here is another example of how we might use antidifferentiation to compute areas or volumes.

Example 4.1.7. Volume of a cone.

We know (especially if one has revised the material in the appendix and Appendix B.5.2 in particular) that the volume of a right-circular cone is
\begin{align*} V &= \frac{\pi}{3} r^2h \end{align*}
where \(h\) is the height of the cone and \(r\) is the radius of its base. Now, the derivation of this formula given in Appendix B.5.2 is not too simple. We present an alternate proof here that uses antiderivatives.
Consider cutting off a portion of the cone so that its new height is \(x\) (rather than \(h\)). Call the volume of the resulting smaller cone \(V(x)\text{.}\) We are going to determine \(V(x)\) for all \(x\ge 0\text{,}\) including \(x=h\text{,}\) by first evaluating \(V'(x)\) and \(V(0)\) (which is obviously \(0\)).
Call the radius of the base of the new smaller cone \(y\) (rather than \(r\)). By similar triangles we know that
\begin{align*} \frac{r}{h} &= \frac{y}{x}. \end{align*}
Now keep \(x\) and \(y\) fixed and consider cutting off a little more of the cone so its height is \(X\text{.}\) When we do so, the radius of the base changes from \(y\) to \(Y\) and again by similar triangles we know that
\begin{align*} \frac{Y}{X} &= \frac{y}{x} = \frac{r}{h} \end{align*}
The change in volume is then
\begin{gather*} V(x) - V(X) \end{gather*}
Of course if we knew the formula for the volume of a cone, then we could compute the above exactly. However, even without knowing the volume of a cone, it is easy to derive upper and lower bounds on this quantity. The piece removed has bottom radius \(y\) and top radius \(Y\text{.}\) Hence its volume is bounded above and below by the cylinders of height \(x-X\) and with radius \(y\) and \(Y\) respectively. Hence
\begin{align*} \pi Y^2 (x-X) & \leq V(x)-V(X) \leq \pi y^2 (x-X) \end{align*}
since the volume of a cylinder is just the area of its base times its height. Now massage this expression a little
\begin{align*} \pi Y^2 & \leq \frac{V(x)-V(X)}{x-X} \leq \pi y^2 \end{align*}
The middle term now looks like a derivative; all we need to do is take the limit as \(X \to x\text{:}\)
\begin{align*} \lim_{X\to x} \pi Y^2 & \leq \lim_{X\to x} \frac{V(x)-V(X)}{x-X} \leq \lim_{X\to x} \pi y^2 \end{align*}
The rightmost term is independent of \(X\) and so is just \(\pi y^2\text{.}\) In the leftmost term, as \(X \to x\text{,}\) we must have that \(Y \to y\text{.}\) Hence the leftmost term is just \(\pi y^2\text{.}\) Then by the squeeze theorem (Theorem 1.4.18) we know that
\begin{align*} \diff{V}{x} = \lim_{X\to x} \frac{V(x)-V(X)}{x-X} &= \pi y^2. \end{align*}
But we know that
\begin{align*} y &= \frac{r}{h} \cdot x \end{align*}
so
\begin{align*} \diff{V}{x} &= \pi \left( \frac{r}{h} \right)^2 x^2 \end{align*}
Now we can antidifferentiate to get back to \(V\text{:}\)
\begin{align*} V(x) &= \frac{\pi}{3} \left( \frac{r}{h} \right)^2 x^3 + c \end{align*}
To determine \(c\) notice that when \(x=0\) the volume of the cone is just zero and so \(c=0\text{.}\) Thus
\begin{align*} V(x) &= \frac{\pi}{3} \left( \frac{r}{h} \right)^2 x^3 \end{align*}
and so when \(x=h\) we are left with
\begin{align*} V(h) &= \frac{\pi}{3} \left( \frac{r}{h} \right)^2 h^3 = \frac{\pi}{3} r^2 h \end{align*}
as required.

Exercises 4.1.2 Exercises

Exercises — Stage 1 .

1.
Let \(f(x)\) be a function with derivative \(f'(x)\text{.}\) What is the most general antiderivative of \(f'(x)\text{?}\)
2.
On the graph below, the black curve is \(y=f(x)\text{.}\) Which of the coloured curves is an antiderivative of \(f(x)\text{?}\)

Exercises — Stage 2 .

In Questions 4.1.2.3 through 4.1.2.12, you are asked to find the antiderivative of a function. Phrased like this, we mean the most general antiderivative. These will all include some added constant. The table after Example 4.1.3 might be of help.
In Questions 4.1.2.13 through 4.1.2.16, you are asked to find a specific antiderivative of a function. In this case, you should be able to solve for the entire function--no unknown constants floating about.
In Questions 4.1.2.17 through 4.1.2.19, we will explore some simple situations where antiderivatives might arise.
3.
Find the antiderivative of \(f(x)=3x^2+5x^4+10x-9\text{.}\)
4.
Find the antiderivative of \(f(x)=\dfrac{3}{5}x^7-18x^4+x\text{.}\)
5.
Find the antiderivative of \(f(x)=4\sqrt[3]{x}-\dfrac{9}{2x^{2.7}}\text{.}\)
6.
Find the antiderivative of \(f(x)=\dfrac{1}{7\sqrt{x}}\text{.}\)
7.
Find the antiderivative of \(f(x)=e^{5x+11}\text{.}\)
8.
Find the antiderivative of \(f(x)=3\sin(5x)+7\cos(13x)\text{.}\)
9.
Find the antiderivative of \(f(x)=\sec^2(x+1)\text{.}\)
10.
Find the antiderivative of \(f(x)=\dfrac{1}{x+2}\text{.}\)
11.
Find the antiderivative of \(f(x)=\dfrac{7}{\sqrt{3-3x^2}}\text{.}\)
12.
Find the antiderivative of \(f(x)=\dfrac{1}{1+25x^2}\)
13.
Find the function \(f(x)\) with \(f'(x)=3x^2-9x+4\) and \(f(1)=10\text{.}\)
14.
Find the function \(f(x)\) with \(f'(x)=\cos(2x)\) and \(f(\pi)=\pi\text{.}\)
15.
Find the function \(f(x)\) that is defined and obeys \(f'(x)=\dfrac{1}{x}\) for all \(x\lt 0\text{,}\) and also obeys \(f(-1)=0\text{.}\)
16.
Find the function \(f(x)\) with \(f'(x)=\dfrac{1}{\sqrt{1-x^2}}+1\) and \(f(1)=-\dfrac{\pi}{2}\text{.}\)
17.
Suppose a population of bacteria at time \(t\) (measured in hours) is growing at a rate of \(100e^{2t}\) individuals per hour. Starting at time \(t=0\text{,}\) how long will it take the initial colony to increase by 300 individuals?
18.
Your bank account at time \(t\) (measured in years) is growing at a rate of
\begin{equation*} 1500e^{\tfrac{t}{50}} \end{equation*}
dollars per year. How much money is in your account at time \(t\text{?}\)
19.
At time \(t\) during a particular day, \(0 \leq t \leq 24\text{,}\) your house consumes energy at a rate of
\begin{equation*} 0.5\sin\left(\frac{\pi}{24}t\right)+0.25 \end{equation*}
kW. (Your consumption was smallest in the middle of the night, and peaked at noon.) How much energy did your house consume in that day?

Exercises — Stage 3 .

For Questions 4.1.2.21 through 4.1.2.26, you are again asked to find the antiderivatives of certain functions. In general, finding antiderivatives can be extremely difficult--indeed, it will form the main topic of next semester’s calculus course. However, you can work out the antiderivatives of the functions below using what you’ve learned so far about derivatives.
20. (✳).
Let \(f(x)=2\sin^{-1}\sqrt{x}\) and \(g(x)=\sin^{-1}(2x-1)\text{.}\) Find the derivative of \(f(x)-g(x)\) and simplify your answer. What does the answer imply about the relation between \(f(x)\) and \(g(x)\text{?}\)
21.
Find the antiderivative of \(f(x)=2\cos(2x)\cos(3x)-3\sin(2x)\sin(3x)\text{.}\)
22.
Find the antiderivative of \(f(x)=\dfrac{(x^2+1)e^x-e^x(2x)}{(x^2+1)^2}\text{.}\)
23.
Find the antiderivative of \(f(x)=3x^2e^{x^3}\text{.}\)
24.
Find the antiderivative of \(f(x)=5x\sin(x^2)\text{.}\)
25.
Find the antiderivative of \(f(x)=e^{\log x}\text{.}\)
26.
Find the antiderivative of \(f(x)=\dfrac{7}{\sqrt{3-x^2}}\text{.}\)
27.
Imagine forming a solid by revolving the parabola \(y=x^2+1\) around the \(x\)-axis, as in the picture below.
Use the method of Example 4.1.7 to find the volume of such an object if the segment of the parabola that we rotate runs from \(x=-H\) to \(x=H\text{.}\)
28.
Find all functions \(f(x)\) that are defined and obey \(f'(x)=\dfrac{1}{x}\) for all \(x\ne 0\text{,}\) and also obey \(f(-1)=0\text{.}\)