Finding antiderivatives

Key to solving integrals, as we have seen, is to find antiderivatives. Here we discuss some methods of how to find them for the basic functions. In general, however, it is not trivial at all to find for any given function an antiderivative!

Before we do that, though, note that a function ff has not just one, but infinitely many antiderivatives! Can you explain why?

Exercise 1

Consider the function f(x)=x2f(x)=x^2.

  1. Find an antiderivative of ff.
  2. Find another antiderivative of ff.
  3. How many antiderivatives are there, and how do they differ from each other?
  4. Does it matter, which antiderivative we take for finding the integral
abx2dx ?\int_a^b x^2\, dx \text{ ?}
Solution
  1. To find an antiderivative of ff, we have to find a function FF whose derivative is ff. That is, find FF with

    F(x)=x2F'(x)=x^2

    Trying out a bit, we see that the one such possible function is

    F(x)=13x3F(x)=\frac{1}{3}x^3

    Indeed,

    F(x)=133x2=x2F'(x)=\frac{1}{3}\cdot 3x^2 = x^2
  2. Clearly, the function

    G(x)=13x3+1G(x)=\frac{1}{3}x^3+1

    is also an antiderivative of ff, because the derivative of a constant, the 11, is 00:

    G(x)=133x2+0=x2G'(x)=\frac{1}{3}\cdot 3x^2 + 0 =x^2
  3. Indeed, we can add any constant we like to FF, and get another antiderivative of ff. Thus there are infinitely many antiderivatives of x2x^2, and they all differ by a constant from each other:

    13x3,13x3+1,13x31.34,13x3+100000.01,...\frac{1}{3}x^3, \frac{1}{3}x^3+1, \frac{1}{3}x^3-1.34, \frac{1}{3}x^3+100000.01, ...

    Indeed, it can be shown that all the antiderivatives of ff must differ by a constant. But we do not show that here.

  4. No, it does not matter, because the constant is subtracted away. Let us denote the constant by cc, where cc can be any number, thus our antiderivative is

    F(x)=13x3+cF(x)=\frac{1}{3} x^3+c

    We then have

    abx2dx=F(b)F(a)=(13b3+c)(13a3+c)=13b313a3+cc=13b313a3\begin{array}{lll} \int_a^b x^2\, dx &=& F(b)-F(a)\\ &=& \left(\frac{1}{3} b^3 +c \right) - \left(\frac{1}{3} a^3 +c \right)\\ &=& \frac{1}{3} b^3 - \frac{1}{3} a^3 +c -c\\ &=& \frac{1}{3} b^3 - \frac{1}{3} a^3 \end{array}

    So you see, the constant cc has not effect.

Now, let's discuss some strategies to find the antiderivative of a function.

It helps to think about finding the antiderivative as going up, while finding the derivative as going down :

FFff\begin{array}{lll} F & & F\\ \downarrow ' & & \uparrow \int\\ f & & f \\ \end{array}

Note the integral sign \int to the right of the arrow. It is often used to indicate the process of finding the antiderivative.

The notion of going up for the antiderivative is enhanced by using capital letters for antiderivatives (but this is not a rule). Also, the german expressions for derivative and antiderivative are "Ableitung" and "Aufleitung", respectively.

So how do we find the antiderivative of a specific function ff? The general strategy is to go through every function you know and check if its derivative is the desired function ff:

?f\begin{array}{lll} ? \\ \downarrow ' \\ f \\ \end{array}

In this way we quickly find the antiderivative of some basic functions:

exsin(x)cos(x)ln(x)excos(x)sin(x)x1\boxed{\begin{array}{cccc} e^x & \sin(x) & -\cos(x) & \ln(x)\\ '\downarrow \uparrow\int & '\downarrow\uparrow\int & '\downarrow \uparrow\int & '\downarrow \uparrow\int\\ e^x & \cos(x) & \sin(x) & x^{-1} \\ \end{array}}

And from the rules of differential calculus we see how to find the antiderivative of a function ff which is the weighted sum of other functions:

