MATH 141 Calculus 2 • McGill University, Montreal

Corrected exercises: the substitution rule (MATH 141)

This is the corrected exercise set for the substitution chapter of MATH 141, Calculus 2, the second calculus course at McGill University. It follows section 5.5 of Stewart, the first technique of integration of the course and the one every later technique leans on. Every number is chosen to be done by hand: the bounds land on ln⁡2\ln 2, π12\frac{\pi}{12} or 73\frac{7}{3}, and the solutions write the line u=…u = \ldots, du=…du = \ldots, and the line of new bounds, because that is where the method marks are.

The thread running through the whole set: a substitution is finished only when the integral contains NO xx at all, not in the integrand, not in the differential, not in the bounds. A constant missing from dudu is supplied by a constant; a variable factor never is. An xx left over after dudu is used is rewritten through uu. The bounds travel through u=g(x)u = g(x), even when they come out in decreasing order. And on a symmetric interval the substitution u=−xu = -x shows that an odd integrand integrates to 00, which settles integrals no antiderivative could reach.

The traps named explicitly in the solutions: dividing by 3x23x^2 to manufacture a dudu, keeping the bounds of xx in an integral in uu, reordering reversed bounds while keeping the minus sign, pulling a stray xx out of the integral as if it were a constant, the sign of ∫tan⁡x dx\int \tan x\,dx, dropping the absolute value of ln⁡∣u∣\ln|u| and declaring a finite integral undefined, answering ln⁡(1+x2)\ln(1 + x^2) for ∫dx1+x2\int \frac{dx}{1 + x^2}, quoting symmetry on an interval that is not symmetric or across a discontinuity, and believing that u=sin⁡xu = \sin x is illegal on [0,π][0, \pi].

10 corrected exercises • 100 points • 150 minutes

Revision sheet for this chapter → Every MATH 141 chapter →

Course recap

  • • Substitution rule: ∫f(g(x)) g′(x) dx=∫f(u) du\int f(g(x))\,g'(x)\,dx = \int f(u)\,du with u=g(x)u = g(x), du=g′(x) dxdu = g'(x)\,dx. It is the chain rule read backwards.
  • • Definite integrals: ∫abf(g(x)) g′(x) dx=∫g(a)g(b)f(u) du\int_a^b f(g(x))\,g'(x)\,dx = \int_{g(a)}^{g(b)}f(u)\,du, valid when g′g' is continuous on [a,b][a, b] and ff is continuous on the values of gg. No one-to-one condition.
  • • A constant missing from dudu is supplied: x dx=12d(x2)x\,dx = \frac{1}{2}d(x^2). A factor containing xx cannot be moved through the integral sign.
  • • Logarithms: ∫g′(x)g(x) dx=ln⁡∣g(x)∣+C\int \frac{g'(x)}{g(x)}\,dx = \ln|g(x)| + C. So ∫tan⁡x dx=−ln⁡∣cos⁡x∣+C=ln⁡∣sec⁡x∣+C\int \tan x\,dx = -\ln|\cos x| + C = \ln|\sec x| + C and ∫cot⁡x dx=ln⁡∣sin⁡x∣+C\int \cot x\,dx = \ln|\sin x| + C.
  • • Table forms after a linear substitution: ∫dxx2+a2=1aarctan⁡xa+C\int \frac{dx}{x^2 + a^2} = \frac{1}{a}\arctan\frac{x}{a} + C and ∫dxa2−x2=arcsin⁡xa+C\int \frac{dx}{\sqrt{a^2 - x^2}} = \arcsin\frac{x}{a} + C for a>0a > 0.
  • • Symmetry, ff continuous on [−a,a][-a, a]: odd ff gives ∫−aaf=0\int_{-a}^a f = 0; even ff gives ∫−aaf=2∫0af\int_{-a}^a f = 2\int_0^a f. Reflection: ∫0af(a−x) dx=∫0af(x) dx\int_0^a f(a - x)\,dx = \int_0^a f(x)\,dx.

Part A: the basics (/50)

Exercise 1: Choosing u: the inside function whose derivative is already there

The substitution rule reads ∫f(g(x)) g′(x) dx=∫f(u) du\int f(g(x))\,g'(x)\,dx = \int f(u)\,du with u=g(x)u = g(x) and du=g′(x) dxdu = g'(x)\,dx. It is the chain rule read backwards, and it applies when the integrand contains an inside function g(x)g(x) AND, as a factor, its derivative g′(x)g'(x), possibly up to a constant multiple.

The whole question is the choice of uu. After the substitution the integral must be written in uu alone: no xx in the integrand, none in the differential. Every answer below must be checked by differentiating it.

  • a) ∫x2(x3+1)5 dx\int x^2 (x^3 + 1)^5\,dx
  • b) ∫cos⁡xx dx\int \frac{\cos\sqrt{x}}{\sqrt{x}}\,dx
  • c) ∫(ln⁡x)3x dx\int \frac{(\ln x)^3}{x}\,dx
  • d) ∫x9−x2 dx\int \frac{x}{\sqrt{9 - x^2}}\,dx. Then say why ∫dx9−x2\int \frac{dx}{\sqrt{9 - x^2}} needs a different uu, and compute it.
  • e) Compute ∫sin⁡xcos⁡x dx\int \sin x \cos x\,dx twice, once with u=sin⁡xu = \sin x and once with u=cos⁡xu = \cos x. The two answers look different: are they both right?
Show the solution

Answers

  • a) (x3+1)618+C\frac{(x^3 + 1)^6}{18} + C
  • b) 2sin⁡x+C2\sin\sqrt{x} + C
  • c) (ln⁡x)44+C\frac{(\ln x)^4}{4} + C
  • d) −9−x2+C-\sqrt{9 - x^2} + C; ∫dx9−x2=arcsin⁡x3+C\int \frac{dx}{\sqrt{9 - x^2}} = \arcsin\frac{x}{3} + C
  • e) sin⁡2x2+C1\frac{\sin^2 x}{2} + C_1 and −cos⁡2x2+C2-\frac{\cos^2 x}{2} + C_2: both right, they differ by the constant 12\frac{1}{2}.

a) The inside function is x3+1x^3 + 1, raised to the fifth power, and its derivative 3x23x^2 is present up to the constant 33. Let u=x3+1u = x^3 + 1, so du=3x2 dxdu = 3x^2\,dx and x2 dx=13dux^2\,dx = \frac{1}{3}du. Then ∫x2(x3+1)5 dx=13∫u5 du=13⋅u66+C=(x3+1)618+C\int x^2(x^3 + 1)^5\,dx = \frac{1}{3}\int u^5\,du = \frac{1}{3}\cdot\frac{u^6}{6} + C = \frac{(x^3 + 1)^6}{18} + C. Check: ddx(x3+1)618=6(x3+1)5⋅3x218=x2(x3+1)5\frac{d}{dx}\frac{(x^3+1)^6}{18} = \frac{6(x^3 + 1)^5 \cdot 3x^2}{18} = x^2(x^3 + 1)^5. The constant 13\frac{1}{3} is legitimate because it is a NUMBER: it can be moved through the integral sign. What cannot be moved is a factor containing xx, and this is exactly why the x2x^2 outside the bracket is the whole reason the substitution works. Expanding (x3+1)5(x^3 + 1)^5 would also succeed, but costs six terms and ten minutes.

b) The inside function is x\sqrt{x}, and its derivative 12x\frac{1}{2\sqrt{x}} sits in the integrand up to the constant 12\frac{1}{2}. Let u=xu = \sqrt{x}, so du=dx2xdu = \frac{dx}{2\sqrt{x}} and dxx=2 du\frac{dx}{\sqrt{x}} = 2\,du. Then ∫cos⁡xx dx=2∫cos⁡u du=2sin⁡u+C=2sin⁡x+C\int \frac{\cos\sqrt{x}}{\sqrt{x}}\,dx = 2\int \cos u\,du = 2\sin u + C = 2\sin\sqrt{x} + C. Check: ddx 2sin⁡x=2cos⁡x⋅12x\frac{d}{dx}\,2\sin\sqrt{x} = 2\cos\sqrt{x}\cdot\frac{1}{2\sqrt{x}}, the integrand. The reflex u=cos⁡xu = \cos\sqrt{x} goes nowhere: its derivative −sin⁡x⋅12x-\sin\sqrt{x}\cdot\frac{1}{2\sqrt x} is not in the integrand. The rule is to choose the INSIDE of the composition, not the outside function.

c) The inside function is ln⁡x\ln x, and its derivative 1x\frac{1}{x} is the other factor. Let u=ln⁡xu = \ln x, du=dxxdu = \frac{dx}{x}: ∫(ln⁡x)3x dx=∫u3 du=u44+C=(ln⁡x)44+C\int \frac{(\ln x)^3}{x}\,dx = \int u^3\,du = \frac{u^4}{4} + C = \frac{(\ln x)^4}{4} + C. Check: ddx(ln⁡x)44=(ln⁡x)3⋅1x\frac{d}{dx}\frac{(\ln x)^4}{4} = (\ln x)^3\cdot\frac{1}{x}. A 1x\frac{1}{x} standing next to a function of ln⁡x\ln x is the most reliable signal of the chapter: it is dudu already written for you.

d) The inside function is 9−x29 - x^2, whose derivative −2x-2x is present up to the constant −2-2. Let u=9−x2u = 9 - x^2, du=−2x dxdu = -2x\,dx, so x dx=−12dux\,dx = -\frac{1}{2}du and ∫x9−x2 dx=−12∫u−1/2 du=−12⋅2u1/2+C=−9−x2+C\int \frac{x}{\sqrt{9 - x^2}}\,dx = -\frac{1}{2}\int u^{-1/2}\,du = -\frac{1}{2}\cdot 2u^{1/2} + C = -\sqrt{9 - x^2} + C. Check: ddx(−9−x2)=−−2x29−x2=x9−x2\frac{d}{dx}\left(-\sqrt{9 - x^2}\right) = -\frac{-2x}{2\sqrt{9 - x^2}} = \frac{x}{\sqrt{9 - x^2}}. Without the factor xx on top, u=9−x2u = 9 - x^2 fails: dudu would need an xx that is not there, and dividing by it is forbidden. The integral ∫dx9−x2\int \frac{dx}{\sqrt{9 - x^2}} is instead a table integral in disguise. Factor 99: 9−x2=31−(x/3)2\sqrt{9 - x^2} = 3\sqrt{1 - (x/3)^2}, then w=x3w = \frac{x}{3}, dx=3 dwdx = 3\,dw, gives ∫3 dw31−w2=arcsin⁡w+C=arcsin⁡x3+C\int \frac{3\,dw}{3\sqrt{1 - w^2}} = \arcsin w + C = \arcsin\frac{x}{3} + C. One factor xx changes the answer from a square root to an inverse sine.

