Indefinite Integrals

Indefinite Integrals

Now that we know how to use antiderivatives to evaluate definite integrals, we ought to spend some time building up a library of antiderivative rules and properties, just like we did with derivatives. Before getting started, it may be a good idea to review all of the derivative rules.

Often in mathematics, doing the inverse of an operation is much harder than the operation itself. For example, squaring numbers is pretty easy - just multiply the number in question by itself. But, the inverse - the square root - is much harder. In fact, there is no way to compute square roots by hand.

The same is going to be true for computing antiderivatives - doing so if usually much harder than computing derivatives. In fact, there are some functions for which there is no antiderivative.

Let’s start by looking at the “antiderivative versions” of some of the derivative rules we know very well.

Notation: The Indefinite Integral

The notation we will use for the antiderivative is called the indefinite integral. This looks like a definite integral without the bounds:

$$\boxed{\int f(x) \ dx = F(x) + C, \text{ where } F’(x) = f(x)}$$

Here, $F$ is an antiderivative of $f$ and $C$ is a constant. We include the “$+C$” because the derivative of a constant is zero. So, if $F’(x) = f(x)$, then $\frac{d}{dx}\left(F(x) + C\right) = f(x)$, too.

Let’s take a look at some basic antiderivatives.

The Power Rule

In differential calculus, we found that $\frac{d}{dx}(x^n) = n x^{n-1}$. How about the antiderivative of $x^n$?

Let’s consider an easy example: $f(x) = x^3$. What function has $x^3$ as its derivative?

Solution

Well, if we subtracted one from the exponent to get the derivative, it stands to reason that we ought to add one to the exponent to get the antiderivative.

But, $F(x) = x^4$ doesn’t quite work because $F’(x) = 4x^3$. We don’t want the $4$ there!

How about $F(x) = \frac14 x^4$?

This works! $F’(x) = \frac14 (4x^3) = x^3 = f(x)$. So, we can write

$$\boxed{\int x^3 \ dx = \frac{1}{4} x^4 + C}$$

We can generalize this rule with one caveat.

Power Rule

For any $n \neq -1$

$$\boxed{\int x^n \ dx = \frac{1}{n+1}x^{n+1} + C}$$

Why do we omit $n=-1$?

Solution

Two reasons:

  1. If we apply the formula with $n = -1$, we end up with $1/0$.
  2. We, hopefully, remember a function whose derivative is $f(x) = 1/x$: $F(x) = \ln |x|$. (We’ll discuss the reason for the absolute value bars shortly.)

Let’s practice applying this rule.

Example

Here’s an easy one to start: $\int x^5 \ dx$.

$$ \begin{aligned} \int x^5 \ dx &= \frac{1}{5 + 1}x^{5 + 1} + C\cr &= \boxed{\frac{1}{6}x^6 + C} \end{aligned} $$

We can always check our work:

$$F(x) = \frac{1}{6}x^6 + C \Longrightarrow F’(x) = \frac{1}{6}(6x^5) + 0 = x^5 \ \checkmark$$

Example

How about $\int \sqrt[3]{x} \ dx$?

We can solve this one by rewriting the radical as a fractional exponent (just like we would’ve done to take the derivative).

$$ \begin{aligned} \int \sqrt[3]{x} \ dx &= \int x^{1/3} \ dx\cr &= \frac{1}{\frac13 + 1}x^{\frac13 + 1} + C\cr &= \boxed{\frac{3}{4}x^{4/3} + C} \end{aligned} $$

Exercise

Evaluate $\int { x^7 } \ dx$.

Solution
$$ \begin{aligned} \int { x^7 } \ dx &= \frac{1}{7 + 1} x^{7+1} + C\cr &= \boxed{\frac{x^8}{8} + C} \end{aligned} $$

Exercise

Evaluate $\int { \sqrt[5]{x} } \ dx$.

Solution
$$ \begin{aligned} \int { \sqrt[5]{x} } \ dx &= \int { x^{1/5}} \ dx\cr &= \frac{1}{\frac15 + 1}x^{\frac15 + 1} + C\cr &= \frac{1}{\frac65}x^{6/5} + C\cr &= \boxed{\frac56 x^{6/5} + C} \end{aligned} $$

Exercise

Evaluate $\int \frac{1}{\sqrt{x}}\ dx$.

Solution
$$ \begin{aligned} \int \frac{1}{\sqrt{x}}\ dx &= \int x^{-1/2}\ dx\cr &= \frac{1}{-\frac12 + 1} x^{-\frac12 + 1} + C\cr &= \frac{1}{1/2} x^{1/2} + C\cr &= \boxed{2\sqrt{x} + C} \end{aligned} $$

Trig Functions

