MATH 141 Calculus 2 • McGill University, Montreal

MATH 141 practice midterm with full solutions (McGill)

This is a practice midterm for MATH 141, Calculus 2, the integral calculus course of the first year at McGill University. It covers the first nine chapters of the course, the usual scope of the midterm: Riemann sums and the definite integral, the Fundamental Theorem of Calculus, the substitution rule, integration by parts, trigonometric integrals, trigonometric substitution, partial fractions, the strategy for a bare integral, and improper integrals. Eight questions, one hundred points, two parts: four short questions worth forty-two points, then four long problems worth fifty-eight.

Sit it as an exam: two hours on a timer, no calculator, no notes, because that is how the real midterm is written. Every answer is exact, ln⁡2\ln 2, π16\frac{\pi}{16}, arctan⁡12\arctan\frac{1}{2}, and every mark goes to the method: name the substitution with its differential and its new bounds, name uu and dvdv, write the form of a decomposition before its constants, and state each limit of an improper integral before computing it. Not one question repeats an exercise of the nine chapter sets of this site: the gestures are the ones the examiners ask for, the integrands are new, so the paper measures what you can do and not what you remember having read. Each question has its Answers box for a first quick marking, and the full reasoning underneath for the second pass.

The traps named in the solutions: calling the left sum an overestimate without looking at monotonicity, forgetting a chain factor when both bounds move, keeping the bounds in xx after a substitution, treating a leftover x3x^3 as a constant, writing tan⁡2θ=tan⁡θ\sqrt{\tan^2\theta} = \tan\theta on the wrong branch, stopping at the first root of a quartic, evaluating across a hidden asymptote, splitting an improper integral into ∞−∞\infty - \infty, and comparing with a divergent integral from BELOW.

8 corrected exercises • 100 points • 120 minutes

Every MATH 141 chapter →

Part A: short questions (/42)

Exercise 1: Right sums, the definition, and a limit read as an integral

The figure shows the region under the graph of f(x)=x2+2xf(x) = x^2 + 2x for 0≤x≤20 \le x \le 2, and the four rectangles of the right Riemann sum R4R_4. Let AA be the area of the region. In parts a) and b), no antiderivative may be used.

0.511.522.5123456789y = x² + 2x
  • a) Compute L4L_4 and R4R_4. Which one overestimates AA? Justify with a property of ff, and write the resulting bracket for AA.
  • b) Use the definition of the integral, with right endpoints and the formulas for ∑i\sum i and ∑i2\sum i^2, to show that ∫02(x2+2x) dx=203\int_0^2 (x^2 + 2x)\,dx = \frac{20}{3}. Check your formula for RnR_n at n=4n = 4.
  • c) Express lim⁡n→∞∑i=1n1n+i\lim_{n \to \infty} \sum_{i=1}^{n} \frac{1}{n + i} as a definite integral, and evaluate it.
  • d) Evaluate ∫−22(x+4−x2)dx\int_{-2}^{2} \left(x + \sqrt{4 - x^2}\right)dx by geometry and the properties of the integral only.
Show the solution

Answers

  • a) L4=194L_4 = \frac{19}{4}, R4=354R_4 = \frac{35}{4}; ff is increasing on [0,2][0, 2], so R4R_4 overestimates: 194<A<354\frac{19}{4} < A < \frac{35}{4}
  • b) Rn=4(n+1)(5n+1)3n2→203R_n = \frac{4(n + 1)(5n + 1)}{3n^2} \to \frac{20}{3}; R4=354R_4 = \frac{35}{4}
  • c) ∫01dx1+x=ln⁡2\int_0^1 \frac{dx}{1 + x} = \ln 2
  • d) 0+2π=2π0 + 2\pi = 2\pi

a) Δx=2−04=12\Delta x = \frac{2 - 0}{4} = \frac{1}{2}. The left sum samples 0,12,1,320, \frac{1}{2}, 1, \frac{3}{2} and the right sum 12,1,32,2\frac{1}{2}, 1, \frac{3}{2}, 2. The values are f(0)=0f(0) = 0, f(12)=54f(\frac{1}{2}) = \frac{5}{4}, f(1)=3f(1) = 3, f(32)=214f(\frac{3}{2}) = \frac{21}{4}, f(2)=8f(2) = 8. So L4=12(0+54+3+214)=12⋅192=194L_4 = \frac{1}{2}\left(0 + \frac{5}{4} + 3 + \frac{21}{4}\right) = \frac{1}{2} \cdot \frac{19}{2} = \frac{19}{4} and R4=12(54+3+214+8)=12⋅352=354R_4 = \frac{1}{2}\left(\frac{5}{4} + 3 + \frac{21}{4} + 8\right) = \frac{1}{2} \cdot \frac{35}{2} = \frac{35}{4}.

The property that decides is monotonicity, not the picture: f′(x)=2x+2>0f'(x) = 2x + 2 > 0 on [0,2][0, 2], so ff is increasing. On each strip the left end gives the SMALLEST value and the right end the LARGEST, so every left rectangle sits under the curve and every right rectangle sticks out above it. Hence L4≤A≤R4L_4 \le A \le R_4, that is 194≤A≤354\frac{19}{4} \le A \le \frac{35}{4}, and R4R_4 is the overestimate. The gap R4−L4=Δx[f(2)−f(0)]=4R_4 - L_4 = \Delta x\left[f(2) - f(0)\right] = 4 is wide: four strips do not pin AA down.

b) With nn strips, Δx=2n\Delta x = \frac{2}{n} and xi=2inx_i = \frac{2i}{n}, so f(xi)=4i2n2+4inf(x_i) = \frac{4i^2}{n^2} + \frac{4i}{n}. Then Rn=∑i=1n2n(4i2n2+4in)=8n3∑i=1ni2+8n2∑i=1niR_n = \sum_{i=1}^{n} \frac{2}{n}\left(\frac{4i^2}{n^2} + \frac{4i}{n}\right) = \frac{8}{n^3}\sum_{i=1}^{n} i^2 + \frac{8}{n^2}\sum_{i=1}^{n} i. The sums start at i=1i = 1 and end at nn, so the formulas apply: Rn=8n3⋅n(n+1)(2n+1)6+8n2⋅n(n+1)2=4(n+1)(2n+1)3n2+4(n+1)n=4(n+1)(5n+1)3n2R_n = \frac{8}{n^3} \cdot \frac{n(n + 1)(2n + 1)}{6} + \frac{8}{n^2} \cdot \frac{n(n + 1)}{2} = \frac{4(n + 1)(2n + 1)}{3n^2} + \frac{4(n + 1)}{n} = \frac{4(n + 1)(5n + 1)}{3n^2}.

Check at n=4n = 4: 4⋅5⋅2148=42048=354\frac{4 \cdot 5 \cdot 21}{48} = \frac{420}{48} = \frac{35}{4}, the value of a). Now write Rn=43(1+1n)(5+1n)R_n = \frac{4}{3}\left(1 + \frac{1}{n}\right)\left(5 + \frac{1}{n}\right) and let n→∞n \to \infty: ∫02(x2+2x) dx=43⋅5=203\int_0^2 (x^2 + 2x)\,dx = \frac{4}{3} \cdot 5 = \frac{20}{3}. It lies in the bracket of a), since 194=4.75<6.67<8.75\frac{19}{4} = 4.75 < 6.67 < 8.75.

c) Factor out 1n\frac{1}{n}: 1n+i=1n⋅11+in\frac{1}{n + i} = \frac{1}{n} \cdot \frac{1}{1 + \frac{i}{n}}. Read it in order: Δx=1n\Delta x = \frac{1}{n}, so b−a=1b - a = 1; the sample point is xi=in=0+i Δxx_i = \frac{i}{n} = 0 + i\,\Delta x, so a=0a = 0 and b=1b = 1; the function is f(x)=11+xf(x) = \frac{1}{1 + x}, continuous on [0,1][0, 1]. The limit is ∫01dx1+x=[ln⁡(1+x)]01=ln⁡2\int_0^1 \frac{dx}{1 + x} = \Big[\ln(1 + x)\Big]_0^1 = \ln 2. Another correct reading is xi=1+inx_i = 1 + \frac{i}{n} with f(x)=1xf(x) = \frac{1}{x} on [1,2][1, 2], which gives ∫12dxx=ln⁡2\int_1^2 \frac{dx}{x} = \ln 2 as well. Sanity check: each of the nn terms lies between 12n\frac{1}{2n} and 1n\frac{1}{n}, so the sum lies between 12\frac{1}{2} and 11, and ln⁡2≈0.69\ln 2 \approx 0.69 does.