e) With u=sin⁡xu = \sin x, du=cos⁡x dxdu = \cos x\,dx: ∫sin⁡xcos⁡x dx=∫u du=sin⁡2x2+C1\int \sin x\cos x\,dx = \int u\,du = \frac{\sin^2 x}{2} + C_1. With u=cos⁡xu = \cos x, du=−sin⁡x dxdu = -\sin x\,dx: ∫sin⁡xcos⁡x dx=−∫u du=−cos⁡2x2+C2\int \sin x\cos x\,dx = -\int u\,du = -\frac{\cos^2 x}{2} + C_2. Both are right, since both differentiate back to sin⁡xcos⁡x\sin x\cos x. They are not contradictory, because sin⁡2x2−(−cos⁡2x2)=sin⁡2x+cos⁡2x2=12\frac{\sin^2 x}{2} - \left(-\frac{\cos^2 x}{2}\right) = \frac{\sin^2 x + \cos^2 x}{2} = \frac{1}{2}, a constant. Two antiderivatives of the same function on an interval differ by a constant, and the +C+C absorbs it. A third route, sin⁡xcos⁡x=12sin⁡2x\sin x\cos x = \frac{1}{2}\sin 2x with w=2xw = 2x, gives −cos⁡2x4+C3-\frac{\cos 2x}{4} + C_3, again off by a constant. On an exam, any of the three earns full marks; what loses the mark is dropping the +C+ C, which is the only thing that makes the three answers the same answer.

Exercise 2: Definite integrals: change the bounds, or go back to x, never half of each

A definite integral can be computed by substitution along two correct routes. Route 1: find an antiderivative in xx (substitute, integrate, substitute back), then evaluate it at the ORIGINAL bounds. Route 2: carry the bounds through u=g(x)u = g(x), so that x=ax = a becomes u=g(a)u = g(a) and x=bx = b becomes u=g(b)u = g(b), and never come back to xx.

Both routes give the same number. What gives a wrong number is the mixture: an integrand in uu with bounds in xx. The figure shows the integrand of part c).

π/4π/21y = sin(x) e^cos(x)
  • a) Compute ∫03x1+x2 dx\int_0^{\sqrt 3} x\sqrt{1 + x^2}\,dx by route 1, then by route 2.
  • b) Compute ∫1e2ln⁡xx dx\int_1^{e^2} \frac{\sqrt{\ln x}}{x}\,dx.
  • c) Compute ∫0π/2sin⁡x ecos⁡x dx\int_0^{\pi/2} \sin x\, e^{\cos x}\,dx. The new bounds come out in decreasing order: explain what happens to the minus sign of dudu, and use the figure to check the sign of your answer.
  • d) Compute ∫14dxx (1+x)2\int_1^4 \frac{dx}{\sqrt{x}\,(1 + \sqrt{x})^2}.
  • e) A student writes ∫03x1+x2 dx=12∫03u du\int_0^{\sqrt 3} x\sqrt{1 + x^2}\,dx = \frac{1}{2}\int_0^{\sqrt 3}\sqrt{u}\,du. Find the number she obtains, say exactly what is wrong, and name the other mixture that is just as wrong.
Show the solution

Answers

  • a) 73\frac{7}{3} by both routes
  • b) 423\frac{4\sqrt 2}{3}
  • c) e−1e - 1 (positive, as the shaded area requires)
  • d) 13\frac{1}{3}
  • e) She gets 33/43\frac{3^{3/4}}{3}, not 73\frac{7}{3}: uu runs from 11 to 44, not from 00 to 3\sqrt 3.

a) Let u=1+x2u = 1 + x^2, du=2x dxdu = 2x\,dx, so x dx=12dux\,dx = \frac{1}{2}du. Route 1: ∫x1+x2 dx=12∫u1/2 du=13u3/2+C=13(1+x2)3/2+C\int x\sqrt{1 + x^2}\,dx = \frac{1}{2}\int u^{1/2}\,du = \frac{1}{3}u^{3/2} + C = \frac{1}{3}(1 + x^2)^{3/2} + C, then [13(1+x2)3/2]03=13(43/2−13/2)=13(8−1)=73\left[\frac{1}{3}(1 + x^2)^{3/2}\right]_0^{\sqrt 3} = \frac{1}{3}\left(4^{3/2} - 1^{3/2}\right) = \frac{1}{3}(8 - 1) = \frac{7}{3}. Route 2: when x=0x = 0, u=1u = 1; when x=3x = \sqrt 3, u=4u = 4. So ∫03x1+x2 dx=12∫14u1/2 du=13[u3/2]14=73\int_0^{\sqrt 3} x\sqrt{1 + x^2}\,dx = \frac{1}{2}\int_1^4 u^{1/2}\,du = \frac{1}{3}\left[u^{3/2}\right]_1^4 = \frac{7}{3}. The same number, as it must be. Route 2 is shorter and is the one to use on an exam, provided the bound line (when x=…x = \ldots, u=…u = \ldots) is WRITTEN: it is the line the marker looks for.

b) Let u=ln⁡xu = \ln x, du=dxxdu = \frac{dx}{x}. When x=1x = 1, u=ln⁡1=0u = \ln 1 = 0; when x=e2x = e^2, u=2u = 2. Then ∫1e2ln⁡xx dx=∫02u1/2 du=23[u3/2]02=23⋅22=423\int_1^{e^2}\frac{\sqrt{\ln x}}{x}\,dx = \int_0^2 u^{1/2}\,du = \frac{2}{3}\left[u^{3/2}\right]_0^2 = \frac{2}{3}\cdot 2\sqrt 2 = \frac{4\sqrt 2}{3}. The bounds 11 and e2e^2 were chosen for the logarithm: without a calculator, ln⁡(e2)=2\ln(e^2) = 2 is the kind of bound an exam uses, and it only becomes simple AFTER the substitution. Order of magnitude: 2≈1.41\sqrt 2 \approx 1.41, so the answer is about 1.891.89.

c) Let u=cos⁡xu = \cos x, du=−sin⁡x dxdu = -\sin x\,dx, so sin⁡x dx=−du\sin x\,dx = -du. When x=0x = 0, u=cos⁡0=1u = \cos 0 = 1; when x=π2x = \frac{\pi}{2}, u=0u = 0. Then ∫0π/2sin⁡x ecos⁡x dx=∫10eu(−du)=−∫10eu du=∫01eu du=e−1\int_0^{\pi/2}\sin x\,e^{\cos x}\,dx = \int_1^0 e^u(-du) = -\int_1^0 e^u\,du = \int_0^1 e^u\,du = e - 1. The new lower bound 11 is LARGER than the new upper bound 00, and that is fine: keep the bounds in the order the substitution gives them. The minus sign of dudu and the reversed order cancel, since −∫10=∫01-\int_1^0 = \int_0^1. The classic slip is to use one of them and not the other: reorder the bounds to ∫01\int_0^1 AND keep the minus, and the answer becomes 1−e1 - e. The figure refutes it at once: the integrand is positive on (0,π2)\left(0, \frac{\pi}{2}\right), the shaded area is positive, so the integral is positive. With e≈2.72e \approx 2.72, e−1≈1.72e - 1 \approx 1.72, plausible for a region about 1.571.57 wide and at most about 1.51.5 high.

d) The inside function is 1+x1 + \sqrt{x}, and its derivative 12x\frac{1}{2\sqrt x} is present up to the constant 12\frac{1}{2}. Let u=1+xu = 1 + \sqrt{x}, du=dx2xdu = \frac{dx}{2\sqrt x}, so dxx=2 du\frac{dx}{\sqrt x} = 2\,du. When x=1x = 1, u=2u = 2; when x=4x = 4, u=3u = 3. Then ∫14dxx (1+x)2=2∫23u−2 du=2[−1u]23=2(−13+12)=13\int_1^4\frac{dx}{\sqrt x\,(1 + \sqrt x)^2} = 2\int_2^3 u^{-2}\,du = 2\left[-\frac{1}{u}\right]_2^3 = 2\left(-\frac{1}{3} + \frac{1}{2}\right) = \frac{1}{3}. The new bounds are 1+11 + \sqrt 1 and 1+41 + \sqrt 4, not 1\sqrt 1 and 4\sqrt 4: a bound is always the value of the WHOLE uu, constant included.

e) She has substituted in the integrand and the differential but not in the bounds: 12∫03u1/2 du=13[u3/2]03=13(3)3/2=33/43\frac{1}{2}\int_0^{\sqrt 3}u^{1/2}\,du = \frac{1}{3}\left[u^{3/2}\right]_0^{\sqrt 3} = \frac{1}{3}(\sqrt 3)^{3/2} = \frac{3^{3/4}}{3}, about 0.760.76, instead of 73≈2.33\frac{7}{3} \approx 2.33. The numbers 00 and 3\sqrt 3 are values of xx; the variable of her new integral is uu, which runs from 11 to 44. Her integral still contains an xx, hidden in the bounds, and that is exactly the unfinished substitution. The symmetric mixture is just as wrong: change the bounds to 11 and 44, then substitute back to xx and evaluate 13[(1+x2)3/2]14=13(173/2−8)\frac{1}{3}\left[(1 + x^2)^{3/2}\right]_1^4 = \frac{1}{3}\left(17^{3/2} - 8\right), which is about 20.720.7. Choose a route and follow it to the end: bounds in xx with an antiderivative in xx, or bounds in uu with an antiderivative in uu.

Exercise 3: When an x survives: rewrite it in terms of u

Sometimes, once u=g(x)u = g(x) is chosen and dudu has absorbed what it can, an xx is left in the integrand. It is NOT a constant and it cannot be pulled out of the integral. It must be rewritten: solve u=g(x)u = g(x) for xx (or for the power of xx that appears) and replace it.

Only then is the integral written in uu alone, and only then can it be integrated.

  • a) ∫xx−1 dx\int x\sqrt{x - 1}\,dx
  • b) ∫03xx+1 dx\int_0^3 \frac{x}{\sqrt{x + 1}}\,dx
  • c) ∫x3x2+1 dx\int x^3\sqrt{x^2 + 1}\,dx. Explain how the factor x3x^3 is split.
  • d) A student writes ∫xx−1 dx=x∫u du=23x(x−1)3/2+C\int x\sqrt{x - 1}\,dx = x\int \sqrt{u}\,du = \frac{2}{3}x(x - 1)^{3/2} + C. Show by differentiation that this is wrong, and identify the term that betrays the error.
  • e) ∫04dx1+x\int_0^4 \frac{dx}{1 + \sqrt x}, with u=1+xu = 1 + \sqrt{x}. Here it is dxdx itself that must be rewritten.
Show the solution

Answers

  • a) 25(x−1)5/2+23(x−1)3/2+C\frac{2}{5}(x - 1)^{5/2} + \frac{2}{3}(x - 1)^{3/2} + C
  • b) 83\frac{8}{3}
  • c) 15(x2+1)5/2−13(x2+1)3/2+C\frac{1}{5}(x^2 + 1)^{5/2} - \frac{1}{3}(x^2 + 1)^{3/2} + C
  • d) Its derivative is xx−1+23(x−1)3/2x\sqrt{x - 1} + \frac{2}{3}(x - 1)^{3/2}: one term too many.
  • e) 4−2ln⁡34 - 2\ln 3

a) Let u=x−1u = x - 1, du=dxdu = dx. The factor x−1\sqrt{x - 1} becomes u\sqrt u, but a factor xx remains. From u=x−1u = x - 1: x=u+1x = u + 1. So ∫xx−1 dx=∫(u+1)u1/2 du=∫(u3/2+u1/2)du=25u5/2+23u3/2+C=25(x−1)5/2+23(x−1)3/2+C\int x\sqrt{x - 1}\,dx = \int (u + 1)u^{1/2}\,du = \int \left(u^{3/2} + u^{1/2}\right)du = \frac{2}{5}u^{5/2} + \frac{2}{3}u^{3/2} + C = \frac{2}{5}(x - 1)^{5/2} + \frac{2}{3}(x - 1)^{3/2} + C. Check: the derivative is (x−1)3/2+(x−1)1/2=(x−1)1/2[(x−1)+1]=xx−1(x - 1)^{3/2} + (x - 1)^{1/2} = (x - 1)^{1/2}\left[(x - 1) + 1\right] = x\sqrt{x - 1}. The substitution does not simplify the root, it moves the difficulty to a place where the power rule applies: (u+1)u(u + 1)\sqrt u expands, xx−1x\sqrt{x - 1} does not.

b) Let u=x+1u = x + 1, du=dxdu = dx, x=u−1x = u - 1. When x=0x = 0, u=1u = 1; when x=3x = 3, u=4u = 4. Then ∫03xx+1 dx=∫14u−1u du=∫14(u1/2−u−1/2)du=[23u3/2−2u1/2]14=(163−4)−(23−2)=43+43=83\int_0^3\frac{x}{\sqrt{x + 1}}\,dx = \int_1^4\frac{u - 1}{\sqrt u}\,du = \int_1^4\left(u^{1/2} - u^{-1/2}\right)du = \left[\frac{2}{3}u^{3/2} - 2u^{1/2}\right]_1^4 = \left(\frac{16}{3} - 4\right) - \left(\frac{2}{3} - 2\right) = \frac{4}{3} + \frac{4}{3} = \frac{8}{3}. The division u−1u\frac{u - 1}{\sqrt u} is term by term, uu=u1/2\frac{u}{\sqrt u} = u^{1/2} and 1u=u−1/2\frac{1}{\sqrt u} = u^{-1/2}. Sanity check: the integrand grows from 00 to 32\frac{3}{2} on an interval of length 33, so the integral lies between 00 and 4.54.5; 83≈2.67\frac{8}{3} \approx 2.67 fits.

c) The inside function is x2+1x^2 + 1, with derivative 2x2x. Write x3 dx=x2⋅x dxx^3\,dx = x^2\cdot x\,dx: ONE factor xx goes with dxdx to form dudu, the other two form x2x^2, which is rewritten. Let u=x2+1u = x^2 + 1, du=2x dxdu = 2x\,dx, x dx=12dux\,dx = \frac{1}{2}du, x2=u−1x^2 = u - 1. Then ∫x3x2+1 dx=12∫(u−1)u1/2 du=12(25u5/2−23u3/2)+C=15(x2+1)5/2−13(x2+1)3/2+C\int x^3\sqrt{x^2 + 1}\,dx = \frac{1}{2}\int (u - 1)u^{1/2}\,du = \frac{1}{2}\left(\frac{2}{5}u^{5/2} - \frac{2}{3}u^{3/2}\right) + C = \frac{1}{5}(x^2 + 1)^{5/2} - \frac{1}{3}(x^2 + 1)^{3/2} + C. Check: the derivative is x(x2+1)3/2−x(x2+1)1/2=x(x2+1)1/2[(x2+1)−1]=x3x2+1x(x^2 + 1)^{3/2} - x(x^2 + 1)^{1/2} = x(x^2 + 1)^{1/2}\left[(x^2 + 1) - 1\right] = x^3\sqrt{x^2 + 1}. The split works because the leftover power is EVEN: x2x^2 is a function of x2+1x^2 + 1. With x2x2+1x^2\sqrt{x^2 + 1} the leftover would be a single x=u−1x = \sqrt{u - 1}, and that integral belongs to the trigonometric substitution chapter.

d) Differentiate her answer with the product rule: ddx[23x(x−1)3/2]=23(x−1)3/2+23x⋅32(x−1)1/2=23(x−1)3/2+xx−1\frac{d}{dx}\left[\frac{2}{3}x(x - 1)^{3/2}\right] = \frac{2}{3}(x - 1)^{3/2} + \frac{2}{3}x\cdot\frac{3}{2}(x - 1)^{1/2} = \frac{2}{3}(x - 1)^{3/2} + x\sqrt{x - 1}. The second term is the integrand; the first, 23(x−1)3/2\frac{2}{3}(x - 1)^{3/2}, is extra, and it is precisely the derivative of the xx she froze. At x=2x = 2 her derivative is 23+2=83\frac{2}{3} + 2 = \frac{8}{3} where the integrand is 22. Only a CONSTANT passes through the integral sign; xx varies, so ∫x h(x) dx≠x∫h(x) dx\int x\,h(x)\,dx \ne x\int h(x)\,dx. The correct answer is that of part a).

e) Let u=1+xu = 1 + \sqrt{x}. Here du=dx2xdu = \frac{dx}{2\sqrt x} does not appear in the integrand, so solve for xx instead: x=u−1\sqrt{x} = u - 1, x=(u−1)2x = (u - 1)^2 and dx=2(u−1) dudx = 2(u - 1)\,du. When x=0x = 0, u=1u = 1; when x=4x = 4, u=3u = 3. Then ∫04dx1+x=∫132(u−1)u du=∫13(2−2u)du=[2u−2ln⁡u]13=(6−2ln⁡3)−(2−0)=4−2ln⁡3\int_0^4\frac{dx}{1 + \sqrt x} = \int_1^3\frac{2(u - 1)}{u}\,du = \int_1^3\left(2 - \frac{2}{u}\right)du = \left[2u - 2\ln u\right]_1^3 = (6 - 2\ln 3) - (2 - 0) = 4 - 2\ln 3. With ln⁡3≈1.10\ln 3 \approx 1.10 that is about 1.801.80, and the integrand falls from 11 to 13\frac{1}{3} over a length 44, so the value must lie between 43\frac{4}{3} and 44: it does. Rewriting dxdx through uu is the same gesture as rewriting a stray xx: whatever is left in xx is expressed in uu.

Exercise 4: Numerator equals derivative of the denominator: logarithms and their absolute value

When the numerator of a fraction is the derivative of its denominator, up to a constant, the substitution u=u = denominator turns the integral into ∫duu=ln⁡∣u∣+C\int \frac{du}{u} = \ln|u| + C. So ∫g′(x)g(x) dx=ln⁡∣g(x)∣+C\int \frac{g'(x)}{g(x)}\,dx = \ln|g(x)| + C.

The absolute value is not decoration: ln⁡∣u∣\ln|u| is an antiderivative of 1u\frac{1}{u} on each interval where u≠0u \ne 0, including where u<0u < 0. The figure shows y=tan⁡xy = \tan x on [0,π3]\left[0, \frac{\pi}{3}\right].

π/3π/2123y = tan x
  • a) Compute ∫tan⁡x dx\int \tan x\,dx and ∫cot⁡x dx\int \cot x\,dx. Give both usual forms of the first answer.
  • b) Compute ∫0π/3tan⁡x dx\int_0^{\pi/3}\tan x\,dx and ∫π/6π/2cot⁡x dx\int_{\pi/6}^{\pi/2}\cot x\,dx, and check the sign of the first against the figure.
  • c) Compute ∫2x+3x2+3x+5 dx\int \frac{2x + 3}{x^2 + 3x + 5}\,dx and ∫exex+3 dx\int \frac{e^x}{e^x + 3}\,dx. Is an absolute value needed in either answer?
  • d) Compute ∫−102xx2−4 dx\int_{-1}^{0}\frac{2x}{x^2 - 4}\,dx. A student stops, saying that ln⁡(−4)\ln(-4) does not exist. Answer him.
  • e) Compute ∫ee3dxxln⁡x\int_e^{e^3}\frac{dx}{x\ln x}. Then explain why ∫dx1+x2\int \frac{dx}{1 + x^2} is NOT ln⁡(1+x2)+C\ln(1 + x^2) + C, and give its value.
Show the solution

Answers

  • a) ∫tan⁡x dx=−ln⁡∣cos⁡x∣+C=ln⁡∣sec⁡x∣+C\int \tan x\,dx = -\ln|\cos x| + C = \ln|\sec x| + C; ∫cot⁡x dx=ln⁡∣sin⁡x∣+C\int \cot x\,dx = \ln|\sin x| + C
  • b) ln⁡2\ln 2 and ln⁡2\ln 2
  • c) ln⁡(x2+3x+5)+C\ln(x^2 + 3x + 5) + C and ln⁡(ex+3)+C\ln(e^x + 3) + C: no absolute value needed, both denominators are positive.
  • d) ln⁡43\ln\frac{4}{3}: with ln⁡∣x2−4∣\ln|x^2 - 4| nothing is undefined.
  • e) ln⁡3\ln 3; ∫dx1+x2=arctan⁡x+C\int \frac{dx}{1 + x^2} = \arctan x + C

