Practice / Calculus

Integration: substitution and parts

Ten integrals by substitution and by parts — including parts applied twice, a definite integral, an improper one, and the sigmoid whose antiderivative is softplus — with worked solutions and the mistakes that forget the du or pick u and dv the wrong way round.

Before you start

Two techniques cover every integral on this page: substitution, which undoes the chain rule, and integration by parts, which undoes the product rule. The work goes wrong in a few places that recur: a dxdx replaced without the factor that dudu brings, uu and dvdv chosen the wrong way round, a sign lost from dudu, limits left unchanged after a substitution, and a value at infinity asserted instead of computed. These ten problems run from single substitutions and single applications of parts to parts applied twice, a definite integral, an improper one, and the integral of the sigmoid.

  • ∫f dx=F+C\int f\,dx = F + C means F′=fF' = f: FF is an antiderivative of ff, and the constant CC stands for any constant, since adding a constant does not change the derivative.
  • Substitution: set u=g(x)u = g(x), so du=g′(x) dxdu = g'(x)\,dx, and rewrite the whole integrand, dxdx included, in terms of uu. In a definite integral, change the limits with it: x=ax = a becomes u=g(a)u = g(a).
  • Integration by parts: ∫u dv=uv−∫v du\int u\,dv = uv - \int v\,du. It is the product rule (uv)′=u′v+uv′(uv)' = u'v + uv' integrated and rearranged. For a definite integral, ∫abu dv=[uv]ab−∫abv du\int_a^b u\,dv = \big[uv\big]_a^b - \int_a^b v\,du, where [F]ab=F(b)−F(a)\big[F\big]_a^b = F(b) - F(a).
  • uu has a meaning local to each problem: in a substitution it is the new variable, in parts it is the factor to be differentiated, with dvdv the part to be integrated. No problem uses both at once.
  • An improper integral is a limit: ∫0∞f dx\int_0^\infty f\,dx means lim⁡b→∞∫0bf dx\lim_{b\to\infty}\int_0^b f\,dx.
  • ln⁡\ln is the natural log, defined for positive arguments; ∫duu=ln⁡∣u∣+C\int \frac{du}{u} = \ln|u| + C on any interval where u≠0u \neq 0.
  • Every antiderivative below can be checked by differentiating it — do that before looking at the solution.

Builds on: Differentiation rules: chain, product, quotient

Problems

  1. ·

    ∫xex2 dx\displaystyle\int xe^{x^2}\,dx

  2. ·

    ∫2x1+x2 dx\displaystyle\int \frac{2x}{1+x^2}\,dx

  3. ··

    ∫xex dx\displaystyle\int xe^{x}\,dx

  4. ··

    ∫ln⁡x dx\displaystyle\int \ln x\,dx

  5. ··

    ∫xcos⁡x dx\displaystyle\int x\cos x\,dx

  6. ···

    ∫exsin⁡x dx\displaystyle\int e^{x}\sin x\,dx

  7. ··

    ∫01dx1+x2\displaystyle\int_0^1 \frac{dx}{1+x^2}

  8. ···

    ∫tan⁡x dx\displaystyle\int \tan x\,dx

  9. ···

    ∫0∞xe−x dx\displaystyle\int_0^\infty xe^{-x}\,dx

  10. ···

    ∫σ(x) dx\displaystyle\int \sigma(x)\,dx where σ(x)=11+e−x\sigma(x) = \dfrac{1}{1+e^{-x}}, and then ∫−∞0σ(x) dx\displaystyle\int_{-\infty}^{0}\sigma(x)\,dx.

Worked solutions

Problem 1

∫xex2 dx\displaystyle\int xe^{x^2}\,dx

  1. u=x2u = x^2, du=2x dxdu = 2x\,dx.ex2e^{x^2} is eue^u with inner function x2x^2, and the integrand also contains xx, which is half of that inner function's derivative 2x2x.
  2. x dx=12 dux\,dx = \tfrac12\,du.Divide both sides of step 1 by 2, so that the x dxx\,dx in the integral can be replaced as a whole.
  3. ∫xex2 dx=∫eu⋅12 du=12eu+C\displaystyle\int xe^{x^2}\,dx = \int e^u\cdot\tfrac12\,du = \tfrac12e^u + C.Substitute steps 1 and 2; (eu)′=eu(e^u)' = e^u, and the constant 12\tfrac12 comes out of the integral.
  4. 12ex2+C\tfrac12e^{x^2} + CPut u=x2u = x^2 back. Check: by the chain rule, ddx12ex2=12ex2⋅2x=xex2\tfrac{d}{dx}\tfrac12e^{x^2} = \tfrac12e^{x^2}\cdot 2x = xe^{x^2}.

Problem 2

∫2x1+x2 dx\displaystyle\int \frac{2x}{1+x^2}\,dx

  1. u=1+x2u = 1 + x^2, du=2x dxdu = 2x\,dx.The numerator 2x dx2x\,dx is exactly the derivative of the denominator, times dxdx.
  2. ∫2x1+x2 dx=∫duu=ln⁡∣u∣+C\displaystyle\int \frac{2x}{1+x^2}\,dx = \int\frac{du}{u} = \ln|u| + C.The denominator becomes uu and the numerator with dxdx becomes dudu.
  3. ln⁡(1+x2)+C\ln(1+x^2) + CPut u=1+x2u = 1 + x^2 back; 1+x2≥1>01 + x^2 \geq 1 > 0 for every xx, so the absolute value can be dropped and the answer holds on the whole real line.

Problem 3

∫xex dx\displaystyle\int xe^{x}\,dx

  1. u=xu = x, dv=ex dxdv = e^x\,dx; du=dxdu = dx, v=exv = e^x.Differentiating xx makes it simpler, the constant 1, and exe^x is its own antiderivative, so the new integral ∫v du\int v\,du has no factor of xx left.
  2. ∫xex dx=xex−∫ex dx\displaystyle\int xe^x\,dx = xe^x - \int e^x\,dx.Parts: uv−∫v duuv - \int v\,du.
  3. xex−ex+Cxe^x - e^x + C.∫ex dx=ex+C\int e^x\,dx = e^x + C.
  4. (x−1)ex+C(x - 1)e^x + CFactor out exe^x. Check: by the product rule, ((x−1)ex)′=ex+(x−1)ex=xex\big((x-1)e^x\big)' = e^x + (x-1)e^x = xe^x.

Problem 4

∫ln⁡x dx\displaystyle\int \ln x\,dx

  1. u=ln⁡xu = \ln x, dv=dxdv = dx; du=dxxdu = \dfrac{dx}{x}, v=xv = x.No antiderivative of ln⁡x\ln x is known yet, but its derivative, 1/x1/x, is simple; the other factor is then 1, and dxdx integrates to xx. ln⁡x\ln x needs x>0x > 0.
  2. ∫ln⁡x dx=xln⁡x−∫x⋅1x dx\displaystyle\int \ln x\,dx = x\ln x - \int x\cdot\frac{1}{x}\,dx.Parts: uv−∫v duuv - \int v\,du.
  3. xln⁡x−∫1 dx=xln⁡x−x+Cx\ln x - \int 1\,dx = x\ln x - x + C.x⋅1x=1x \cdot \tfrac1x = 1 for x>0x > 0, and ∫1 dx=x+C\int 1\,dx = x + C.
  4. xln⁡x−x+Cx\ln x - x + CCheck: (xln⁡x−x)′=ln⁡x+x⋅1x−1=ln⁡x(x\ln x - x)' = \ln x + x\cdot\tfrac1x - 1 = \ln x.

Problem 5

∫xcos⁡x dx\displaystyle\int x\cos x\,dx

  1. u=xu = x, dv=cos⁡x dxdv = \cos x\,dx; du=dxdu = dx, v=sin⁡xv = \sin x.Differentiating xx removes it, and cos⁡x\cos x integrates to sin⁡x\sin x without getting harder.
  2. ∫xcos⁡x dx=xsin⁡x−∫sin⁡x dx\displaystyle\int x\cos x\,dx = x\sin x - \int \sin x\,dx.Parts: uv−∫v duuv - \int v\,du.
  3. ∫sin⁡x dx=−cos⁡x+C\displaystyle\int \sin x\,dx = -\cos x + C.(−cos⁡x)′=sin⁡x(-\cos x)' = \sin x.
  4. xsin⁡x+cos⁡x+Cx\sin x + \cos x + CSubtracting −cos⁡x-\cos x adds cos⁡x\cos x. Check: (xsin⁡x+cos⁡x)′=sin⁡x+xcos⁡x−sin⁡x=xcos⁡x(x\sin x + \cos x)' = \sin x + x\cos x - \sin x = x\cos x.

Problem 6

∫exsin⁡x dx\displaystyle\int e^{x}\sin x\,dx

  1. Call the integral I=∫exsin⁡x dxI = \displaystyle\int e^x\sin x\,dx.Neither factor gets simpler when differentiated, so parts will not finish the job; the plan is to apply parts twice until II reappears, then solve for it.
  2. u=sin⁡xu = \sin x, dv=ex dxdv = e^x\,dx; du=cos⁡x dxdu = \cos x\,dx, v=exv = e^x.exe^x integrates to itself, so vv stays as simple as dvdv.
  3. I=exsin⁡x−∫excos⁡x dxI = e^x\sin x - \displaystyle\int e^x\cos x\,dx.Parts: uv−∫v duuv - \int v\,du.
  4. For ∫excos⁡x dx\displaystyle\int e^x\cos x\,dx: u=cos⁡xu = \cos x, dv=ex dxdv = e^x\,dx; du=−sin⁡x dxdu = -\sin x\,dx, v=exv = e^x.Keep the same choice, trig as uu and the exponential as dvdv. Swapping it would integrate the cos⁡x\cos x back to sin⁡x\sin x and undo step 3, giving only I=II = I.
  5. ∫excos⁡x dx=excos⁡x−∫ex(−sin⁡x) dx=excos⁡x+I\displaystyle\int e^x\cos x\,dx = e^x\cos x - \int e^x(-\sin x)\,dx = e^x\cos x + I.Parts again; the minus from dudu turns the new integral into +I+I.
  6. I=exsin⁡x−excos⁡x−II = e^x\sin x - e^x\cos x - I.Substitute step 5 into step 3. The original integral now appears on both sides.
  7. 2I=ex(sin⁡x−cos⁡x)2I = e^x(\sin x - \cos x).Add II to both sides and factor out exe^x. The constants of integration from the two applications of parts are gathered into one CC in the final line.
  8. 12ex(sin⁡x−cos⁡x)+C\tfrac12e^x(\sin x - \cos x) + CDivide by 2. Check: (12ex(sin⁡x−cos⁡x))′=12ex(sin⁡x−cos⁡x)+12ex(cos⁡x+sin⁡x)=exsin⁡x\big(\tfrac12e^x(\sin x - \cos x)\big)' = \tfrac12e^x(\sin x - \cos x) + \tfrac12e^x(\cos x + \sin x) = e^x\sin x.

Problem 7

∫01dx1+x2\displaystyle\int_0^1 \frac{dx}{1+x^2}

  1. y=arctan⁡xy = \arctan x means tan⁡y=x\tan y = x with −π2<y<π2-\tfrac\pi2 < y < \tfrac\pi2.arctan⁡\arctan is the inverse of tan⁡\tan on (−π2,π2)(-\tfrac\pi2, \tfrac\pi2), where cos⁡y>0\cos y > 0 and tan⁡\tan is increasing, so each xx has exactly one yy.
  2. 1cos⁡2y y′=1\dfrac{1}{\cos^2 y}\,y' = 1.Differentiate tan⁡y=x\tan y = x with respect to xx: the chain rule gives the derivative of tan⁡\tan at yy, which is 1/cos⁡2y1/\cos^2 y (quotient rule on sin⁡y/cos⁡y\sin y/\cos y), times y′y'.
  3. y′=cos⁡2y=11+tan⁡2y=11+x2y' = \cos^2 y = \dfrac{1}{1 + \tan^2 y} = \dfrac{1}{1+x^2}.1+tan⁡2y=cos⁡2y+sin⁡2ycos⁡2y=1cos⁡2y1 + \tan^2 y = \dfrac{\cos^2 y + \sin^2 y}{\cos^2 y} = \dfrac{1}{\cos^2 y}, and tan⁡y=x\tan y = x.
  4. ∫01dx1+x2=[arctan⁡x]01=arctan⁡1−arctan⁡0\displaystyle\int_0^1 \frac{dx}{1+x^2} = \big[\arctan x\big]_0^1 = \arctan 1 - \arctan 0.Step 3 makes arctan⁡x\arctan x an antiderivative of the integrand, and a definite integral is the antiderivative's value at the upper limit minus its value at the lower one.
  5. arctan⁡1=π4\arctan 1 = \tfrac\pi4 and arctan⁡0=0\arctan 0 = 0.tan⁡π4=1\tan\tfrac\pi4 = 1 and tan⁡0=0\tan 0 = 0, and both angles lie in (−π2,π2)(-\tfrac\pi2, \tfrac\pi2).
  6. π4\dfrac\pi4π4−0\tfrac\pi4 - 0. The integrand lies between 12\tfrac12 and 1 on [0,1][0, 1], and π4≈0.785\tfrac\pi4 \approx 0.785 is between them.