d) By linearity, ∫−22(x+4−x2)dx=∫−22x dx+∫−224−x2 dx\int_{-2}^{2} \left(x + \sqrt{4 - x^2}\right)dx = \int_{-2}^{2} x\,dx + \int_{-2}^{2} \sqrt{4 - x^2}\,dx. The first integral is the signed area between the line y=xy = x and the axis: a triangle of area 22 below the axis on [−2,0][-2, 0] and one of area 22 above it on [0,2][0, 2], so it is −2+2=0-2 + 2 = 0. The graph of y=4−x2y = \sqrt{4 - x^2} is the upper half of the circle x2+y2=4x^2 + y^2 = 4, so the second integral is half the area of a disc of radius 22: 12π⋅22=2π\frac{1}{2}\pi \cdot 2^2 = 2\pi. The value is 2π2\pi. Note that the integrand itself is negative near x=−2x = -2 (it equals −2-2 there): the integral is a signed area, and nothing here asks for an area.

Exercise 2: Two moving bounds, then substitution with its bounds

Parts a) to d) are independent. The function sin⁡tt\frac{\sin t}{t} has no elementary antiderivative; you may use this fact without proof.

  • a) Let F(x)=∫xx2sin⁡tt dtF(x) = \int_{\sqrt{x}}^{x^2} \frac{\sin t}{t}\,dt for x>0x > 0. Find F′(x)F'(x), then the equation of the tangent line to the graph of FF at x=1x = 1.
  • b) Evaluate ∫0π/2cos⁡x1+sin⁡x dx\int_0^{\pi/2} \frac{\cos x}{\sqrt{1 + \sin x}}\,dx.
  • c) Evaluate ∫01x51+x3 dx\int_0^1 \frac{x^5}{\sqrt{1 + x^3}}\,dx with the substitution u=1+x3u = 1 + x^3. Explain how the factor x5x^5 is handled.
  • d) A classmate writes the integral of c) as 13∫01u−1u du\frac{1}{3}\int_0^1 \frac{u - 1}{\sqrt{u}}\,du. Find the number she obtains and explain, without redoing c), why it cannot be right. Then bracket the integral of c) between two integrals of x5x^5 and check your answer against the bracket.
Show the solution

Answers

  • a) F′(x)=2sin⁡(x2)x−sin⁡x2xF'(x) = \frac{2\sin(x^2)}{x} - \frac{\sin\sqrt{x}}{2x}; F(1)=0F(1) = 0, F′(1)=32sin⁡1F'(1) = \frac{3}{2}\sin 1, tangent y=32(sin⁡1)(x−1)y = \frac{3}{2}(\sin 1)(x - 1)
  • b) 22−22\sqrt{2} - 2
  • c) 4−229\frac{4 - 2\sqrt{2}}{9}
  • d) She gets −49<0-\frac{4}{9} < 0 for a positive integrand; 162≤4−229≤16\frac{1}{6\sqrt{2}} \le \frac{4 - 2\sqrt{2}}{9} \le \frac{1}{6}

a) Let g(t)=sin⁡ttg(t) = \frac{\sin t}{t}, continuous on (0,∞)(0, \infty). For x>0x > 0 both bounds x\sqrt{x} and x2x^2 lie in (0,∞)(0, \infty), so the integral can be split at the constant 11: F(x)=∫1x2g(t) dt−∫1xg(t) dtF(x) = \int_1^{x^2} g(t)\,dt - \int_1^{\sqrt{x}} g(t)\,dt. FTC 1 and the chain rule on each piece: F′(x)=g(x2)⋅2x−g(x)⋅12x=sin⁡(x2)x2⋅2x−sin⁡xx⋅12x=2sin⁡(x2)x−sin⁡x2xF'(x) = g(x^2) \cdot 2x - g(\sqrt{x}) \cdot \frac{1}{2\sqrt{x}} = \frac{\sin(x^2)}{x^2} \cdot 2x - \frac{\sin\sqrt{x}}{\sqrt{x}} \cdot \frac{1}{2\sqrt{x}} = \frac{2\sin(x^2)}{x} - \frac{\sin\sqrt{x}}{2x}. Looking for an antiderivative first would be a dead end: there is none in elementary terms, and FTC 1 does not need one.

At x=1x = 1 both bounds equal 11, so F(1)=∫11g(t) dt=0F(1) = \int_1^1 g(t)\,dt = 0, and F′(1)=2sin⁡1−12sin⁡1=32sin⁡1F'(1) = 2\sin 1 - \frac{1}{2}\sin 1 = \frac{3}{2}\sin 1. The tangent line is y=32(sin⁡1)(x−1)y = \frac{3}{2}(\sin 1)(x - 1). The two traps: forgetting the chain factors 2x2x and 12x\frac{1}{2\sqrt{x}}, and forgetting the minus sign of the lower bound.

b) The factor cos⁡x\cos x is the derivative of 1+sin⁡x1 + \sin x: set u=1+sin⁡xu = 1 + \sin x, du=cos⁡x dxdu = \cos x\,dx. Carry the bounds: x=0x = 0 gives u=1u = 1 and x=π2x = \frac{\pi}{2} gives u=2u = 2. The integral becomes ∫12u−1/2 du=[2u]12=22−2\int_1^2 u^{-1/2}\,du = \Big[2\sqrt{u}\Big]_1^2 = 2\sqrt{2} - 2. Size check: the integrand lies between 00 and 11 on an interval of length π2\frac{\pi}{2}, and 22−2≈0.832\sqrt{2} - 2 \approx 0.83 does.

c) With u=1+x3u = 1 + x^3, du=3x2 dxdu = 3x^2\,dx absorbs only x2x^2. Split x5=x3⋅x2x^5 = x^3 \cdot x^2: the x2 dxx^2\,dx becomes du3\frac{du}{3}, and the remaining x3x^3 is NOT a constant, it is rewritten from u=1+x3u = 1 + x^3 as x3=u−1x^3 = u - 1. The bounds: x=0x = 0 gives u=1u = 1, x=1x = 1 gives u=2u = 2. So ∫01x51+x3 dx=13∫12u−1u du=13∫12(u1/2−u−1/2)du=13[23u3/2−2u1/2]12\int_0^1 \frac{x^5}{\sqrt{1 + x^3}}\,dx = \frac{1}{3}\int_1^2 \frac{u - 1}{\sqrt{u}}\,du = \frac{1}{3}\int_1^2 \left(u^{1/2} - u^{-1/2}\right)du = \frac{1}{3}\Big[\frac{2}{3}u^{3/2} - 2u^{1/2}\Big]_1^2.

At u=2u = 2: 23⋅22−22=−223\frac{2}{3} \cdot 2\sqrt{2} - 2\sqrt{2} = -\frac{2\sqrt{2}}{3}; at u=1u = 1: 23−2=−43\frac{2}{3} - 2 = -\frac{4}{3}. The difference is 4−223\frac{4 - 2\sqrt{2}}{3}, and the integral is 4−229\frac{4 - 2\sqrt{2}}{9}.

d) She obtains 13[23u3/2−2u1/2]01=13(23−2)=−49\frac{1}{3}\Big[\frac{2}{3}u^{3/2} - 2u^{1/2}\Big]_0^1 = \frac{1}{3}\left(\frac{2}{3} - 2\right) = -\frac{4}{9}. The integrand x51+x3\frac{x^5}{\sqrt{1 + x^3}} is nonnegative on [0,1][0, 1], so its integral cannot be negative: the sign alone condemns the answer. Her integrand is in uu but her bounds are still in xx, whereas uu runs from 11 to 22.

Bracket: on [0,1][0, 1], 1≤1+x3≤21 \le 1 + x^3 \le 2, so x52≤x51+x3≤x5\frac{x^5}{\sqrt{2}} \le \frac{x^5}{\sqrt{1 + x^3}} \le x^5, and integrating, 162≤I≤16\frac{1}{6\sqrt{2}} \le I \le \frac{1}{6}. With 2≈1.41\sqrt{2} \approx 1.41 that is 0.118≤I≤0.1670.118 \le I \le 0.167, and 4−229≈4−2.839≈0.13\frac{4 - 2\sqrt{2}}{9} \approx \frac{4 - 2.83}{9} \approx 0.13 fits.

Exercise 3: Four integrals, no technique announced