a) Write tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x}. The derivative of the denominator is −sin⁡x-\sin x, the numerator up to the constant −1-1. Let u=cos⁡xu = \cos x, du=−sin⁡x dxdu = -\sin x\,dx: ∫tan⁡x dx=−∫duu=−ln⁡∣cos⁡x∣+C\int \tan x\,dx = -\int \frac{du}{u} = -\ln|\cos x| + C. Since −ln⁡∣cos⁡x∣=ln⁡1∣cos⁡x∣-\ln|\cos x| = \ln\frac{1}{|\cos x|}, the same answer reads ln⁡∣sec⁡x∣+C\ln|\sec x| + C, the form of Stewart's table. For the cotangent, cot⁡x=cos⁡xsin⁡x\cot x = \frac{\cos x}{\sin x} and u=sin⁡xu = \sin x, du=cos⁡x dxdu = \cos x\,dx give ∫cot⁡x dx=ln⁡∣sin⁡x∣+C\int \cot x\,dx = \ln|\sin x| + C, with no minus sign. The two signs are opposite because the derivatives of cos⁡\cos and sin⁡\sin have opposite signs; forgetting the minus of d(cos⁡x)d(\cos x) is the most common error on this integral, and part b) shows how to catch it.

b) ∫0π/3tan⁡x dx=[−ln⁡∣cos⁡x∣]0π/3=−ln⁡12+ln⁡1=ln⁡2\int_0^{\pi/3}\tan x\,dx = \left[-\ln|\cos x|\right]_0^{\pi/3} = -\ln\frac{1}{2} + \ln 1 = \ln 2. On (0,π3)\left(0, \frac{\pi}{3}\right) the tangent is positive, the shaded region of the figure lies above the axis, so the integral must be positive: ln⁡2≈0.69\ln 2 \approx 0.69 is, and the region, about 1.051.05 wide and at most 3≈1.73\sqrt 3 \approx 1.73 high but mostly much lower, is consistent with it. The wrong sign convention, ln⁡∣cos⁡x∣\ln|\cos x|, gives −ln⁡2-\ln 2, negative for a positive integrand: reject it on sight. Then ∫π/6π/2cot⁡x dx=[ln⁡∣sin⁡x∣]π/6π/2=ln⁡1−ln⁡12=ln⁡2\int_{\pi/6}^{\pi/2}\cot x\,dx = \left[\ln|\sin x|\right]_{\pi/6}^{\pi/2} = \ln 1 - \ln\frac{1}{2} = \ln 2. The two answers agree, and they should: the substitution x↦π2−xx \mapsto \frac{\pi}{2} - x exchanges tan⁡\tan and cot⁡\cot and maps [0,π3]\left[0, \frac{\pi}{3}\right] onto [π6,π2]\left[\frac{\pi}{6}, \frac{\pi}{2}\right].

c) The derivative of x2+3x+5x^2 + 3x + 5 is exactly 2x+32x + 3. With u=x2+3x+5u = x^2 + 3x + 5, du=(2x+3) dxdu = (2x + 3)\,dx and ∫2x+3x2+3x+5 dx=ln⁡∣x2+3x+5∣+C\int \frac{2x + 3}{x^2 + 3x + 5}\,dx = \ln|x^2 + 3x + 5| + C. The discriminant of the denominator is 9−20=−11<09 - 20 = -11 < 0 and its leading coefficient is positive, so x2+3x+5>0x^2 + 3x + 5 > 0 for every xx (it equals (x+32)2+114\left(x + \frac{3}{2}\right)^2 + \frac{11}{4}), and the answer may be written ln⁡(x2+3x+5)+C\ln(x^2 + 3x + 5) + C. Likewise u=ex+3u = e^x + 3, du=ex dxdu = e^x\,dx give ∫exex+3 dx=ln⁡(ex+3)+C\int \frac{e^x}{e^x + 3}\,dx = \ln(e^x + 3) + C, and ex+3>3e^x + 3 > 3 needs no absolute value. Dropping the bars is allowed only after a sentence that proves the argument is positive; without that sentence, keep them.

d) Let u=x2−4u = x^2 - 4, du=2x dxdu = 2x\,dx. When x=−1x = -1, u=−3u = -3; when x=0x = 0, u=−4u = -4. Then ∫−102xx2−4 dx=∫−3−4duu=[ln⁡∣u∣]−3−4=ln⁡4−ln⁡3=ln⁡43\int_{-1}^0\frac{2x}{x^2 - 4}\,dx = \int_{-3}^{-4}\frac{du}{u} = \left[\ln|u|\right]_{-3}^{-4} = \ln 4 - \ln 3 = \ln\frac{4}{3}. The student used ln⁡u\ln u where the antiderivative of 1u\frac{1}{u} is ln⁡∣u∣\ln|u|: on the interval [−4,−3][-4, -3], where uu is negative, ln⁡∣u∣=ln⁡(−u)\ln|u| = \ln(-u) is perfectly defined and its derivative is −1−u=1u\frac{-1}{-u} = \frac{1}{u}. The integrand is continuous on [−1,0][-1, 0] (the denominator vanishes only at ±2\pm 2), so the integral certainly exists. Sign check: on (−1,0)(-1, 0) the numerator 2x2x and the denominator x2−4x^2 - 4 are both negative, the integrand is positive, and ln⁡43>0\ln\frac{4}{3} > 0.

e) The numerator is not visibly the derivative of the denominator, until the fraction is read as 1/xln⁡x\frac{1/x}{\ln x}: the derivative of ln⁡x\ln x is 1x\frac{1}{x}. Let u=ln⁡xu = \ln x, du=dxxdu = \frac{dx}{x}; when x=ex = e, u=1u = 1; when x=e3x = e^3, u=3u = 3. Then ∫ee3dxxln⁡x=∫13duu=ln⁡3−ln⁡1=ln⁡3\int_e^{e^3}\frac{dx}{x\ln x} = \int_1^3\frac{du}{u} = \ln 3 - \ln 1 = \ln 3. As for ∫dx1+x2\int \frac{dx}{1 + x^2}: the derivative of ln⁡(1+x2)\ln(1 + x^2) is 2x1+x2\frac{2x}{1 + x^2}, not 11+x2\frac{1}{1 + x^2}. The rule ln⁡∣g∣\ln|g| needs g′g' ON TOP, and here the numerator 11 is not a constant multiple of 2x2x. No substitution is needed at all: ∫dx1+x2=arctan⁡x+C\int \frac{dx}{1 + x^2} = \arctan x + C is in the table. The same denominator gives a logarithm with xx on top and an inverse tangent with 11 on top, and exercise 6 turns that difference into a method.

Exercise 5: Symmetric intervals: odd integrands vanish, even ones double

Let ff be continuous on [−a,a][-a, a]. If ff is ODD, that is f(−x)=−f(x)f(-x) = -f(x), then ∫−aaf(x) dx=0\int_{-a}^a f(x)\,dx = 0. If ff is EVEN, f(−x)=f(x)f(-x) = f(x), then ∫−aaf(x) dx=2∫0af(x) dx\int_{-a}^a f(x)\,dx = 2\int_0^a f(x)\,dx. Both facts are proved by one substitution, u=−xu = -x, and they settle integrals that no technique of the course could compute directly.

The figure shows the odd function y=x4−x2y = x\sqrt{4 - x^2} on [−2,2][-2, 2].

-3-2-1123-3-2-1123y = x √(4 − x²)
  • a) Prove the odd case: split ∫−aa\int_{-a}^a at 00 and use u=−xu = -x on ∫−a0f(x) dx\int_{-a}^0 f(x)\,dx. Point to where continuity on [−a,a][-a, a] is used.
  • b) Give ∫−22x4−x2 dx\int_{-2}^2 x\sqrt{4 - x^2}\,dx without computing. Then compute ∫02x4−x2 dx\int_0^2 x\sqrt{4 - x^2}\,dx and deduce the total area of the shaded region.
  • c) Compute ∫−11(sin⁡x1+x2+x2cos⁡(x3))dx\int_{-1}^1\left(\frac{\sin x}{1 + x^2} + x^2\cos(x^3)\right)dx.
  • d) Two claims: ∫−11dxx3=0\int_{-1}^1\frac{dx}{x^3} = 0 because 1x3\frac{1}{x^3} is odd, and ∫−12x3 dx=0\int_{-1}^2 x^3\,dx = 0 because x3x^3 is odd. Say what is wrong with each, and compute the second integral correctly.
  • e) Compute ∫02[(x−1)3e(x−1)2+3(x−1)2]dx\int_0^2\left[(x - 1)^3 e^{(x - 1)^2} + 3(x - 1)^2\right]dx with the substitution u=x−1u = x - 1 first.
Show the solution

Answers

  • a) ∫−a0f(x) dx=∫0af(−u) du=−∫0af(u) du\int_{-a}^0 f(x)\,dx = \int_0^a f(-u)\,du = -\int_0^a f(u)\,du, which cancels ∫0af\int_0^a f.
  • b) 00; ∫02x4−x2 dx=83\int_0^2 x\sqrt{4 - x^2}\,dx = \frac{8}{3}; shaded area 163\frac{16}{3}.
  • c) 0+23sin⁡1=23sin⁡10 + \frac{2}{3}\sin 1 = \frac{2}{3}\sin 1
  • d) First: not continuous at 00, the theorem does not apply. Second: [−1,2][-1, 2] is not symmetric; the value is 154\frac{15}{4}.
  • e) 0+2=20 + 2 = 2

a) Split: ∫−aaf(x) dx=∫−a0f(x) dx+∫0af(x) dx\int_{-a}^a f(x)\,dx = \int_{-a}^0 f(x)\,dx + \int_0^a f(x)\,dx. In the first integral let u=−xu = -x, du=−dxdu = -dx; when x=−ax = -a, u=au = a; when x=0x = 0, u=0u = 0. So ∫−a0f(x) dx=∫a0f(−u)(−du)=∫0af(−u) du=−∫0af(u) du\int_{-a}^0 f(x)\,dx = \int_a^0 f(-u)(-du) = \int_0^a f(-u)\,du = -\int_0^a f(u)\,du, using f(−u)=−f(u)f(-u) = -f(u). A variable of integration is a dummy letter, so ∫0af(u) du=∫0af(x) dx\int_0^a f(u)\,du = \int_0^a f(x)\,dx, and the two pieces cancel: the total is 00. For an even ff, the same lines with f(−u)=f(u)f(-u) = f(u) give ∫−a0f=∫0af\int_{-a}^0 f = \int_0^a f, hence the factor 22. Continuity on the WHOLE of [−a,a][-a, a] is what makes each of these integrals exist in the first place; the substitution itself only reflects the interval.

