girgit.org

Integrals

Integration by parts, and why ILATE is only a guide

The big ideaThe product rule, integrated, lets you trade the integral of a product for a hopefully easier one: \( \int f g\,dx = f\int g\,dx - \int \left( f' \int g\,dx \right) dx \). The skill is choosing which factor is f.

In simple words

When two different kinds of things are multiplied inside an integral, you can make a swap. You shrink one of them by taking its slope, and you grow the other by undoing its slope. If you choose well, the new sum is easier than the old one. If you choose badly, it gets harder, so you swap the roles and try again.

Where the formula comes from

For two differentiable functions u and v of x, the product rule says \( \frac{d}{dx}(uv) = u\frac{dv}{dx} + v\frac{du}{dx} \). Integrate both sides and rearrange:

\[ \int u\,\frac{dv}{dx}\,dx = uv - \int v\,\frac{du}{dx}\,dx. \]

Now call u = f(x), the first function, and \( \frac{dv}{dx} = g(x) \), the second function, so \( v = \int g(x)\,dx \). Then

\[ \int f(x)\,g(x)\,dx = f(x)\int g(x)\,dx - \int \left[ f'(x)\int g(x)\,dx \right] dx. \]

In words: first × (integral of second) − integral of (derivative of first × integral of second). This is integration by parts.

Try it: see the formula as a picture. Two areas always fill one rectangle.

Worked examples

  1. \( \int x\sin x\,dx \). f = x, g = sin x, \( \int g = -\cos x \). So \( -x\cos x - \int (1)(-\cos x)\,dx = -x\cos x + \sin x + C \).
  2. \( \int x e^{2x}\,dx \). f = x, \( \int e^{2x} = \frac{e^{2x}}{2} \). So \( \frac{x e^{2x}}{2} - \int \frac{e^{2x}}{2}\,dx = \frac{x e^{2x}}{2} - \frac{e^{2x}}{4} + C \).
  3. \( \int x^3\log x\,dx \). f = log x (we can differentiate it but not easily integrate it), g = x³. So \( \frac{x^4}{4}\log x - \int \frac{1}{x}\cdot\frac{x^4}{4}\,dx = \frac{x^4}{4}\log x - \frac{x^4}{16} + C \).
  4. \( \int \sin^{-1} x\,dx \). Only one function? Use 1 as the second function. \( x\sin^{-1} x - \int \frac{x}{\sqrt{1 - x^2}}\,dx = x\sin^{-1} x + \sqrt{1 - x^2} + C \). The same idea gives \( \int \log x\,dx = x\log x - x + C \).

Choosing the first function: ILATE

A badly chosen first function makes things worse. For \( \int x\cos x\,dx \), taking cos x as first gives \( \frac{x^2}{2}\cos x + \int \frac{x^2}{2}\sin x\,dx \): a higher power of x than we started with. The textbook's rule of thumb: take a power of x or a polynomial as the first function, unless the other one is an inverse trigonometric or a log function, which then goes first.

Many students remember this order as ILATE: Inverse trigonometric, Logarithmic, Algebraic, Trigonometric, Exponential. Whichever comes earlier is usually the first function. It works because the early ones get simpler when differentiated, and the late ones are easy to integrate.

Try it: choose the first function yourself and follow where each choice leads.

Guess first: \( \int x^3 e^{x^2}\,dx \)

ILATE says: x³ (Algebraic) first, \( e^{x^2} \) (Exponential) second. Guess: will that work?

See what happens
No. You would need \( \int e^{x^2}\,dx \), which has no answer in elementary functions. ILATE is a guide, not a law. Split differently: \( x^3 e^{x^2} = x^2 \cdot \left( x e^{x^2} \right) \). Take x² first and \( x e^{x^2} \) second, because \( \int x e^{x^2}\,dx = \frac{1}{2}e^{x^2} \) (substitute t = x²). Then \( \frac{x^2}{2}e^{x^2} - \int 2x\cdot\frac{1}{2}e^{x^2}\,dx = \frac{1}{2}e^{x^2}(x^2 - 1) + C \). The real rule: the second function must be one you can integrate.

When the integral comes back

For \( I = \int e^x\cos x\,dx \), parts twice brings I back:

  1. eˣ first, cos x second: \( I = e^x\sin x - \int e^x\sin x\,dx \).
  2. Again, eˣ first, sin x second: \( \int e^x\sin x\,dx = -e^x\cos x + \int e^x\cos x\,dx = -e^x\cos x + I \).
  3. So \( I = e^x\sin x + e^x\cos x - I \), and \( I = \frac{e^x(\sin x + \cos x)}{2} + C \).

Keep the same kind of first function both times. If you switch halfway, you just undo your first step and get I = I.

Two small notes

  • No constant is needed when you integrate the second function. If you write sin x + k instead of sin x in example 1, the k terms cancel in the end.
  • Parts does not crack every product. \( \int \sqrt{x}\sin x\,dx \) has no elementary answer, so no choice of first function will finish it.

Words to know

Integration by parts
The rule \( \int fg = f\int g - \int (f'\int g) \), from the product rule.
First function
The factor you differentiate; pick one that gets simpler.
Second function
The factor you integrate; it must be one you can integrate.
ILATE
A memory aid for choosing the first function: Inverse trig, Log, Algebraic, Trig, Exponential.
Differential coefficient
Another name for the derivative.

For \( \int x^2 \tan^{-1} x\,dx \), which should be the first function?

  1. \( \tan^{-1} x \)
  2. \( x^2 \)
  3. It does not matter

What is \( \int x\cos 2x\,dx \)?

  1. \( \frac{x\sin 2x}{2} - \frac{\cos 2x}{4} + C \)
  2. \( \frac{x\sin 2x}{2} + \frac{\cos 2x}{4} + C \)
  3. \( \frac{x^2\sin 2x}{4} + C \)

Why do we not add a constant when finding \( \int g\,dx \) inside the parts formula?

  1. It would make the answer wrong
  2. It cancels out in the final answer
  3. Second functions cannot have constants