Problem 8

∫tan⁡x dx\displaystyle\int \tan x\,dx

  1. ∫tan⁡x dx=∫sin⁡xcos⁡x dx\displaystyle\int \tan x\,dx = \int \frac{\sin x}{\cos x}\,dx, on an interval where cos⁡x≠0\cos x \neq 0.tan⁡x\tan x is defined only where cos⁡x≠0\cos x \neq 0; written as a quotient, the numerator is, up to sign, the derivative of the denominator.
  2. u=cos⁡xu = \cos x, du=−sin⁡x dxdu = -\sin x\,dx, so sin⁡x dx=−du\sin x\,dx = -du.(cos⁡x)′=−sin⁡x(\cos x)' = -\sin x; the minus sign has to be carried into the integral.
  3. ∫sin⁡xcos⁡x dx=∫−duu=−ln⁡∣u∣+C\displaystyle\int \frac{\sin x}{\cos x}\,dx = \int\frac{-du}{u} = -\ln|u| + C.∫du/u=ln⁡∣u∣+C\int du/u = \ln|u| + C for u≠0u \neq 0; the absolute value is needed because cos⁡x\cos x is negative on half of the intervals where tan⁡x\tan x is defined.
  4. −ln⁡∣cos⁡x∣+C-\ln|\cos x| + CPut u=cos⁡xu = \cos x back. Check: where cos⁡x>0\cos x > 0, the chain rule gives ddxln⁡cos⁡x=−sin⁡xcos⁡x=−tan⁡x\tfrac{d}{dx}\ln\cos x = \dfrac{-\sin x}{\cos x} = -\tan x; where cos⁡x<0\cos x < 0, it gives ddxln⁡(−cos⁡x)=sin⁡x−cos⁡x=−tan⁡x\tfrac{d}{dx}\ln(-\cos x) = \dfrac{\sin x}{-\cos x} = -\tan x. Either way the minus sign in front makes the derivative tan⁡x\tan x.

Problem 9

∫0∞xe−x dx\displaystyle\int_0^\infty xe^{-x}\,dx

  1. ∫0∞xe−x dx=lim⁡b→∞∫0bxe−x dx\displaystyle\int_0^\infty xe^{-x}\,dx = \lim_{b\to\infty}\int_0^b xe^{-x}\,dx.The upper limit is not a number, so the integral is defined as the limit of integrals over [0,b][0, b].
  2. u=xu = x, dv=e−x dxdv = e^{-x}\,dx; du=dxdu = dx, v=−e−xv = -e^{-x}.Differentiating xx removes it; (−e−x)′=e−x(-e^{-x})' = e^{-x} by the chain rule.
  3. ∫0bxe−x dx=[−xe−x]0b+∫0be−x dx\displaystyle\int_0^b xe^{-x}\,dx = \big[-xe^{-x}\big]_0^b + \int_0^b e^{-x}\,dx.Parts on [0,b][0, b]: [uv]0b−∫0bv du\big[uv\big]_0^b - \int_0^b v\,du, and −v=e−x-v = e^{-x}.
  4. [−xe−x]0b=−be−b−0\big[-xe^{-x}\big]_0^b = -be^{-b} - 0 and ∫0be−x dx=[−e−x]0b=1−e−b\displaystyle\int_0^b e^{-x}\,dx = \big[-e^{-x}\big]_0^b = 1 - e^{-b}.Evaluate each bracket at bb and at 0; at x=0x = 0 the first bracket is 0⋅e0=00\cdot e^0 = 0.
  5. ∫0bxe−x dx=1−e−b−be−b\displaystyle\int_0^b xe^{-x}\,dx = 1 - e^{-b} - be^{-b}.Add the two parts of step 4.
  6. 0<be−b=beb<bb2/2=2b0 < be^{-b} = \dfrac{b}{e^b} < \dfrac{b}{b^2/2} = \dfrac2b for b>0b > 0, so be−b→0be^{-b} \to 0.eb=1+b+b22+⋯>b22e^b = 1 + b + \tfrac{b^2}{2} + \cdots > \tfrac{b^2}{2} for b>0b > 0, since every term of the series is positive; the bound 2/b2/b goes to 0.
  7. 11Take b→∞b \to \infty in step 5: e−b→0e^{-b} \to 0 and, by step 6, be−b→0be^{-b} \to 0. This is the mean of the exponential distribution with rate 1.

