Paul's Online Notes
Paul's Online Notes
Home / Calculus I / Integrals / Computing Indefinite Integrals
Show Mobile Notice Show All Notes Hide All Notes
Mobile Notice
You appear to be on a device with a "narrow" screen width (i.e. you are probably on a mobile phone). Due to the nature of the mathematics on this site it is best views in landscape mode. If your device is not in landscape mode many of the equations will run off the side of your device (should be able to scroll to see them) and some of the menu items will be cut off due to the narrow screen width.

Section 5.2 : Computing Indefinite Integrals

In the previous section we started looking at indefinite integrals and in that section we concentrated almost exclusively on notation, concepts and properties of the indefinite integral. In this section we need to start thinking about how we actually compute indefinite integrals. We’ll start off with some of the basic indefinite integrals.

The first integral that we’ll look at is the integral of a power of \(x\).

\[\int{{{x^n}\,dx}} = \frac{{{x^{n + 1}}}}{{n + 1}} + c,\,\,\,\,\,n \ne - 1\]

The general rule when integrating a power of \(x\) we add one onto the exponent and then divide by the new exponent. It is clear (hopefully) that we will need to avoid \(n = - 1\) in this formula. If we allow \(n = - 1\) in this formula we will end up with division by zero. We will take care of this case in a bit.

Next is one of the easier integrals but always seems to cause problems for people.

\[\int{{k\,dx}} = kx + c,\hspace{0.25in}\,\,\,\,c{\mbox{ and }}k{\mbox{ are constants}}\]

If you remember that all we’re asking is what did we differentiate to get the integrand this is pretty simple, but it does seem to cause problems on occasion.

Let’s now take a look at the trig functions.

\[\begin{array}{ll}\int{{\sin x\,dx}} = - \cos x + c \hspace{0.75in} & \int{{\cos x\,dx}} = \sin x + c\\ \int{{{{\sec }^2}x\,dx}} = \tan x + c \hspace{0.75in} & \int{{\sec x\tan x\,dx}} = \sec x + c\\ \int{{{{\csc }^2}x\,dx}} = - \cot x + c \hspace{0.75in} & \int{{\csc x\cot x\,dx}} = - \csc x + c\end{array}\]

Notice that we only integrated two of the six trig functions here. The remaining four integrals are really integrals that give the remaining four trig functions. Also, be careful with signs here. It is easy to get the signs for derivatives and integrals mixed up. Again, remember that we’re asking what function we differentiated to get the integrand.

We will be able to integrate the remaining four trig functions in a couple of sections, but they all require the Substitution Rule.

Now, let’s take care of exponential and logarithm functions.

\[\int{{{{\bf{e}}^x}\,dx}} = {{\bf{e}}^x} + c\hspace{0.25in}\,\hspace{0.25in}\,\,\,\,\int{{{a^x}\,dx}} = \frac{{{a^x}}}{{\ln a}} + c\hspace{0.5in}\int{{\frac{1}{x}\,dx}} = \int{{{x^{ - 1}}\,dx}} = \ln \left| x \right| + c\]

Integrating logarithms requires a topic that is usually taught in Calculus II and so we won’t be integrating a logarithm in this class. Also note the third integrand can be written in a couple of ways and don’t forget the absolute value bars in the \(x\) in the answer to the third integral.

Finally, let’s take care of the inverse trig and hyperbolic functions.

\[\begin{array}{ll}\displaystyle \int{{\frac{1}{{{x^2} + 1}}\,dx}} = {\tan ^{ - 1}}x + c\hspace{0.75in} & \displaystyle \int{{\frac{1}{{\sqrt {1 - {x^2}} }}\,dx}} = {\sin ^{ - 1}}x + c\\ \int{{\sinh x\,dx}} = \cosh x + c\hspace{0.75in} & \int{{\cosh x\,dx}} = \sinh x + c\\ \int{{{{{\mathop{\rm sech}\nolimits} }^2}x\,dx}} = \tanh x + c\hspace{0.75in}& \int{{{\mathop{\rm sech}\nolimits} x\tanh x\,dx}} = - {\mathop{\rm sech}\nolimits} x + c\\ \int{{{{{\mathop{\rm csch}\nolimits} }^2}x\,dx}} = - \coth x + c\hspace{0.75in} & \int{{{\mathop{\rm csch}\nolimits} x\coth x\,dx}} = - {\mathop{\rm csch}\nolimits} x + c\end{array}\]

