Single-Variable-Calculus · Unit 12 · Video 3 · Interactive Practice

Integration by Substitution and Advanced Guessing

IKey Formulas

FormulaNameVideo example
∫f(u(x)) u′(x) dx=∫f(u) du\displaystyle\int f\big(u(x)\big)\,u'(x)\,dx = \int f(u)\,du, with du=u′(x) dxdu = u'(x)\,dxSubstitutionu=x4+2u = x^4 + 2: ∫x3(x4+2)5 dx=14∫u5 du=124(x4+2)6+c\int x^3(x^4+2)^5\,dx = \tfrac14\int u^5\,du = \tfrac{1}{24}(x^4+2)^6 + c
guess gg; if g′=Kfg' = K f, then ∫f dx=1K g+c\displaystyle\int f\,dx = \tfrac{1}{K}\,g + cAdvanced guessingddxe6x=6e6x\tfrac{d}{dx}e^{6x} = 6e^{6x}, so ∫e6x dx=16e6x+c\int e^{6x}\,dx = \tfrac16 e^{6x} + c
ddx[k e−x2]=−2k x e−x2\dfrac{d}{dx}\big[k\,e^{-x^2}\big] = -2k\,x\,e^{-x^2}Guess with an unknown coefficient−2k=1⇒k=−12-2k = 1 \Rightarrow k = -\tfrac12
∫duu=ln⁡∣u∣+c\displaystyle\int \frac{du}{u} = \ln\lvert u\rvert + cThe a=−1a = -1 exception to the power ruleu=ln⁡xu = \ln x: ∫dxxln⁡x=ln⁡(ln⁡x)+c\int \dfrac{dx}{x\ln x} = \ln(\ln x) + c

Key Insight: Two different-looking antiderivatives are both right when their difference is a constant: 12sin⁡2x+c1=−12cos⁡2x+c2\tfrac12\sin^2 x + c_1 = -\tfrac12\cos^2 x + c_2 exactly when c2−c1=12c_2 - c_1 = \tfrac12.

IIGuess, Differentiate, Fix the Factor

A guess can be fixed exactly when its derivative is a constant multiple of the integrand.

IIIChoosing uu

Substitution works when the leftover factor becomes a constant multiple of dudu, with no xx left over.

∫x3 (x4+2)5 dx\int x^3\,(x^4 + 2)^5\,dx

IVTwo Answers, One Family

12sin⁡2x\tfrac12\sin^2 x and −12cos⁡2x-\tfrac12\cos^2 x differ by the same constant, 12\tfrac12, at every xx.

VQuiz Questions

Problem 1 · Substitute the Inside

Given: ∫x2 (x3+1)4 dx\displaystyle\int x^2\,(x^3 + 1)^4\,dx with u=x3+1u = x^3 + 1. Find the antiderivative.

✅ Correct! x2 dx=13 dux^2\,dx = \tfrac13\,du, so the integral is 13⋅u55=115(x3+1)5+c\tfrac13 \cdot \tfrac{u^5}{5} = \tfrac{1}{15}(x^3+1)^5 + c.
❌ The factor 13\tfrac13 is missing. du=3x2 dxdu = 3x^2\,dx, so x2 dxx^2\,dx is only 13 du\tfrac13\,du. Differentiating 15(x3+1)5\tfrac15(x^3+1)^5 gives 3x2(x3+1)43x^2(x^3+1)^4, three times too big.
❌ Not yet the answer. The problem was posed in xx: change back with u=x3+1u = x^3 + 1.
❌ The 33 went the wrong way. x2 dx=13 dux^2\,dx = \tfrac13\,du, not 3 du3\,du; differentiating 35(x3+1)5\tfrac35(x^3+1)^5 gives 9x2(x3+1)49x^2(x^3+1)^4.
❌ Not quite. Write du=3x2 dxdu = 3x^2\,dx, replace x2 dxx^2\,dx by 13 du\tfrac13\,du, integrate u4u^4, then change back.
Show solution

Let u=x3+1u = x^3 + 1, so du=3x2 dxdu = 3x^2\,dx and x2 dx=13 dux^2\,dx = \tfrac13\,du:

∫x2(x3+1)4 dx=13∫u4 du=u53⋅5+c=u515+c=115(x3+1)5+c.\int x^2 (x^3 + 1)^4\,dx = \tfrac13\int u^4\,du = \frac{u^5}{3 \cdot 5} + c = \frac{u^5}{15} + c = \tfrac{1}{15}(x^3 + 1)^5 + c.

Check: ddx[115(x3+1)5]=515(x3+1)4⋅3x2=x2(x3+1)4\dfrac{d}{dx}\Big[\tfrac{1}{15}(x^3 + 1)^5\Big] = \tfrac{5}{15}(x^3 + 1)^4 \cdot 3x^2 = x^2 (x^3 + 1)^4 ✓

Problem 2 · Write the Check, Signs Included

Given: ∫x e−3x2 dx\displaystyle\int x\,e^{-3x^2}\,dx. Find the antiderivative by advanced guessing.

✅ Correct! The guess e−3x2e^{-3x^2} has derivative −6x e−3x2-6x\,e^{-3x^2}, off by −6-6; dividing by −6-6 gives −16e−3x2+c-\tfrac16 e^{-3x^2} + c.
❌ The minus sign got lost. The derivative of the exponent −3x2-3x^2 is −6x-6x, so the guess is off by −6-6, not 66.
❌ The chain rule needs the derivative of −3x2-3x^2, which is −6x-6x. Differentiating −13e−3x2-\tfrac13 e^{-3x^2} gives 2x e−3x22x\,e^{-3x^2}, twice the integrand.
❌ Multiplied instead of divided. The guess's derivative is −6-6 times the integrand, so correct by 1−6\tfrac{1}{-6}; −6e−3x2-6e^{-3x^2} has derivative 36x e−3x236x\,e^{-3x^2}.
❌ Not quite. Guess e−3x2e^{-3x^2}, write its derivative by the chain rule, and divide by the factor it is off by.
Show solution

Guess e−3x2e^{-3x^2} and differentiate:

ddxe−3x2=e−3x2⋅(−6x)=−6 x e−3x2.\frac{d}{dx}e^{-3x^2} = e^{-3x^2} \cdot (-6x) = -6\,x\,e^{-3x^2}.

That is −6-6 times the integrand, so divide by −6-6. Equivalently, guess k e−3x2k\,e^{-3x^2}: its derivative is −6k x e−3x2-6k\,x\,e^{-3x^2}, and −6k=1-6k = 1 gives k=−16k = -\tfrac16.

∫x e−3x2 dx=−16e−3x2+c.\int x\,e^{-3x^2}\,dx = -\tfrac16 e^{-3x^2} + c.

Problem 3 · The Integral of Tangent

Given: ∫tan⁡x dx=∫sin⁡xcos⁡x dx\displaystyle\int \tan x\,dx = \int \frac{\sin x}{\cos x}\,dx with u=cos⁡xu = \cos x. Find the integral in uu and the answer in xx.

What does the integral become in uu?

What is ∫tan⁡x dx\int \tan x\,dx?

✅ Correct! sin⁡x dx=−du\sin x\,dx = -du, so ∫tan⁡x dx=−∫duu=−ln⁡∣cos⁡x∣+c\int \tan x\,dx = -\int \frac{du}{u} = -\ln\lvert\cos x\rvert + c.
❌ Check the sign of dudu. ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x, so du=−sin⁡x dxdu = -\sin x\,dx and sin⁡x dx=−du\sin x\,dx = -du.
❌ u=cos⁡xu = \cos x is in the denominator. 1cos⁡x\frac{1}{\cos x} becomes 1u\frac{1}{u}, not uu.
❌ An xx is left over. The whole of sin⁡x dx\sin x\,dx is −du-du; once it is replaced, no sin⁡x\sin x remains.
❌ The sign from du=−sin⁡x dxdu = -\sin x\,dx was dropped. Differentiating ln⁡∣cos⁡x∣\ln\lvert\cos x\rvert gives −sin⁡xcos⁡x=−tan⁡x\frac{-\sin x}{\cos x} = -\tan x.
❌ Change back with u=cos⁡xu = \cos x, not sin⁡x\sin x. Differentiating −ln⁡∣sin⁡x∣-\ln\lvert\sin x\rvert gives −cot⁡x-\cot x.
❌ Still in uu. Change back: u=cos⁡xu = \cos x.
❌ Check the rewrite. Find dudu for u=cos⁡xu = \cos x, then replace sin⁡x dx\sin x\,dx and cos⁡x\cos x.
❌ Check the answer. Integrate −1u-\frac{1}{u} and change back to xx.
Show solution