Evaluate each integral exactly. Two points each: the first line must NAME the move (the substitution with its differential and its bounds, the choice of uu and dvdv, or the identity used), then the computation follows.

  • a) ∫0π/3sin⁡3xcos⁡2x dx\displaystyle\int_0^{\pi/3} \frac{\sin^3 x}{\cos^2 x}\,dx
  • b) ∫0π/4xsec⁡2x dx\displaystyle\int_0^{\pi/4} x\sec^2 x\,dx
  • c) ∫0π/2sin⁡2xcos⁡2x dx\displaystyle\int_0^{\pi/2} \sin^2 x\cos^2 x\,dx
  • d) ∫19dxx+x\displaystyle\int_1^{9} \frac{dx}{x + \sqrt{x}}
Show the solution

Answers

  • a) 12\frac{1}{2}
  • b) π4−12ln⁡2\frac{\pi}{4} - \frac{1}{2}\ln 2
  • c) π16\frac{\pi}{16}
  • d) 2ln⁡22\ln 2

a) Move: an ODD power of sine, so detach one sin⁡x dx\sin x\,dx and set u=cos⁡xu = \cos x, du=−sin⁡x dxdu = -\sin x\,dx, converting sin⁡2x=1−u2\sin^2 x = 1 - u^2. The integrand is continuous on [0,π3][0, \frac{\pi}{3}], where cos⁡x≥12\cos x \ge \frac{1}{2}. Bounds: x=0x = 0 gives u=1u = 1, x=π3x = \frac{\pi}{3} gives u=12u = \frac{1}{2}. Then ∫0π/3sin⁡2xcos⁡2xsin⁡x dx=∫11/21−u2u2(−du)=∫1/21(u−2−1)du=[−1u−u]1/21=(−2)−(−52)=12\int_0^{\pi/3} \frac{\sin^2 x}{\cos^2 x}\sin x\,dx = \int_1^{1/2} \frac{1 - u^2}{u^2}(-du) = \int_{1/2}^{1} \left(u^{-2} - 1\right)du = \Big[-\frac{1}{u} - u\Big]_{1/2}^{1} = (-2) - \left(-\frac{5}{2}\right) = \frac{1}{2}.

Second route, as a check: sin⁡3xcos⁡2x=sin⁡x(1−cos⁡2x)cos⁡2x=sec⁡xtan⁡x−sin⁡x\frac{\sin^3 x}{\cos^2 x} = \frac{\sin x(1 - \cos^2 x)}{\cos^2 x} = \sec x\tan x - \sin x, whose antiderivative is sec⁡x+cos⁡x\sec x + \cos x; from 00 to π3\frac{\pi}{3} it gives (2+12)−(1+1)=12\left(2 + \frac{1}{2}\right) - (1 + 1) = \frac{1}{2}.

b) Move: integration by parts with u=xu = x, du=dxdu = dx, dv=sec⁡2x dxdv = \sec^2 x\,dx, v=tan⁡xv = \tan x. The polynomial is uu because differentiating it removes it, and sec⁡2x\sec^2 x is dvdv because it integrates at sight; the opposite choice would need v=x22v = \frac{x^2}{2} and raise the power. Then ∫0π/4xsec⁡2x dx=[xtan⁡x]0π/4−∫0π/4tan⁡x dx=π4−[ln⁡∣sec⁡x∣]0π/4=π4−ln⁡2=π4−12ln⁡2\int_0^{\pi/4} x\sec^2 x\,dx = \Big[x\tan x\Big]_0^{\pi/4} - \int_0^{\pi/4} \tan x\,dx = \frac{\pi}{4} - \Big[\ln|\sec x|\Big]_0^{\pi/4} = \frac{\pi}{4} - \ln\sqrt{2} = \frac{\pi}{4} - \frac{1}{2}\ln 2. Size check: about 0.79−0.35=0.440.79 - 0.35 = 0.44, positive as it must be.

c) Move: only EVEN powers, so no factor can be saved; lower the degree. First sin⁡xcos⁡x=12sin⁡2x\sin x\cos x = \frac{1}{2}\sin 2x, so sin⁡2xcos⁡2x=14sin⁡22x\sin^2 x\cos^2 x = \frac{1}{4}\sin^2 2x, then the half-angle formula sin⁡22x=1−cos⁡4x2\sin^2 2x = \frac{1 - \cos 4x}{2}: the integrand is 18(1−cos⁡4x)\frac{1}{8}(1 - \cos 4x). Then ∫0π/218(1−cos⁡4x) dx=18[x−sin⁡4x4]0π/2=18⋅π2=π16\int_0^{\pi/2} \frac{1}{8}(1 - \cos 4x)\,dx = \frac{1}{8}\Big[x - \frac{\sin 4x}{4}\Big]_0^{\pi/2} = \frac{1}{8} \cdot \frac{\pi}{2} = \frac{\pi}{16}, since sin⁡2π=0\sin 2\pi = 0.

d) Move: the root blocks everything, so rationalize with u=xu = \sqrt{x}, x=u2x = u^2, dx=2u dudx = 2u\,du; the WHOLE of dxdx is converted. Bounds: x=1x = 1 gives u=1u = 1, x=9x = 9 gives u=3u = 3. Then ∫19dxx+x=∫132u duu2+u=∫132 duu+1\int_1^9 \frac{dx}{x + \sqrt{x}} = \int_1^3 \frac{2u\,du}{u^2 + u} = \int_1^3 \frac{2\,du}{u + 1}, because u2+u=u(u+1)u^2 + u = u(u + 1) and the factor uu cancels: no partial fractions are needed once the fraction is simplified. The value is 2[ln⁡(u+1)]13=2(ln⁡4−ln⁡2)=2ln⁡22\Big[\ln(u + 1)\Big]_1^3 = 2(\ln 4 - \ln 2) = 2\ln 2.

Exercise 4: Converge or diverge: four improper integrals

For each integral, say first WHERE it is improper, then write the limit or limits, and evaluate the integral or show that it diverges.

  • a) ∫0∞dxx2+4x+5\displaystyle\int_0^{\infty} \frac{dx}{x^2 + 4x + 5}
  • b) ∫01ln⁡xx dx\displaystyle\int_0^{1} \frac{\ln x}{\sqrt{x}}\,dx
  • c) ∫1e2dxx (ln⁡x−1)23\displaystyle\int_1^{e^2} \frac{dx}{x\,\sqrt[3]{(\ln x - 1)^2}}
  • d) ∫01dxx2−4x+3\displaystyle\int_0^{1} \frac{dx}{x^2 - 4x + 3}
Show the solution

Answers

  • a) Converges: π2−arctan⁡2=arctan⁡12\frac{\pi}{2} - \arctan 2 = \arctan\frac{1}{2}
  • b) Converges: −4-4
  • c) Improper at x=ex = e, inside the interval; converges: 3+3=63 + 3 = 6
  • d) Improper at x=1x = 1; diverges

a) Improper at ∞\infty only: x2+4x+5=(x+2)2+1>0x^2 + 4x + 5 = (x + 2)^2 + 1 > 0, so the integrand is continuous on [0,∞)[0, \infty). Completing the square gives the arctangent: ∫0tdx(x+2)2+1=arctan⁡(t+2)−arctan⁡2\int_0^t \frac{dx}{(x + 2)^2 + 1} = \arctan(t + 2) - \arctan 2, and as t→∞t \to \infty, arctan⁡(t+2)→π2\arctan(t + 2) \to \frac{\pi}{2}. The integral converges to π2−arctan⁡2\frac{\pi}{2} - \arctan 2, which is also arctan⁡12\arctan\frac{1}{2} since arctan⁡a+arctan⁡1a=π2\arctan a + \arctan\frac{1}{a} = \frac{\pi}{2} for a>0a > 0. It is an exact answer: no calculator is needed, nor wanted.

b) Improper at 00: ln⁡xx→−∞\frac{\ln x}{\sqrt{x}} \to -\infty as x→0+x \to 0^+. By parts with u=ln⁡xu = \ln x, dv=x−1/2 dxdv = x^{-1/2}\,dx, v=2xv = 2\sqrt{x}: ∫ln⁡xx dx=2xln⁡x−∫2xx dx=2xln⁡x−4x+C\int \frac{\ln x}{\sqrt{x}}\,dx = 2\sqrt{x}\ln x - \int \frac{2\sqrt{x}}{x}\,dx = 2\sqrt{x}\ln x - 4\sqrt{x} + C. So ∫t1ln⁡xx dx=−4−2tln⁡t+4t\int_t^1 \frac{\ln x}{\sqrt{x}}\,dx = -4 - 2\sqrt{t}\ln t + 4\sqrt{t}. The limit lim⁡t→0+tln⁡t\lim_{t \to 0^+} \sqrt{t}\ln t is of the form 0⋅(−∞)0 \cdot (-\infty): write it ln⁡tt−1/2\frac{\ln t}{t^{-1/2}}, of the form −∞∞\frac{-\infty}{\infty}, and L'Hôpital's rule gives 1/t−12t−3/2=−2t→0\frac{1/t}{-\frac{1}{2}t^{-3/2}} = -2\sqrt{t} \to 0. The integral converges to −4-4, negative as it must be, since ln⁡x<0\ln x < 0 on (0,1)(0, 1).

