1. Home
  2. Explore
  3. Mathematics
  4. Changing the Order of Integration

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Changing the Order of Integration

Speaker 1Speaker 2

Changing the Order of Integration

9:39
0:00-9:39
  1. Maria

    Today we’re looking at a powerful move in double integrals: changing the order of integration. The key idea is simple, but the limits depend on the shape of the region, so we’ll pay close attention to the geometry.

  2. Anna

    And it can make an integral much easier. For instance, an integral involving sin x over x may not have an elementary antiderivative in x. Rather than getting stuck, we can sometimes describe the same region using the other order and integrate in a more convenient way.

  3. Maria

    Let’s start with a region bounded by y equals zero, y equals one, x equals pi times y, and x equals pi. Picture the triangle: for each y from zero to one, x runs from pi y to pi. That’s a horizontal slice, so the original order is dx first, then dy.

  4. Anna

    To reverse the order, imagine vertical slices instead. The region’s x-values run from zero to pi. At a given x, the vertical slice starts at y equals zero and ends at the line x equals pi y. Solving for y gives y equals x over pi.

  5. Maria

    So the reversed integral of sin x over x becomes an integral from x equals zero to pi, with y running from zero to x over pi. Since the integrand doesn’t depend on y, integrating with respect to y simply multiplies it by the slice height, x over pi. That cancels the x in the denominator, leaving one over pi times the integral of sin x from zero to pi, which equals two over pi.

  6. Anna

    That example shows why the order matters: the function sin x over x is awkward to integrate directly in x, but the changing width of the region cancels the troublesome x. The region is doing useful work for us.

  7. Maria

    Here’s another region, with x from zero to one and y between arctan x and pi over four. If we reverse the order, y ranges from zero to pi over four. The curved boundary y equals arctan x becomes x equals tan y, so x runs from zero to tan y.

  8. Anna

    With integrand cosine y, the reversed integral first integrates over x, giving tan y times cosine y, which is sine y. Integrating sine y from zero to pi over four gives one minus one over the square root of two.

  9. Maria

    You can also see the advantage by keeping the original order: integrating cosine y first gives sine of pi over four minus sine of arctan x. A right triangle shows that sine of arctan x is x over the square root of one plus x squared. That works, but the reversed order gives a cleaner route.

  10. Anna

    Now consider the triangle where x goes from zero to one and y goes from zero to x, with integrand one over one plus x to the fourth. Reversing the order, x still ranges from zero to one, while y goes from zero up to x.

  11. Maria

    Since the integrand depends only on x, integrating over y gives a factor of x. We’re left with the integral of x over one plus x to the fourth from zero to one. Write the denominator as one plus the square of x squared, and use u equals x squared. The result is pi over eight.

  12. Anna

    The next example is a good reminder to distinguish cosine of y cubed from cosine cubed y. The region is bounded by y equals the square root of x, y equals one, and x equals zero. Reversing the order gives y from zero to one and x from zero to y squared.

  13. Maria

    For an integrand cosine of y cubed, integrating with respect to x contributes the width y squared. Then we have the integral of y squared times cosine of y cubed. The substitution u equals y cubed turns it into one third of the integral of cosine u from zero to one, so the answer is one third sine one.

  14. Anna

    Now let’s use a region bounded below by y equals arctan x and above by y equals pi over six, with x starting at zero. The two curves meet at x equals one over the square root of three. When we reverse the order, y runs from zero to pi over six, and x runs from zero to tan y.

  15. Maria

    For the integrand secant to the fifth power of y, integrating over x gives the width tan y. So we need the integral of secant to the fifth y times tangent y. The derivative of secant to the fifth y is five times secant to the fifth y times tangent y, so the result is one fifth of secant to the fifth y, evaluated from zero to pi over six.

  16. Anna

    Secant of pi over six is two over the square root of three, and secant of zero is one. Simplifying gives thirty-two over forty-five times the square root of three, minus one fifth. The main lesson is that reversing the order avoided having to integrate secant to the fifth power directly.

  17. Maria

    Changing the order isn’t always necessary. For example, suppose x runs from zero to the square root of pi over two, y runs from zero to x squared, and the integrand is x times secant squared y. Integrating in y first gives x times tangent of x squared.

  18. Anna

    Then use u equals x squared, so x dx becomes one half du. The endpoint x equals the square root of pi over two corresponds to u equals pi over four. The result is one half the natural logarithm of secant pi over four, which is one fourth the natural logarithm of two.

  19. Maria

    There’s also a triangular example where the order can stay as it is. Let y range from zero to four and x from zero to y, with integrand two divided by the product of x plus one and y plus one. Integrating in x gives two times the natural logarithm of y plus one, divided by y plus one.

  20. Anna

    Then set u equal to the natural logarithm of y plus one. Its differential is dy divided by y plus one, so the remaining integral is the integral of two u. Evaluating from y equals zero to four gives the square of the natural logarithm of five.

  21. Maria

    Let’s contrast that with a rectangle, where changing the order is especially straightforward. If x runs from zero to pi and y runs from zero to the square root of pi, the region is rectangular. You can switch dx dy to dy dx without changing the bounds’ dependence on the other variable, because the two limits are independent.

  22. Anna

    For the integrand y times sine of x plus y squared, one convenient order is to integrate in x first. The antiderivative gives a difference of cosines at x equals pi and x equals zero. Using cosine of pi plus theta equals negative cosine theta, that difference simplifies to twice cosine of y squared.

  23. Maria

    The remaining integral is twice y cosine of y squared. Since the derivative of y squared is two y, its antiderivative is sine of y squared. At the endpoints zero and square root of pi, this gives sine pi minus sine zero, which is zero.

  24. Anna

    That rectangle is a useful contrast: for a rectangle, the limits stay independent when you switch orders. With a curved or triangular region, you need to redraw or carefully reinterpret the region, because the new limits may depend on the other variable.

  25. Maria

    Here’s a triangle bounded by x equals zero, y equals x, and y equals two. In the order with x first, y runs from zero to two and x runs from zero to y. For integrand x times the square root of one plus y cubed, integrating in x gives y squared over two times the square root of one plus y cubed.

  26. Anna

    Now the substitution u equals one plus y cubed works because the differential includes y squared dy. Evaluating gives one ninth times the difference between nine to the three-halves power and one. That is twenty-six over nine.

  27. Maria

    Our last example has x from zero to the natural logarithm of two, while y runs from e to the x up to two. The integrand is two x y over the natural logarithm of y. In the original order, the y integral is not the friendly choice, so let’s reverse it.

  28. Anna

    The region now has y running from one to two. At a fixed y, x starts at zero and ends at the curve y equals e to the x, or x equals the natural logarithm of y. Integrating with respect to x gives y times the natural logarithm of y.

  29. Maria

    Finally, integrate y times the natural logarithm of y from one to two. Integration by parts gives two times the natural logarithm of two, minus three quarters.

  30. Anna

    So the whole strategy is: sketch or carefully describe the region, choose a horizontal or vertical slice, and solve the boundary curves for the variable you need. Then check the new limits against the picture before integrating. A well-chosen order can turn a difficult antiderivative into a straightforward one.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent