wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 14 people, some anonymous, worked to edit and improve it over time. This article has also been viewed 209,206 times.
Learn more...

Integration is the inverse operation of differentiation. It is commonly said that differentiation is a science, while integration is an art. The reason is because integration is simply a harder task to do - while a derivative is only concerned with the behavior of a function at a point, an integral, being a glorified sum, requires global knowledge of the function. So while there are some functions whose integrals can be evaluated using the standard techniques in this article, many more cannot.

We go over the basic techniques of single-variable integration in this article and apply them to functions with antiderivatives.

Steps

Part 1

The Basics

1

Understand the notation for integration. An integral ∫abf(x)dx{\displaystyle \int _{a}^{b}f(x){\mathrm {d} }x} consists of four parts.

The ∫{\displaystyle \int } is the symbol for integration. It is actually an elongated S.

The function f(x){\displaystyle f(x)} is called the integrand when it is inside the integral.

The differential dx{\displaystyle {\mathrm {d} }x} intuitively is saying what variable you are integrating with respect to. Because (Riemann) integration is just a sum of infinitesimally thin rectangles with a height of f(x),{\displaystyle f(x),} we see that dx{\displaystyle {\mathrm {d} }x} refers to the width of those rectangles.

The letters a{\displaystyle a} and b{\displaystyle b} are the boundaries. An integral does not need to have boundaries. When this is the case, we say that we are dealing with an indefinite integral. If it does, then we are dealing with a definite integral.

Throughout this article, we will go over the process of finding antiderivatives of a function. An antiderivative is a function whose derivative is the original function we started with.

2

Understand the definition of an integral. When we talk about integrals, we usually refer to Riemann integrals; in other words, summing up rectangles. Given a function f(x),{\displaystyle f(x),} a rectangle width of Δx,{\displaystyle \Delta x,} and an interval [a,b],{\displaystyle [a,b],} the area of the first rectangle is given by f(x1)Δx1,{\displaystyle f(x_{1})\Delta x_{1},} because it is just the base times the height (the value of the function). Similarly, the area of the second rectangle is f(x2)Δx2.{\displaystyle f(x_{2})\Delta x_{2}.} Generalizing, we say the area of the ith rectangle is f(xi)Δxi.{\displaystyle f(x_{i})\Delta x_{i}.} In summation notation, this can be represented in the following manner.

∑i=1nf(xi)Δxi{\displaystyle \sum _{i=1}^{n}f(x_{i})\Delta x_{i}}

If this is the first time you have seen a summation symbol, it may look scary...but it's not complicated at all. All this is saying is that we are summing up the area of n{\displaystyle n} rectangles. (The variable i{\displaystyle i} is known as a dummy index.) However, as you can guess, the area of all the rectangles is bound to be slightly different from the true area. We solve this by sending the number of rectangles to infinity. As we increase the number of rectangles, the area of all the rectangles better approximates the area under the curve. That's what the diagram above shows (see the tips for what the graph in the middle shows). The limit as n→∞{\displaystyle n\to \infty } is what we define as the integral of the function f(x){\displaystyle f(x)} from a{\displaystyle a} to b.{\displaystyle b.}

Of course, this limit has to exist in order for the integral to have any meaning. If such a limit does not exist on the interval, then we say that f(x){\displaystyle f(x)} does not have an integral over the interval [a,b].{\displaystyle [a,b].} In this article (and in almost every physical application), we only deal with functions where these integrals exist.

3

Remember +C{\displaystyle +C} when evaluating indefinite integrals! One of the most common mistakes people can make is forgetting to add the constant of integration. The reason why this is needed is because antiderivatives are not unique. In fact, a function can have an infinite number of antiderivatives. They are allowed because the derivative of a constant is 0.

Part 2

Power Rule

1

Consider a monomial xn{\displaystyle x^{n}}.

2

Perform the power rule for integrals. This is the same power rule for derivatives, but in reverse. We increase the power by 1, and divide by the new power. Don't forget to add the constant of integration C.{\displaystyle C.}