c) Both endpoints are harmless (ln⁡x−1=−1\ln x - 1 = -1 at x=1x = 1 and 11 at x=e2x = e^2), but ln⁡x−1=0\ln x - 1 = 0 at x=ex = e, which lies INSIDE [1,e2][1, e^2]: the integrand blows up there. Split at ee, each piece a limit: ∫1e2=lim⁡s→e−∫1s+lim⁡r→e+∫re2\int_1^{e^2} = \lim_{s \to e^-}\int_1^s + \lim_{r \to e^+}\int_r^{e^2}. With u=ln⁡x−1u = \ln x - 1, du=dxxdu = \frac{dx}{x}, an antiderivative is 3u3=3ln⁡x−133\sqrt[3]{u} = 3\sqrt[3]{\ln x - 1}, valid on each side of ee (the cube root of a negative number is real). Left piece: lim⁡s→e−(3ln⁡s−13)−3−13=0+3=3\lim_{s \to e^-}\left(3\sqrt[3]{\ln s - 1}\right) - 3\sqrt[3]{-1} = 0 + 3 = 3. Right piece: 313−lim⁡r→e+3ln⁡r−13=33\sqrt[3]{1} - \lim_{r \to e^+} 3\sqrt[3]{\ln r - 1} = 3. Both converge, so the integral converges to 66.

Evaluating 3ln⁡x−133\sqrt[3]{\ln x - 1} from 11 to e2e^2 in one line also prints 66, by luck: that line uses FTC 2 across a point where the integrand is not continuous. The marks go to the split and the two limits, because the same shortcut prints a finite number for integrals that diverge.

d) Look at the endpoints: x2−4x+3=(x−1)(x−3)x^2 - 4x + 3 = (x - 1)(x - 3) vanishes at x=1x = 1, an endpoint, so the integral is improper at 11. Partial fractions: 1(x−1)(x−3)=12(1x−3−1x−1)\frac{1}{(x - 1)(x - 3)} = \frac{1}{2}\left(\frac{1}{x - 3} - \frac{1}{x - 1}\right). Then ∫0tdx(x−1)(x−3)=12[ln⁡∣x−3∣−ln⁡∣x−1∣]0t=12(ln⁡(3−t)−ln⁡(1−t)−ln⁡3)\int_0^t \frac{dx}{(x - 1)(x - 3)} = \frac{1}{2}\Big[\ln|x - 3| - \ln|x - 1|\Big]_0^t = \frac{1}{2}\left(\ln(3 - t) - \ln(1 - t) - \ln 3\right). As t→1−t \to 1^-, −ln⁡(1−t)→+∞-\ln(1 - t) \to +\infty: the integral diverges. Evaluating from 00 to 11 directly would ask for ln⁡0\ln 0, which is exactly the warning that a limit was needed.

Part B: long problems (/58)

Exercise 5: Integration by parts, and a reduction formula for powers of sine

For n≥0n \ge 0, let Wn=∫0π/2sin⁡nx dxW_n = \int_0^{\pi/2} \sin^n x\,dx. X Part a) is independent of the rest.

0.20.40.60.811.21.41.61.80.20.40.60.811.2n = 1n = 3n = 9x = π/2
  • a) Evaluate ∫1e2x ln⁡x dx\int_1^{e^2} \sqrt{x}\,\ln x\,dx. Name uu and dvdv, and say why the opposite choice is worse.
  • b) Prove that, for n≥2n \ge 2, ∫sin⁡nx dx=−1nsin⁡n−1xcos⁡x+n−1n∫sin⁡n−2x dx\int \sin^n x\,dx = -\frac{1}{n}\sin^{n-1} x\cos x + \frac{n - 1}{n}\int \sin^{n-2} x\,dx.
  • c) Deduce that Wn=n−1nWn−2W_n = \frac{n - 1}{n}W_{n-2} for n≥2n \ge 2. Compute W0W_0 and W1W_1, then W4W_4 and W5W_5 exactly.
  • d) Explain with the figure why W5≤W4≤W3W_5 \le W_4 \le W_3, and check your values. Then confirm W4W_4 by a half-angle computation.
  • e) Evaluate ∫0π/2cos⁡5x dx\int_0^{\pi/2} \cos^5 x\,dx with no new integration by parts.
Show the solution

Answers

  • a) u=ln⁡xu = \ln x, dv=x dxdv = \sqrt{x}\,dx: 8e3+49\frac{8e^3 + 4}{9}
  • b) u=sin⁡n−1xu = \sin^{n-1} x, dv=sin⁡x dxdv = \sin x\,dx, then cos⁡2x=1−sin⁡2x\cos^2 x = 1 - \sin^2 x: the original integral reappears and is solved for
  • c) W0=π2W_0 = \frac{\pi}{2}, W1=1W_1 = 1, W4=3π16W_4 = \frac{3\pi}{16}, W5=815W_5 = \frac{8}{15}
  • d) 0≤sin⁡x≤10 \le \sin x \le 1 gives sin⁡n+1x≤sin⁡nx\sin^{n+1} x \le \sin^n x; 0.53≤0.59≤0.670.53 \le 0.59 \le 0.67
  • e) x=π2−tx = \frac{\pi}{2} - t turns it into W5=815W_5 = \frac{8}{15}

a) Take u=ln⁡xu = \ln x, du=dxxdu = \frac{dx}{x}, and dv=x1/2 dxdv = x^{1/2}\,dx, v=23x3/2v = \frac{2}{3}x^{3/2}. The logarithm is uu because its derivative is algebraic and kills the logarithm; the opposite choice, dv=ln⁡x dxdv = \ln x\,dx, would need v=xln⁡x−xv = x\ln x - x and leave ∫xln⁡x−x2x dx\int \frac{x\ln x - x}{2\sqrt{x}}\,dx, no simpler than the start. Then ∫1e2xln⁡x dx=[23x3/2ln⁡x]1e2−23∫1e2x1/2 dx\int_1^{e^2} \sqrt{x}\ln x\,dx = \Big[\frac{2}{3}x^{3/2}\ln x\Big]_1^{e^2} - \frac{2}{3}\int_1^{e^2} x^{1/2}\,dx. At x=e2x = e^2, x3/2=e3x^{3/2} = e^3 and ln⁡x=2\ln x = 2, so the bracket is 43e3−0\frac{4}{3}e^3 - 0. The new integral is 23⋅23[x3/2]1e2=49(e3−1)\frac{2}{3} \cdot \frac{2}{3}\Big[x^{3/2}\Big]_1^{e^2} = \frac{4}{9}(e^3 - 1). The value is 43e3−49e3+49=8e3+49\frac{4}{3}e^3 - \frac{4}{9}e^3 + \frac{4}{9} = \frac{8e^3 + 4}{9}.

Size check: on [1,e2][1, e^2] the integrand grows from 00 to 2e2e, over an interval of length e2−1e^2 - 1; so the value lies between 00 and 2e(e2−1)≈5.4×6.4≈352e(e^2 - 1) \approx 5.4 \times 6.4 \approx 35, and 8e3+49≈8×20+49≈18\frac{8e^3 + 4}{9} \approx \frac{8 \times 20 + 4}{9} \approx 18 does (with e3≈20e^3 \approx 20).

b) Write sin⁡nx=sin⁡n−1x⋅sin⁡x\sin^n x = \sin^{n-1} x \cdot \sin x and take u=sin⁡n−1xu = \sin^{n-1} x, du=(n−1)sin⁡n−2xcos⁡x dxdu = (n - 1)\sin^{n-2} x\cos x\,dx, dv=sin⁡x dxdv = \sin x\,dx, v=−cos⁡xv = -\cos x. Then ∫sin⁡nx dx=−sin⁡n−1xcos⁡x+(n−1)∫sin⁡n−2xcos⁡2x dx\int \sin^n x\,dx = -\sin^{n-1} x\cos x + (n - 1)\int \sin^{n-2} x\cos^2 x\,dx. Convert cos⁡2x=1−sin⁡2x\cos^2 x = 1 - \sin^2 x: ∫sin⁡nx dx=−sin⁡n−1xcos⁡x+(n−1)∫sin⁡n−2x dx−(n−1)∫sin⁡nx dx\int \sin^n x\,dx = -\sin^{n-1} x\cos x + (n - 1)\int \sin^{n-2} x\,dx - (n - 1)\int \sin^n x\,dx.

