Which one goes first?
Logs and inverse trig functions first; then powers of x.
Two candidates
In ∫ x log x dx, a power of x usually goes first. But to use x first we would need ∫ log x dx as the integral of the second function.
Which should be the first function here?
What this lesson covers
The idea
Take as the second function one that can be integrated; a power of x or a polynomial is usually the first function, but an inverse trigonometric or logarithmic function is taken first; no constant is needed when integrating the second function.
Two candidates
In ∫ x log x dx, a power of x usually goes first. But to use x first we would need ∫ log x dx as the integral of the second function.
Which should be the first function here?
- x
- log x
- It does not matter
Pick the first function
Choose the first function for each product and watch what is left over. These come from the book (Example 20 and Exercise 7.6).
Choosing the first function
The second function must be one we can integrate. Usually a power of x or a polynomial is the first function, but an inverse trigonometric or a logarithmic function is taken as the first function.
And no constant is needed when we integrate the second function. If we write ∫ cos x dx = sin x + k in ∫ x cos x dx, the k cancels: x(sin x + k) − ∫ (sin x + k) dx = x sin x + cos x + C.
Integration by parts does not work for every product. The book's example is ∫ √x sin x dx: no function we know has derivative √x sin x.
Notes
Second function: one you can integrate. Usually a power of x or a polynomial is first, but log and inverse trigonometric functions are taken first. No constant is needed for ∫ g dx.
Check yourself
Exercise 7.6, Q3: for ∫ x² eˣ dx, which is the first function?
Exercise 7.6, Q6: for ∫ x² log x dx, which is the first function?
In ∫ x cos x dx someone writes ∫ cos x dx = sin x + k. What happens to k?
Exercise 7.6, Q4: ∫ x log x dx = (x²/2) log x − x²/k + C. Find k.
Answer: 4
∫ (x/2) dx = x²/4, so k = 4.
- eˣ. Then ∫ x² dx = x³/3 comes in, and the power of x goes up.
- x² — correct. Yes! Its derivative 2x is simpler; after two rounds of parts the power of x is gone.
- either, the answer is the same. The final answer is the same, but only one choice gets us there.
- log x — correct. Yes! A logarithm goes first: f′ = 1/x, ∫ x² dx = x³/3, and the integral left is ∫ x²/3 dx.
- x². Then log x is the second function and we need ∫ log x dx first.
- x² log x. We need two factors: one first, one second.
- it must be kept as a second constant. Work it out: x(sin x + k) − ∫ (sin x + k) dx = x sin x + kx + cos x − kx + C.
- it doubles to 2k. The kx and −kx cancel exactly.
- it cancels — correct. Right. The kx and −kx cancel, so no constant is needed for ∫g dx.