b) f(x)=x4−x2f(x) = x\sqrt{4 - x^2} satisfies f(−x)=−x4−x2=−f(x)f(-x) = -x\sqrt{4 - x^2} = -f(x) and is continuous on [−2,2][-2, 2]: it is odd, so ∫−22x4−x2 dx=0\int_{-2}^2 x\sqrt{4 - x^2}\,dx = 0, with no computation. For the right half, let u=4−x2u = 4 - x^2, du=−2x dxdu = -2x\,dx; when x=0x = 0, u=4u = 4; when x=2x = 2, u=0u = 0. Then ∫02x4−x2 dx=−12∫40u1/2 du=12∫04u1/2 du=13[u3/2]04=83\int_0^2 x\sqrt{4 - x^2}\,dx = -\frac{1}{2}\int_4^0 u^{1/2}\,du = \frac{1}{2}\int_0^4 u^{1/2}\,du = \frac{1}{3}\left[u^{3/2}\right]_0^4 = \frac{8}{3}. The shaded region has two lobes, the right one above the axis and the left one below, each of area 83\frac{8}{3}: the INTEGRAL is 83−83=0\frac{8}{3} - \frac{8}{3} = 0 but the AREA is 163\frac{16}{3}. The symmetry theorem computes signed integrals; an area question asks for 2∫022\int_0^2.

c) Split the integral. The function sin⁡x1+x2\frac{\sin x}{1 + x^2} is odd (odd numerator, even denominator) and continuous on [−1,1][-1, 1], so its integral is 00. This is the point of the theorem: no technique of the course finds an antiderivative of sin⁡x1+x2\frac{\sin x}{1 + x^2}, and none is needed. The function x2cos⁡(x3)x^2\cos(x^3) is even, since (−x)2=x2(-x)^2 = x^2 and cos⁡((−x)3)=cos⁡(−x3)=cos⁡(x3)\cos((-x)^3) = \cos(-x^3) = \cos(x^3), so its integral is 2∫01x2cos⁡(x3) dx2\int_0^1 x^2\cos(x^3)\,dx. With u=x3u = x^3, du=3x2 dxdu = 3x^2\,dx, bounds 00 and 11: 2⋅13∫01cos⁡u du=23sin⁡12\cdot\frac{1}{3}\int_0^1\cos u\,du = \frac{2}{3}\sin 1. Total: 23sin⁡1\frac{2}{3}\sin 1, an exact answer; sin⁡1\sin 1 is a number like π\pi and is left as it is.

d) The first claim fails the hypothesis: 1x3\frac{1}{x^3} is not defined at 00, so it is not continuous on [−1,1][-1, 1], and the theorem says nothing. The two halves are not finite numbers that cancel; ∫−11x−3 dx\int_{-1}^1 x^{-3}\,dx is not even a definite integral in the sense of this chapter, and such integrals are treated, and shown to diverge, in the chapter on improper integrals. The second claim fails the other hypothesis: [−1,2][-1, 2] is not symmetric about 00. Split it into the symmetric part and the rest: ∫−12x3 dx=∫−11x3 dx+∫12x3 dx=0+[x44]12=4−14=154\int_{-1}^2 x^3\,dx = \int_{-1}^1 x^3\,dx + \int_1^2 x^3\,dx = 0 + \left[\frac{x^4}{4}\right]_1^2 = 4 - \frac{1}{4} = \frac{15}{4}. Check directly: [x44]−12=4−14\left[\frac{x^4}{4}\right]_{-1}^2 = 4 - \frac{1}{4}. Before quoting symmetry, write the two checks: the interval is [−a,a][-a, a], and the integrand is continuous on it.

e) Let u=x−1u = x - 1, du=dxdu = dx; when x=0x = 0, u=−1u = -1; when x=2x = 2, u=1u = 1. The integral becomes ∫−11(u3eu2+3u2)du\int_{-1}^1\left(u^3 e^{u^2} + 3u^2\right)du on a symmetric interval. The function u3eu2u^3e^{u^2} is odd and continuous, so its integral is 00; the function 3u23u^2 is even and gives [u3]−11=2\left[u^3\right]_{-1}^1 = 2. Total: 22. The shift u=x−1u = x - 1 reveals that the original integrand is odd ABOUT x=1x = 1, the midpoint of [0,2][0, 2]: symmetry is a property of the integrand relative to the centre of the interval, and a translation brings that centre to 00. The odd part could also be done by w=u2w = u^2, which gives 12∫11wew dw=0\frac{1}{2}\int_1^1 w e^{w}\,dw = 0 because the new bounds coincide.

Part B: problems and reasoning (/50)

Exercise 6: Integrals that look alike: logarithm, inverse tangent or inverse sine

The five integrals below differ by a power of xx or by where the square sits. They do not have the same kind of answer: one is a logarithm, one an inverse tangent, one an inverse sine, one a plain power. What decides is not the look of the denominator but what dudu can absorb.

For each one, name uu, write dudu, and say which formula of the table the integral in uu is.

  • a) ∫x1+x2 dx\int \frac{x}{1 + x^2}\,dx and ∫dx1+x2\int \frac{dx}{1 + x^2}.
  • b) ∫x1+x4 dx\int \frac{x}{1 + x^4}\,dx
  • c) ∫x31+x4 dx\int \frac{x^3}{1 + x^4}\,dx
  • d) ∫0ln⁡3ex1+e2x dx\int_0^{\ln\sqrt 3}\frac{e^x}{1 + e^{2x}}\,dx
  • e) ∫01x2−x4 dx\int_0^1\frac{x}{\sqrt{2 - x^4}}\,dx, and, for contrast, ∫x2−x2 dx\int \frac{x}{\sqrt{2 - x^2}}\,dx.
Show the solution

Answers

  • a) 12ln⁡(1+x2)+C\frac{1}{2}\ln(1 + x^2) + C and arctan⁡x+C\arctan x + C
  • b) 12arctan⁡(x2)+C\frac{1}{2}\arctan(x^2) + C
  • c) 14ln⁡(1+x4)+C\frac{1}{4}\ln(1 + x^4) + C
  • d) π3−π4=π12\frac{\pi}{3} - \frac{\pi}{4} = \frac{\pi}{12}
  • e) π8\frac{\pi}{8}; ∫x2−x2 dx=−2−x2+C\int \frac{x}{\sqrt{2 - x^2}}\,dx = -\sqrt{2 - x^2} + C

a) In x1+x2\frac{x}{1 + x^2} the numerator is half the derivative of the denominator: u=1+x2u = 1 + x^2, du=2x dxdu = 2x\,dx, and ∫x1+x2 dx=12∫duu=12ln⁡(1+x2)+C\int \frac{x}{1 + x^2}\,dx = \frac{1}{2}\int \frac{du}{u} = \frac{1}{2}\ln(1 + x^2) + C, no absolute value since 1+x2>01 + x^2 > 0. In 11+x2\frac{1}{1 + x^2} there is no xx on top to build du=2x dxdu = 2x\,dx, so u=1+x2u = 1 + x^2 is impossible; and no substitution is needed, since ∫dx1+x2=arctan⁡x+C\int \frac{dx}{1 + x^2} = \arctan x + C is the table. The answer ln⁡(1+x2)\ln(1 + x^2) for the second integral is wrong, and its derivative, 2x1+x2\frac{2x}{1 + x^2}, shows it at once.

b) Here u=1+x4u = 1 + x^4 would need du=4x3 dxdu = 4x^3\,dx, and only xx is on top. But x4=(x2)2x^4 = (x^2)^2, and x dxx\,dx is half of d(x2)d(x^2). Let u=x2u = x^2, du=2x dxdu = 2x\,dx: ∫x1+x4 dx=12∫du1+u2=12arctan⁡u+C=12arctan⁡(x2)+C\int \frac{x}{1 + x^4}\,dx = \frac{1}{2}\int \frac{du}{1 + u^2} = \frac{1}{2}\arctan u + C = \frac{1}{2}\arctan(x^2) + C. Check: ddx12arctan⁡(x2)=12⋅2x1+x4\frac{d}{dx}\frac{1}{2}\arctan(x^2) = \frac{1}{2}\cdot\frac{2x}{1 + x^4}. The substitution does not simplify the denominator, it turns 1+x41 + x^4 into 1+u21 + u^2, the denominator of the table's inverse tangent.

c) Now the numerator x3x^3 is a quarter of the derivative of 1+x41 + x^4. Let u=1+x4u = 1 + x^4, du=4x3 dxdu = 4x^3\,dx: ∫x31+x4 dx=14∫duu=14ln⁡(1+x4)+C\int \frac{x^3}{1 + x^4}\,dx = \frac{1}{4}\int\frac{du}{u} = \frac{1}{4}\ln(1 + x^4) + C. Compare with b): the same denominator, a numerator x3x^3 instead of xx, and the answer switches from an inverse tangent to a logarithm. The test is always the same: which function of xx, differentiated, gives the numerator up to a constant? 1+x41 + x^4 gives 4x34x^3; x2x^2 gives 2x2x.

d) Since e2x=(ex)2e^{2x} = (e^x)^2 and ex dx=d(ex)e^x\,dx = d(e^x), let u=exu = e^x, du=ex dxdu = e^x\,dx. When x=0x = 0, u=1u = 1; when x=ln⁡3x = \ln\sqrt 3, u=3u = \sqrt 3. Then ∫0ln⁡3ex1+e2x dx=∫13du1+u2=arctan⁡3−arctan⁡1=π3−π4=π12\int_0^{\ln\sqrt 3}\frac{e^x}{1 + e^{2x}}\,dx = \int_1^{\sqrt 3}\frac{du}{1 + u^2} = \arctan\sqrt 3 - \arctan 1 = \frac{\pi}{3} - \frac{\pi}{4} = \frac{\pi}{12}. The bound ln⁡3=12ln⁡3\ln\sqrt 3 = \frac{1}{2}\ln 3 looks awkward in xx and becomes the tidy 3\sqrt 3 in uu: on a no-calculator exam, bounds like this are a strong hint that the substitution u=exu = e^x is the intended route. Choosing u=1+e2xu = 1 + e^{2x} fails: du=2e2x dxdu = 2e^{2x}\,dx, and the numerator is only exe^x.

