Welcome to Integration by Substitution and by Parts (HL)

In your previous calculus studies, you learned how to integrate basic functions like \(x^n\) or \(\sin(x)\). However, just as differentiation has the Chain Rule and the Product Rule for complex functions, integration has its own specialized tools for "undoing" those processes. In this chapter, we will master Integration by Substitution (the reverse Chain Rule) and Integration by Parts (the reverse Product Rule). These techniques are the "heavy lifting" tools of the HL Calculus syllabus!

1. Integration by Substitution

Integration by substitution is often called "u-substitution." It is used when an integral contains a function and its derivative (or something very close to it). Think of it as a way to simplify a complicated-looking integral into a basic one.

The Core Concept

If you see an integral in the form \(\int f(g(x))g'(x) \, dx\), you can let \(u = g(x)\). This turns the integral into \(\int f(u) \, du\), which is much easier to solve.

Step-by-Step Process for Indefinite Integrals

  1. Identify the "inner" function: Look for a part of the expression whose derivative is also present. Let this be \(u\).
  2. Find \(du\): Differentiate \(u\) with respect to \(x\) to get \(\frac{du}{dx}\), then rearrange it to find \(dx\) in terms of \(du\).
  3. Substitute: Replace all terms involving \(x\) and \(dx\) with \(u\) and \(du\).
  4. Integrate: Solve the resulting integral in terms of \(u\).
  5. Back-substitute: Replace \(u\) with your original \(x\)-expression and don't forget the constant \(+ C\).

Example: Find \(\int 2x(x^2 + 1)^4 \, dx\).
Let \(u = x^2 + 1\). Then \(\frac{du}{dx} = 2x\), so \(du = 2x \, dx\).
The integral becomes \(\int u^4 \, du = \frac{u^5}{5} + C\).
Substitute back: \(\frac{(x^2 + 1)^5}{5} + C\).

Definite Integrals and Changing Limits

When solving a definite integral (one with boundaries), you have a choice: back-substitute at the end, or change the limits of integration to match \(u\). The IB curriculum highly recommends changing the limits.

Quick Tip: If your integral has limits \(x = a\) and \(x = b\), your new limits for \(u\) will be \(u(a)\) and \(u(b)\). Once you change the limits, you never have to go back to \(x\)!

Key Takeaway

Substitution is about pattern recognition. Look for a "function-derivative" pair within the integrand.


2. Integration by Parts (AHL)

While substitution reverses the Chain Rule, Integration by Parts (IBP) reverses the Product Rule. Use this when you are integrating the product of two unrelated functions, such as \(x \sin(x)\) or \(e^x \ln(x)\).

The Formula

From the formula booklet: \(\int u \frac{dv}{dx} \, dx = uv - \int v \frac{du}{dx} \, dx\)

How to Choose \(u\) and \(dv\)?

The trick to IBP is choosing which part of your integral is \(u\) (the part you differentiate) and which part is \(dv\) (the part you integrate). If you choose poorly, the integral might get harder! Use the LIATE mnemonic to pick \(u\):

  • L - Logarithmic functions (e.g., \(\ln(x)\))
  • I - Inverse trigonometric functions (e.g., \(\arctan(x)\))
  • A - Algebraic functions (e.g., \(x^2\), \(3x\))
  • T - Trigonometric functions (e.g., \(\sin(x)\))
  • E - Exponential functions (e.g., \(e^x\))

The type of function highest on this list should be your \(u\).

Step-by-Step Process

  1. Assign: Pick \(u\) using LIATE and let the rest of the integrand be \(dv\).
  2. Differentiate and Integrate: Find \(\frac{du}{dx}\) by differentiating \(u\), and find \(v\) by integrating \(dv\).
  3. Apply Formula: Plug everything into \(uv - \int v \frac{du}{dx} \, dx\).
  4. Final Integral: Evaluate the new (hopefully simpler) integral.

Example: Find \(\int x e^x \, dx\).
Using LIATE, \(x\) is Algebraic and \(e^x\) is Exponential. So, let \(u = x\) and \(\frac{dv}{dx} = e^x\).
Then \(\frac{du}{dx} = 1\) and \(v = e^x\).
Applying the formula: \(x e^x - \int (e^x \cdot 1) \, dx = x e^x - e^x + C\).

Key Takeaway

Integration by parts is a "trade." You trade one integral you can't solve for a simpler one you can solve.


3. Repeated Integration by Parts

Sometimes, applying IBP once isn't enough. You might need to apply it twice (or more), especially when you have a term like \(x^2\) that needs to be differentiated twice to become a constant.

Case A: Reducing Powers

If you have \(\int x^2 \cos(x) \, dx\), the first application of IBP will result in an integral containing \(x \sin(x)\). You must then perform IBP again on that new integral.

Case B: The "Looping" Integral

Don't worry if this seems tricky at first, but sometimes the integral "loops" back to its original form. This often happens with products of \(e^x\) and \(\sin(x)\) or \(\cos(x)\).

The Trick: After two rounds of IBP, you will see your original integral appear on the right side of the equation. You can then use basic algebra to move it to the left side and solve for it!


4. Common Pitfalls to Avoid

  • The Missing \(+ C\): In indefinite integrals, students often forget the constant of integration. Don't let that be you!
  • Forgetting \(dx\): When doing substitution, remember that \(dx\) must be replaced by an expression containing \(du\). You cannot integrate \(u\) with respect to \(x\).
  • Sign Errors in IBP: The formula has a minus sign: \(uv - \int v \, du\). Be extremely careful with signs, especially if \(v\) or \(\frac{du}{dx}\) are negative.
  • Not Changing Limits: In definite integrals using substitution, if you don't change the limits, you must back-substitute to \(x\) before plugging the numbers in. Mixing \(u\)-limits with \(x\)-functions is a major error.

5. Summary Checklist

Did you know? Integration by parts is actually the inverse of the Product Rule: \(\frac{d}{dx}(uv) = u\frac{dv}{dx} + v\frac{du}{dx}\). If you integrate both sides and rearrange, you get the IBP formula!

  • Can I identify when to use substitution vs. parts?
  • Do I remember the LIATE rule for picking \(u\)?
  • Am I comfortable changing the limits of integration for definite integrals?
  • Can I handle "looping" integrals that require two rounds of IBP?

Note: For more information on related topics, see the chapters on Further derivatives and integrals (HL) for the list of standard integrals, or Differential equations (HL) where these techniques are frequently applied.