From differential calculus, we should recall the following six derivative rules:

trigonometric function derivative rules

$$ \begin{aligned} \frac{d}{dx}\left(\cos x\right) &= -\sin x\cr \frac{d}{dx}\left(\sin x\right) &= \cos x\cr \frac{d}{dx}\left(\tan x\right) &= \sec^2 x\cr \frac{d}{dx}\left(\sec x\right) &= \sec x \tan x\cr \frac{d}{dx}\left(\csc x\right) &= -\csc x \cot x\cr \frac{d}{dx}\left(\cot x\right) &= -\csc^2 x \end{aligned} $$

We can rewrite each of these as an antiderivative rule:

trigonometric function antiderivative rules

$$ \begin{aligned} &\int \sin x \ dx = -\cos x + C\cr &\int \cos x \ dx = \sin x + C\cr &\int \sec^2 x \ dx = \tan x + C\cr &\int \sec x \tan x \ dx = \sec x + C\cr &\int \csc x \cot x \ dx = -\csc x + C\cr &\int \csc^2 x \ dx = -\cot x + C \end{aligned} $$

Notice that we don’t have antiderivative rules for $\tan x, \sec x, \csc x, \cot x$. Take a moment to consider why…can you think of a function whose derivative is $\tan x$?

We will be able to compute these other trig antiderivatives soon enough, but we’ll see that they aren’t so straightforward.

Logarithms and Exponential Functions

Natural Log

Recall that

$$ \frac{d}{dx}\left(\ln x\right) = \frac{1}{x} $$

You may also remember that

$$ \frac{d}{dx}\left(\ln |x|\right) = \frac{1}{x} $$

Why doesn’t the absolute value change the derivative rule?

Solution

We know that the absolute value function is actually a piecewise function in disguise.

$$ |x| = \begin{cases} x, &\text{ if } x \geq 0\cr -x, &\text{ if } x \lt 0 \end{cases} $$

To compute $\frac{d}{dx}(\ln|x|)$, we need to address each case separately:

$$ \text{When } x \geq 0: \quad\frac{d}{dx}\left(\ln x\right) = \frac{1}{x} $$ and… $$ \text{When } x \lt 0: \quad \frac{d}{dx}\left(\ln (-x)\right) = \frac{-1}{-x} = \frac{1}{x} \quad \boxed{\text{chain rule!}} $$

Since both derivatives are $\frac{1}{x}$, we can conclude that $\frac{d}{dx}(\ln|x|) = \frac{1}{x}$.

Why bring up this weird absolute value case now?

Well, since the domain of $f(x) = \frac{1}{x}$ is $x\neq 0$, we’d like its antiderivative to have the same domain. The domain of $\ln x$ is $x > 0$, whereas the domain of $\ln|x|$ is $x\neq 0$. So, it’s better to write

$$ \boxed{\int \frac{1}{x} \ dx = \ln |x| + C} $$

Exponential Functions

Let’s start with $e^x$. We know that

$$ \frac{d}{dx}\left(e^x\right) = e^x $$

so,

$$ \boxed{\int e^x \ dx = e^x + C} $$

There are also a few variations we ought to address. First, let’s consider other bases.

We know that

$$ \frac{d}{dx}\left(b^x\right) = (\ln b), b^x $$

Now, we could write

$$ \int (\ln b) , b^x \ dx = b^x + C $$

but it would be better to have an antiderivative rule for $b^x$ by itself. Since $\ln b$ is a constant, we can divide both sides by it:

$$ \boxed{\int b^x \ dx = \frac{1}{\ln b}, b^x + C} $$

Example

$$ \int 3^x \ dx = \frac{1}{\ln 3} , 3^x + C $$

Another small variation we can address without any other techniques is $e^{ax}$, for any constant $a$. The chain rule tells us that

$$ \frac{d}{dx}\left(e^{g(x)}\right) = g’(x),e^{g(x)} $$

so

$$ \frac{d}{dx}\left(e^{ax}\right) = ae^{ax} $$

Again, we could write the antiderivative rule as

$$ \int ae^{ax} \ dx = e^{ax} + C $$

but it would be nice to have an antiderivative rule for $e^{ax}$ itself. Since $a$ is a constant, we can divide by it to get

$$ \boxed{\int e^{ax} \ dx = \frac{1}{a}e^{ax} + C} $$

Example

$$ \int e^{4x} \ dx = \frac{1}{4} e^{4x} + C $$

We’ve just got one more category of functions to address.

Inverse Trig Functions

Recall the following derivative rules.

inverse trig function derivative rules

$$ \begin{aligned} &\frac{d}{dx}(\arcsin x) = \frac{1}{1 - x^2}\cr &\frac{d}{dx}(\arctan x) = \frac{1}{x^2 + 1} \end{aligned} $$