The integral we started with reappears on the right with the coefficient −(n−1)-(n - 1). Treat it as an unknown and bring it to the left: n∫sin⁡nx dx=−sin⁡n−1xcos⁡x+(n−1)∫sin⁡n−2x dxn\int \sin^n x\,dx = -\sin^{n-1} x\cos x + (n - 1)\int \sin^{n-2} x\,dx. Dividing by nn gives the formula. The hypothesis n≥2n \ge 2 makes sin⁡n−2x\sin^{n-2} x an honest power, so the right-hand side is a genuine integral of lower degree.

c) On [0,π2]\left[0, \frac{\pi}{2}\right] the bracket vanishes at both ends: sin⁡n−1xcos⁡x\sin^{n-1} x\cos x is 00 at x=π2x = \frac{\pi}{2} because cos⁡π2=0\cos\frac{\pi}{2} = 0, and 00 at x=0x = 0 because sin⁡0=0\sin 0 = 0 and n−1≥1n - 1 \ge 1. So Wn=n−1nWn−2W_n = \frac{n - 1}{n}W_{n-2}. The two starting values are W0=∫0π/2dx=π2W_0 = \int_0^{\pi/2} dx = \frac{\pi}{2} and W1=[−cos⁡x]0π/2=1W_1 = \Big[-\cos x\Big]_0^{\pi/2} = 1. Even indices come from W0W_0: W2=12⋅π2=π4W_2 = \frac{1}{2} \cdot \frac{\pi}{2} = \frac{\pi}{4}, W4=34⋅π4=3π16W_4 = \frac{3}{4} \cdot \frac{\pi}{4} = \frac{3\pi}{16}. Odd indices come from W1W_1: W3=23W_3 = \frac{2}{3}, W5=45⋅23=815W_5 = \frac{4}{5} \cdot \frac{2}{3} = \frac{8}{15}. Note that an even nn always ends on π\pi and an odd nn never does.

d) On [0,π2]\left[0, \frac{\pi}{2}\right], 0≤sin⁡x≤10 \le \sin x \le 1, so multiplying sin⁡nx\sin^n x by sin⁡x\sin x can only lower it: sin⁡n+1x≤sin⁡nx\sin^{n+1} x \le \sin^n x, which is the order of the curves on the figure. Integrating, Wn+1≤WnW_{n+1} \le W_n. The values agree: W5=815≈0.53W_5 = \frac{8}{15} \approx 0.53, W4=3π16≈0.59W_4 = \frac{3\pi}{16} \approx 0.59, W3=23≈0.67W_3 = \frac{2}{3} \approx 0.67 (with π≈3.14\pi \approx 3.14).

Half-angle check: sin⁡4x=(1−cos⁡2x2)2=14−12cos⁡2x+14cos⁡22x=38−12cos⁡2x+18cos⁡4x\sin^4 x = \left(\frac{1 - \cos 2x}{2}\right)^2 = \frac{1}{4} - \frac{1}{2}\cos 2x + \frac{1}{4}\cos^2 2x = \frac{3}{8} - \frac{1}{2}\cos 2x + \frac{1}{8}\cos 4x. On [0,π2]\left[0, \frac{\pi}{2}\right] the two cosines integrate to 00 (sin⁡π=sin⁡2π=0\sin \pi = \sin 2\pi = 0), so W4=38⋅π2=3π16W_4 = \frac{3}{8} \cdot \frac{\pi}{2} = \frac{3\pi}{16}. Same value, by a longer road.

e) Substitute x=π2−tx = \frac{\pi}{2} - t, dx=−dtdx = -dt: x=0x = 0 gives t=π2t = \frac{\pi}{2}, x=π2x = \frac{\pi}{2} gives t=0t = 0, and cos⁡(π2−t)=sin⁡t\cos\left(\frac{\pi}{2} - t\right) = \sin t. So ∫0π/2cos⁡5x dx=∫π/20sin⁡5t (−dt)=W5=815\int_0^{\pi/2} \cos^5 x\,dx = \int_{\pi/2}^{0} \sin^5 t\,(-dt) = W_5 = \frac{8}{15}. The odd-power method agrees: with u=sin⁡xu = \sin x, ∫01(1−u2)2 du=1−23+15=815\int_0^1 (1 - u^2)^2\,du = 1 - \frac{2}{3} + \frac{1}{5} = \frac{8}{15}.

Exercise 6: Three trigonometric substitutions, one of them after completing the square

In each part, state the substitution with the interval of θ\theta, and justify the sign of every root that comes out of it. The figure belongs to part d): it shows y=1x2−4x+8y = \frac{1}{\sqrt{x^2 - 4x + 8}}, the region under it for 2≤x≤32 \le x \le 3, and dashed segments at the heights 12\frac{1}{2} and 15\frac{1}{\sqrt 5} over that interval.

-1123450.10.20.30.40.50.6y = 1/√(x² − 4x + 8)1/21/√5
  • a) Evaluate ∫22dxx3x2−1\displaystyle\int_{\sqrt 2}^{2} \frac{dx}{x^3\sqrt{x^2 - 1}}, changing the bounds with the variable.
  • b) Deduce ∫−2−2dxx3x2−1\displaystyle\int_{-2}^{-\sqrt 2} \frac{dx}{x^3\sqrt{x^2 - 1}} without any substitution, and explain the sign.
  • c) Find ∫x2(x2+4)3/2 dx\displaystyle\int \frac{x^2}{(x^2 + 4)^{3/2}}\,dx, returning to xx with a right triangle. Check your answer by differentiating it.
  • d) Evaluate ∫23dxx2−4x+8\displaystyle\int_2^3 \frac{dx}{\sqrt{x^2 - 4x + 8}}, then use the figure to check that the value is plausible, without a calculator.
Show the solution

Answers

  • a) x=sec⁡θx = \sec\theta: ∫π/4π/3cos⁡2θ dθ=π24+38−14\int_{\pi/4}^{\pi/3}\cos^2\theta\,d\theta = \frac{\pi}{24} + \frac{\sqrt 3}{8} - \frac{1}{4}
  • b) The integrand is odd: −π24−38+14-\frac{\pi}{24} - \frac{\sqrt 3}{8} + \frac{1}{4}, negative since x3<0x^3 < 0
  • c) ln⁡(x+x2+4)−xx2+4+C\ln\left(x + \sqrt{x^2 + 4}\right) - \frac{x}{\sqrt{x^2 + 4}} + C
  • d) ln⁡1+52\ln\frac{1 + \sqrt 5}{2}, between 15\frac{1}{\sqrt 5} and 12\frac{1}{2}

a) The radicand has the form x2−a2x^2 - a^2 with a=1a = 1 and x≥1x \ge 1: set x=sec⁡θx = \sec\theta with 0≤θ<π20 \le \theta < \frac{\pi}{2}. Then dx=sec⁡θtan⁡θ dθdx = \sec\theta\tan\theta\,d\theta and x2−1=tan⁡2θ=∣tan⁡θ∣=tan⁡θ\sqrt{x^2 - 1} = \sqrt{\tan^2\theta} = |\tan\theta| = \tan\theta, since tan⁡θ≥0\tan\theta \ge 0 on that interval. Bounds: sec⁡θ=2\sec\theta = \sqrt 2 gives θ=π4\theta = \frac{\pi}{4}, and sec⁡θ=2\sec\theta = 2 gives θ=π3\theta = \frac{\pi}{3}. The integrand times dxdx becomes sec⁡θtan⁡θ dθsec⁡3θtan⁡θ=cos⁡2θ dθ\frac{\sec\theta\tan\theta\,d\theta}{\sec^3\theta\tan\theta} = \cos^2\theta\,d\theta.

