7.3: Manipulating Integrands

Discover Calculus · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    7.3: Manipulating Integrands

    We’ve looked at how to use a variable substitution to antidifferentiate composite functions. We’ve already seen, though, that sometimes identifying and actually using a helpful substitution can be difficult to do. In this section, we want to introduce some different strategies for noticing and setting up useful substitutions in some specific instances.

    Rewriting the Integrand

    We’re going to look at a few different examples or strategies that revolve around the same idea: we’re going to reveal a reasonable function to antidifferentiate, whether its through finding a substitution or putting our function into some other recognizable form.

    Example \(\PageIndex{1}\)

    For each of the following integrals, rewrite the integrand function using some algebraic manipulation, trigonometric identity, or some other strategy. Then, once the integrand function is in a friendlier form, antidifferentiate.

    1. \(\int \tan ^2(\theta) d \theta\) Hint. Can you think of a trigonometric identity that can help translate the squared tangent function into some other squared trigonometric function that we recognize as the derivative of something?
    2. \(\int\left(\dfrac{x^2-9}{x+3}\right) d x\) Hint. Try some factoring! Can you factor and cancel?
    3. \(\int\left(\dfrac{\sqrt{x}-4}{x^2}\right) d x\) Hint. Split this fraction into \(\int\left(\dfrac{\sqrt{x} x^2}{-} \dfrac{4}{x^2}\right) d x\). Then, can you write these two terms as power functions?
    4. \(\int \sec (x) d x\) Hint. This is a hard one an annoying one, and we’ll revisit it later with a better strategy, but for now you can notice something nice happens when you multiply the numerator and denominator by \((\sec (x)+\tan (x))\): \[\int \sec (x)\left(\dfrac{\sec (x)+\tan (x)}{\sec (x)+\tan (x)}\right) d x=\int \dfrac{\sec ^2(x)+\sec (x) \tan (x)}{\sec (x)+\tan (x)} d x \nonumber \]This strategy is not intuitive, in my opinion: the nice thing to multiply seemingly comes out of nowhere!

    Let’s look at one more type of example, just to reiterate what we’re thinking about with these rewritten functions.

    Activity \(\PageIndex{1}\): A Negative Exponent.

    Let’s think about this integral:\[\int \dfrac{1}{1+e^{-x}} d x \nonumber \]

    1. Is there any composition in this integral? Pick it out, and either explain or show that using this to guide your substitution will not be helpful.
    2. What does \(e^{-x}\) mean? What does \(\dfrac{1}{e^{-x}}\) mean?
    3. Rewrite the integral, specifically focusing on the negative exponent. You should find that the function looks worse! How can you clean that up?
    4. Why is this new integral set up so much better for the purpose of \(u\)-substitution? How could we tell this just by looking at the initial integral?
    Example \(\PageIndex{2}\)

    Rewrite the integrand function for \(\int \dfrac{1}{x+x^{-1}} d x\), and then integrate using an appropriate substitution. Hint. Try to rewrite this integral by noticing that \(x^{-1}=\dfrac{1}{x}\). Then try to make the resulting fraction a bit nicer to look at, since it has a fraction inside of the denominator of another fraction.

    Solution

    \[\begin{array}{rl}
    \int \dfrac{1}{x+x^{-1}} d x & =\int \dfrac{1}{x+\dfrac{1}{x}} \cdot \dfrac{x}{x} d x \\
    & =\int \dfrac{x}{x^2+1} d x \\
    u=x^2+1 & d u=2 x d x \\
    \int \dfrac{x}{x^2+1} d x & =\dfrac{1}{2} \int \dfrac{2 x}{x^2+1} d x \\
    & =\dfrac{1}{2} \int \dfrac{1}{u} d u \\
    & =\dfrac{1}{2} \ln |u|+C \\
    & \dfrac{1}{2} \ln \left(x^2+1\right)+C
    \end{array} \nonumber \]

    This last example is a good one to help us transition into thinking about a whole class of functions: rational functions! As a reminder, these are just polynomials divided by polynomials.

    Antidifferentiating Rational Functions

    Strategies for antidifferentiating rational functions are just that: strategies. There isn’t one consistent rule to use to antidifferentiate these (like there is with derivatives and the Quotient Rule), but we’ll find some common tactics to apply and try to build our intuition for noticing the different kinds of structure we can have in these rational functions. All of these strategies are based around cleverly rewriting our rational functions (using some algebraic manipulations) to reveal some structure. We’ll try to notice the structure, so that we know what we’re trying to reveal.

    Activity \(\PageIndex{2}\): Integrating a Rational Function Three Ways.

    We’re going to think about the integral: \[\int\left(\dfrac{x^2+3 x-1}{x-1}\right) d x \nonumber \]

    Let’s find 3 different ways of integrating this. This is kind of misleading, since we’re actually going to look at 2, since we’ve already used u-substitution to integrate this in Example 7.2.1.

    1. Let’s just notice some things about this rational function.
      • Are there any vertical asymptotes? How do you know where to find them?
      • Are there any horizontal asymptotes? How do you know that there aren’t?
      • When you zoom really far out on the graph of this function, it looks like a different kind of function. What kind of function? Why is that?
    2. Now we’re going to rewrite the function itself: \(\dfrac{x^2+3 x-1}{x-1}\) means we’re dividing \(\left(x^2+3 x-1\right)\) by \((x − 1)\). So let’s do the division! \[x-1 \overline{\mid {x^2+3x-1}} \nonumber \]
    3. Rewrite your integral using this new version of the function. Notice that we haven’t done any calculus or antidifferentiating yet. Explain why this new version of this integrand function is easier to antidifferentiate. What do you get?
    4. Let’s approach this integral differently. We said earlier that this function is really an “almost” linear function in disguise: when we divide the quadratic numerator by a linear denominator, we expect a linear function to be left over. In the long division, we saw this happen! We ended with a linear function and some remainder. Let’s try to uncover this linear function. If we’re looking to find what linear functions multiply together to get (\(x^2+3 x-1\)), then we can try factoring!\[\dfrac{x^2+3 x-1}{x-1}=\dfrac{(\quad)(\quad)}{x-1} \nonumber \]In order for this factoring to be useful, we want to be able to “cancel” out the \(x − 1\) factor in the denominator. We’re really only interested in what linear factor will multiply by \((x − 1)\) to get \(\left(x^2+3 x-1\right)\).\[\dfrac{x^2+3 x-1}{x-1}=\dfrac{(x-1)(\quad)}{x-1}\nonumber \]First, explain why there is no linear function factor that accomplishes this.
    5. What if we’re able to “almost” factor this? If there was a linear factor that multiplied by \((x − 1)\) to get \((x^2 + 3x−1)\), then the linear portions would multiply together to get \(x^2\). What does this mean about the first linear term of our factor?
    6. What does the constant term of our missing factor need to be? We are hoping that whatever it is can multiply by \(x\) (from \(x − 1\)) and combine with the \(−x\) (from the constant −1 multiplied by \(x\) in our missing factor) to match the \(3x\) in \(x^2 + 3x−1\). What is it?
    7. Note that we have not factored \((x^2 + 3x−1)\)! We almost did: we found two factors:\[(x-1)(\quad)=x^2+3 x+(\quad) \nonumber \]How far off is the actual polynomial that we are working with, \(x^2+3 x-1\)? Write \(x^2+3 x-1\) as your two factors, plus or minus some remainder.
    8. You should get the same thing that we got from using long division! Great! The rest of the integral will work the same. Before we end, though, compare this antiderivative to the one we got in Example 7.2.1. It’s different. Why? Is this a problem?

    This gives us a good approach for whenever division will help us rewrite our rational function as some polynomial and a remainder.

    Let’s look at two more rational functions: these ones won’t be good candidates to use long division, but we’ll try to build some intuition for why we will need to rewrite one of them to get a substitution that works.

    Activity \(\PageIndex{3}\): Comparing Two Very Similar Integrals.

    We’re going to compare these two integrals:

    \[\int \dfrac{x+2}{x^2+4 x+5} d x \qquad \int \dfrac{2}{x^2+4 x+5} d x \nonumber \]

    1. Describe why \(u=x^2+4 x+5\) is such a useful choice for the first integral, but not for the second. How do the differences in these two integrals influence this substitution, even though the denominators are the same? Hint. If \(u=x^2+4 x+5\), then \(d u=(2 x+4) d x\) for both integrals. Why is this good for one integral but not the other?
    2. Why would it be useful to have a linear substitution rule (instead of the quadratic one that we picked) for the second integral? Why would that match the structure of the numerator better?Go ahead and integrate the first integral.
    3. We’re going to write the denominator, \(x^2+4 x+5\) in a different way, in order to get a linear function composed into something familiar. Complete the square for this polynomial: that is, find some linear factor (\(x + h\)) and a real number \(b\) such that \((x+h)^2+b=x^2+4 x+5\). This should feel familiar, since we already haves tried to force polynomials to factor cleverly in Activity 7.3.2. Hint. We want to find a constant term so that \((x+\quad)^2\) gives us \(x^2+4 x+\quad\). Then, we can compare the quadratic to \(x^2+4 x+5\) to see how far off it is!
    4. There is an intuitive substitution to pick, since we now have more obvious composition. Pick it. What kind of integral do we end up with and how do we antidifferentiate? Complete this problem!
    Answer
    1. \(\begin{array}{rl}
      u=x^2+4 x+5 & d u=(2 x+4) d x \\
      \int \dfrac{x+2}{x^2+4 x+5} d x & \\
      & =\dfrac{1}{2} \int \dfrac{2(x+2)}{x^2+4 x+5} d x \\
      & =\dfrac{1}{2} \int \dfrac{1}{u} d u \\
      & =\dfrac{1}{2} \ln |u|+C \\
      & =\dfrac{1}{2} \ln \left|x^2+4 x+5\right|+C
      \end{array}\)
    2. We can use \((x+2)^2\) since \((x+2)^2=x^2+4 x+4\). Then, we can write:\[x^2+4 x+5=\overbrace{(x+2)^2}^{x^2+4 x+4}+1 \nonumber \]
    3. \(\begin{aligned}
      & \int \dfrac{4}{x^2+4 x+5} d x=\int \dfrac{4}{(x+4)^2+1} d x \\
      & \int \dfrac{4}{(x+4)^2+1} d x=\int \dfrac{4}{u^2+1} d u \\
      & =4 \tan ^{-1}(u)+C \\
      & =4 \tan ^{-1}(x+4)+C
      \end{aligned}\)

    Going forward, when you see a quadratic denominator in a rational function, what are some things you can think about and strategies you can use, based on what the rest of the function looks like? We want to summarize this a bit!

    Integrating Rational Functions.

    If \(f(x)=\dfrac{p_n(x)}{p_m(x)}\) where \(p_n(x)\) is a degree \(n\) polynomial and \(p_m(x)\) is a degree \(m\) polynomial, then we can think about how we might integrate \(\int f(x) d x\) based on degrees.

    • If \(n \geq m\) (the degree in the numerator is at least the degree in the denominator), then we can use long division to write \(f(x)\) as some polynomial with degree \(n − m\) and some remainder.
    • If \(n = m − 1\) (the degree of the numerator is one less than the degree of the denominator), then we can try a \(u\)-substitution where \(u=p_m(x)\), since the derivative of \(p_m(x)\) is a polynomial of degree \(n\). If this substitution works, we can antidifferentiate to get some sort of logarithm. This is not guaranteed to work, but for now (without other strategies), this is something we can think about.
    • If we can reduce \(f(x)\) (through some transformation or substitution) to a rational function that is a constant term divided by quadratic function (or if it already is), then we can complete the square in the denominator to get to a form that can be antidifferentiated to an inverse tangent function.

    In the last point, we are referencing the strategy we found in Activity 7.3.3. We have a bit more of a general version of this strategy.

    Theorem \(\PageIndex{3}\): Generalized Inverse Tangent Forms.

    \[\int \dfrac{1}{u^2+a^2} d u=\dfrac{1}{a} \tan ^{-1}\left(\dfrac{u}{a}\right)+C \nonumber \]

    Proof.

    This is really just based on a clever substitution. Once we see this specific constant over a sum of squares, we can factor out a convenient coefficient to force the denominator to look like a sum of something squared and 1.

    \[\begin{aligned}
    \int \dfrac{1}{u^2+a^2} d u & =\dfrac{1}{a^2} \int \dfrac{1}{\dfrac{u^2}{a^2}+1} d u \\
    & =\dfrac{1}{a^2} \int \dfrac{1}{\left(\dfrac{u}{a}\right)^2+1} d u
    \end{aligned} \nonumber \]

    Now we can let \(w=\dfrac{u}{a}\) and \(d w=\dfrac{1}{a} d u\).

    \[\begin{aligned}
    \dfrac{1}{a^2} \int \dfrac{1}{\left(\dfrac{u}{a}\right)^2+1} d u & =\dfrac{1}{a} \int \dfrac{1}{\left(\dfrac{u}{a}\right)^2+1}\left(\dfrac{1}{a}\right) d u \\
    & =\dfrac{1}{a} \int \dfrac{1}{w^2+1} d w \\
    & =\dfrac{1}{a} \tan ^{-1}(w)+C \\
    & =\dfrac{1}{a} \tan ^{-1}\left(\dfrac{u}{a}\right)+C
    \end{aligned} \nonumber \]

    This strategy also can be used for other inverse trigonometric derivatives. But we will use the inverse tangent form most of all, and thus we want to outline it fully.

    We have much more to talk about with integration. From here, we can move on to more systematic strategies — ones that have some goals based on familiar things like operations that we might notice or specific variable substitutions that can be useful.

    Practice Problems

    Exercise \(\PageIndex{1}\)

    Use polynomial division or some clever factoring to rewrite and find the following indefinite integrals or evaluate the following definite integrals.

    1. \(\int\left(\dfrac{x+4}{x-3}\right) d x\)
    2. \(\int\left(\dfrac{x^2+4}{x-4}\right) d x\)
    3. \(\int\left(\dfrac{t^2+t+6}{t^2+1}\right) d t)\)
    4. \(\int_{x=2}^{x=4}\left(\dfrac{x^3+1}{x-1}\right) d x\)
    5. \(\int_{x=0}^{x=1}\left(\dfrac{x^4+1}{x^2+1}\right) d x\)
    Exercise \(\PageIndex{2}\)

    Complete the square in order to find the following indefinite integrals.

    1. \(\int\left(\dfrac{1}{x^2-2 x+10}\right) d x\)
    2. \(\int\left(\dfrac{x}{x^2+4 x+8}\right) d x\)
    3. \(\int\left(\dfrac{2 x}{x^4+6 x^2+10}\right) d x\)
    Exercise \(\PageIndex{3}\)

    Find the following indefinite integrals.

    1. \(\int\left(\dfrac{1}{x^{-1}+1}\right) d x\)
    2. \(\int\left(\dfrac{\sin (\theta)+\tan (\theta)}{\cos ^2(\theta)}\right) d \theta\)
    3. \(\int\left(\dfrac{1-x}{1-\sqrt{x}}\right) d x\)
    4. \(\int\left(\dfrac{1}{1-\sin ^2(\theta)}\right) d \theta\)
    5. \(\int\left(\dfrac{x^{2 / 3}-x^3}{x^{1 / 4}}\right) d x\)
    6. \(\int\left(\dfrac{4+x}{\sqrt{1-x^2}}\right) d x\)

    This page titled 7.3: Manipulating Integrands was last modified on Wed, 07 Oct 2026 01:39:19 GMT and is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Peter Keep.