Problem 10

∫σ(x) dx\displaystyle\int \sigma(x)\,dx where σ(x)=11+e−x\sigma(x) = \dfrac{1}{1+e^{-x}}, and then ∫−∞0σ(x) dx\displaystyle\int_{-\infty}^{0}\sigma(x)\,dx.

  1. σ(x)=ex1+ex\sigma(x) = \dfrac{e^x}{1+e^x}.Multiply top and bottom by exe^x, which is never 0, so that the numerator becomes the derivative of the denominator.
  2. u=1+exu = 1 + e^x, du=ex dxdu = e^x\,dx.The denominator's derivative, exe^x, is the numerator.
  3. ∫ex1+ex dx=∫duu=ln⁡∣u∣+C\displaystyle\int \frac{e^x}{1+e^x}\,dx = \int\frac{du}{u} = \ln|u| + C.Substitute step 2.
  4. ∫σ(x) dx=ln⁡(1+ex)+C\displaystyle\int \sigma(x)\,dx = \ln(1+e^x) + C.Put u=1+exu = 1 + e^x back; 1+ex>11 + e^x > 1, so the absolute value can be dropped. This is softplus, whose derivative is σ\sigma (Differentiation rules, Problem 4).
  5. ∫−∞0σ(x) dx=lim⁡a→−∞∫a0σ(x) dx=lim⁡a→−∞(ln⁡2−ln⁡(1+ea))\displaystyle\int_{-\infty}^0\sigma(x)\,dx = \lim_{a\to-\infty}\int_a^0\sigma(x)\,dx = \lim_{a\to-\infty}\big(\ln 2 - \ln(1+e^a)\big).The lower limit is not a number, so the integral is a limit; step 4 evaluated at 00 gives ln⁡2\ln 2, since 1+e0=21 + e^0 = 2, and at aa gives ln⁡(1+ea)\ln(1+e^a).
  6. ln⁡(1+ea)→ln⁡1=0\ln(1+e^a) \to \ln 1 = 0 as a→−∞a \to -\infty.ea→0e^a \to 0, and ln⁡\ln is continuous at 1.
  7. ln⁡(1+ex)+C\ln(1+e^x) + C; and ∫−∞0σ=ln⁡2−lim⁡a→−∞ln⁡(1+ea)=ln⁡2\displaystyle\int_{-\infty}^0\sigma = \ln 2 - \lim_{a\to-\infty}\ln(1+e^a) = \ln 2Steps 4 to 6. The area is finite although σ\sigma never reaches 0, because σ(x)<ex\sigma(x) < e^x decays exponentially as x→−∞x \to -\infty.

Where this goes wrong

1. Substituting without changing dx

Setting u=x2u = x^2 turns ex2e^{x^2} into eue^u at a glance, and the rest of the integrand is easy to wave through.

  1. ∫xex2 dx\displaystyle\int xe^{x^2}\,dx with u=x2u = x^2Right so far: the substitution of Problem 1.
  2. “ex2e^{x^2} becomes eue^u, and x dxx\,dx becomes dudu.”The shortcut that causes the mistake: x dxx\,dx treated as the whole of dudu.
  3. ∫xex2 dx=∫eu du=ex2+C\displaystyle\int xe^{x^2}\,dx = \int e^u\,du = e^{x^2} + Cdu=2x dxdu = 2x\,dx, so x dx=12 dux\,dx = \tfrac12\,du, and the factor 12\tfrac12 is lost. Differentiating the answer shows it: (ex2)′=2xex2(e^{x^2})' = 2xe^{x^2}, twice the integrand. The correct antiderivative is 12ex2+C\tfrac12e^{x^2} + C.

2. Parts with u and dv swapped

Parts works with either choice of uu and dvdv in the sense that the formula stays true, so it is tempting to take the first factor that integrates easily.

  1. ∫xex dx\displaystyle\int xe^x\,dx by partsRight so far: a product of a polynomial and an exponential, the case parts is for.
  2. “xx integrates easily too, so either factor can be dvdv.”The reasoning that causes the mistake: choosing dvdv by what can be integrated, without asking what the new integral will look like.
  3. u=exu = e^x, dv=x dxdv = x\,dx in ∫xex dx\displaystyle\int xe^x\,dxThis gives v=x22v = \tfrac{x^2}{2}, du=ex dxdu = e^x\,dx and ∫xex dx=x22ex−∫x22ex dx\displaystyle\int xe^x\,dx = \tfrac{x^2}{2}e^x - \int\tfrac{x^2}{2}e^x\,dx — true, but the new integral is harder than the old one, which is the sign that the choice is wrong. Pick uu to be what gets simpler when differentiated: u=xu = x gives (x−1)ex+C(x - 1)e^x + C (Problem 3).

