Integrate

Revision as of 14:03, 20 March 2017 by Kipkis (Kipkis | contribs) (importing article from wikihow)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

The Basics

  1. Understand the notation for integration. An integral <math>\int_{a}^{b} f(x)\mathrm{d}x</math> consists of four parts.
    • The <math>\int</math> is the symbol for integration. It is actually an elongated S.
    • The function <math>f(x)</math> is called the integrand when it is inside the integral.
    • The differential <math>\mathrm{d}x</math> 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 <math>f(x),</math> we see that <math>\mathrm{d}x</math> refers to the width of those rectangles.
    • The letters <math>a</math> and <math>b</math> 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 <math>f(x),</math> a rectangle width of <math>\Delta x,</math> and an interval <math>[a,b],</math> the area of the first rectangle is given by <math>f(x_{1})\Delta x_{1},</math> because it is just the base times the height (the value of the function). Similarly, the area of the second rectangle is <math>f(x_{2})\Delta x_{2}.</math> Generalizing, we say the area of the ith rectangle is <math>f(x_{i})\Delta x_{i}.</math> In summation notation, this can be represented in the following manner.
    • <math>\sum_{i=1}^{n}f(x_{i})\Delta x_{i}</math>
    • 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 <math>n</math> rectangles. (The variable <math>i</math> 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 <math>n\to\infty</math> is what we define as the integral of the function <math>f(x)</math> from <math>a</math> to <math>b.</math>
      • <math>\int_{a}^{b}f(x)\mathrm{d}x = \lim_{n\to\infty}\sum_{i=1}^{n}f(x_{i})\Delta x_{i}</math>
    • 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 <math>f(x)</math> does not have an integral over the interval <math>[a,b].</math> In this article (and in almost every physical application), we only deal with functions where these integrals exist.
  3. Remember <math>+C</math> 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.

Power Rule

  1. Consider a monomial <math>x^{n}</math>.
  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 <math>C.</math>
    • <math>\int x^{n}\mathrm{d}x = \frac{x^{n+1}}{n+1} + C</math>
    • To verify that this power rule holds, differentiate the antiderivative to recover the original function.
    • The power rule holds for all functions of this form with degree <math>n</math> except when <math>n = -1.</math> We will see why later.
  3. Apply linearity. Integration is a linear operator, which means that the integral of a sum is the sum of the integrals, and the coefficient of each term can be factored out, like so:
    • <math>\int (ax^{n} + bx^{m})\mathrm{d}x = a\int x^{n}\mathrm{d}x + b\int x^{m}\mathrm{d}x</math>
    • 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 <math>f(x) = x^{4} + 2x^{3} - 5x^{2} - 1</math>. 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 <math>x^{0} = 1,</math> so the constant is really just the coefficient of <math>x^{0}.</math>
    • <math>\int(x^{4} + 2x^{3} - 5x^{2} - 1)\mathrm{d}x = \frac{1}{5}x^{5} + \frac{2}{4}x^{4} - \frac{5}{3}x^{3} - x + C</math>
  5. Find the antiderivative of the function <math>f(x) = \frac{2x^{2} + 3x - 1}{x^{1/3}}</math>. 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.
    • <math>\begin{align}\int f(x)\mathrm{d}x &= \int\frac{2x^{2} + 3x - 1}{x^{1/3}}\mathrm{d}x \\

&= \int\left(\frac{2x^{2}}{x^{1/3}} + \frac{3x}{x^{1/3}} - \frac{1}{x^{1/3}}\right)\mathrm{d}x \\ &= \int(2x^{5/3} + 3x^{2/3} - x^{-1/3})\mathrm{d}x \\ &= 2\cdot\frac{3}{8}x^{8/3} + 3\cdot\frac{3}{5}x^{5/3} - \frac{3}{2}x^{2/3} + C \\ &= \frac{3}{4}x^{8/3} + \frac{9}{5}x^{5/3} - \frac{3}{2}x^{2/3} + C\end{align}</math>

    • 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.

Definite Integration

  1. Consider the integral below. Unlike the integration process in part 2, we also have bounds to evaluate at.
    • <math>\int_{2}^{3}x^{2}\mathrm{d}x</math>
  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.
    • Let <math>F(x)</math> be an antiderivative of <math>f(x).</math> Then <math>\int_{a}^{b}f(x)\mathrm{d}x = F(b) - F(a).</math>
    • 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.
    • <math>\begin{align}\int_{2}^{3}x^{2}\mathrm{d}x &= \frac{1}{3}x^{3}\Bigg|_{2}^{3} \\

&= \frac{1}{3}(3)^{3} - \frac{1}{3}(2)^{3} \\ &= \frac{19}{3}\end{align}</math>

    • Again, the fundamental theorem of calculus does not just apply to functions like <math>f(x) = x^{2}.</math> The fundamental theorem can be used to integrate any function, as long as you can find an antiderivative.
  1. Evaluate the integral with the boundaries swapped. Let's see what happens here.
    • <math>\begin{align}\int_{3}^{2}x^{2}\mathrm{d}x &= \frac{1}{3}x^{3}\Bigg|_{3}^{2} \\

&= \frac{1}{3}(2)^{3} - \frac{1}{3}(3)^{3} \\ &= -\frac{19}{3}\end{align}</math>

    • We just obtained the negative of the answer we got before. This illustrates an important property of definite integrals. Swapping the boundaries negates the integral.
      • <math>\int_{b}^{a}f(x)\mathrm{d}x = -\int_{a}^{b}f(x)\mathrm{d}x</math>

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 <math>C,</math> because the derivative of a constant is 0.
    • <math>\int e^{x}\mathrm{d}x = e^{x} + C</math>
    • <math>\int a^{x}\mathrm{d}x = \frac{a^{x}}{\ln a} + C</math>
  2. 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.
    • <math>\int\sin x\mathrm{d}x = -\cos x + C</math>
    • <math>\int\cos x\mathrm{d}x = \sin x + C</math>
    • <math>\int\sec^{2}x\mathrm{d}x = \tan x + C</math>
    • <math>\int\csc^{2}x\mathrm{d}x = -\cot x + C</math>
    • <math>\int\sec x\tan x\mathrm{d}x = \sec x + C</math>
    • <math>\int\csc x\cot x\mathrm{d}x = -\csc x + C</math>
  3. 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.
    • <math>\int\frac{1}{\sqrt{1 - x^{2}}}\mathrm{d}x = \sin^{-1}x + C</math>
    • <math>\int\frac{-1}{\sqrt{1 - x^{2}}}\mathrm{d}x = \cos^{-1}x + C</math>
    • <math>\int\frac{1}{1 + x^{2}}\mathrm{d}x = \tan^{-1}x + C</math>
  4. Memorize the antiderivative of the reciprocal function. Previously, we said that the function <math>f(x) = x^{-1},</math> or <math>f(x) = \frac{1}{x},</math> was an exception to the power rule. The reason is because the antiderivative of this function is the logarithmic function.
    • <math>\int\frac{1}{x}\mathrm{d}x = \ln|x| + C</math>
    • (Sometimes, authors like to put the <math>\mathrm{d}x</math> in the numerator of the fraction, so it reads like <math>\int\frac{\mathrm{d}x}{x}.</math> 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 <math>f(x) = 2\cos x + \tan^{2}x - 6.</math> Here, we don't know the antiderivative of <math>\tan^{2}x,</math> but we can use a trigonometric identity to rewrite the integrand in terms of a function which we know the antiderivative of - namely, <math>1 + \tan^{2}x = \sec^{2}x.</math>
    • <math>\begin{align}\int_{\pi/4}^{\pi/3}f(x)\mathrm{d}x &= \int_{\pi/4}^{\pi/3}(2\cos x + \tan^{2}x - 6)\mathrm{d}x \\

&= \int_{\pi/4}^{\pi/3}(2\cos x + \sec^{2}x - 7)\mathrm{d}x \\ &= (2\sin x + \tan x - 7x)\Big|_{\pi/4}^{\pi/3} \\ &= \left(2\sin\frac{\pi}{3} + \tan\frac{\pi}{3} - \frac{7\pi}{3}\right) - \left(2\sin\frac{\pi}{4} + \tan\frac{\pi}{4} - \frac{7\pi}{4}\right) \\ &= 2\sqrt{3} - \sqrt{2} - 1 - \frac{7\pi}{12}\end{align}</math>

    • If you need a decimal approximation, you can use a calculator. Here, <math>2\sqrt{3} - \sqrt{2} - 1 - \frac{7\pi}{12} \approx -0.7827.</math>

Integrals of Symmetric Functions

  1. Evaluate the integral of an even function. Even functions are functions with the property that <math>f(-x) = f(x).</math> In other words, you should be able to replace every <math>x</math> with a <math>-x</math> and get the same function. An example of an even function is <math>x^{2}.</math> Another example is the cosine function. All even functions are symmetric about the y-axis.
    • <math>\int_{-1}^{1}(\cos x + x^{4})\mathrm{d}x</math>
    • 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 <math>x = 0.</math> 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.
      • <math>\int_{-1}^{1}(\cos x + x^{4})\mathrm{d}x = 2\int_{0}^{1}(\cos x + x^{4})\mathrm{d}x</math>
    • 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 <math>x = 1.</math> The antiderivative at <math>x = 0</math> will not contribute to the integral.
      • <math>2\int_{0}^{1}(\cos x + x^{4})\mathrm{d}x = 2\sin 1 + \frac{2}{5}</math>
    • In general, whenever you see an even function with symmetric boundaries, you should perform this simplification in order to make less arithmetic mistakes.
      • <math>\int_{-a}^{a}f(x)\mathrm{d}x = 2\int_{0}^{a}f(x)\mathrm{d}x,\ \ f(x)\ \mathrm{even}</math>
  2. Evaluate the integral of an odd function. Odd functions are functions with the property that <math>f(-x) = -f(x).</math> In other words, you should be able to replace every <math>x</math> with a <math>-x</math> and then get the negative of the original function. An example of an odd function is <math>x^{3}.</math> 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.
    • <math>\int_{-\pi/2}^{\pi/2}(2x^{3} + 2\sin x)\mathrm{d}x</math>
    • 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 <math>f(-x) = f(x),</math> so when we evaluate at the bounds <math>-a</math> and <math>a,</math> then <math>F(-a) = F(a)</math> immediately implies that <math>F(a) - F(-a) = 0.</math>
      • <math>\int_{-\pi/2}^{\pi/2}(2x^{3} + 2\sin x)\mathrm{d}x = 0</math>
    • The properties of these functions are very potent in simplifying the integrals, but the boundaries must be symmetric. Otherwise, we will need to evaluate the old way.
      • <math>\int_{-a}^{a}f(x)\mathrm{d}x = 0,\ \ f(x)\ \mathrm{odd}</math>

U-Substitution

  1. See the main article on how to perform u-substitutions. U-substitution is a technique that changes variables with the hope of obtaining an easier integral. As we will see, it is the analogue of the chain rule for derivatives.
  2. Evaluate the integral of <math>e^{ax}</math>. 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.
    • <math>\int e^{ax}\mathrm{d}x</math>
  3. Choose a <math>u</math> and find <math>\mathrm{d}u</math>. We choose <math>u = ax</math> so that we get a <math>e^{u}</math> in the integrand, a function whose antiderivative we are familiar with - itself. Then we must replace <math>\mathrm{d}x</math> with <math>\mathrm{d}u,</math> but we need to make sure that we are keeping track of our terms. In this example, <math>\mathrm{d}u = a\mathrm{d}x,</math> so we need to divide the whole integral by <math>a</math> to compensate.
    • <math>\int e^{ax}\mathrm{d}x = \frac{1}{a}\int e^{u}\mathrm{d}u</math>
  4. Evaluate and rewrite in terms of the original variable. For indefinite integrals, you must rewrite in terms of the original variable.
    • <math>\int e^{ax}\mathrm{d}x = \frac{1}{a}e^{ax} + C</math>
  5. 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."
    • <math>\int_{0}^{1}x\sqrt{2x + 3}\mathrm{d}x</math>
  6. Choose a <math>u</math> and find <math>\mathrm{d}u</math>. Make sure to change your boundaries as well according to your substitution. We choose <math>u = 2x + 3</math> so that we simplify the square root. Then <math>\mathrm{d}u = 2\mathrm{d}x,</math> and the bounds then go from 3 to 5. However, after replacing the <math>\mathrm{d}x</math> with a <math>\mathrm{d}u,</math> we still have an <math>x</math> in the integrand.
    • <math>\int_{0}^{1}x\sqrt{2x + 3}\mathrm{d}x = \frac{1}{2}\int_{3}^{5}x\sqrt{u}\mathrm{d}u</math>
  7. Solve for <math>x</math> in terms of <math>u</math> and substitute. This is the back-substitution that we were talking about earlier. Our u-sub did not get rid of all the <math>x</math> terms in the integrand, so we need to back-sub to get rid of it. We find that <math>x = \frac{u - 3}{2}.</math> After simplifying, we get the following.
    • <math>\frac{1}{2}\int_{3}^{5}x\sqrt{u}\mathrm{d}u = \frac{1}{4}\int_{3}^{5}(u - 3)\sqrt{u}\mathrm{d}u</math>
  8. 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.
    • <math>\begin{align}\frac{1}{4}\int_{3}^{5}(u - 3)\sqrt{u}\mathrm{d}u &= \frac{1}{4}\int_{3}^{5}(u^{3/2} - 3u^{1/2})\mathrm{d}u \\

&= \frac{1}{4}\left(\frac{2}{5}u^{5/2} - 3\cdot\frac{2}{3}u^{3/2}\right)\Bigg|_{3}^{5} \\ &= \frac{1}{4}\left(\frac{2}{5}(5)^{5/2} - 2\cdot(5)^{3/2} - \frac{2}{5}(3)^{5/2} + 2\cdot(3)^{3/2}\right) \\ &= \frac{1}{4}\left(-\frac{6}{5}\cdot 3^{3/2} + 2\cdot 3^{3/2}\right) \\ &= \frac{1}{4}\frac{4}{5}3^{3/2} \\ &= \frac{3\sqrt{3}}{5}\end{align}</math>

Integration by Parts

  1. 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.
    • <math>\int u\mathrm{d}v = uv - \int v\mathrm{d}u</math>
  2. Evaluate the integral of the logarithm function. We know that the derivative of <math>\ln x</math> is <math>\frac{1}{x},</math> but not the antiderivative. It turns out that this integral is a simple application of integration by parts.
    • <math>\int\ln x\mathrm{d}x</math>
  3. Choose a <math>u</math> and <math>\mathrm{d}v,</math> and find <math>\mathrm{d}u</math> and <math>v</math>. We choose <math>u = \ln x</math> because the derivative is algebraic and therefore easier to manipulate. Then <math>\mathrm{d}v = \mathrm{d}x.</math> Therefore, <math>\mathrm{d}u = \frac{1}{x}\mathrm{d}x</math> and <math>v = x.</math> Substituting all of these into the formula, we obtain the following.
    • <math>\int\ln x\mathrm{d}x = x\ln x - \int\mathrm{d}x</math>
    • We converted the integral of a logarithm into the integral of 1, which is trivial to evaluate.
  4. Evaluate.
    • <math>\int\ln x\mathrm{d}x = x\ln x - x + C</math>

Video

{{#ev:youtube|49FfXVOIalE}}

Tips

  • When defining the Riemann sum, the meaning of <math>f(x_{i})</math> can mean the left-hand, right-hand, or midpoint of <math>f(x_{i})</math> on the interval <math>[x_{i},x_{i}+\Delta x].</math> 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.

Related Articles

  • Integrate by Substitution
  • Integrate by Parts
  • Integrate by Partial Fractions
  • Integrate by Differentiating Under the Integral
  • Integrate Using the Gamma Function
  • Integrate Gaussian Functions
  • Integrate in Cylindrical Coordinates
  • Integrate in Spherical Coordinates
  • Calculate Contour Integrals
  • Integrate Using Residue Theory