As with logarithms integrating inverse trig functions requires a topic usually taught in Calculus II and so we won’t be integrating them in this class. There is also a different answer for the second integral above. Recalling that since all we are asking here is what function did we differentiate to get the integrand the second integral could also be,

\[\int{{\frac{1}{{\sqrt {1 - {x^2}} }}\,dx}} = - {\cos ^{ - 1}}x + c\]

Traditionally we use the first form of this integral.

Okay, now that we’ve got most of the basic integrals out of the way let’s do some indefinite integrals. In all of these problems remember that we can always check our answer by differentiating and making sure that we get the integrand.

Example 1 Evaluate each of the following indefinite integrals.
  1. \(\displaystyle \int{{5{t^3} - 10{t^{ - 6}} + 4\,dt}}\)
  2. \(\displaystyle \int{{{x^8} + {x^{ - 8}}\,dx}}\)
  3. \(\displaystyle \int{{3\sqrt[4]{{{x^3}}} + \frac{7}{{{x^5}}} + \frac{1}{{6\sqrt x }}\,dx}}\)
  4. \(\displaystyle \int{{dy}}\)
  5. \(\displaystyle \int{{\left( {w + \sqrt[3]{w}} \right)\left( {4 - {w^2}} \right)dw}}\,\)
  6. \(\displaystyle \int{{\frac{{4{x^{10}} - 2{x^4} + 15{x^2}}}{{{x^3}}}\,dx}}\)
Show All Solutions Hide All Solutions
Show Discussion

Okay, in all of these remember the basic rules of indefinite integrals. First, to integrate sums and differences all we really do is integrate the individual terms and then put the terms back together with the appropriate signs. Next, we can ignore any coefficients until we are done with integrating that particular term and then put the coefficient back in. Also, do not forget the “+\(c\)” at the end it is important and must be there.

So, let’s evaluate some integrals.



a \(\displaystyle \int{{5{t^3} - 10{t^{ - 6}} + 4\,dt}}\) Show Solution

There’s not really a whole lot to do here other than use the first two formulas from the beginning of this section. Remember that when integrating powers (that aren’t -1 of course) we just add one onto the exponent and then divide by the new exponent.

\[\begin{align*}\int{{5{t^3} - 10{t^{ - 6}} + 4\,dt}} & = 5\left( {\frac{1}{4}} \right){t^4} - 10\left( {\frac{1}{{ - 5}}} \right){t^{ - 5}} + 4t + c\\ & = \frac{5}{4}{t^4} + 2{t^{ - 5}} + 4t + c\end{align*}\]

Be careful when integrating negative exponents. Remember to add one onto the exponent. One of the more common mistakes that students make when integrating negative exponents is to “add one” and end up with an exponent of “-7” instead of the correct exponent of “-5”.


b \(\displaystyle \int{{{x^8} + {x^{ - 8}}\,dx}}\) Show Solution

This is here just to make sure we get the point about integrating negative exponents.

\[\int{{{x^8} + {x^{ - 8}}\,dx}} = \frac{1}{9}{x^9} - \frac{1}{7}{x^{ - 7}} + c\]

c \(\displaystyle \int{{3\sqrt[4]{{{x^3}}} + \frac{7}{{{x^5}}} + \frac{1}{{6\sqrt x }}\,dx}}\) Show Solution

In this case there isn’t a formula for explicitly dealing with radicals or rational expressions. However, just like with derivatives we can write all these terms so they are in the numerator and they all have an exponent. This should always be your first step when faced with this kind of integral just as it was when differentiating.