With the half-angle formula, ∫π/4π/3cos⁡2θ dθ=[θ2+sin⁡2θ4]π/4π/3=12(π3−π4)+14(32−1)=π24+38−14\int_{\pi/4}^{\pi/3} \cos^2\theta\,d\theta = \Big[\frac{\theta}{2} + \frac{\sin 2\theta}{4}\Big]_{\pi/4}^{\pi/3} = \frac{1}{2}\left(\frac{\pi}{3} - \frac{\pi}{4}\right) + \frac{1}{4}\left(\frac{\sqrt 3}{2} - 1\right) = \frac{\pi}{24} + \frac{\sqrt 3}{8} - \frac{1}{4}. Size check: about 0.131+0.216−0.25≈0.100.131 + 0.216 - 0.25 \approx 0.10. The integrand decreases from 122≈0.35\frac{1}{2\sqrt 2} \approx 0.35 to 183≈0.07\frac{1}{8\sqrt 3} \approx 0.07 on an interval of length 2−2≈0.592 - \sqrt 2 \approx 0.59, so the value lies between 0.040.04 and 0.210.21: it does.

b) Let g(x)=1x3x2−1g(x) = \frac{1}{x^3\sqrt{x^2 - 1}}. Then g(−x)=−g(x)g(-x) = -g(x): the root is even and x3x^3 is odd. With u=−xu = -x, ∫−2−2g(x) dx=∫22g(−u)(−du)=∫22g(u) du=−∫22g(u) du=−π24−38+14\int_{-2}^{-\sqrt 2} g(x)\,dx = \int_{2}^{\sqrt 2} g(-u)(-du) = \int_2^{\sqrt 2} g(u)\,du = -\int_{\sqrt 2}^{2} g(u)\,du = -\frac{\pi}{24} - \frac{\sqrt 3}{8} + \frac{1}{4}. The sign is right: on [−2,−2][-2, -\sqrt 2], x3<0x^3 < 0, so the integrand is negative. A student who substitutes x=sec⁡θx = \sec\theta on this branch and writes x2−1=tan⁡θ\sqrt{x^2 - 1} = \tan\theta where tan⁡θ<0\tan\theta < 0 finds a POSITIVE value, and the sign check catches him at once.

c) A sum of squares: set x=2tan⁡θx = 2\tan\theta with −π2<θ<π2-\frac{\pi}{2} < \theta < \frac{\pi}{2}, so dx=2sec⁡2θ dθdx = 2\sec^2\theta\,d\theta and x2+4=4sec⁡2θx^2 + 4 = 4\sec^2\theta. Since sec⁡θ>0\sec\theta > 0 on this interval, (x2+4)3/2=8sec⁡3θ(x^2 + 4)^{3/2} = 8\sec^3\theta with no absolute value. The integral becomes ∫4tan⁡2θ⋅2sec⁡2θ8sec⁡3θ dθ=∫tan⁡2θsec⁡θ dθ=∫sec⁡2θ−1sec⁡θ dθ=∫(sec⁡θ−cos⁡θ) dθ=ln⁡∣sec⁡θ+tan⁡θ∣−sin⁡θ+C\int \frac{4\tan^2\theta \cdot 2\sec^2\theta}{8\sec^3\theta}\,d\theta = \int \frac{\tan^2\theta}{\sec\theta}\,d\theta = \int \frac{\sec^2\theta - 1}{\sec\theta}\,d\theta = \int (\sec\theta - \cos\theta)\,d\theta = \ln|\sec\theta + \tan\theta| - \sin\theta + C.

Triangle: tan⁡θ=x2\tan\theta = \frac{x}{2}, so the opposite side is xx, the adjacent side 22 and the hypotenuse x2+4\sqrt{x^2 + 4}. Then sec⁡θ=x2+42\sec\theta = \frac{\sqrt{x^2 + 4}}{2} and sin⁡θ=xx2+4\sin\theta = \frac{x}{\sqrt{x^2 + 4}}, and the antiderivative is ln⁡x+x2+42−xx2+4+C=ln⁡(x+x2+4)−xx2+4+C′\ln\frac{x + \sqrt{x^2 + 4}}{2} - \frac{x}{\sqrt{x^2 + 4}} + C = \ln\left(x + \sqrt{x^2 + 4}\right) - \frac{x}{\sqrt{x^2 + 4}} + C': the −ln⁡2-\ln 2 goes into the constant, and no absolute value is needed because x2+4>∣x∣\sqrt{x^2 + 4} > |x|.

Check: ddxln⁡(x+x2+4)=1+xx2+4x+x2+4=1x2+4\frac{d}{dx}\ln\left(x + \sqrt{x^2 + 4}\right) = \frac{1 + \frac{x}{\sqrt{x^2 + 4}}}{x + \sqrt{x^2 + 4}} = \frac{1}{\sqrt{x^2 + 4}}, and by the quotient rule ddxxx2+4=(x2+4)−x2(x2+4)3/2=4(x2+4)3/2\frac{d}{dx}\frac{x}{\sqrt{x^2 + 4}} = \frac{(x^2 + 4) - x^2}{(x^2 + 4)^{3/2}} = \frac{4}{(x^2 + 4)^{3/2}}. The difference is x2+4−4(x2+4)3/2=x2(x2+4)3/2\frac{x^2 + 4 - 4}{(x^2 + 4)^{3/2}} = \frac{x^2}{(x^2 + 4)^{3/2}}, the integrand.

d) Complete the square BEFORE substituting: x2−4x+8=(x−2)2+4x^2 - 4x + 8 = (x - 2)^2 + 4. With u=x−2u = x - 2 the bounds become 00 and 11, and the integral is ∫01duu2+4\int_0^1 \frac{du}{\sqrt{u^2 + 4}}. Now u=2tan⁡θu = 2\tan\theta, du=2sec⁡2θ dθdu = 2\sec^2\theta\,d\theta, u2+4=2sec⁡θ\sqrt{u^2 + 4} = 2\sec\theta, and the integral is ∫sec⁡θ dθ=ln⁡∣sec⁡θ+tan⁡θ∣\int \sec\theta\,d\theta = \ln|\sec\theta + \tan\theta|, taken from θ=0\theta = 0 to the angle where tan⁡θ=12\tan\theta = \frac{1}{2}, at which sec⁡θ=1+14=52\sec\theta = \sqrt{1 + \frac{1}{4}} = \frac{\sqrt 5}{2}. The value is ln⁡(52+12)−ln⁡1=ln⁡1+52\ln\left(\frac{\sqrt 5}{2} + \frac{1}{2}\right) - \ln 1 = \ln\frac{1 + \sqrt 5}{2}, the logarithm of the golden ratio φ=1+52\varphi = \frac{1 + \sqrt 5}{2}.

Plausibility: on [2,3][2, 3] the integrand decreases from 12\frac{1}{2} to 15\frac{1}{\sqrt 5}, so the shaded area lies between the two dashed rectangles, 15≈0.447\frac{1}{\sqrt 5} \approx 0.447 and 12\frac{1}{2}. The upper bound can be checked exactly: ln⁡φ<12\ln\varphi < \frac{1}{2} means φ2<e\varphi^2 < e, and φ2=φ+1≈2.62\varphi^2 = \varphi + 1 \approx 2.62 (since φ\varphi solves t2=t+1t^2 = t + 1), which is less than e≈2.72e \approx 2.72. The value is about 0.480.48, inside the bracket.

Exercise 7: A quartic denominator: factor, decompose, integrate

Let Q(x)=x4+2x3+2x2+2x+1Q(x) = x^4 + 2x^3 + 2x^2 + 2x + 1. The figure shows y=x2+2x+3Q(x)y = \frac{x^2 + 2x + 3}{Q(x)} for 0≤x≤2.50 \le x \le 2.5 and the region under it for 0≤x≤10 \le x \le 1, whose area is I=∫01x2+2x+3Q(x) dxI = \int_0^1 \frac{x^2 + 2x + 3}{Q(x)}\,dx. Part a) is independent of the rest.

0.511.522.50.511.522.533.5y = (x² + 2x + 3)/Q(x)
  • a) Write the FORM of the partial fraction decomposition of x3+4x3−2x2\frac{x^3 + 4}{x^3 - 2x^2} and of 5x(x−1)(x2+2x+2)2\frac{5x}{(x - 1)(x^2 + 2x + 2)^2}. Do not solve for the constants.
  • b) Show that −1-1 is a root of QQ, and factor QQ completely over the real numbers, justifying that the factorization is complete.
  • c) Find the partial fraction decomposition of x2+2x+3Q(x)\frac{x^2 + 2x + 3}{Q(x)}, and check it at one value of xx.
  • d) Evaluate II exactly, and check its size against the figure.
Show the solution

