The exercise set on integration techniques covers the four methods of the course outline: substitution, integration by parts, partial fractions and trigonometric substitution. This one exists for the next question, the one that comes at the end of the exam: what do you do when none of the four works? Its fifteen corrected exercises for Integral Calculus, 201-SN3-RE (formerly 201-NYB), cover King's rule, the Weierstrass substitution t=tan2x, parity and periodicity, the hyperbolic substitution, reduction formulas and Wallis integrals, integration by parts with the invisible factor 1 and cyclic integration by parts, Bioche's rules and the integral of an inverse function.
The answer rests on an idea the course almost never states: a definite integral can be computed thanks to a symmetry of the DOMAIN, without knowing how to find an antiderivative. That is the principle behind King's rule (exercise 1), the substitution x↦x1 (exercise 8) and the synthesis problem (exercise 10), where ∫0πxsin3xdx falls in one line.
By the end of the set, you can rationalize a fraction in sine and cosine with Weierstrass (exercise 2) or, faster, with Bioche's rules (exercise 11), replace a trigonometric substitution with x=asinhu (exercise 4), establish the recurrence In=nn−1In−2 of the Wallis integrals (exercise 5), solve an integration by parts where I comes back on both sides (exercise 7), integrate arcsin or the inverse of x3+x with the complementary rectangle (exercise 12), and compute ∫0π/2ln(sinx)dx and then three famous integrals that follow from it (exercise 13). Two probability problems close the set: Buffon's needle and the measurement of π (exercise 14), and the mean distance between two points of a circle (exercise 15).
Exercise 9 gathers the pitfalls: an antiderivative applied across an asymptote, a substitution that is not monotonic, x2 taken for x, lnx instead of ln∣x∣. The most expensive of all, the Weierstrass substitution applied over a full turn (exercise 2 d, taken up again in exercise 9), turns an integral worth 32π into a perfectly convincing zero.
Self-checking setType your answers and check them question by question: the page tells you right or wrong before you open the solution. With an account, every answer right on the first try earns points, and your right answers stay filled in when you come back.
•King's rule: ∫abf(x)dx=∫abf(a+b−x)dx. It computes nothing by itself; it provides a SECOND equation in I.
•Weierstrass: with t=tan2x, we have sinx=1+t22t, cosx=1+t21−t2 and dx=1+t22dt. Valid only on an interval where tan2x is continuous, so never across x=π.
•Hyperbolic functions: cosh2u−sinh2u=1, (sinhu)′=coshu, (coshu)′=sinhu. For x2+a2, set x=asinhu; for x2−a2, set x=acoshu. Logarithmic forms: sinh−1x=ln(x+x2+1) and cosh−1x=ln(x+x2−1).
•Wallis: In=∫0π/2sinnxdx satisfies In=nn−1In−2, with I0=2π and I1=1. Moreover InIn−1=2nπ.
•Symmetry of the domain: ∫0∞f(x)dx=∫0∞x21f(x1)dx, and ∫1/aaxg(x)dx=∫1/aaxg(1/x)dx.
•STANDING PITFALL: a substitution must be MONOTONIC on the interval, and the integrand must be continuous there. A negative answer for the integral of a positive function always signals one of the two.
Part A: folding the bounds, rationalizing, reducing (/50)
Exercise 1: King's rule: folding the interval onto itself
The substitution u=a+b−x swaps the two bounds without changing the interval. So it does not produce an antiderivative, but a SECOND expression of the same integral. Adding the two is often enough to make everything collapse.
a) Prove that ∫abf(x)dx=∫abf(a+b−x)dx.
b) Compute I=∫0π/2sinx+cosxsinxdx by introducing J=∫0π/2sinx+cosxcosxdx.
c) Compute ∫0π/21+tan2xdx. Comment on the disappearance of the exponent.
d) Compute K=∫0π1+cos2xxsinxdx.
e) Generalize: what is the value of ∫0af(x)+f(a−x)f(x)dx for any f continuous and strictly positive on [0,a]?
Show the solution
Answers
a)u=a+b−x: same interval, bounds swapped
b)I=J and I+J=2π: I=4π
c)4π, whatever the exponent
d)K=4π2≈2.467
e)2a for every f
a)
Let u=a+b−x, so x=a+b−u and dx=−du. When x=a, u=b; when x=b, u=a. Then ∫abf(x)dx=∫baf(a+b−u)(−du)=∫abf(a+b−u)du. Since the name of the variable is a dummy, this is indeed the same integral. Geometrically, the graph has been flipped about the vertical line x=2a+b, which does not change the area.
b)
Here a+b=2π, and sin(2π−x)=cosx, cos(2π−x)=sinx. The trick therefore turns I exactly into J: I=J. Moreover I+J=∫0π/2sinx+cosxsinx+cosxdx=∫0π/21dx=2π. From I=J and I+J=2π we get I=4π. No antiderivative was ever looked for: that is the whole point.
c)
1+tan2x1=cos2x+sin2xcos2x. Calling this integral I, King's rule swaps sin and cos and gives J=∫0π/2cos2x+sin2xsin2xdx, with I+J=2π and I=J by the same argument as in b. Hence I=4π. The exponent disappeared because it never plays any role: all that matters is the SYMMETRY sin↔cos of the interval. The answer would be the same with exponent 17 or π, which makes this integral unbeatable on a multiple-choice exam.
d)
The trick with x↦π−x gives K=∫0π1+cos2x(π−x)sinxdx, since sin(π−x)=sinx and cos2(π−x)=cos2x. Adding the two expressions: 2K=π∫0π1+cos2xsinxdx. This last integral is done with u=cosx, du=−sinxdx: it equals ∫−111+u2du=[arctanu]−11=4π+4π=2π. Hence 2K=π⋅2π and K=4π2≈2.467. The factor x, which made the integral out of reach, has been eliminated by the trick.
e)
Call this integral I. King's rule with x↦a−x gives I=∫0af(a−x)+f(x)f(a−x)dx. Adding the two expressions, the numerators recombine: 2I=∫0af(x)+f(a−x)f(x)+f(a−x)dx=∫0a1dx=a, so I=2a, WHATEVER f is. Questions b and c are two special cases of it, with a=2π. The shape to recognize: a quotient whose denominator is the sum of the numerator and its reflection.
Tick the exercises you have done or want to review: a free account, no password, keeps your ticks and your right answers from one visit to the next, tells you which chapter to tackle next and lets you ask for the exercise you are missing. Create your space, an email is enough.
Exercise 2: The Weierstrass substitution: rationalizing sine and cosine
Every rational function of sinx and cosx becomes a rational function of t under t=tan2x. It is the only technique of the chapter that is universal. Very often, it is also the heaviest one, and it hides a continuity trap.
a) Prove the three formulas sinx=1+t22t, cosx=1+t21−t2 and dx=1+t22dt.
b) Compute ∫1+sinxdx, then check the result by differentiating it.
c) Compute ∫0π/22+cosxdx.
d) On which interval is the substitution legitimate? What happens if it is applied as is to ∫02π2+cosxdx, and what is the true value?
e) State the three shortcuts that avoid Weierstrass, and say when each one applies.
Show the solution
Answers
a)sinx=1+t22t, cosx=1+t21−t2, dx=1+t22dt
b)−1+tan2x2+C
c)33π≈0.6046
d)Wrong 0; true value 32π≈3.628
e)Bioche: u=cosx, u=sinx, u=tanx
a)
With t=tan2x, the double-angle formulas give sinx=2sin2xcos2x. Dividing top and bottom by cos22x: sinx=sec22x2tan2x=1+t22t. Likewise cosx=cos22x−sin22x=1+tan22x1−tan22x=1+t21−t2. Finally dt=21sec22xdx=21(1+t2)dx, hence dx=1+t22dt.
b)
∫1+sinxdx=∫1+1+t22t1+t22dt=∫1+t2+2t2dt=∫(1+t)22dt=−1+t2+C=−1+tan2x2+C. Check: differentiating, dxd[−1+tan2x2]=(1+tan2x)22⋅21sec22x=(1+t)21+t2. And 1+sinx=1+1+t22t=1+t2(1+t)2: the quotient obtained is indeed 1+sinx1.
c)
For x∈[0,2π], t=tan2x goes from 0 to 1. ∫0π/22+cosxdx=∫012+1+t21−t21+t22dt=∫012+2t2+1−t22dt=∫013+t22dt. Hence 32[arctan3t]01=32⋅6π=33π=9π3≈0.6046.
d)
The substitution requires t=tan2x to be continuous, so 2x must avoid 2π: it is only legitimate on an interval contained in (−π,π), up to a shift by a multiple of 2π. On [0,2π], t starts at 0, tends to +∞ at x=π, reappears at −∞ and climbs back to 0: blindly applying the antiderivative 32arctan3t gives F(2π)−F(0)=0−0=0. Yet the integrand 2+cosx1 is everywhere greater than 31: the integral is at least 32π. The true value, obtained by splitting at x=π and doubling by symmetry, is 32π≈3.628. Remember: a zero for the integral of a strictly positive function is not a computation error, it is a DOMAIN error.
e)
These are Bioche's rules, which rest on the invariance of the expression f(x)dx. (1) If f(−x)(−dx)=f(x)dx, that is, if f is odd, set u=cosx. (2) If the expression is invariant under x↦π−x, set u=sinx. (3) If it is invariant under x↦π+x, set u=tanx. Weierstrass is only used when NONE of the three applies, as for 2+cosx1: it is a last resort, not a first reflex, because it often produces painful partial fractions where a u=cosx would have been enough.
Exercise 3: Parity, symmetry and periodicity: killing an integral in one line
Before any computation, three questions: is the interval symmetric? Is the integrand even or odd? Is it periodic? A yes often makes the whole integral disappear. A yes given too quickly makes it disappear wrongly.
a) State the two rules for ∫−aa according to parity, and prove the one for the odd case.
b) Evaluate ∫−111+x4x3dx and ∫−22(x5sinx+x2)dx by identifying the parity of EACH term.
c) A student claims that ∫−11xdx equals 0 because the integrand is odd. What do you make of this argument?
d) Show that ∫0πf(sinx)dx=2∫0π/2f(sinx)dx for every continuous f, then apply it to ∫0πsin4xdx.
e) If g is T-periodic, show that ∫aa+Tg=∫0Tg, then compute ∫010π∣sinx∣dx.
Show the solution
Answers
a)Even: 2∫0a; odd: 0
b)0; even integrand, not zero
c)Wrong: x1 is not integrable on [−1,1]
d)83π
e)20
a)
If f is EVEN, ∫−aaf=2∫0af. If f is ODD, ∫−aaf=0. Proof of the odd case: ∫−aaf=∫−a0f+∫0af. In the first one, let u=−x: it becomes ∫0af(−u)du=−∫0af(u)du. The sum is therefore zero. The hidden hypothesis, and it is the one behind question c, is that f be INTEGRABLE on [−a,a].
b)
1+x4x3 is odd (odd numerator, even denominator) and continuous: the integral is 0. For the second one, careful: x5 is odd and sinx is odd, so their PRODUCT is EVEN. And x2 is even. The integrand is therefore entirely even, and ∫−22(x5sinx+x2)dx=2∫02(x5sinx+x2)dx, which has no reason to be zero; the term x2 alone contributes 2⋅38=316. The classic error is to see x5 and conclude “odd” without looking at the next factor.
c)
The argument is wrong. The function x1 is indeed odd, but it is NOT integrable on [−1,1]: it is not defined at 0, and the two halves ∫01xdx and ∫−10xdx diverge to +∞ and −∞ respectively. The integral does not exist; writing ∞−∞=0 is not a computation. One can define a Cauchy principal value equal to 0, but it is a different object, and it must be named. Rule: parity never exempts you from checking continuity on the whole interval.
d)
Let u=π−x on [2π,π]: du=−dx, the bounds become 2π and 0, and sin(π−u)=sinu. Hence ∫π/2πf(sinx)dx=∫0π/2f(sinu)du: the two halves are equal, hence the factor 2. Indeed, the graph of sin is symmetric about the vertical line x=2π. Application: ∫0πsin4xdx=2∫0π/2sin4xdx=2⋅163π=83π, the value 163π coming from the Wallis integrals of exercise 5.
e)
Let φ(a)=∫aa+Tg. Then φ′(a)=g(a+T)−g(a)=0 by periodicity, so φ is constant and equals φ(0)=∫0Tg. Application: ∣sinx∣ is π-periodic, and ∫0π∣sinx∣dx=∫0πsinxdx=[−cosx]0π=2. The interval [0,10π] contains exactly 10 periods, so ∫010π∣sinx∣dx=10⋅2=20. Without the absolute value, the same integral would be 0: it is the same pitfall as in exercise 9 of the set on polar coordinates.
Exercise 4: Hyperbolic functions: the substitution the table hides
The identity cosh2u−sinh2u=1 plays for x2+a2 the role that 1+tan2=sec2 plays for trigonometric substitution, but without ever producing a ln∣secu+tanu∣ to translate back. It is almost always the shorter route.
a) Starting from coshu=2eu+e−u and sinhu=2eu−e−u, prove cosh2u−sinh2u=1 and give the derivatives of both functions.
b) Prove that sinh−1x=ln(x+x2+1).
c) Compute ∫x2+9dx with x=3sinhu, then compare the route with that of the substitution x=3tanθ.
d) Compute ∫03x2+9dx.
e) Which hyperbolic substitution suits x2−a2, and why can it not be used on all of R?
Show the solution
Answers
a)cosh2−sinh2=1; sinh′=cosh, cosh′=sinh
b)sinh−1x=ln(x+x2+1)
c)ln(x+x2+9)+C, no triangle
d)29[ln(1+2)+2]≈10.33
e)x=acoshu, branch x≥a only
a)
cosh2u−sinh2u=4(eu+e−u)2−(eu−e−u)2=44eue−u=1. Differentiating the definitions: (sinhu)′=2eu+e−u=coshu and (coshu)′=2eu−e−u=sinhu. Note the absence of a minus sign, unlike the trigonometric case: that is what makes these substitutions so comfortable.
b)
Let x=sinhu=2eu−e−u and E=eu. Then 2x=E−E1, that is E2−2xE−1=0. Solving gives E=x±x2+1, and since E=eu>0 while x−x2+1<0, only the positive root works: eu=x+x2+1, so u=ln(x+x2+1).
c)
With x=3sinhu, dx=3coshudu and x2+9=3sinh2u+1=3coshu, positive with no sign discussion. The integral becomes ∫3coshu3coshudu=u+C=sinh−13x+C=ln(x+x2+9)+C′. Along the trigonometric route x=3tanθ, you get ∫secθdθ=ln∣secθ+tanθ∣+C, and then you must rebuild the right triangle to translate back secθ=3x2+9. Same result, two more steps, and an integral of secant to know by heart.
d)
With x=3sinhu: when x=0, u=0; when x=3, sinhu=1, so u1=ln(1+2). The integral becomes ∫0u13coshu⋅3coshudu=9∫0u1cosh2udu. With cosh2u=21+cosh2u, an antiderivative is 2u+sinhucoshu. At u1, sinhu1=1 and coshu1=2, hence ∫03x2+9dx=29[ln(1+2)+2]≈10.330.
e)
For x2−a2 we set x=acoshu, because cosh2u−1=sinh2u. But coshu≥1 for every real u: this substitution can only reach x≥a. It is therefore reserved for the RIGHT branch of the domain ∣x∣≥a; for x≤−a, set x=−acoshu, or handle the question by symmetry. Moreover x2−a2=a∣sinhu∣, and we choose u≥0 to remove the absolute value. It is the same precaution as for x=asecθ, with a lighter computation behind it.
Exercise 5: Reduction formulas and Wallis integrals
When an integer exponent n appears, you do not look for an antiderivative: you look for a relation between In and In−2. One integration by parts is enough, and the recurrence does the rest. The Wallis integrals In=∫0π/2sinnxdx are the model.
a) Integrating by parts on sinnx=sinn−1x⋅sinx, prove that In=nn−1In−2 for n≥2.
b) Give I0 and I1, then compute I2 to I6.
c) Write the closed form of In according to the parity of n, and explain why π appears in only one case out of two.
d) Prove that InIn−1=2nπ, and check it for n=3.
e) Establish the reduction formula for ∫0∞xne−xdx and compute its value.
Show the solution
Answers
a)In=nn−1In−2
b)4π, 32, 163π, 158, 325π
c)π for even n only
d)I3I2=6π
e)Γn=nΓn−1=n!
a)
Let u=sinn−1x and dv=sinxdx, so du=(n−1)sinn−2xcosxdx and v=−cosx. The boundary term [−sinn−1xcosx]0π/2 vanishes at both bounds. What remains is In=(n−1)∫0π/2sinn−2xcos2xdx. Replacing cos2x with 1−sin2x: In=(n−1)(In−2−In), that is nIn=(n−1)In−2 and In=nn−1In−2.
b)
I0=∫0π/2dx=2π and I1=∫0π/2sinxdx=1. Then I2=21I0=4π, I3=32I1=32, I4=43I2=163π, I5=54I3=158, I6=65I4=325π.
c)
For n=2m even: I2m=2m2m−1⋅2m−22m−3⋯21⋅2π. For n=2m+1 odd: I2m+1=2m+12m⋅2m−12m−2⋯32⋅1. The recurrence goes down two at a time: it ends at I0 if n is even, at I1 if it is odd. Since I0=2π contains π and I1=1 does not, only the even indices inherit π. The parity of the exponent therefore decides the nature of the result, which is a good way to check an answer: ∫0π/2sin7xdx cannot contain π.
d)
The sequence Jn=nInIn−1 satisfies Jn+1=(n+1)In+1In=(n+1)⋅n+1nIn−1⋅In=nInIn−1=Jn: it is CONSTANT. Now J1=1⋅I1I0=2π. Hence nInIn−1=2π, that is InIn−1=2nπ. Check for n=3: I3I2=32⋅4π=6π, and 2⋅3π=6π. It is this identity, together with In−1In→1, that gives the Wallis product 2π=∏m≥14m2−14m2 and the asymptotic equivalent In∼2nπ.
e)
Let Γn=∫0∞xne−xdx. By parts with u=xn and dv=e−xdx: Γn=[−xne−x]0∞+n∫0∞xn−1e−xdx=nΓn−1, the boundary term being zero because the exponential beats any power. Since Γ0=∫0∞e−xdx=1, the recurrence gives Γn=n!. We have just proved that the factorial is an integral: it is the starting point of the Gamma function, which extends n! to non-integer arguments.
Part B: computational tricks, symmetries of the domain and pitfalls (/50)
Exercise 6: The invisible factor 1: integration by parts in disguise
A function on its own, with no visible product, still lends itself to integration by parts: it is enough to see it as the product of itself by 1, and to choose dv=dx. The reflex works for every function whose derivative you know but whose antiderivative you do not: logarithms and inverse functions.
a) State the principle, and say which family of functions it applies to.
b) Compute ∫arctanxdx and ∫arcsinxdx.
c) Compute ∫ln(x2+1)dx, then check by differentiation.
d) Establish the reduction formula for ∫(lnx)ndx and compute ∫(lnx)2dx.
e) Compute ∫ln(x+x2+1)dx.
Show the solution
Answers
a)∫f=xf−∫xf′: logarithms and inverse functions
b)xarctanx−21ln(1+x2)+C; xarcsinx+1−x2+C
c)xln(x2+1)−2x+2arctanx+C
d)x(lnx)2−2xlnx+2x+C
e)xsinh−1x−x2+1+C
a)
Write f(x)=f(x)⋅1 and set u=f(x), dv=dx, so v=x: ∫f=xf(x)−∫xf′(x)dx. The method pays off whenever f′ is ALGEBRAIC while f is not, which is exactly the case of logarithms and inverse trigonometric functions. The case ∫lnxdx=xlnx−x is treated in the set on integration techniques; the following ones are its variants.
b)
For arctan: u=arctanx, du=1+x2dx, v=x. Then ∫arctanxdx=xarctanx−∫1+x2xdx=xarctanx−21ln(1+x2)+C. For arcsin: du=1−x2dx, hence ∫arcsinxdx=xarcsinx−∫1−x2xdx=xarcsinx+1−x2+C. In both cases, the remaining integral is done by an immediate substitution.
c)
u=ln(x2+1), du=x2+12xdx, v=x: ∫ln(x2+1)dx=xln(x2+1)−∫x2+12x2dx. Now x2+12x2=2−x2+12, an antiderivative of which is 2x−2arctanx. Hence ∫ln(x2+1)dx=xln(x2+1)−2x+2arctanx+C. Check: differentiating, ln(x2+1)+x2+12x2−2+x2+12=ln(x2+1)+x2+12x2+2−2=ln(x2+1).
d)
With u=(lnx)n and dv=dx: du=n(lnx)n−1xdx and v=x, so ∫(lnx)ndx=x(lnx)n−n∫(lnx)n−1dx. The exponent drops by one at each round, and the recurrence stops at ∫dx=x. For n=2: ∫(lnx)2dx=x(lnx)2−2∫lnxdx=x(lnx)2−2(xlnx−x)=x(lnx)2−2xlnx+2x+C.
e)
The function is sinh−1x, whose derivative is x2+11. With dv=dx: ∫sinh−1xdx=xsinh−1x−∫x2+1xdx=xsinh−1x−x2+1+C, the last integral being done with w=x2+1. Check: the derivative is sinh−1x+x2+1x−x2+1x=sinh−1x. The result has exactly the same shape as ∫arcsin, which is no coincidence: both functions are inverses of functions whose derivative is algebraic.
Exercise 7: The system of two integrals, and the equation where I appears on both sides
Some integrals cannot be computed on their own, only in pairs: two integrations by parts produce two equations linking I and J, and all that is left is a linear system. In other cases, it is I itself that comes back, and the equation is solved in one line.
a) Let I=∫excos2xdx and J=∫exsin2xdx. By differentiating excos2x and exsin2x, write two relations between I and J.
b) Solve the system and give I and J.
c) Find I again in one line through ∫e(1+2i)xdx, by taking the real part.
d) Evaluate ∫0πexcos2xdx.
e) Compute ∫0π/4ln(1+tanx)dx using tan(4π−x)=1+tanx1−tanx.
Show the solution
Answers
a)I−2J=excos2x and 2I+J=exsin2x
b)I=5ex(cos2x+2sin2x), J=5ex(sin2x−2cos2x)
c)Real part of 1+2ie(1+2i)x
d)5eπ−1≈4.428
e)8πln2≈0.2722
a)
dxd[excos2x]=excos2x−2exsin2x. Integrating both sides: excos2x=I−2J. Likewise dxd[exsin2x]=exsin2x+2excos2x gives exsin2x=J+2I. We thus have the system I−2J=excos2x and 2I+J=exsin2x.
b)
From the second equation, J=exsin2x−2I. Substituting into the first: I−2exsin2x+4I=excos2x, so 5I=ex(cos2x+2sin2x) and I=5ex(cos2x+2sin2x)+C. Then J=exsin2x−52ex(cos2x+2sin2x)=5ex(sin2x−2cos2x)+C. Check by differentiating I: 5ex(cos2x+2sin2x)+ex(−2sin2x+4cos2x)=55excos2x=excos2x.
c)
∫e(1+2i)xdx=1+2ie(1+2i)x=5ex(cos2x+isin2x)(1−2i), after multiplying by the conjugate. The real part of the numerator is ex(cos2x+2sin2x), so I=5ex(cos2x+2sin2x), and the imaginary part gives J along the way. A single integral, done like an ordinary exponential, replaces two integrations by parts: it is the most convincing argument for complex notation, and it works for every ∫eaxcosbxdx.
d)
∫0πexcos2xdx=[5ex(cos2x+2sin2x)]0π. At x=π: cos2π=1 and sin2π=0, hence 5eπ. At x=0: 51. The result is 5eπ−1≈4.428.
e)
Call this integral I and apply King's rule with x↦4π−x: I=∫0π/4ln(1+1+tanx1−tanx)dx=∫0π/4ln1+tanx2dx. Splitting the logarithm: I=∫0π/4ln2dx−∫0π/4ln(1+tanx)dx=4πln2−I. Hence 2I=4πln2 and I=8πln2≈0.2722. It is the most striking example of the chapter: the antiderivative of ln(1+tanx) is not elementary, and yet the definite integral falls in three lines, only because I reappears on the other side of the equal sign.
Exercise 8: The substitution that swaps x and its reciprocal
The change x↦x1 maps (0,∞) onto itself and swaps (0,1) with (1,∞). Like King's rule, it computes nothing by itself: it provides a second expression of the same integral, and the addition concludes.
a) Show that ∫0∞f(x)dx=∫0∞x21f(x1)dx when both integrals converge.
b) Deduce that ∫0∞1+x2lnxdx=0.
c) Show that ∫0∞(1+x2)(1+xn)dx=4π for every real n.
d) Compute ∫1/22xarctanxdx.
e) Compute ∫0π/2ln(sinx)dx through a symmetry in the same spirit.
Show the solution
Answers
a)x=u1: same domain
b)I=−I, so 0
c)4π for every n
d)2πln2≈1.089
e)−2πln2≈−1.089
a)
Let x=u1, so dx=−u2du. When x→0+, u→+∞; when x→+∞, u→0+. Then ∫0∞f(x)dx=∫∞0f(u1)(−u2du)=∫0∞u21f(u1)du. The domain is INVARIANT AS A WHOLE: that is the entire strength of the method.
b)
With f(x)=1+x2lnx: x21f(x1)=x21⋅1+x21−lnx=x2+1−lnx=−f(x). The formula of a therefore gives I=−I, so 2I=0 and I=0. An integral with no elementary antiderivative is computed without integrating anything: the contribution of (0,1), where lnx<0, exactly cancels that of (1,∞).
c)
Call the integral I. With f(x)=(1+x2)(1+xn)1, we have x21f(x1)=x21⋅1+x2x2⋅1+xnxn=(1+x2)(1+xn)xn. Hence I=∫0∞(1+x2)(1+xn)xndx. Adding the two expressions, the factor 1+xn cancels: 2I=∫0∞1+x2dx=[arctanx]0∞=2π, so I=4π, independently of n. It is the exact counterpart of question c of exercise 1.
d)
The interval [21,2] is also invariant under x↦x1, and xdx becomes −udu, the bounds being swapped. Hence I=∫1/22xarctanx1dx. Adding, and since arctanx+arctanx1=2π for x>0: 2I=2π∫1/22xdx=2πln4=πln2. Hence I=2πln2≈1.089.
e)
Let I=∫0π/2ln(sinx)dx. King's rule gives I=∫0π/2ln(cosx)dx. Adding: 2I=∫0π/2ln(sinxcosx)dx=∫0π/2ln2sin2xdx=∫0π/2ln(sin2x)dx−2πln2. In the remaining integral, let u=2x: it equals 21∫0πln(sinu)du, and by the symmetry of sin about 2π (exercise 3 d) this is 21⋅2I=I. We thus get 2I=I−2πln2, that is I=−2πln2≈−1.089. The integral is improper at 0, but convergent, and the result is negative as it should be, since sinx≤1 on the interval.
Exercise 9: The five pitfalls that cost the most marks
Each of the following five situations produces a perfectly presentable and perfectly wrong result. Spotting them is worth more than knowing one more technique: they are what makes the difference between 80 and 95 on a final exam.
a) A student writes ∫−11x2dx=[−x1]−11=−1−1=−2. What is the actual value of this integral?
b) He computes ∫−11x2dx by setting u=x2. Why is the substitution illegitimate?
c) He claims that ∫−22x2dx=[2x2]−22=0. Correct him.
d) He writes ∫xdx=lnx+C and deduces ∫−2−1xdx=ln(−1)−ln(−2). Correct him and give the value.
e) Write the list of checks to make BEFORE writing down any antiderivative, and say which one would have caught each of the four errors above, as well as the one in exercise 2 d.
Show the solution
Answers
a)Diverges: 0 is inside
b)u=x2 not monotonic; 32
c)x2=∣x∣: 4
d)ln∣x∣: −ln2≈−0.693
e)Continuity, monotonicity, sign under roots, domain, plausibility
a)
The function x21 is not defined at 0, which is INSIDE the interval: the fundamental theorem does not apply, because it requires continuity on all of [−1,1]. You must split: ∫01x2dx=ε→0+lim[−x1]ε1=lim(−1+ε1)=+∞. The integral DIVERGES. The alarm signal was immediate: the integrand is strictly positive, so a negative answer is impossible.
b)
The substitution u=x2 is not MONOTONIC on [−1,1]: it decreases then increases, and is therefore not one-to-one. Formally, du=2xdx forces dx=2xdu=±2udu, with a sign that changes at 0: you cannot write a single integral in u. The correct way out is to split at 0 and treat each half, or more simply to use parity: ∫−11x2dx=2∫01x2dx=32.
c)
x2=∣x∣, not x. The antiderivative 2x2 is that of x, not that of ∣x∣. Correctly: ∫−22∣x∣dx=2∫02xdx=2⋅2=4. Here again, a positive function cannot have a zero integral over a non-degenerate interval. The rule A2=∣A∣ is also the one that requires absolute values in arc lengths.
d)
The antiderivative of x1 is ln∣x∣, valid separately on (−∞,0) and on (0,∞). On [−2,−1], where x<0: ∫−2−1xdx=[ln∣x∣]−2−1=ln1−ln2=−ln2≈−0.693. The result is negative, which is correct: the integrand is negative on the whole interval. Writing ln(−1) makes no sense in the real numbers.
e)
Checklist. (1) Is the integrand CONTINUOUS on the whole closed interval? If not, the integral is improper and must go through a limit; this question catches error a. (2) Is every substitution you consider MONOTONIC on the interval? This question catches error b and, above all, the one in exercise 2 d, where tan2x blows up at x=π. (3) Do I have a ROOT or an absolute value whose sign I assumed? This question catches error c. (4) Is my antiderivative valid on the interval UNDER CONSIDERATION, in particular for ln∣x∣? This question catches error d. (5) Finally, a plausibility check: is the SIGN of the result compatible with that of the integrand, and is the order of magnitude compatible with the length of the interval times a typical value? This last question, which takes five seconds, would have caught all five errors.
Exercise 10: Synthesis problem: the formula that eliminates the factor x
All the tricks of Part A converge on a single identity, valid for every continuous function f: ∫0πxf(sinx)dx=2π∫0πf(sinx)dx. It removes the factor x, that is, precisely what made the integral out of reach.
a) Prove this identity.
b) Recover in two lines the value of ∫0π1+cos2xxsinxdx, computed in exercise 1 d.
c) Compute ∫0πxsin3xdx.
d) Compute ∫0π1+sinxxdx, reusing the antiderivative of exercise 2 b.
e) Write the complete decision tree of the set: faced with a definite integral that resists the four techniques of the course, which questions should you ask, in which order, and which exercise illustrates each one?
Show the solution
Answers
a)King's rule with x↦π−x: 2I=π∫0πf(sinx)dx
b)4π2
c)32π≈2.094
d)π
e)Course techniques, then symmetries, reduction, systems, Bioche, hyperbolic functions, checks
a)
Apply King's rule with x↦π−x. Since sin(π−x)=sinx, the argument of f is unchanged: I=∫0π(π−x)f(sinx)dx=π∫0πf(sinx)dx−I. Hence 2I=π∫0πf(sinx)dx and I=2π∫0πf(sinx)dx. Everything rests on the fact that sin is symmetric about x=2π: the formula would be WRONG with cos in place of sin.
b)
Here f(s)=1+(1−s2)s=2−s2s works, because 1+cos2x=2−sin2x: the integrand is indeed of the form xf(sinx). Hence K=2π∫0π1+cos2xsinxdx=2π⋅2π=4π2, the value 2π having been obtained with u=cosx in exercise 1. Two lines instead of five.
c)
∫0πxsin3xdx=2π∫0πsin3xdx. By the symmetry of exercise 3 d, ∫0πsin3xdx=2∫0π/2sin3xdx=2I3=2⋅32=34, where I3 comes from the Wallis integrals. Hence the result is 2π⋅34=32π≈2.094. Three tricks of the set follow one another in a single line.
d)
With f(s)=1+s1: ∫0π1+sinxxdx=2π∫0π1+sinxdx. The antiderivative found in exercise 2 b is −1+tan2x2, allowed here because tan2x stays continuous on [0,π) and tends to +∞ at π. As x→π− the antiderivative tends to 0, and at x=0 it equals −2: the integral is 0−(−2)=2. Hence ∫0π1+sinxxdx=2π⋅2=π≈3.142. Note that the bound π is a limit here, not a value: that is exactly the precaution that was missing in exercise 2 d.
e)
DECISION TREE. (0) First the four techniques of the course: substitution, integration by parts, partial fractions, trigonometric substitution. If one of them works, look no further. (1) Is the interval SYMMETRIC and the integrand even or odd? Exercise 3. (2) Is the integrand PERIODIC, with the interval containing a whole number of periods? Exercise 3 e. (3) Does the replacement x↦a+b−x give back an expression related to the integrand, in particular by swapping sin and cos or through an isolated factor x? Exercises 1 and 10. (4) Is the domain invariant under x↦x1, with a factor xdx? Exercise 8. (5) Does the integrand contain an INTEGER EXPONENT n? Look for a reduction formula. Exercise 5. (6) Does integration by parts bring back the original integral, or a second integral of the same type? Solve the system. Exercise 7. (7) Is the integrand a rational function of sin and cos? Try Bioche's three rules first, then Weierstrass. Exercise 2. (8) Is there a x2±a2? Hyperbolic functions are shorter than the triangle. Exercise 4. (9) Finally, at every step: continuity, monotonicity of the substitution, sign under the roots. Exercise 9.
Part C: the classics (/50)
Exercise 11: Bioche's rules: u = cos x, u = sin x or u = tan x
Faced with a fraction in sinx and cosx, look at what becomes of the expression f(x)dx when x is replaced by −x, by π−x or by π+x. If it is unchanged, set u=cosx, u=sinx or u=tanx respectively. Weierstrass is only a last resort.
a) Check that 2+cosxsin3xdx is invariant under x↦−x, then compute ∫2+cosxsin3xdx.
b) Compute ∫0π/21+cos2xdx with u=tanx, justifying this choice.
c) Compute ∫sinx(1+sinx)cosxdx after identifying the invariance.
d) A student computes ∫0π1+cos2xdx with the antiderivative found in b) and gets 0. Where is the error, and what is the true value?
e) Show that none of the three rules applies to ∫sinx+cosxdx, then compute this integral without Weierstrass by writing sinx+cosx=2sin(x+4π).
Show the solution
Answers
a)u=cosx: 2cos2x−2cosx+3ln(2+cosx)+C
b)u=tanx: 22π≈1.111
c)u=sinx: ln1+sinxsinx+C
d)Wrong 0; true value 2π≈2.221
e)21lntan(2x+8π)+C
a)
Under x↦−x: 2+cos(−x)sin3(−x)d(−x)=2+cosx−sin3x(−dx)=2+cosxsin3xdx: invariant, so u=cosx. Write sin3xdx=(1−u2)sinxdx=−(1−u2)du, which gives ∫u+2u2−1du. Long division gives u+2u2−1=u−2+u+23, hence 2u2−2u+3ln∣u+2∣, that is 2cos2x−2cosx+3ln(2+cosx)+C.
b)
Under x↦π+x, cos2 is unchanged and so is dx: set u=tanx. Then cos2x=1+u21 and dx=1+u2du, so 1+cos2xdx=(1+u2)+1du=u2+2du. As x goes from 0 to 2π, u goes from 0 to +∞: [21arctan2u]0+∞=22π≈1.111.
c)
Under x↦π−x: cos(π−x)=−cosx, sin(π−x)=sinx and d(π−x)=−dx, and the two minus signs cancel: invariant, so u=sinx, du=cosxdx. We get ∫u(1+u)du=∫(u1−1+u1)du=ln1+sinxsinx+C.
d)
The antiderivative 21arctan2tanx is not defined at x=2π, where tanx blows up: it equals 0 at 0 and at π, hence the wrong 0. Yet the integrand is everywhere greater than 21: the integral is at least 2π. Split at 2π; the two halves are equal (the integrand is symmetric about 2π), so the true value is 2×22π=2π≈2.221.
e)
Under x↦−x: cosx−sinx−dx, different. Under x↦π−x: sinx−cosx−dx=cosx−sinxdx, different. Under x↦π+x: −sinx−cosxdx, different. No rule applies. But sinx+cosx=2sin(x+4π), so the integral equals 21∫csc(x+4π)dx=21lntan(2x+8π)+C, using ∫csctdt=lntan2t. The coefficient is 21≈0.707.
Exercise 12: Integrating an inverse function without knowing it: the complementary rectangle
Let f be continuous, strictly increasing and differentiable on [0,a], with f(0)=0. The area under the graph of f and the area “to the left” of the graph, between the curve and the vertical axis, exactly fill the rectangle [0,a]×[0,f(a)]. The figure in the solution shows the case g(x)=x3+x on [0,1].
The figure below shows the situation.
a) Prove that ∫0af(x)dx+∫0f(a)f−1(y)dy=af(a), by the substitution y=f(x) followed by an integration by parts.
b) Apply the formula to f=sin on [0,2π] to compute ∫01arcsinydy.
c) Compute ∫0e−1ln(1+y)dy by choosing the right function f.
d) The function g(x)=x3+x is strictly increasing, but its inverse has no simple formula. Compute ∫02g−1(y)dy all the same.
e) Compute g−1(10), then ∫010g−1(y)dy.
Show the solution
Answers
a)∫0af+∫0f(a)f−1=af(a)
b)2π−1≈0.5708
c)1
d)45
e)g−1(10)=2; integral 14
a)
In ∫0f(a)f−1(y)dy, let y=f(x): dy=f′(x)dx, f−1(y)=x, and y going from 0 to f(a) corresponds to x going from 0 to a. The integral becomes ∫0axf′(x)dx=[xf(x)]0a−∫0af(x)dx=af(a)−∫0af(x)dx, which gives the formula. The figure shows how to read it: the two areas complete each other in the rectangle.
b)
a=2π and f(a)=1: ∫01arcsinydy=2π×1−∫0π/2sinxdx=2π−1≈0.5708. No integration by parts on the arcsine was needed.
c)
ln(1+y) is the inverse of f(x)=ex−1, strictly increasing with f(0)=0 and f(1)=e−1. Hence ∫0e−1ln(1+y)dy=1×(e−1)−∫01(ex−1)dx=(e−1)−(e−2)=1.
d)
g(1)=2, so a=1: ∫02g−1(y)dy=1×2−∫01(x3+x)dx=2−(41+21)=45. We have integrated a function for which we know no expression at all: only its values at the bounds mattered.
e)
g(2)=8+2=10, so g−1(10)=2. Then ∫010g−1(y)dy=2×10−∫02(x3+x)dx=20−(4+2)=14. Plausibility check: the average value of g−1 on [0,10] is 1.4, between 0 and 2, and closer to 2 since g−1 rises quickly at first and then flattens out.
Exercise 13: Three famous integrals reduced to that of ln sin
Exercise 8 established ∫0π/2ln(sinx)dx=−2πln2, and exercise 7 established ∫0π/4ln(1+tanx)dx=8πln2. These two results contain many others, obtained without looking for a single antiderivative.
a) Compute ∫0π/2ln(cosx)dx.
b) Compute ∫0π/2ln(tanx)dx.
c) Using integration by parts, compute ∫0π/2tanxxdx. Handle the boundary term at 0 carefully.
d) Compute ∫011+x2ln(1+x)dx with the substitution x=tanθ.
e) Compute ∫0πxln(sinx)dx using the identity of exercise 10.
Show the solution
Answers
a)−2πln2≈−1.089
b)0
c)2πln2≈1.089
d)8πln2≈0.2722
e)−2π2ln2≈−3.421
a)
King's rule, x↦2π−x, swaps sin and cos: ∫0π/2ln(cosx)dx=∫0π/2ln(sinx)dx=−2πln2≈−1.089.
b)
ln(tanx)=ln(sinx)−ln(cosx): the integral is −2πln2−(−2πln2)=0. Another reading: King's rule changes tanx into tanx1, hence ln(tanx) into its opposite, and the integral equals its own opposite.
c)
u=x, dv=sinxcosxdx, v=ln(sinx): ∫0π/2tanxxdx=[xln(sinx)]0π/2−∫0π/2ln(sinx)dx. At 2π, ln1=0. At 0, xln(sinx)≈xlnx→0, since a power beats the logarithm. The boundary term is therefore zero and the integral equals 2πln2≈1.089. The integrand itself causes no trouble at 0: tanxx→1.
d)
x=tanθ, dx=(1+tan2θ)dθ, and θ goes from 0 to 4π: 1+x2ln(1+x)dx=ln(1+tanθ)dθ. The integral is exactly the one of exercise 7: 8πln2≈0.2722. This is Serret's integral, formidable in its first form, immediate in the second.
e)
The identity ∫0πxf(sinx)dx=2π∫0πf(sinx)dx applies with f=ln; the integrals are improper at 0 and π but convergent, and the proof by King's rule remains valid. By the symmetry of exercise 3 d), ∫0πln(sinx)dx=2×(−2πln2)=−πln2. Hence ∫0πxln(sinx)dx=2π×(−πln2)=−2π2ln2≈−3.421.
Exercise 14: Problem: Buffon's needle and the measurement of π
A floor is made of boards of width d. A needle of length L≤d is dropped on it at random. Let y be the distance from the midpoint of the needle to the nearest line, uniform on [0,2d], and θ the angle between the needle and the lines, uniform on [0,π]. The needle crosses a line exactly when y≤2Lsinθ.
The figure below shows the situation.
a) Each drop is a point of the rectangle [0,π]×[0,2d]. Which region corresponds to a crossing? What is the area of the rectangle?
b) Compute the area of this region, using the symmetry of the sine about 2π.
c) Deduce the probability of a crossing, then its value for L=d.
d) With L=4 cm and d=5 cm, the needle is dropped 1000 times and 509 crossings are counted. What is the theoretical probability, and what value of π does the experiment give?
e) A classmate measures the angle on [0,2π] and writes the area of the region as ∫02π2Lsinθdθ. What does he get, and how should it be corrected? Does the probability change?
Show the solution
Answers
a)Below the curve y=2Lsinθ; rectangle 2πd
b)Area L
c)P=πd2L; π2≈0.6366
d)P≈0.5093; π≈3.143
e)0 without absolute value; same probability with it
a)
The crossing region is the set of points lying BELOW the curve y=2Lsinθ, the shaded zone in the figure of the solution. The rectangle has area π×2d=2πd. Since the two variables are uniform and independent, the probability is the ratio of the areas.
b)
∫0π2Lsinθdθ=2∫0π/22Lsinθdθ=L[−cosθ]0π/2=L. The curve never leaves the rectangle, since 2L≤2d.
c)
P=πd/2L=πd2L. For L=d: P=π2≈0.6366. The number π comes out of an experiment in which no circle appears: it is the uniform angle that brings it in.
d)
P=5π2×4=5π8≈0.5093. The experiment gives P≈1000509, hence π≈5×5098×1000=25458000≈3.143. The gap with π is about 0.06 percent; with 1000 drops, the typical uncertainty is rather 2 to 3 percent, so this result is a little lucky.
e)
He gets 0, since the sine is negative on (π,2π). But the crossing condition is about the DISTANCE 2L∣sinθ∣: the correct area is ∫02π2L∣sinθ∣dθ=2L, and the rectangle has area 2π×2d=πd. The probability is still πd2L: it does not change, and the classmate's 0 came from a forgotten absolute value, the pitfall of exercise 3 e).
Exercise 15: Problem: the mean distance between two points of a circle
A point A is fixed on a circle of radius R, and a point M is chosen at random on this circle: the central angle θ=∠AOM is uniform on [0,2π]. We want the mean distance AM.
The figure below shows the situation.
a) Show that AM2=2R2(1−cosθ), then that AM=2Rsin2θ.
b) Compute the mean distance 2π1∫02πAMdθ, in multiples of R.
c) A student takes θ uniform on [−π,π], writes AM=2Rsin2θ and finds a mean of zero. Explain and correct.
d) Compute the mean of AM2, then the root mean square AM2. Compare with b).
e) Two runners are placed at random on a 400 m circular track. What is the mean straight-line distance between them? And along the track, by the shorter way?
Show the solution
Answers
a)AM=2Rsin2θ
b)π4R≈1.273R
c)Forgotten absolute value: even function, same π4R
d)AM2=2R2; R2≈1.414R
e)≈81.06 m in a straight line, 100 m along the track
a)
Law of cosines in the triangle AOM, isosceles with sides R: AM2=R2+R2−2R2cosθ=2R2(1−cosθ). With 1−cosθ=2sin22θ: AM2=4R2sin22θ, and since a distance is positive, AM=2Rsin2θ.
b)
On [0,2π], 2θ∈[0,π] and the sine is positive: the absolute value drops. ∫02π2Rsin2θdθ=2R[−2cos2θ]02π=2R×4=8R. Mean: 2π8R=π4R≈1.273R.
c)
On [−π,0), sin2θ<0: without the absolute value, the function is odd and its integral over the symmetric interval is zero. With the absolute value, 2Rsin2θ is EVEN: 2π1×2∫0π2Rsin2θdθ=2π1×2×4R=π4R, the same value. A zero mean for positive distances is impossible: the sign check would have flagged it.
d)
2π1∫02π2R2(1−cosθ)dθ=2π1×2R2×2π=2R2, the integral of the cosine over one period being zero. Root mean square: R2≈1.414R, larger than the mean 1.273R, as always: large distances weigh more once squared.
e)
2πR=400 gives R=π200≈63.66 m. Mean straight-line distance: π4R=π2800≈81.06 m. Along the track, the distance by the shorter way is min(s,400−s) with s uniform on [0,400], whose mean is 100 m. On average, the chord saves almost a fifth of the trip. The figure in the solution plots RAM as a function of θ, with its mean.
Something missing from this set?A type of exercise your teacher gives, a problem you are stuck on, a mistake you spotted: tell me, I read every request.
Sending goes through your free space: that is how I can answer you and tell you when the exercise is added. An email is enough, no password. Create your space.
Rather not create an account? Write to me directly.
Looking for an integral calculus tutor in Montreal?
Get in touch for a first session. The last question of a 201-SN3-RE exam is almost always an integral that resists the four techniques of the course: those are exactly the ones worked on here.