\[\begin{align*}\int{{3\sqrt[4]{{{x^3}}} + \frac{7}{{{x^5}}} + \frac{1}{{6\sqrt x }}\,dx}} & = \int{{3{x^{\frac{3}{4}}} + 7{x^{ - 5}} + \frac{1}{6}{x^{ - \,\,\frac{1}{2}}}\,dx}}\\ & = 3\frac{1}{{{}^{7}/{}_{4}}}{x^{\frac{7}{4}}} - \frac{7}{4}{x^{ - 4}} + \frac{1}{6}\left( {\frac{1}{{{}^{1}/{}_{2}}}} \right){x^{\frac{1}{2}}} + c\\ & = \frac{{12}}{7}{x^{\frac{7}{4}}} - \frac{7}{4}{x^{ - 4}} + \frac{1}{3}{x^{\frac{1}{2}}} + c\end{align*}\]

When dealing with fractional exponents we usually don’t “divide by the new exponent”. Doing this is equivalent to multiplying by the reciprocal of the new exponent and so that is what we will usually do.


d \(\displaystyle \int{{dy}}\) Show Solution

Don’t make this one harder than it is…

\[\int{{dy}} = \int{{1\,dy}} = y + c\]

In this case we are really just integrating a one!


e \(\displaystyle \int{{\left( {w + \sqrt[3]{w}} \right)\left( {4 - {w^2}} \right)dw}}\,\) Show Solution

We’ve got a product here and as we noted in the previous section there is no rule for dealing with products. However, in this case we don’t need a rule. All that we need to do is multiply things out (taking care of the radicals at the same time of course) and then we will be able to integrate.

\[\begin{align*}\int{{\left( {w + \sqrt[3]{w}} \right)\left( {4 - {w^2}} \right)\,dw}} &= \int{{4w - {w^3} + 4{w^{\frac{1}{3}}} - {w^{\frac{7}{3}}}dw}}\\ & = 2{w^2} - \frac{1}{4}{w^4} + 3{w^{\frac{4}{3}}} - \frac{3}{{10}}{w^{\frac{{10}}{3}}} + c\end{align*}\]

f \(\displaystyle \int{{\frac{{4{x^{10}} - 2{x^4} + 15{x^2}}}{{{x^3}}}\,dx}}\) Show Solution

As with the previous part it’s not really a problem that we don’t have a rule for quotients for this integral. In this case all we need to do is break up the quotient and then integrate the individual terms.

\[\begin{align*}\int{{\frac{{4{x^{10}} - 2{x^4} + 15{x^2}}}{{{x^3}}}\,dx}} & = \int{{\frac{{4{x^{10}}}}{{{x^3}}}\, - \frac{{2{x^4}}}{{{x^3}}} + \frac{{15{x^2}}}{{{x^3}}}dx}}\\ & = \int{{4{x^7}\, - 2x + \frac{{15}}{x}dx}}\\ & = \frac{1}{2}{x^8} - {x^2} + 15\ln \left| x \right| + c\end{align*}\]

Be careful to not think of the third term as \(x\) to a power for the purposes of integration. Using that rule on the third term will NOT work. The third term is simply a logarithm. Also, don’t get excited about the 15. The 15 is just a constant and so it can be factored out of the integral. In other words, here is what we did to integrate the third term.

\[\int{{\frac{{15}}{x}\,dx}} = 15\int{{\frac{1}{x}\,dx}} = 15\ln \left| x \right| + c\]

Always remember that you can’t integrate products and quotients in the same way that we integrate sums and differences. At this point the only way to integrate products and quotients is to multiply the product out or break up the quotient. Eventually we’ll see some other products and quotients that can be dealt with in other ways. However, there will never be a single rule that will work for all products and there will never be a single rule that will work for all quotients. Every product and quotient is different and will need to be worked on a case by case basis.