Answers

  • a) 1+Ax+Bx2+Cx−21 + \frac{A}{x} + \frac{B}{x^2} + \frac{C}{x - 2}; Ax−1+Bx+Cx2+2x+2+Dx+E(x2+2x+2)2\frac{A}{x - 1} + \frac{Bx + C}{x^2 + 2x + 2} + \frac{Dx + E}{(x^2 + 2x + 2)^2}
  • b) Q(x)=(x+1)2(x2+1)Q(x) = (x + 1)^2(x^2 + 1)
  • c) 1x+1+1(x+1)2+1−xx2+1\frac{1}{x + 1} + \frac{1}{(x + 1)^2} + \frac{1 - x}{x^2 + 1}
  • d) I=12+12ln⁡2+π4≈1.63I = \frac{1}{2} + \frac{1}{2}\ln 2 + \frac{\pi}{4} \approx 1.63, between 34\frac{3}{4} and 33

a) First function: numerator and denominator both have degree 33, so the degree check forces a long division first: x3+4x3−2x2=1+2x2+4x3−2x2\frac{x^3 + 4}{x^3 - 2x^2} = 1 + \frac{2x^2 + 4}{x^3 - 2x^2}. The denominator factors as x2(x−2)x^2(x - 2), a repeated linear factor and a distinct one, so the form is 1+Ax+Bx2+Cx−21 + \frac{A}{x} + \frac{B}{x^2} + \frac{C}{x - 2}, one term for EACH power of xx. Second function: it is proper (1<51 < 5), and x2+2x+2x^2 + 2x + 2 has discriminant 4−8=−4<04 - 8 = -4 < 0, so it is irreducible, and squared. The form is Ax−1+Bx+Cx2+2x+2+Dx+E(x2+2x+2)2\frac{A}{x - 1} + \frac{Bx + C}{x^2 + 2x + 2} + \frac{Dx + E}{(x^2 + 2x + 2)^2}: five constants for a denominator of degree five, as it must be.

b) By the rational root test, a rational root of QQ divides 11, so only ±1\pm 1 can be one. Q(1)=8Q(1) = 8 and Q(−1)=1−2+2−2+1=0Q(-1) = 1 - 2 + 2 - 2 + 1 = 0, so x+1x + 1 is a factor. Dividing (synthetic division with −1-1 on the coefficients 1,2,2,2,11, 2, 2, 2, 1 gives 1,1,1,11, 1, 1, 1 and remainder 00): Q(x)=(x+1)(x3+x2+x+1)Q(x) = (x + 1)(x^3 + x^2 + x + 1). The cubic factors by grouping: x3+x2+x+1=x2(x+1)+(x+1)=(x+1)(x2+1)x^3 + x^2 + x + 1 = x^2(x + 1) + (x + 1) = (x + 1)(x^2 + 1). So Q(x)=(x+1)2(x2+1)Q(x) = (x + 1)^2(x^2 + 1), and the factorization is complete because x2+1x^2 + 1 has no real root (its discriminant is −4-4). A student who stops after the first root misses that −1-1 is a DOUBLE root, and his form has no term in 1(x+1)2\frac{1}{(x + 1)^2}: it cannot work.

c) The fraction is proper (2<42 < 4). Form: x2+2x+3(x+1)2(x2+1)=Ax+1+B(x+1)2+Cx+Dx2+1\frac{x^2 + 2x + 3}{(x + 1)^2(x^2 + 1)} = \frac{A}{x + 1} + \frac{B}{(x + 1)^2} + \frac{Cx + D}{x^2 + 1}, that is x2+2x+3=A(x+1)(x2+1)+B(x2+1)+(Cx+D)(x+1)2x^2 + 2x + 3 = A(x + 1)(x^2 + 1) + B(x^2 + 1) + (Cx + D)(x + 1)^2. At x=−1x = -1: 2=2B2 = 2B, so B=1B = 1. The x3x^3 coefficients: 0=A+C0 = A + C. At x=0x = 0: 3=A+B+D3 = A + B + D, so A+D=2A + D = 2. At x=1x = 1: 6=4A+2B+4(C+D)=4(A+C)+2+4D6 = 4A + 2B + 4(C + D) = 4(A + C) + 2 + 4D, so 4D=44D = 4 and D=1D = 1, then A=1A = 1 and C=−1C = -1.

The decomposition is 1x+1+1(x+1)2+1−xx2+1\frac{1}{x + 1} + \frac{1}{(x + 1)^2} + \frac{1 - x}{x^2 + 1}. Check at x=2x = 2: the left side is 4+4+39⋅5=1145\frac{4 + 4 + 3}{9 \cdot 5} = \frac{11}{45}, the right side 13+19−15=15+5−945=1145\frac{1}{3} + \frac{1}{9} - \frac{1}{5} = \frac{15 + 5 - 9}{45} = \frac{11}{45}.

d) Split the last term as 1x2+1−xx2+1\frac{1}{x^2 + 1} - \frac{x}{x^2 + 1}. An antiderivative is ln⁡∣x+1∣−1x+1+arctan⁡x−12ln⁡(x2+1)\ln|x + 1| - \frac{1}{x + 1} + \arctan x - \frac{1}{2}\ln(x^2 + 1): the squared factor gives a POWER, not a logarithm, and the part of the numerator proportional to 2x2x gives the logarithm, the rest the arctangent. At x=1x = 1: ln⁡2−12+π4−12ln⁡2\ln 2 - \frac{1}{2} + \frac{\pi}{4} - \frac{1}{2}\ln 2; at x=0x = 0: 0−1+0−0=−10 - 1 + 0 - 0 = -1. So I=12ln⁡2+12+π4≈0.35+0.5+0.79=1.63I = \frac{1}{2}\ln 2 + \frac{1}{2} + \frac{\pi}{4} \approx 0.35 + 0.5 + 0.79 = 1.63.

Size check: each of the three terms of c) decreases on [0,1][0, 1] (for the last, the derivative of 1−x1+x2\frac{1 - x}{1 + x^2} has numerator x2−2x−1=(x−1)2−2<0x^2 - 2x - 1 = (x - 1)^2 - 2 < 0 there), so the integrand decreases from 33 at x=0x = 0 to 68=34\frac{6}{8} = \frac{3}{4} at x=1x = 1, as on the figure. Hence 34≤I≤3\frac{3}{4} \le I \le 3, and 1.631.63 fits. Forgetting the constant −1-1 at x=0x = 0, the usual slip here, would give 0.630.63, below the floor of 34\frac{3}{4}.

Exercise 8: Decide before computing: comparison, and the infinity minus infinity trap

For each improper integral, the verdict must be justified by the comparison test with its hypotheses checked (positive integrands, and the inequality in the direction that concludes), or by an exact limit. You may use without proof that arctan⁡xx\frac{\arctan x}{x} has no elementary antiderivative, and that on [0,1][0, 1] the convex function exe^x lies below its chord, ex≤1+(e−1)xe^x \le 1 + (e - 1)x.

The figure shows y=1ex−1y = \frac{1}{e^x - 1} (solid) and y=1xy = \frac{1}{x} (dashed) for 0<x≤40 < x \le 4.

0.511.522.533.540.511.522.53y = 1/xy = 1/(eˣ − 1)
  • a) Show by comparison that ∫1∞dxx(1+x2)\int_1^{\infty} \frac{dx}{x(1 + x^2)} converges, and give an upper bound for its value.
  • b) Compute it exactly. A classmate writes ∫1∞dxx(1+x2)=∫1∞dxx−∫1∞x dx1+x2\int_1^{\infty} \frac{dx}{x(1 + x^2)} = \int_1^{\infty} \frac{dx}{x} - \int_1^{\infty} \frac{x\,dx}{1 + x^2}: explain why this line is illegal, and how the correct computation gets around it.
  • c) Show that ∫1∞arctan⁡xx dx\int_1^{\infty} \frac{\arctan x}{x}\,dx diverges. Which comparison with 1x\frac{1}{x} proves nothing?
  • d) Show that ∫1∞dxex−1\int_1^{\infty} \frac{dx}{e^x - 1} converges, with a bound, then compute it exactly with the substitution u=exu = e^x.
  • e) The figure shows 1ex−1\frac{1}{e^x - 1} BELOW 1x\frac{1}{x}. Explain why that proves nothing about ∫01dxex−1\int_0^1 \frac{dx}{e^x - 1}, then decide its convergence. What can you conclude about ∫0∞dxex−1\int_0^{\infty} \frac{dx}{e^x - 1}?
Show the solution