GHaG+bHghag+bh\boxed{\begin{array}{cccc} G & H & & a\cdot G+ b\cdot H\\ '\downarrow\uparrow\int & '\downarrow\uparrow\int & \Rightarrow & '\downarrow \uparrow\int\\ g & h & & a\cdot g+ b\cdot h \\ \end{array}}
Example 1

Find the antiderivative of the function f(x)=3cos(x)5exf(x)=3\cos(x)-5e^x.

Solutionsin(x)ex3sin(x)5excos(x)ex3cos(x)5ex\boxed{\begin{array}{cccc} \sin(x) & e^x & & 3\sin(x)-5 e^x\\ '\downarrow \uparrow\int & '\downarrow \uparrow\int & \Rightarrow & '\downarrow \uparrow\int\\ \cos(x) & e^x & & 3\cos(x)-5 e^x\\ \end{array}}

Finally, let's discuss the antiderivative of power functions xnx^n. We know that the derivative of a power function is essentially obtained by lowering the power by one, so a candidate for the antiderivative is xn+1x^{n+1}, but have to add a multiplication factor:

xn+11n+1xn+1(n+1)xnxn\boxed{\begin{array}{cccc} x^{n+1} & \frac{1}{n+1}\cdot x^{n+1}\\ '\downarrow \uparrow\int & '\downarrow \uparrow\int\\ (n+1)\cdot x^n & x^n\\ \end{array}}

So the rule for finding the antiderivative of xnx^n is to

(Note that adding the power by 11 to get the antiderivative and subtracting by 11 when taking the derivative once more fits well in our notion of going up and going down.)

There is an exception to this rule. Try to find the antiderivative of

x1x^{-1}

(that is, n=1n=-1). The rule discussed above will not work, because adding the power by 11 results in 00, and dividing by 00 will not work. Indeed, we have seen above that the antiderivative of x1x^{-1} is ln(x)\ln(x):

10x0??ln(x)x1x1\begin{array}{cccc} \frac{1}{0} \cdot x^{0}\,?? & \ln(x)\\ \uparrow \int & \uparrow \int\\ x^{-1} & x^{-1} &\\ \end{array}
Exercise 2

Determine the antiderivative of the following functions:

  1. f(x)=3f(x)=3 for all xx (constant function)

  2. f(x)=2xf(x)=2x

  3. f(x)=xf(x)=\sqrt{x}

  4. f(x)=1x2f(x)=\frac{1}{x^2}

  5. f(x)=2xf(x)=\frac{2}{x}

  6. f(x)=2x3+4x+1f(x)=2x^3+4x+1

  7. f(x)=(x1)2f(x)=(x-1)^2

  8. f(x)=2x+3exf(x)=\frac{2}{x}+3e^x

Solution
  1. f(x)=3x0f(x)=3x^0 (thus n=0n=0). It follows F(x)=310+1x0+1=3xF(x)=3\cdot \frac{1}{0+1} x^{0+1}=3x
  2. f(x)=2x1f(x)=2 x^1 (thus n=1n=1). It follows F(x)=211+1x1+1=x2F(x)=2\cdot \frac{1}{1+1}x^{1+1}=x^2
  3. f(x)=x0.5f(x)=x^{0.5} (thus n=0.5n=0.5). It follows F(x)=11+0.5x1+0.5=23x3/2F(x)=\frac{1}{1+0.5}x^{1+0.5} = \frac{2}{3}x^{3/2}
  4. f(x)=x2f(x)=x^{-2} (thus n=2n=-2). It follows F(x)=12+1x2+1=x1=1xF(x)=\frac{1}{-2+1}x^{-2+1} =-x^{-1}=-\frac{1}{x}.
  5. f(x)=2x1f(x)=2 x^{-1} (thus n=1n=-1). It follows F(x)=2ln(x)F(x)=2\ln(x)
  6. F(x)=213+1x3+1+411+1x1+1+110+1x0+1=12x4+2x2+xF(x)=2\cdot\frac{1}{3+1}x^{3+1}+4\cdot \frac{1}{1+1} x^{1+1} + 1\cdot\frac{1}{0+1}x^{0+1}=\frac{1}{2}x^4+2x^2+x
  7. f(x)=x22x+1f(x)=x^2-2x+1, thus F(x)=13x3212x2+11x=13x3x2+xF(x)=\frac{1}{3}x^3-2\cdot \frac{1}{2}x^2+\frac{1}{1}x=\frac{1}{3}x^3-x^2+x
  8. f(x)=21x+3exf(x)=2\frac{1}{x}+3e^x, thus F(x)=2ln(x)+3exF(x)=2\ln(x)+3e^x