This should be familiar because the derivative is also a linear operator; the derivative of a sum is the sum of the derivatives.

Linearity does not apply just for integrals of polynomials. It applies to any integral where the integrand is a sum of two or more terms.

4

Find the antiderivative of the function f(x)=x4+2x3−5x2−1{\displaystyle f(x)=x^{4}+2x^{3}-5x^{2}-1}. This is a polynomial, so using the property of linearity and the power rule, the antiderivative can easily be computed. To find the antiderivative of a constant, remember that x0=1,{\displaystyle x^{0}=1,} so the constant is really just the coefficient of x0.{\displaystyle x^{0}.}

Find the antiderivative of the function f(x)=2x2+3x−1x1/3{\displaystyle f(x)={\frac {2x^{2}+3x-1}{x^{1/3}}}}. This may seem like a function that defies our rules, but a moment's glance reveals that we can separate the fraction into three fractions and apply linearity and the power rule to find the antiderivative.

The common theme is that you must perform whatever manipulations in order to get the integral into a polynomial. From there, integration is easy. Judging whether the integral is easy enough to brute-force, or requires some algebraic manipulation first, is where the skill lies.

Part 3

Definite Integration

1

Consider the integral below. Unlike the integration process in part 2, we also have bounds to evaluate at.

∫23x2dx{\displaystyle \int _{2}^{3}x^{2}{\mathrm {d} }x}

2

Use the fundamental theorem of calculus. This theorem is in two parts. The first part was stated in the first sentence of this article: integration is the inverse operation of differentiation, so integrating and then differentiating a function recovers the original function. The second part is stated below.

This theorem is incredibly useful because it simplifies the integral and means that the definite integral is completely determined by just the values on its boundaries. There is no need to sum up rectangles anymore to compute integrals. All we need to do now is to find antiderivatives, and evaluate at the bounds!

3

Evaluate the integral stated in step 1. Now that we have the fundamental theorem as a tool for solving integrals, we can easily calculate the value of the integral as defined above.

Again, the fundamental theorem of calculus does not just apply to functions like f(x)=x2.{\displaystyle f(x)=x^{2}.} The fundamental theorem can be used to integrate any function, as long as you can find an antiderivative.

4

Evaluate the integral with the boundaries swapped. Let's see what happens here.

Part 4

Antiderivatives of Common Functions

1

Memorize the antiderivatives of exponential functions. In the following steps, we list commonly encountered functions like the exponential and trigonometric functions. All are widely encountered, so knowing what their antiderivatives are is crucial to building up integrating skills. Remember that indefinite integrals have an extra C,{\displaystyle C,} because the derivative of a constant is 0.

Memorize the antiderivatives of trigonometric functions. These are just the derivatives applied backwards and should be familiar. The sines and cosines are encountered far more often and should definitely be memorized. Hyperbolic analogues are similarly found, though they are encountered less often.

Memorize the antiderivatives of inverse trigonometric functions. These should not really be considered an exercise in "memorization." As long as you are familiar with the derivatives, then most of these antiderivatives should be familiar as well.

Memorize the antiderivative of the reciprocal function. Previously, we said that the function f(x)=x−1,{\displaystyle f(x)=x^{-1},} or f(x)=1x,{\displaystyle f(x)={\frac {1}{x}},} was an exception to the power rule. The reason is because the antiderivative of this function is the logarithmic function.

(Sometimes, authors like to put the dx{\displaystyle {\mathrm {d} }x} in the numerator of the fraction, so it reads like ∫dxx.{\displaystyle \int {\frac {{\mathrm {d} }x}{x}}.} Be aware of this notation.)

The reason for the absolute value in the logarithm function is subtle, and requires a more thorough understanding of real analysis in order to fully answer. For now, we will just live with the fact that the domains become the same when the absolute value bars are added.

5