Answers

  • a) 0<1x(1+x2)≤1x30 < \frac{1}{x(1 + x^2)} \le \frac{1}{x^3} and p=3>1p = 3 > 1: converges, value at most 12\frac{1}{2}
  • b) 12ln⁡2≈0.35\frac{1}{2}\ln 2 \approx 0.35; both pieces diverge, so combine the logarithms on [1,t][1, t] before the limit
  • c) arctan⁡xx≥π4x\frac{\arctan x}{x} \ge \frac{\pi}{4x} for x≥1x \ge 1: diverges; arctan⁡xx≤π2x\frac{\arctan x}{x} \le \frac{\pi}{2x} proves nothing
  • d) 1ex−1≤ee−1e−x\frac{1}{e^x - 1} \le \frac{e}{e - 1}e^{-x}: converges, at most 1e−1\frac{1}{e - 1}; exact value ln⁡ee−1=1−ln⁡(e−1)\ln\frac{e}{e - 1} = 1 - \ln(e - 1)
  • e) Smaller than a divergent integral proves nothing; 1ex−1≥1(e−1)x\frac{1}{e^x - 1} \ge \frac{1}{(e - 1)x} on (0,1](0, 1]: diverges, so ∫0∞\int_0^\infty diverges

a) For x≥1x \ge 1 the integrand is continuous and positive, and 1+x2≥x21 + x^2 \ge x^2, so 0<1x(1+x2)≤1x⋅x2=1x30 < \frac{1}{x(1 + x^2)} \le \frac{1}{x \cdot x^2} = \frac{1}{x^3}. The integral ∫1∞dxx3\int_1^\infty \frac{dx}{x^3} converges (p=3>1p = 3 > 1) and equals 12\frac{1}{2}. Smaller than a convergent integral: by comparison, ∫1∞dxx(1+x2)\int_1^\infty \frac{dx}{x(1 + x^2)} converges, and its value is at most 12\frac{1}{2}.

b) Partial fractions: 1x(1+x2)=Ax+Bx+Cx2+1\frac{1}{x(1 + x^2)} = \frac{A}{x} + \frac{Bx + C}{x^2 + 1} gives 1=A(x2+1)+(Bx+C)x1 = A(x^2 + 1) + (Bx + C)x; x=0x = 0 gives A=1A = 1, the x2x^2 coefficients give B=−1B = -1, the xx coefficients C=0C = 0. So ∫1t(1x−xx2+1)dx=[ln⁡x−12ln⁡(x2+1)]1t=ln⁡tt2+1−ln⁡12\int_1^t \left(\frac{1}{x} - \frac{x}{x^2 + 1}\right)dx = \Big[\ln x - \frac{1}{2}\ln(x^2 + 1)\Big]_1^t = \ln\frac{t}{\sqrt{t^2 + 1}} - \ln\frac{1}{\sqrt 2}. As t→∞t \to \infty, tt2+1=11+1/t2→1\frac{t}{\sqrt{t^2 + 1}} = \frac{1}{\sqrt{1 + 1/t^2}} \to 1, so the first logarithm tends to 00, and the integral equals ln⁡2=12ln⁡2≈0.35\ln\sqrt 2 = \frac{1}{2}\ln 2 \approx 0.35, below the bound 12\frac{1}{2} of a).

The classmate's line splits the improper integral into two improper integrals, and BOTH diverge: ∫1tdxx=ln⁡t\int_1^t \frac{dx}{x} = \ln t and ∫1tx dx1+x2=12ln⁡1+t22\int_1^t \frac{x\,dx}{1 + x^2} = \frac{1}{2}\ln\frac{1 + t^2}{2} each tend to ∞\infty. The rule ∫(f−g)=∫f−∫g\int (f - g) = \int f - \int g holds for improper integrals only when both converge; otherwise the right side is ∞−∞\infty - \infty, which is not a number. The correct computation subtracts on the FINITE interval [1,t][1, t], combines the two logarithms into one, and only then lets t→∞t \to \infty.

c) For x≥1x \ge 1, arctan⁡x\arctan x is increasing, so arctan⁡x≥arctan⁡1=π4\arctan x \ge \arctan 1 = \frac{\pi}{4}, and arctan⁡xx≥π4⋅1x>0\frac{\arctan x}{x} \ge \frac{\pi}{4} \cdot \frac{1}{x} > 0. The integral ∫1∞dxx\int_1^\infty \frac{dx}{x} diverges (p=1p = 1), so ∫1∞π4x dx\int_1^\infty \frac{\pi}{4x}\,dx diverges too, and LARGER than a divergent integral: ∫1∞arctan⁡xx dx\int_1^\infty \frac{\arctan x}{x}\,dx diverges. No antiderivative was needed, which is fortunate, since there is none in elementary terms. The other natural bound, arctan⁡x<π2\arctan x < \frac{\pi}{2}, gives arctan⁡xx≤π2x\frac{\arctan x}{x} \le \frac{\pi}{2x}: smaller than a divergent integral, which proves nothing.

d) For x≥1x \ge 1, ex≥ee^x \ge e, so 1≤exe1 \le \frac{e^x}{e} and ex−1≥ex−exe=e−1eexe^x - 1 \ge e^x - \frac{e^x}{e} = \frac{e - 1}{e}e^x. Hence 0<1ex−1≤ee−1e−x0 < \frac{1}{e^x - 1} \le \frac{e}{e - 1}e^{-x}, and ∫1∞e−x dx=lim⁡t→∞(e−1−e−t)=1e\int_1^\infty e^{-x}\,dx = \lim_{t \to \infty}\left(e^{-1} - e^{-t}\right) = \frac{1}{e} converges. By comparison the integral converges, and its value is at most ee−1⋅1e=1e−1≈0.58\frac{e}{e - 1} \cdot \frac{1}{e} = \frac{1}{e - 1} \approx 0.58.

Exact value: with u=exu = e^x, du=ex dxdu = e^x\,dx, so dx=duudx = \frac{du}{u}, and ∫dxex−1=∫duu(u−1)=∫(1u−1−1u)du=ln⁡u−1u+C=ln⁡(1−e−x)+C\int \frac{dx}{e^x - 1} = \int \frac{du}{u(u - 1)} = \int \left(\frac{1}{u - 1} - \frac{1}{u}\right)du = \ln\frac{u - 1}{u} + C = \ln\left(1 - e^{-x}\right) + C (here u>1u > 1, so no absolute values are needed). Then ∫1tdxex−1=ln⁡(1−e−t)−ln⁡(1−e−1)→0−ln⁡e−1e\int_1^t \frac{dx}{e^x - 1} = \ln(1 - e^{-t}) - \ln(1 - e^{-1}) \to 0 - \ln\frac{e - 1}{e}, so the integral equals ln⁡ee−1=1−ln⁡(e−1)\ln\frac{e}{e - 1} = 1 - \ln(e - 1). It respects the bound: ln⁡y≤y−1\ln y \le y - 1 gives ln⁡ee−1≤ee−1−1=1e−1\ln\frac{e}{e - 1} \le \frac{e}{e - 1} - 1 = \frac{1}{e - 1}.

e) Since ex≥1+xe^x \ge 1 + x for all xx, ex−1≥xe^x - 1 \ge x and 1ex−1≤1x\frac{1}{e^x - 1} \le \frac{1}{x} for x>0x > 0: that is the figure. But ∫01dxx\int_0^1 \frac{dx}{x} DIVERGES, and being smaller than a divergent integral proves nothing. The comparison that concludes goes the other way: by the chord inequality, ex−1≤(e−1)xe^x - 1 \le (e - 1)x on (0,1](0, 1], so 1ex−1≥1e−1⋅1x>0\frac{1}{e^x - 1} \ge \frac{1}{e - 1} \cdot \frac{1}{x} > 0, and ∫01dxx\int_0^1 \frac{dx}{x} diverges (p=1p = 1 on (0,1](0, 1]). Larger than a divergent integral: ∫01dxex−1\int_0^1 \frac{dx}{e^x - 1} diverges. The antiderivative of d) confirms it: ∫t1dxex−1=ln⁡(1−e−1)−ln⁡(1−e−t)→+∞\int_t^1 \frac{dx}{e^x - 1} = \ln(1 - e^{-1}) - \ln(1 - e^{-t}) \to +\infty as t→0+t \to 0^+.

So ∫0∞dxex−1\int_0^\infty \frac{dx}{e^x - 1} diverges, although its tail ∫1∞\int_1^\infty converges: an integral improper at both ends converges only if EVERY piece converges, and one divergent piece is enough to sink it. The figure tells the same story: near 00 the two curves are almost the same, so they must share the verdict of 1x\frac{1}{x} there; far away 1ex−1\frac{1}{e^x - 1} dies like e−xe^{-x}.

See also

Preparing for the MATH 141 midterm?

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