e) As in b), x4=(x2)2x^4 = (x^2)^2 and x dx=12d(x2)x\,dx = \frac{1}{2}d(x^2). Let u=x2u = x^2, du=2x dxdu = 2x\,dx, bounds 00 and 11: ∫01x2−x4 dx=12∫01du2−u2\int_0^1\frac{x}{\sqrt{2 - x^4}}\,dx = \frac{1}{2}\int_0^1\frac{du}{\sqrt{2 - u^2}}. Factor 22 under the root, 2−u2=21−(u/2)2\sqrt{2 - u^2} = \sqrt 2\sqrt{1 - (u/\sqrt 2)^2}, and let w=u2w = \frac{u}{\sqrt 2}, du=2 dwdu = \sqrt 2\,dw, bounds 00 and 12\frac{1}{\sqrt 2}: 12∫01/2dw1−w2=12arcsin⁡12=12⋅π4=π8\frac{1}{2}\int_0^{1/\sqrt 2}\frac{dw}{\sqrt{1 - w^2}} = \frac{1}{2}\arcsin\frac{1}{\sqrt 2} = \frac{1}{2}\cdot\frac{\pi}{4} = \frac{\pi}{8}. For contrast, in x2−x2\frac{x}{\sqrt{2 - x^2}} the root contains x2x^2, whose derivative −2x-2x IS the numerator up to a constant: u=2−x2u = 2 - x^2 gives −12∫u−1/2 du=−2−x2+C-\frac{1}{2}\int u^{-1/2}\,du = -\sqrt{2 - x^2} + C, a plain power with no inverse sine anywhere. The same xx on top plays two different roles: with x2x^2 under the root it completes the dudu of the whole root, with x4x^4 it completes the dudu of the square x2x^2.

Exercise 7: An unknown function: the substitution must carry the bounds

A function ff is continuous on [0,4][0, 4], and all that is known about it is ∫04f(x) dx=10\int_0^4 f(x)\,dx = 10 and ∫02f(x) dx=3\int_0^2 f(x)\,dx = 3. No formula is given, so no antiderivative can be written: the only way to use the substitution rule is route 2, carrying the bounds, until the integral in uu is one of the two given ones.

The figure shows one possible ff (solid) and the graph of y=f(2x)y = f(2x) on [0,2][0, 2] (dashed), with the region under f(2x)f(2x) shaded.

1234512345y = f(x)y = f(2x)
  • a) Compute ∫02f(2x) dx\int_0^2 f(2x)\,dx.
  • b) Compute ∫02x f(x2) dx\int_0^{\sqrt 2} x\,f(x^2)\,dx.
  • c) Compute ∫0π/2cos⁡x f(4sin⁡x) dx\int_0^{\pi/2}\cos x\,f(4\sin x)\,dx.
  • d) Compute ∫12f(2x) dx\int_1^2 f(2x)\,dx, using BOTH pieces of data.
  • e) A student finds ∫02f(2x) dx=32\int_0^2 f(2x)\,dx = \frac{3}{2}. Find her error, and explain on the figure why the answer to a) must be half of 1010.
Show the solution

Answers

  • a) 55
  • b) 32\frac{3}{2}
  • c) 52\frac{5}{2}
  • d) 12(10−3)=72\frac{1}{2}(10 - 3) = \frac{7}{2}
  • e) She kept the bounds 00 and 22; u=2xu = 2x runs over [0,4][0, 4], and squeezing by 22 halves the area of 1010.

a) Let u=2xu = 2x, du=2 dxdu = 2\,dx, so dx=12dudx = \frac{1}{2}du. When x=0x = 0, u=0u = 0; when x=2x = 2, u=4u = 4. Then ∫02f(2x) dx=12∫04f(u) du=12⋅10=5\int_0^2 f(2x)\,dx = \frac{1}{2}\int_0^4 f(u)\,du = \frac{1}{2}\cdot 10 = 5. The last step uses that the letter of integration is a dummy: ∫04f(u) du\int_0^4 f(u)\,du and ∫04f(x) dx\int_0^4 f(x)\,dx are the same number. Without a formula for ff there was no other route: an antiderivative cannot be written, but a change of bounds can always be made.

b) The inside function is x2x^2 and the factor xx is half its derivative. Let u=x2u = x^2, du=2x dxdu = 2x\,dx; when x=0x = 0, u=0u = 0; when x=2x = \sqrt 2, u=2u = 2. Then ∫02x f(x2) dx=12∫02f(u) du=12⋅3=32\int_0^{\sqrt 2}x\,f(x^2)\,dx = \frac{1}{2}\int_0^2 f(u)\,du = \frac{1}{2}\cdot 3 = \frac{3}{2}. The bound 2\sqrt 2 was chosen so that uu lands exactly on the given interval [0,2][0, 2]: with an unknown ff, the new bounds must be those of a known integral, which is a useful check that the substitution is the intended one.

c) The inside function is 4sin⁡x4\sin x, with derivative 4cos⁡x4\cos x, present up to the constant 44. Let u=4sin⁡xu = 4\sin x, du=4cos⁡x dxdu = 4\cos x\,dx; when x=0x = 0, u=0u = 0; when x=π2x = \frac{\pi}{2}, u=4u = 4. Then ∫0π/2cos⁡x f(4sin⁡x) dx=14∫04f(u) du=104=52\int_0^{\pi/2}\cos x\,f(4\sin x)\,dx = \frac{1}{4}\int_0^4 f(u)\,du = \frac{10}{4} = \frac{5}{2}. The trigonometric look is irrelevant: the gesture is the one of b), inside function, its derivative outside, bounds carried.

d) With u=2xu = 2x as in a), x=1x = 1 gives u=2u = 2 and x=2x = 2 gives u=4u = 4: ∫12f(2x) dx=12∫24f(u) du\int_1^2 f(2x)\,dx = \frac{1}{2}\int_2^4 f(u)\,du. The integral over [2,4][2, 4] is not given, but additivity gives it: ∫24f=∫04f−∫02f=10−3=7\int_2^4 f = \int_0^4 f - \int_0^2 f = 10 - 3 = 7. So ∫12f(2x) dx=72\int_1^2 f(2x)\,dx = \frac{7}{2}. As a consistency check, ∫01f(2x) dx=12∫02f=32\int_0^1 f(2x)\,dx = \frac{1}{2}\int_0^2 f = \frac{3}{2}, and 32+72=5\frac{3}{2} + \frac{7}{2} = 5, the answer of a).

e) She substituted u=2xu = 2x and dx=12dudx = \frac{1}{2}du correctly, but kept the bounds of xx: 12∫02f(u) du=32\frac{1}{2}\int_0^2 f(u)\,du = \frac{3}{2}. That is the value of ∫01f(2x) dx\int_0^1 f(2x)\,dx, as d) showed: her integral covers only half the interval. On the figure, the dashed graph of f(2x)f(2x) on [0,2][0, 2] is the solid graph of ff on [0,4][0, 4] squeezed horizontally by a factor 22: every height of ff appears once, and every width is halved. Areas are multiplied by 12\frac{1}{2}, so the shaded region has half the area under ff on [0,4][0, 4], that is 55. This is the geometric meaning of the factor 12\frac{1}{2} in dx=12dudx = \frac{1}{2}du, and it only works if the whole graph of ff, from u=0u = 0 to u=4u = 4, is included.

Exercise 8: Five statements to correct

Each statement below was written in a MATH 141 tutorial, and each is false. Say what is wrong, give the correct statement or the correct value, and settle it with a differentiation or a computation.

  • a) With u=x3+1u = x^3 + 1 and du=3x2 dxdu = 3x^2\,dx, ∫(x3+1)5 dx=∫u5du3x2=(x3+1)618x2+C\int (x^3 + 1)^5\,dx = \int u^5\frac{du}{3x^2} = \frac{(x^3 + 1)^6}{18x^2} + C.
  • b) With u=x2u = x^2, ∫02x ex2 dx=12∫02eu du=e2−12\int_0^2 x\,e^{x^2}\,dx = \frac{1}{2}\int_0^2 e^u\,du = \frac{e^2 - 1}{2}.
  • c) ∫dxx2+9=19arctan⁡x+C\int \frac{dx}{x^2 + 9} = \frac{1}{9}\arctan x + C, since 1x2+9=19⋅11+x2\frac{1}{x^2 + 9} = \frac{1}{9}\cdot\frac{1}{1 + x^2}.
  • d) ∫−ππx2sin⁡x dx=2∫0πx2sin⁡x dx\int_{-\pi}^{\pi}x^2\sin x\,dx = 2\int_0^\pi x^2\sin x\,dx, because x2x^2 is even.
  • e) On [0,π][0, \pi] the substitution u=sin⁡xu = \sin x is illegal, since sin⁡\sin is not one-to-one there, so ∫0πcos⁡x esin⁡x dx\int_0^\pi\cos x\,e^{\sin x}\,dx cannot be computed by substitution.
Show the solution

Answers

  • a) False: x2x^2 is not a constant. Expand: x1616+5x1313+x10+10x77+5x44+x+C\frac{x^{16}}{16} + \frac{5x^{13}}{13} + x^{10} + \frac{10x^7}{7} + \frac{5x^4}{4} + x + C.
  • b) False: uu runs from 00 to 44; the value is e4−12\frac{e^4 - 1}{2}.
  • c) False: 1x2+9=19⋅11+(x/3)2\frac{1}{x^2 + 9} = \frac{1}{9}\cdot\frac{1}{1 + (x/3)^2}; the answer is 13arctan⁡x3+C\frac{1}{3}\arctan\frac{x}{3} + C.
  • d) False: x2sin⁡xx^2\sin x is odd; the integral is 00.
  • e) False: the rule only needs g′g' continuous; u=sin⁡xu = \sin x gives ∫00eu du=0\int_0^0 e^u\,du = 0, which is correct.

a) FALSE. du=3x2 dxdu = 3x^2\,dx does not appear in the integrand, and the student forced it by dividing by 3x23x^2, then treated x2x^2 as a constant. Differentiate the result to see it: with F(x)=118(x3+1)6x−2F(x) = \frac{1}{18}(x^3 + 1)^6x^{-2}, F′(x)=(x3+1)5−(x3+1)69x3F'(x) = (x^3 + 1)^5 - \frac{(x^3 + 1)^6}{9x^3}. The first term is the integrand; the second is the price of the frozen x2x^2, and it is not zero (at x=1x = 1, F′(1)=32−649≠32F'(1) = 32 - \frac{64}{9} \ne 32). No substitution applies here, because no inside function has its derivative present. Expand instead with the binomial coefficients 1,5,10,10,5,11, 5, 10, 10, 5, 1: (x3+1)5=x15+5x12+10x9+10x6+5x3+1(x^3 + 1)^5 = x^{15} + 5x^{12} + 10x^9 + 10x^6 + 5x^3 + 1, so ∫(x3+1)5 dx=x1616+5x1313+x10+10x77+5x44+x+C\int (x^3 + 1)^5\,dx = \frac{x^{16}}{16} + \frac{5x^{13}}{13} + x^{10} + \frac{10x^7}{7} + \frac{5x^4}{4} + x + C. Correct statement: a missing CONSTANT factor of dudu can be supplied; a missing VARIABLE factor cannot, and then this uu is the wrong tool.