Evaluate the following integral over the given bounds. Our function is given as f(x)=2cos⁡x+tan2⁡x−6.{\displaystyle f(x)=2\cos x+\tan ^{2}x-6.} Here, we don't know the antiderivative of tan2⁡x,{\displaystyle \tan ^{2}x,} but we can use a trigonometric identity to rewrite the integrand in terms of a function which we know the antiderivative of - namely, 1+tan2⁡x=sec2⁡x.{\displaystyle 1+\tan ^{2}x=\sec ^{2}x.}

If you need a decimal approximation, you can use a calculator. Here, 23−2−1−7π12≈−0.7827.{\displaystyle 2{\sqrt {3}}-{\sqrt {2}}-1-{\frac {7\pi }{12}}\approx -0.7827.}

Part 5

Integrals of Symmetric Functions

1

Evaluate the integral of an even function. Even functions are functions with the property that f(−x)=f(x).{\displaystyle f(-x)=f(x).} In other words, you should be able to replace every x{\displaystyle x} with a −x{\displaystyle -x} and get the same function. An example of an even function is x2.{\displaystyle x^{2}.} Another example is the cosine function. All even functions are symmetric about the y-axis.

Our integrand is even. We can immediately integrate by using the fundamental theorem of calculus, but if we look more carefully, we see that the bounds are symmetric about x=0.{\displaystyle x=0.} That means that the integral from -1 to 0 is going to give us the same value as the integral from 0 to 1. So what we can do is we can change the bounds to 0 and 1 and factor out a 2.

It might not seem like much to do this, but we will immediately see that our work is simplified. After finding the antiderivative, notice that we only need to evaluate it at x=1.{\displaystyle x=1.} The antiderivative at x=0{\displaystyle x=0} will not contribute to the integral.

Evaluate the integral of an odd function. Odd functions are functions with the property that f(−x)=−f(x).{\displaystyle f(-x)=-f(x).} In other words, you should be able to replace every x{\displaystyle x} with a −x{\displaystyle -x} and then get the negative of the original function. An example of an odd function is x3.{\displaystyle x^{3}.} The sine and tangent functions are also odd. All odd functions are symmetric about the origin (imagine rotating the negative part of the function by 180° - it will then stack on top of the positive part of the function). If the bounds are symmetric, then the integral will be 0.

We could evaluate this integral directly...or we can recognize that our integrand is odd. Furthermore, the boundaries are symmetric about the origin. Therefore, our integral is 0. Why is this the case? It is because the antiderivative is even. Even functions have the property that f(−x)=f(x),{\displaystyle f(-x)=f(x),} so when we evaluate at the bounds −a{\displaystyle -a} and a,{\displaystyle a,} then F(−a)=F(a){\displaystyle F(-a)=F(a)} immediately implies that F(a)−F(−a)=0.{\displaystyle F(a)-F(-a)=0.}

Evaluate the integral of eax{\displaystyle e^{ax}}. What do we do when the exponent has a coefficient in it? We use u-substitution to change variables. It turns out that these kinds of u-subs are the easiest to perform, and they are done so often, the u-sub is often skipped. Nevertheless, we will show the entire process.

∫eaxdx{\displaystyle \int e^{ax}{\mathrm {d} }x}

3

Choose a u{\displaystyle u} and find du{\displaystyle {\mathrm {d} }u}. We choose u=ax{\displaystyle u=ax} so that we get a eu{\displaystyle e^{u}} in the integrand, a function whose antiderivative we are familiar with - itself. Then we must replace dx{\displaystyle {\mathrm {d} }x} with du,{\displaystyle {\mathrm {d} }u,} but we need to make sure that we are keeping track of our terms. In this example, du=adx,{\displaystyle {\mathrm {d} }u=a{\mathrm {d} }x,} so we need to divide the whole integral by a{\displaystyle a} to compensate.

Evaluate the following integral with the given boundaries. This is a definite integral, so we need to evaluate the antiderivative at the boundaries. We will also see that this u-sub is a case where you need to "back-substitute."