This gives us two antiderivative rules.

inverse trig function antiderivative rules

$$ \begin{aligned} &\int\frac{1}{\sqrt{1 - x^2}} = \arcsin x + C\cr &\int\frac{1}{x^2 + 1} = \arctan x + C \end{aligned} $$

A couple notes here:

  • I think these are two of the most challenging antiderivatives to remember and to spot because the answer in each case is a very different type of function. This means we have to work a little harder to memorize these.
  • Notice that we haven’t talked about $\arccos x$. It’s great to remember that the derivative of $\arccos x$ is $-1/\sqrt{1 - x^2}$, since the derivative of $\arcsin x$ only differs by a negative sign, we can just stick to $\arcsin x$ when computing antiderivatives. That said, we could the following to our list of antiderivatives:

$$ \boxed{\int \frac{1}{\sqrt{1 - x^2}} = -\arccos x + C} $$

Properties of Indefinite Integrals

To begin combining these basic antiderivative rules, we can apply some familiar rules from differentiation.

Let’s say that $F’(x) = f(x)$ and $G’(x) = g(x)$.

Recall that

$$ \frac{d}{dx}\left(F(x) + G(x)\right) = F’(x) + G’(x) = f(x) + g(x). $$

Integrating both sides, we get that

$$ \int\left(f(x) + g(x)\right) \ dx = F(x) + G(x) + C. $$

Similarly, we know that

$$ \frac{d}{dx}\left(kF(x)\right) = kF’(x) = kf(x). $$

Integrating both sides once again, we get

$$ \int kf(x)\ dx = kF(x) + C $$

Properties of Indefinite Integrals

$$\int\left(f(x) + g(x)\right)\ dx = \int f(x) \ dx + \int g(x) \ dx$$ $$\int kf(x) \ dx = k\int f(x) \ dx$$

Let’s apply these properties to some examples.

Example

Let’s evaluate $\int (x^3 - \cos x)\ dx$.

$$ \begin{aligned} \int (x^3 - \cos x)\ dx &= \int x^3 \ dx - \int \cos x \ dx\cr &= \frac{x^4}{4} - (-\sin x) + C\cr &= \boxed{\frac{x^4}{4} + \sin x + C} \end{aligned} $$

Example

How about $\int 9x^2 \ dx$?

$$ \begin{aligned} \int 9x^2 \ dx &= 9 \int x^2 \ dx\cr &= 9 \left(\frac{x^3}{3}\right) + C\cr &= \boxed{3x^3 + C} \end{aligned} $$

Exercise

Evaluate

$$ \int \left(4x - \frac{3}{x}\right) \ dx $$

Solution
$$ \begin{aligned} \int \left(4x - \frac{3}{x}\right) \ dx &= \int 4x \ dx - \int \frac{3}{x} \ dx\cr &= 4\int x \ dx - 3\int \frac{1}{x} \ dx\cr &= 4\left(\frac{x^2}{2}\right) - 3\ln|x| + C\cr &= \boxed{2x^2 - 3\ln |x| + C} \end{aligned} $$

Note

In general, we don’t need to write out quite so much detail every time we integrate using these properties. But, it’s good practice as we’re starting out.

That said, as we learn more integration techniques, there will be situations where it will necessary to split up integrals in order to apply different techniques for different terms.

Example

Here’s a trickier example:

$$ \int { \frac{x^2 + x + 3}{x} } \ dx $$

We don’t have a quotient rule for antiderivatives, so the best thing to do here is to distribute and simplify.

$$ \begin{aligned} \int { \frac{x^2 + x + 3}{x} } \ dx &= \int { \left(\frac{x^2}{x} + \frac{x}{x} + \frac{3}{x}\right) } \ dx\cr &= \int { \left(x + 1 + \frac{3}{x}\right) } \ dx\cr &= \boxed{\frac{x^2}{2} + x + 3\ln|x| + C} \end{aligned} $$

Try the same approach here:

Exercise

Evaluate

$$ \int { \frac{x^3 + 4x - 1}{x^2} } \ dx $$

Solution
$$ \begin{aligned} \int { \frac{x^3 + 4x - 1}{x^2} } \ dx &= \int { \frac{x^3}{x^2} + \frac{4x}{x^2} - \frac{1}{x^2} } \ dx \ & \ \boxed{\text{distribute and simplify}}\cr &= \int { \left(x + \frac{4}{x} - x^{-2}\right) } \ dx\cr &= \frac{x^2}{2} + 4\ln|x| - \frac{x^{-1}}{-1} + C\cr &= \boxed{\frac{x^2}{2} + 4\ln|x| + \frac{1}{x} + C} \end{aligned} $$