b) FALSE. The integrand and the differential were rewritten in uu, the bounds were not. When x=0x = 0, u=0u = 0; when x=2x = 2, u=4u = 4. So ∫02xex2 dx=12∫04eu du=e4−12\int_0^2 x e^{x^2}\,dx = \frac{1}{2}\int_0^4 e^u\,du = \frac{e^4 - 1}{2}. Check by route 1: [12ex2]02=e4−12\left[\frac{1}{2}e^{x^2}\right]_0^2 = \frac{e^4 - 1}{2}. The student's value, e2−12≈3.2\frac{e^2 - 1}{2} \approx 3.2, is also refuted by size: on [1,2][1, 2] alone the integrand is at least 1⋅e1≈2.71\cdot e^1 \approx 2.7 and reaches 2e4≈1092e^4 \approx 109, so the integral is far larger than 3.23.2. Correct statement: a definite integral in uu takes bounds in uu.

c) FALSE. Factor the 99 correctly: x2+9=9(1+x29)=9(1+(x3)2)x^2 + 9 = 9\left(1 + \frac{x^2}{9}\right) = 9\left(1 + \left(\frac{x}{3}\right)^2\right), so 1x2+9=19⋅11+(x/3)2\frac{1}{x^2 + 9} = \frac{1}{9}\cdot\frac{1}{1 + (x/3)^2}, not 19⋅11+x2\frac{1}{9}\cdot\frac{1}{1 + x^2}. Let u=x3u = \frac{x}{3}, dx=3 dudx = 3\,du: ∫dxx2+9=19∫3 du1+u2=13arctan⁡x3+C\int \frac{dx}{x^2 + 9} = \frac{1}{9}\int \frac{3\,du}{1 + u^2} = \frac{1}{3}\arctan\frac{x}{3} + C. Check: ddx13arctan⁡x3=13⋅1/31+x2/9=19+x2\frac{d}{dx}\frac{1}{3}\arctan\frac{x}{3} = \frac{1}{3}\cdot\frac{1/3}{1 + x^2/9} = \frac{1}{9 + x^2}. The derivative of the student's answer is 19+9x2\frac{1}{9 + 9x^2}, a different function. Correct statement: ∫dxx2+a2=1aarctan⁡xa+C\int \frac{dx}{x^2 + a^2} = \frac{1}{a}\arctan\frac{x}{a} + C, and the factor 1a\frac{1}{a} comes from the linear substitution u=xau = \frac{x}{a}.

d) FALSE. The parity that matters is that of the WHOLE integrand. x2x^2 is even but sin⁡x\sin x is odd, and (−x)2sin⁡(−x)=−x2sin⁡x(-x)^2\sin(-x) = -x^2\sin x: the product is odd. It is continuous on [−π,π][-\pi, \pi], so ∫−ππx2sin⁡x dx=0\int_{-\pi}^\pi x^2\sin x\,dx = 0, with no technique needed. The doubling rule would require the product to be even. Correct statement: even times even and odd times odd are even; even times odd is odd.

e) FALSE. The substitution rule for definite integrals, ∫abf(g(x))g′(x) dx=∫g(a)g(b)f(u) du\int_a^b f(g(x))g'(x)\,dx = \int_{g(a)}^{g(b)}f(u)\,du, requires g′g' continuous on [a,b][a, b] and ff continuous on the values of gg; nothing requires gg to be one-to-one. It is the chain rule, ddxF(g(x))=f(g(x))g′(x)\frac{d}{dx}F(g(x)) = f(g(x))g'(x), followed by the fundamental theorem. Here u=sin⁡xu = \sin x, du=cos⁡x dxdu = \cos x\,dx, and both bounds give u=0u = 0: ∫0πcos⁡x esin⁡x dx=∫00eu du=0\int_0^\pi\cos x\,e^{\sin x}\,dx = \int_0^0 e^u\,du = 0. Route 1 confirms it: [esin⁡x]0π=e0−e0=0\left[e^{\sin x}\right]_0^\pi = e^0 - e^0 = 0. The figure of the solution shows why: on [0,π2]\left[0, \frac{\pi}{2}\right] the integrand is positive with integral e−1e - 1, on [π2,π]\left[\frac{\pi}{2}, \pi\right] it is negative with integral 1−e1 - e, and the two cancel. Correct statement: the substitution is legal; injectivity is a condition of the inverse substitution x=h(t)x = h(t), met in the trigonometric substitution chapter, not of u=g(x)u = g(x).

π/2π1−1e − 1−(e − 1)

Exercise 9: Charge through three circuits: one substitution per current

The charge that passes through a wire between the times t=at = a and t=bt = b is Q=∫abI(t) dtQ = \int_a^b I(t)\,dt, where II is the current. With II in milliamperes and tt in seconds, QQ is in millicoulombs (mC). Three circuits are switched on at t=0t = 0, with currents IA(t)=10tt2+16I_A(t) = \frac{10t}{\sqrt{t^2 + 16}}, IB(t)=8t e−t2I_B(t) = 8t\,e^{-t^2} and IC(t)=2tt2+1I_C(t) = \frac{2t}{t^2 + 1}.

The figure shows the three currents; the charge of circuit A during the first 33 seconds is shaded. No calculator: give exact times.

12345678246810ABCt (s)I (mA)
  • a) Compute the charge QAQ_A that passes in circuit A during the first 33 seconds.
  • b) Find the time TT at which a total of 3030 mC has passed in circuit A.
  • c) Find the charge QB(T)Q_B(T) passed in circuit B by time TT. Show that it stays below 44 mC however long the circuit runs, and find when it reaches 33 mC.
  • d) Find QC(T)Q_C(T). When has 44 mC passed in circuit C? Can any amount of charge be reached?
  • e) Currents B and C both fall back towards 00. Explain, from your formulas, why one circuit passes a bounded charge and the other does not.
Show the solution

Answers

  • a) QA=10(5−4)=10Q_A = 10(5 - 4) = 10 mC
  • b) T=33T = \sqrt{33} s
  • c) QB(T)=4(1−e−T2)<4Q_B(T) = 4\left(1 - e^{-T^2}\right) < 4; 33 mC at T=ln⁡4T = \sqrt{\ln 4} s
  • d) QC(T)=ln⁡(T2+1)Q_C(T) = \ln(T^2 + 1); 44 mC at T=e4−1T = \sqrt{e^4 - 1} s; any charge QQ at T=eQ−1T = \sqrt{e^Q - 1}.
  • e) e−T2→0e^{-T^2} \to 0 keeps QBQ_B below 44; ln⁡(T2+1)\ln(T^2 + 1) grows without bound.

a) Let u=t2+16u = t^2 + 16, du=2t dtdu = 2t\,dt, so t dt=12dut\,dt = \frac{1}{2}du. When t=0t = 0, u=16u = 16; when t=3t = 3, u=25u = 25. Then QA=∫0310tt2+16 dt=5∫1625u−1/2 du=10[u1/2]1625=10(5−4)=10Q_A = \int_0^3\frac{10t}{\sqrt{t^2 + 16}}\,dt = 5\int_{16}^{25}u^{-1/2}\,du = 10\left[u^{1/2}\right]_{16}^{25} = 10(5 - 4) = 10 mC. The numbers were built on the right triangle 3,4,53, 4, 5: 9+16=5\sqrt{9 + 16} = 5. Sanity check against the figure: the current climbs from 00 to IA(3)=305=6I_A(3) = \frac{30}{5} = 6 mA, so over 33 seconds the charge lies between 00 and 1818 mC, and the shaded region, roughly a triangle of base 33 and height 66, is about 99 mC.

b) The same substitution with a variable upper bound: QA(T)=10[t2+16]0T=10(T2+16−4)Q_A(T) = 10\left[\sqrt{t^2 + 16}\right]_0^T = 10\left(\sqrt{T^2 + 16} - 4\right). Setting QA(T)=30Q_A(T) = 30: T2+16−4=3\sqrt{T^2 + 16} - 4 = 3, T2+16=7\sqrt{T^2 + 16} = 7, T2=49−16=33T^2 = 49 - 16 = 33, T=33T = \sqrt{33} s, a little under 66 s since 62=366^2 = 36. The first 1010 mC took 33 seconds, the next 2020 took about 2.72.7 more: the current is larger later, as the figure shows it approaching 1010 mA.

c) Let u=t2u = t^2, du=2t dtdu = 2t\,dt; the bounds 00 and TT become 00 and T2T^2. Then QB(T)=∫0T8t e−t2 dt=4∫0T2e−u du=4[−e−u]0T2=4(1−e−T2)Q_B(T) = \int_0^T 8t\,e^{-t^2}\,dt = 4\int_0^{T^2}e^{-u}\,du = 4\left[-e^{-u}\right]_0^{T^2} = 4\left(1 - e^{-T^2}\right). Since e−T2>0e^{-T^2} > 0 for every TT, QB(T)<4Q_B(T) < 4: however long the circuit runs, less than 44 mC passes. Setting QB(T)=3Q_B(T) = 3: 1−e−T2=341 - e^{-T^2} = \frac{3}{4}, e−T2=14e^{-T^2} = \frac{1}{4}, T2=ln⁡4T^2 = \ln 4, T=ln⁡4=2ln⁡2T = \sqrt{\ln 4} = \sqrt{2\ln 2} s, about 1.181.18 s with ln⁡2≈0.69\ln 2 \approx 0.69. Three quarters of everything circuit B will ever deliver has passed in just over a second.