With u=cos⁡xu = \cos x, du=−sin⁡x dxdu = -\sin x\,dx, so sin⁡x dx=−du\sin x\,dx = -du and 1cos⁡x=1u\frac{1}{\cos x} = \frac{1}{u}:

∫sin⁡xcos⁡x dx=−∫duu=−ln⁡∣u∣+c=−ln⁡∣cos⁡x∣+c.\int \frac{\sin x}{\cos x}\,dx = -\int \frac{du}{u} = -\ln\lvert u\rvert + c = -\ln\lvert\cos x\rvert + c.

Check: ddx[−ln⁡∣cos⁡x∣]=−−sin⁡xcos⁡x=tan⁡x\dfrac{d}{dx}\big[-\ln\lvert\cos x\rvert\big] = -\dfrac{-\sin x}{\cos x} = \tan x ✓ (on any interval where cos⁡x≠0\cos x \ne 0).

Problem 4 · A Third Answer for sin⁡xcos⁡x\sin x \cos x

Given: Since sin⁡xcos⁡x=12sin⁡2x\sin x\cos x = \tfrac12\sin 2x, a third guess gives ∫sin⁡xcos⁡x dx=−14cos⁡2x+c3\displaystyle\int \sin x\cos x\,dx = -\tfrac14\cos 2x + c_3. Find c3−c1c_3 - c_1 for which −14cos⁡2x+c3=12sin⁡2x+c1-\tfrac14\cos 2x + c_3 = \tfrac12\sin^2 x + c_1 for every xx.

✅ Correct! c3−c1=12sin⁡2x+14cos⁡2x=12sin⁡2x+14(1−2sin⁡2x)=14c_3 - c_1 = \tfrac12\sin^2 x + \tfrac14\cos 2x = \tfrac12\sin^2 x + \tfrac14(1 - 2\sin^2 x) = \tfrac14, a constant, so all three formulas name the same family.
❌ That is the shift between 12sin⁡2x\tfrac12\sin^2 x and −12cos⁡2x-\tfrac12\cos^2 x. A different pair of formulas has its own shift: compute 12sin⁡2x+14cos⁡2x\tfrac12\sin^2 x + \tfrac14\cos 2x with cos⁡2x=1−2sin⁡2x\cos 2x = 1 - 2\sin^2 x.
❌ The formulas differ, so the constants must too. At x=0x = 0: −14+c3=0+c1-\tfrac14 + c_3 = 0 + c_1, so c3−c1≠0c_3 - c_1 \ne 0.
❌ That is c1−c3c_1 - c_3. Collect the constants: c3−c1=12sin⁡2x+14cos⁡2xc_3 - c_1 = \tfrac12\sin^2 x + \tfrac14\cos 2x.
Show solution

Check the guess: ddx[−14cos⁡2x]=14⋅2sin⁡2x=12sin⁡2x=sin⁡xcos⁡x\dfrac{d}{dx}\big[-\tfrac14\cos 2x\big] = \tfrac14 \cdot 2\sin 2x = \tfrac12\sin 2x = \sin x\cos x ✓

Compare: set the two formulas equal and collect the constants on one side:

c3−c1=12sin⁡2x+14cos⁡2x=12sin⁡2x+14(1−2sin⁡2x)=14.c_3 - c_1 = \tfrac12\sin^2 x + \tfrac14\cos 2x = \tfrac12\sin^2 x + \tfrac14\big(1 - 2\sin^2 x\big) = \tfrac14.

The difference is the constant 14\tfrac14 at every xx (at x=0x = 0: −14+c3=c1-\tfrac14 + c_3 = c_1). The third constant is 14\tfrac14 larger than c1c_1, and, with c2−c1=12c_2 - c_1 = \tfrac12, 14\tfrac14 smaller than c2c_2.

Solved: 0 / 4