The first set of examples focused almost exclusively on powers of \(x\) (or whatever variable we used in each example). It’s time to do some examples that involve other functions.

Example 2 Evaluate each of the following integrals.
  1. \(\displaystyle \int{{3{{\bf{e}}^x} + 5\cos x - 10{{\sec }^2}x\,dx}}\)
  2. \(\displaystyle \int{{2\sec w\tan w + \frac{1}{{6w}}\,dw}}\)
  3. \(\displaystyle \int{{\frac{{23}}{{{y^2} + 1}} + 6\csc y\cot y + \frac{9}{y}\,dy}}\)
  4. \(\displaystyle \int{{\frac{3}{{\sqrt {1 - {x^2}} }} + 6\sin x\, + 10\sinh x\,dx}}\)
  5. \(\displaystyle \int{{\frac{{7 - 6{{\sin }^2}\theta }}{{{{\sin }^2}\theta }}\,d\theta }}\)
Show All Solutions Hide All Solutions
Show Discussion

Most of the problems in this example will simply use the formulas from the beginning of this section. More complicated problems involving most of these functions will need to wait until we reach the Substitution Rule.



a \(\displaystyle \int{{3{{\bf{e}}^x} + 5\cos x - 10{{\sec }^2}x\,dx}}\) Show Solution

There isn’t anything to this one other than using the formulas.

\[\int{{3{{\bf{e}}^x} + 5\cos x - 10{{\sec }^2}x\,dx}} = 3{{\bf{e}}^x} + 5\sin x - 10\tan x + c\]

b \(\displaystyle \int{{2\sec w\tan w + \frac{1}{{6w}}\,dw}}\) Show Solution

Let’s be a little careful with this one. First break it up into two integrals and note the rewritten integrand on the second integral.

\[\begin{align*}\int{{2\sec w\tan w + \frac{1}{{6w}}\,dw}} & = \int{{2\sec w\tan w\,dw}} + \int{{\frac{1}{6}\frac{1}{w}\,dw}}\\ & = \int{{2\sec w\tan w\,dw}} + \frac{1}{6}\int{{\frac{1}{w}\,dw}}\end{align*}\]

Rewriting the second integrand will help a little with the integration at this early stage. We can think of the 6 in the denominator as a 1/6 out in front of the term and then since this is a constant it can be factored out of the integral. The answer is then,

\[\int{{2\sec w\tan w + \frac{1}{{6w}}\,dw}} = 2\sec w + \frac{1}{6}\ln \left| w \right| + c\]

Note that we didn’t factor the 2 out of the first integral as we factored the 1/6 out of the second. In fact, we will generally not factor the 1/6 out either in later problems. It was only done here to make sure that you could follow what we were doing.


c \(\displaystyle \int{{\frac{{23}}{{{y^2} + 1}} + 6\csc y\cot y + \frac{9}{y}\,dy}}\) Show Solution

In this one we’ll just use the formulas from above and don’t get excited about the coefficients. They are just multiplicative constants and so can be ignored while we integrate each term and then once we’re done integrating a given term we simply put the coefficients back in.

\[\int{{\frac{{23}}{{{y^2} + 1}} + 6\csc y\cot y + \frac{9}{y}\,dy}} = 23{\tan ^{ - 1}}y - 6\csc y + 9\ln \left| y \right| + c\]

d \(\displaystyle \int{{\frac{3}{{\sqrt {1 - {x^2}} }} + 6\sin x\, + 10\sinh x\,dx}}\) Show Solution

Again, there really isn’t a whole lot to do with this one other than to use the appropriate formula from above while taking care of coefficients.

\[\int{{\frac{3}{{\sqrt {1 - {x^2}} }} + 6\sin x\, + 10\sinh x\,dx}} = 3{\sin ^{ - 1}}x - 6\cos x + 10\cosh x + c\]

e \(\displaystyle \int{{\frac{{7 - 6{{\sin }^2}\theta }}{{{{\sin }^2}\theta }}\,d\theta }}\) Show Solution