3. Sign error in ∫ tan

tan⁡x=sin⁡x/cos⁡x\tan x = \sin x/\cos x looks like a derivative over a function, and ∫u′/u=ln⁡∣u∣\int u'/u = \ln|u| is the pattern that comes to mind.

  1. ∫tan⁡x dx=∫sin⁡xcos⁡x dx\displaystyle\int\tan x\,dx = \int\frac{\sin x}{\cos x}\,dx with u=cos⁡xu = \cos xRight so far: the substitution of Problem 8.
  2. “The numerator is the derivative of the denominator, so the answer is ln⁡\ln of the denominator.”The pattern that causes the mistake: sin⁡x\sin x taken as the derivative of cos⁡x\cos x.
  3. ∫tan⁡x dx=ln⁡∣cos⁡x∣+C\displaystyle\int\tan x\,dx = \ln|\cos x| + Cdu=−sin⁡x dxdu = -\sin x\,dx brings a minus: sin⁡x dx=−du\sin x\,dx = -du, so the integral is −ln⁡∣cos⁡x∣+C-\ln|\cos x| + C. Differentiating this line shows it: (ln⁡∣cos⁡x∣)′=−tan⁡x(\ln|\cos x|)' = -\tan x.

4. Changing the variable but keeping the old limits

A substitution in an indefinite integral changes only the integrand, and the habit carries over to definite integrals.

  1. ∫012x1+x2 dx\displaystyle\int_0^1\frac{2x}{1+x^2}\,dx with u=1+x2u = 1 + x^2, du=2x dxdu = 2x\,dxRight so far: the substitution of Problem 2.
  2. “The integrand becomes du/udu/u; the rest stays.”The habit that causes the mistake: the limits, which are values of xx, left in place.
  3. ∫012x1+x2 dx=∫01duu\displaystyle\int_0^1\frac{2x}{1+x^2}\,dx = \int_0^1\frac{du}{u}The limits must be values of uu: u(0)=1u(0) = 1 and u(1)=2u(1) = 2, so the integral is ∫12du/u=ln⁡2\int_1^2 du/u = \ln 2. With the old limits the integral diverges, because 1/u1/u is not integrable near u=0u = 0 — yet the original integrand is continuous and bounded on [0,1][0, 1], so its integral is finite.

5. Evaluating ∞ · 0 by feel

In Problem 9 the boundary term at infinity is xx, which grows, times e−xe^{-x}, which shrinks, and it is tempting to call the product 0 and move on.

  1. ∫0∞xe−x dx=[−xe−x]0∞+∫0∞e−x dx\displaystyle\int_0^\infty xe^{-x}\,dx = \big[-xe^{-x}\big]_0^\infty + \int_0^\infty e^{-x}\,dxRight so far as a plan: parts with u=xu = x, dv=e−x dxdv = e^{-x}\,dx, as in Problem 9.
  2. “At infinity e−xe^{-x} is 0, so −xe−x-xe^{-x} is 0 there.”The reasoning that causes the mistake: ∞⋅0\infty\cdot 0 read as 0.
  3. [−xe−x]0∞=0−0\big[-xe^{-x}\big]_0^\infty = 0 - 0The value happens to be right here, because be−b→0be^{-b} \to 0 (Problem 9, step 6), but the line asserts it without a limit, and ∞⋅0\infty\cdot0 is not a value: b⋅1b→1b\cdot\tfrac1b \to 1, while b⋅b−1/2→∞b\cdot b^{-1/2} \to \infty. The same shortcut on ∫1∞x⋅12x−3/2 dx\int_1^\infty x\cdot\tfrac12x^{-3/2}\,dx, by parts with u=xu = x and v=−x−1/2v = -x^{-1/2}, calls the boundary term [−x⋅x−1/2]1∞\big[-x\cdot x^{-1/2}\big]_1^\infty zero at infinity, but at bb it is −b→−∞-\sqrt b \to -\infty, and that integral diverges. Writing lim⁡b→∞\lim_{b\to\infty} is where the answer and the convergence are decided.

Print this set: integration-substitution-and-parts.pdf (problems, answers, and worked solutions on separate pages).