d) The numerator 2t2t is the derivative of t2+1t^2 + 1: u=t2+1u = t^2 + 1, du=2t dtdu = 2t\,dt, bounds 11 and T2+1T^2 + 1. So QC(T)=∫1T2+1duu=ln⁡(T2+1)Q_C(T) = \int_1^{T^2 + 1}\frac{du}{u} = \ln(T^2 + 1), no absolute value since u≥1u \ge 1. Setting ln⁡(T2+1)=4\ln(T^2 + 1) = 4: T2+1=e4T^2 + 1 = e^4, T=e4−1T = \sqrt{e^4 - 1} s, about 7.37.3 s since e4≈54.6e^4 \approx 54.6. For any target Q>0Q > 0, the same computation gives T=eQ−1T = \sqrt{e^Q - 1}: every amount of charge is eventually reached, 1010 mC after about 148148 s, 2020 mC after about 22,00022{,}000 s. The logarithm grows without bound, just very slowly.

e) Both currents tend to 00, but at very different speeds. For large tt, IB(t)=8t e−t2I_B(t) = 8t\,e^{-t^2} collapses, and its accumulated charge 4(1−e−T2)4\left(1 - e^{-T^2}\right) approaches 44 from below: after a few seconds, almost nothing more is added. IC(t)=2tt2+1I_C(t) = \frac{2t}{t^2 + 1} behaves like 2t\frac{2}{t}, and its accumulated charge is a logarithm, which never stops growing. So a current that dies out does not guarantee a bounded total charge: what decides is how fast it dies out, and the substitution made that visible by producing e−T2e^{-T^2} in one case and ln⁡(T2+1)\ln(T^2 + 1) in the other. Circuit A, whose current tends to 1010 mA, passes an unbounded charge for a simpler reason: QA(T)=10(T2+16−4)Q_A(T) = 10\left(\sqrt{T^2 + 16} - 4\right) grows roughly like 10T10T.

Exercise 10: A final exam question: the reflection x to a minus x

This is the shape of a long final exam question. One substitution, u=a−xu = a - x, reflects the interval [0,a][0, a] onto itself, and combined with the original integral it computes values that no direct antiderivative gives. The figure shows y=sin⁡xsin⁡x+cos⁡xy = \frac{\sin x}{\sin x + \cos x} (solid, region below it shaded) and y=cos⁡xsin⁡x+cos⁡xy = \frac{\cos x}{\sin x + \cos x} (dashed) on [0,π2]\left[0, \frac{\pi}{2}\right].

π/4π/21/21sin/(sin + cos)cos/(sin + cos)
  • a) Let ff be continuous on [0,a][0, a]. Prove that ∫0af(a−x) dx=∫0af(x) dx\int_0^a f(a - x)\,dx = \int_0^a f(x)\,dx.
  • b) Let I=∫0π/2sin⁡xsin⁡x+cos⁡x dxI = \int_0^{\pi/2}\frac{\sin x}{\sin x + \cos x}\,dx and J=∫0π/2cos⁡xsin⁡x+cos⁡x dxJ = \int_0^{\pi/2}\frac{\cos x}{\sin x + \cos x}\,dx. Show that I=JI = J, compute I+JI + J, and deduce II. Read the result on the figure.
  • c) Let K=∫0πxsin⁡x1+cos⁡2x dxK = \int_0^\pi\frac{x\sin x}{1 + \cos^2 x}\,dx. Using a) with a=πa = \pi, show that K=π2∫0πsin⁡x1+cos⁡2x dxK = \frac{\pi}{2}\int_0^\pi\frac{\sin x}{1 + \cos^2 x}\,dx.
  • d) Compute ∫0πsin⁡x1+cos⁡2x dx\int_0^\pi\frac{\sin x}{1 + \cos^2 x}\,dx by a second substitution, and deduce KK.
  • e) Apply the method of c) to ∫0πxsin⁡x dx\int_0^\pi x\sin x\,dx and give its value.
Show the solution

Answers

  • a) u=a−xu = a - x maps [0,a][0, a] onto [a,0][a, 0] and dx=−dudx = -du, so ∫0af(a−x) dx=∫0af(u) du\int_0^a f(a - x)\,dx = \int_0^a f(u)\,du.
  • b) I=JI = J, I+J=π2I + J = \frac{\pi}{2}, so I=π4I = \frac{\pi}{4}.
  • c) K=π∫0πsin⁡x1+cos⁡2x dx−KK = \pi\int_0^\pi\frac{\sin x}{1 + \cos^2 x}\,dx - K, so K=π2∫0πsin⁡x1+cos⁡2x dxK = \frac{\pi}{2}\int_0^\pi\frac{\sin x}{1 + \cos^2 x}\,dx.
  • d) ∫0πsin⁡x1+cos⁡2x dx=π2\int_0^\pi\frac{\sin x}{1 + \cos^2 x}\,dx = \frac{\pi}{2}, so K=π24K = \frac{\pi^2}{4}.
  • e) ∫0πxsin⁡x dx=π2∫0πsin⁡x dx=π\int_0^\pi x\sin x\,dx = \frac{\pi}{2}\int_0^\pi\sin x\,dx = \pi

a) Let u=a−xu = a - x, du=−dxdu = -dx. When x=0x = 0, u=au = a; when x=ax = a, u=0u = 0. Then ∫0af(a−x) dx=∫a0f(u)(−du)=∫0af(u) du=∫0af(x) dx\int_0^a f(a - x)\,dx = \int_a^0 f(u)(-du) = \int_0^a f(u)\,du = \int_0^a f(x)\,dx, the last equality because the letter of integration is a dummy. As in exercise 2 c), the reversed bounds and the minus sign of dudu cancel. Geometrically, the graph of f(a−x)f(a - x) is the graph of ff flipped about the vertical line x=a2x = \frac{a}{2}, and a flip does not change an area.

b) Apply a) with a=π2a = \frac{\pi}{2}: since sin⁡(π2−x)=cos⁡x\sin\left(\frac{\pi}{2} - x\right) = \cos x and cos⁡(π2−x)=sin⁡x\cos\left(\frac{\pi}{2} - x\right) = \sin x, the integrand of II becomes cos⁡xcos⁡x+sin⁡x\frac{\cos x}{\cos x + \sin x}, that of JJ. So I=JI = J. Adding the two integrals, I+J=∫0π/2sin⁡x+cos⁡xsin⁡x+cos⁡x dx=∫0π/21 dx=π2I + J = \int_0^{\pi/2}\frac{\sin x + \cos x}{\sin x + \cos x}\,dx = \int_0^{\pi/2}1\,dx = \frac{\pi}{2}. The denominator never vanishes on [0,π2]\left[0, \frac{\pi}{2}\right], since sin⁡x+cos⁡x≥1\sin x + \cos x \ge 1 there, so both integrals exist. Hence I=J=π4I = J = \frac{\pi}{4}. On the figure, the two curves are mirror images about x=π4x = \frac{\pi}{4}, where both equal 12\frac{1}{2}, and at every xx they add up to 11: the shaded region is exactly half of the rectangle [0,π2]×[0,1]\left[0, \frac{\pi}{2}\right] \times [0, 1], whose area is π2\frac{\pi}{2}.

c) Apply a) with a=πa = \pi: sin⁡(π−x)=sin⁡x\sin(\pi - x) = \sin x and cos⁡(π−x)=−cos⁡x\cos(\pi - x) = -\cos x, so cos⁡2(π−x)=cos⁡2x\cos^2(\pi - x) = \cos^2 x. Then K=∫0π(π−x)sin⁡x1+cos⁡2x dx=π∫0πsin⁡x1+cos⁡2x dx−∫0πxsin⁡x1+cos⁡2x dx=π∫0πsin⁡x1+cos⁡2x dx−KK = \int_0^\pi\frac{(\pi - x)\sin x}{1 + \cos^2 x}\,dx = \pi\int_0^\pi\frac{\sin x}{1 + \cos^2 x}\,dx - \int_0^\pi\frac{x\sin x}{1 + \cos^2 x}\,dx = \pi\int_0^\pi\frac{\sin x}{1 + \cos^2 x}\,dx - K. The unknown KK appears on both sides: 2K=π∫0πsin⁡x1+cos⁡2x dx2K = \pi\int_0^\pi\frac{\sin x}{1 + \cos^2 x}\,dx, which is the claim. The factor xx, which blocked every substitution, has been traded for the constant π\pi: that is the whole purpose of the reflection.

d) The inside function is cos⁡x\cos x, whose derivative −sin⁡x-\sin x is on top up to a sign. Let w=cos⁡xw = \cos x, dw=−sin⁡x dxdw = -\sin x\,dx; when x=0x = 0, w=1w = 1; when x=πx = \pi, w=−1w = -1. Then ∫0πsin⁡x1+cos⁡2x dx=∫1−1−dw1+w2=∫−11dw1+w2=arctan⁡1−arctan⁡(−1)=π4+π4=π2\int_0^\pi\frac{\sin x}{1 + \cos^2 x}\,dx = \int_1^{-1}\frac{-dw}{1 + w^2} = \int_{-1}^1\frac{dw}{1 + w^2} = \arctan 1 - \arctan(-1) = \frac{\pi}{4} + \frac{\pi}{4} = \frac{\pi}{2}. So K=π2⋅π2=π24K = \frac{\pi}{2}\cdot\frac{\pi}{2} = \frac{\pi^2}{4}. Sanity check: on [0,π][0, \pi] the integrand of KK is non-negative and at most xsin⁡x≤πx\sin x \le \pi, so 0≤K≤π20 \le K \le \pi^2; with π2≈9.87\pi^2 \approx 9.87, K≈2.47K \approx 2.47 is plausible. A marker expects the two substitutions to be named separately, with their bound lines.

e) The same steps with the integrand xsin⁡xx\sin x: ∫0πxsin⁡x dx=∫0π(π−x)sin⁡x dx\int_0^\pi x\sin x\,dx = \int_0^\pi(\pi - x)\sin x\,dx, hence 2∫0πxsin⁡x dx=π∫0πsin⁡x dx=π[−cos⁡x]0π=2π2\int_0^\pi x\sin x\,dx = \pi\int_0^\pi\sin x\,dx = \pi\left[-\cos x\right]_0^\pi = 2\pi, and ∫0πxsin⁡x dx=π\int_0^\pi x\sin x\,dx = \pi. The method works for every integral of the form ∫0πx g(sin⁡x) dx\int_0^\pi x\,g(\sin x)\,dx, since sin⁡\sin is unchanged by the reflection: the result is π2∫0πg(sin⁡x) dx\frac{\pi}{2}\int_0^\pi g(\sin x)\,dx. This particular integral will be met again in the next chapter, where integration by parts gives the same value π\pi directly; here it came from substitution alone.

See also

Struggling with MATH 141?

I tutor first-year calculus at McGill and Concordia, in English or in French, in Montreal or online. Get in touch for a first session.

Site by Studio Squalli