This one can be a little tricky if you aren’t ready for it. As discussed previously, at this point the only way we have of dealing with quotients is to break it up.

\[\begin{align*}\int{{\frac{{7 - 6{{\sin }^2}\theta }}{{{{\sin }^2}\theta }}\,d\theta }} & = \int{{\frac{7}{{{{\sin }^2}\theta }} - 6\,d\theta }}\\ & = \int{{7{{\csc }^2}\theta - 6\,d\theta }}\end{align*}\]

Notice that upon breaking the integral up we further simplified the integrand by recalling the definition of cosecant. With this simplification we can do the integral.

\[\int{{\frac{{7 - 6{{\sin }^2}\theta }}{{{{\sin }^2}\theta }}\,d\theta }} = - 7\cot \theta - 6\theta + c\]

As shown in the last part of this example we can do some fairly complicated looking quotients at this point if we remember to do simplifications when we see them. In fact, this is something that you should always keep in mind. In almost any problem that we’re doing here don’t forget to simplify where possible. In almost every case this can only help the problem and will rarely complicate the problem.

In the next problem we’re going to take a look at a product and this time we’re not going to be able to just multiply the product out. However, if we recall the comment about simplifying a little this problem becomes fairly simple.

Example 3 Integrate \(\displaystyle \int{{\sin \left( {\frac{t}{2}} \right)\cos \left( {\frac{t}{2}} \right)\,dt}}\).
Show Solution

There are several ways to do this integral and most of them require the next section. However, there is a way to do this integral using only the material from this section. All that is required is to remember the trig formula that we can use to simplify the integrand up a little. Recall the following double angle formula.

\[\sin \left( {2t} \right) = 2\sin t\cos t\]

A small rewrite of this formula gives,

\[\sin t\cos t = \frac{1}{2}\sin \left( {2t} \right)\]

If we now replace all the \(t\)’s with \(\frac{t}{2}\) we get,

\[\sin \left( {\frac{t}{2}} \right)\cos \left( {\frac{t}{2}} \right) = \frac{1}{2}\sin \left( t \right)\]

Using this formula, the integral becomes something we can do.

\[\begin{align*}\int{{\sin \left( {\frac{t}{2}} \right)\cos \left( {\frac{t}{2}} \right)\,dt}} & = \int{{\frac{1}{2}\sin \left( t \right)dt}}\\ & = - \frac{1}{2}\cos \left( t \right) + c\end{align*}\]

As noted earlier there is another method for doing this integral. In fact, there are two alternate methods. To see all three check out the section on Constant of Integration in the Extras chapter but be aware that the other two do require the material covered in the next section.

The formula/simplification in the previous problem is a nice “trick” to remember. It can be used on occasion to greatly simplify some problems.

There is one more set of examples that we should do before moving out of this section.