∫01x2x+3dx{\displaystyle \int _{0}^{1}x{\sqrt {2x+3}}{\mathrm {d} }x}

6

Choose a u{\displaystyle u} and find du{\displaystyle {\mathrm {d} }u}. Make sure to change your boundaries as well according to your substitution. We choose u=2x+3{\displaystyle u=2x+3} so that we simplify the square root. Then du=2dx,{\displaystyle {\mathrm {d} }u=2{\mathrm {d} }x,} and the bounds then go from 3 to 5. However, after replacing the dx{\displaystyle {\mathrm {d} }x} with a du,{\displaystyle {\mathrm {d} }u,} we still have an x{\displaystyle x} in the integrand.

Solve for x{\displaystyle x} in terms of u{\displaystyle u} and substitute. This is the back-substitution that we were talking about earlier. Our u-sub did not get rid of all the x{\displaystyle x} terms in the integrand, so we need to back-sub to get rid of it. We find that x=u−32.{\displaystyle x={\frac {u-3}{2}}.} After simplifying, we get the following.

Expand and evaluate. An advantage when dealing with definite integrals is that you do not need to rewrite the antiderivative in terms of the original variable before evaluating. Doing so would introduce needless complications.

Part 7

Integration by Parts

1

See the main article on how to integrate by parts. The integration by parts formula is given below. The main goal of integration by parts is to integrate the product of two functions - hence, it is the analogue of the product rule for derivatives. This technique simplifies the integral into one that is hopefully easier to evaluate.

Evaluate the integral of the logarithm function. We know that the derivative of ln⁡x{\displaystyle \ln x} is 1x,{\displaystyle {\frac {1}{x}},} but not the antiderivative. It turns out that this integral is a simple application of integration by parts.

∫ln⁡xdx{\displaystyle \int \ln x{\mathrm {d} }x}

3

Choose a u{\displaystyle u} and dv,{\displaystyle {\mathrm {d} }v,} and find du{\displaystyle {\mathrm {d} }u} and v{\displaystyle v}. We choose u=ln⁡x{\displaystyle u=\ln x} because the derivative is algebraic and therefore easier to manipulate. Then dv=dx.{\displaystyle {\mathrm {d} }v={\mathrm {d} }x.} Therefore, du=1xdx{\displaystyle {\mathrm {d} }u={\frac {1}{x}}{\mathrm {d} }x} and v=x.{\displaystyle v=x.} Substituting all of these into the formula, we obtain the following.

There is no antiderivative that can be written in terms of elementary functions, so we cannot use the techniques in this article to integrate this function. However, if we assume the bounds are from 0 to π, we can substitute u = π - x to get π*∫log(sin u)du from 0 to π/2, since log(sin u) is symmetric about π/2. The integral can then be evaluated using the Beta function (this requires understanding of the Gamma function and its series expansions - see that article for details). ∫log(sin x)dx from 0 to π/2 = -π/2*log 2. The value of the original integral is therefore -π^2/2*log 2.

Tips

When defining the Riemann sum, the meaning of f(xi){\displaystyle f(x_{i})} can mean the left-hand, right-hand, or midpoint of f(xi){\displaystyle f(x_{i})} on the interval [xi,xi+Δx].{\displaystyle [x_{i},x_{i}+\Delta x].} These different definitions will give slightly different sums of the area of the rectangles. However, when the number of rectangles is sent to infinity, the error between any of these definitions goes to 0 and all the sums converge to the integral.

This is what the diagram in step 2 actually shows - the blue rectangles are right-handed rectangles, the yellow are left-handed, the red sample the minimum on the interval, and the blue sample the maximum on the interval. The graph in the middle shows that all of these areas, when the number of rectangles is sent to infinity, converge to the integral.

Article Info

FEATURED ARTICLE

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 14 people, some anonymous, worked to edit and improve it over time. This article has also been viewed 209,206 times.