Example 4 Given the following information determine the function \(f\left( x \right)\).
  1. \(f'\left( x \right) = 4{x^3} - 9 + 2\sin x + 7{{\bf{e}}^x},\,\,f\left( 0 \right) = 15\)
  2. \(f''\left( x \right) = 15\sqrt x + 5{x^3} + 6,\,\,\,\,f\left( 1 \right) = - \frac{5}{4},\,\,\,f\left( 4 \right) = 404\)
Show All Solutions Hide All Solutions
Show Discussion

In both of these we will need to remember that

\[f\left( x \right) = \int{{f'\left( x \right)\,dx}}\]

Also note that because we are giving values of the function at specific points we are also going to be determining what the constant of integration will be in these problems.



a \(f'\left( x \right) = 4{x^3} - 9 + 2\sin x + 7{{\bf{e}}^x},\,\,f\left( 0 \right) = 15\) Show Solution

The first step here is integrating to determine the most general possible \(f\left( x \right)\).

\[\begin{align*}f\left( x \right) & = \int{{4{x^3} - 9 + 2\sin x + 7{{\bf{e}}^x}\,dx}}\\ & = {x^4} - 9x - 2\cos x + 7{{\bf{e}}^x} + c\end{align*}\]

Now we have a value of the function so let’s plug in \(x = 0\) and determine the value of the constant of integration \(c\).

\[\begin{align*}15 = f\left( 0 \right) & = {0^4} - 9\left( 0 \right) - 2\cos \left( 0 \right) + 7{{\bf{e}}^0} + c\\ & = - 2 + 7 + c\\ & = 5 + c\end{align*}\]

So, from this it looks like \(c = 10\). This means that the function is,

\[f\left( x \right) = {x^4} - 9x - 2\cos x + 7{{\bf{e}}^x} + 10\]

b \(f''\left( x \right) = 15\sqrt x + 5{x^3} + 6,\,\,\,\,f\left( 1 \right) = - \frac{5}{4},\,\,\,f\left( 4 \right) = 404\) Show Solution

This one is a little different form the first one. In order to get the function we will need the first derivative and we have the second derivative. We can however, use an integral to get the first derivative from the second derivative, just as we used an integral to get the function from the first derivative.

So, let’s first get the most general possible first derivative by integrating the second derivative.

\[\begin{align*}f'\left( x \right) & = \int{{f''\left( x \right)\,dx}}\\ & = \int{{15{x^{\frac{1}{2}}} + 5{x^3} + 6\,dx}}\\ & = 15\left( {\frac{2}{3}} \right){x^{\frac{3}{2}}} + \frac{5}{4}{x^4} + 6x + c\\ & = 10{x^{\frac{3}{2}}} + \frac{5}{4}{x^4} + 6x + c\end{align*}\]

Don’t forget the constant of integration!

We can now find the most general possible function by integrating the first derivative which we found above.

\[\begin{align*}f\left( x \right) & = \int{{10{x^{\frac{3}{2}}} + \frac{5}{4}{x^4} + 6x + c\,dx}}\\ & = 4{x^{\frac{5}{2}}} + \frac{1}{4}{x^5} + 3{x^2} + cx + d\end{align*}\]

Do not get excited about integrating the \(c\). It’s just a constant and we know how to integrate constants. Also, there will be no reason to think the constants of integration from the integration in each step will be the same and so we’ll need to call each constant of integration something different, \(d\) in this case.

Now, plug in the two values of the function that we’ve got.

\[\begin{align*} - \frac{5}{4} & = f\left( 1 \right) = 4 + \frac{1}{4} + 3 + c + d = \frac{{29}}{4} + c + d\\ 404 & = f\left( 4 \right) = 4\left( {32} \right) + \frac{1}{4}\left( {1024} \right) + 3\left( {16} \right) + c\left( 4 \right) + d = 432 + 4c + d\end{align*}\]

This gives us a system of two equations in two unknowns that we can solve.

\[\begin{align*} - \frac{5}{4} & = \frac{{29}}{4} + c + d\\ 404 & = 432 + 4c + d\end{align*}\hspace{0.5in} \Rightarrow \hspace{0.5in} \begin{aligned}c & = - \frac{{13}}{2} \\d & = - 2\end{aligned}\]

The function is then,

\[f\left( x \right) = 4{x^{\frac{5}{2}}} + \frac{1}{4}{x^5} + 3{x^2} - \frac{{13}}{2}x - 2\]

Don’t remember how to solve systems? Check out the Solving Systems portion of the Algebra/Trig Review.

In this section we’ve started the process of integration. We’ve seen how to do quite a few basic integrals and we also saw a quick application of integrals in the last example.

There are many new formulas in this section that we’ll now have to know. However, if you think about it, they aren’t really new formulas. They are really nothing more than derivative formulas that we should already know written in terms of integrals. If you remember that you should find it easier to remember the formulas in this section.

Always remember that integration is asking nothing more than what function did we differentiate to get the integrand. If you can remember that many of the basic integrals that we saw in this section and many of the integrals in the coming sections aren’t too bad.