Corrected exercises: integration by parts (MATH 141)
This is the corrected exercise set for integration by parts in MATH 141, Calculus 2, the second calculus course at McGill University.It follows section 7.1 of Stewart, Clegg and Watson, and it is written for the exam as it is set: no calculator, so every answer is exact (π, e, ln2) and every solution names its u, du, dv and v before using the formula, because that is where the method marks are.
What the set covers, the traps it targets
It follows section 7.1 of Stewart, Clegg and Watson, and it is written for the exam as it is set: no calculator, so every answer is exact (π, e, ln2) and every solution names its u, du, dv and v before using the formula, because that is where the method marks are.
It covers the choice of u and dv with the LIATE rule of thumb, the lone factors lnx, arctanx and arcsinx, repeated parts and the tabular method, cyclic integrals, integration by parts on a definite integral, and reduction formulas.
By the end of the set you can choose u so that the new integral is easier, and see the wrong choice fail (Exercise 1), integrate lnx or arctanx alone with dv=dx (Exercise 2), run the tabular method with alternating signs (Exercise 3), solve a cyclic integral such as ∫exsinxdx like an equation (Exercise 4), evaluate the bracket [uv]ab at both bounds (Exercise 5) and prove a reduction formula like In=e−nIn−1 (Exercise 6). Part B also applies parts to a function known only by a few values (Exercise 7), to a damped oscillation whose successive swings shrink by a factor e (Exercise 9), and to xarctanx with a clever constant in v (Exercise 10).
The thread running through the whole set: integration by parts does not compute an integral, it TRADES it. The formula ∫udv=uv−∫vdu replaces the integral you have by a new one, and the only question is whether the new one is easier. The power that goes down, the logarithm that becomes x1, the integral that comes back and is solved like an equation, the bracket [uv]ab that is a number to evaluate at both bounds: every exercise is that same trade, judged the same way.
The traps named explicitly in the solutions: the product of two integrals taken for the integral of a product, the choice of u that raises the power, the minus sign of v=−cosx lost in −∫vdu, table signs that do not alternate, the cyclic integral that turns into I=I because the roles were swapped, the new integral of a definite computation left without its bounds, the lower bound forgotten because ln1=0, and the sign of the derivative of an integral with a variable lower bound. Exercise 8 puts five of them in front of you as statements to correct.
•Integration by parts: ∫udv=uv−∫vdu, the product rule (uv)′=u′v+uv′ integrated and rearranged.
•Definite form: ∫abudv=[uv]ab−∫abvdu, both halves evaluated at both bounds.
•Choose u to simplify when differentiated and dv to be integrable. Guide (LIATE): logarithm, inverse trigonometric, algebraic, trigonometric, exponential, in order of preference for u.
•Lone factor: ∫lnxdx=xlnx−x+C, with dv=dx; same gesture for arctanx and arcsinx.
•Polynomial of degree n times eax, sinbx or cosbx: n trades, or the tabular method with alternating signs +,−,+,….
•Cyclic (eax with sinbx or cosbx): two trades with the SAME type as u, then solve for the integral; the factor a2+b2 appears.
•Any antiderivative of dv is a valid v: a well chosen constant can simplify ∫vdu.
Part A: the basics (/50)
Exercise 1: Choosing u and dv: the new integral is the judge
5 answers to check
Integration by parts is the product rule read backwards: from (uv)′=u′v+uv′ comes ∫udv=uv−∫vdu. The formula does not compute anything. It TRADES the integral you have for another one, ∫vdu, and the whole skill is to choose u so that the new integral is easier than the old one.
Two requirements decide the choice: dv must be something you can integrate, and u should be the factor that becomes SIMPLER when differentiated. In every part, write the four pieces u, du, dv, v before the formula.
a) Compute ∫xe2xdx with u=x and dv=e2xdx.
b) Redo the first step with the opposite choice, u=e2x and dv=xdx. Is the resulting equation false? Why is it useless?
c) Compute ∫x3lnxdx. Explain why here the polynomial must be dv and not u.
d) Compute ∫x2xdx, and name the two wrong antiderivatives of 2x that students write for v.
e) Check the answers to a) and c) by differentiating them.
Show the solution
Answers
a)∫xe2xdx=2xe2x−4e2x+C=4e2x(2x−1)+C
b)2x2e2x−∫x2e2xdx: true, but the power went UP.
c)∫x3lnxdx=4x4lnx−16x4+C
d)∫x2xdx=ln2x2x−(ln2)22x+C; wrong v: 2x and x+12x+1.
e)Both derivatives give back the integrand: xe2x and x3lnx.
a)
u=x, du=dx; dv=e2xdx, v=21e2x (a substitution you do at sight: the derivative of 21e2x is e2x). Then ∫xe2xdx=2xe2x−∫21e2xdx=2xe2x−4e2x+C=4e2x(2x−1)+C. The trade was good: the new integral, ∫21e2xdx, has lost the factor x and is immediate. That is the test of a choice, and it can be run BEFORE finishing the computation: differentiating u=x gives 1, and the power of x disappears.
b)
u=e2x, du=2e2xdx; dv=xdx, v=2x2. The formula gives ∫xe2xdx=2x2e2x−∫2x2⋅2e2xdx=2x2e2x−∫x2e2xdx. This equation is TRUE: parts never produces a false identity. It is useless because the new integral carries x2 where the old one carried x: the trade went the wrong way, and applying parts again with the same choice would give x3, then x4, forever. When the integral you get is worse than the one you had, stop after one line and swap u and dv: that decision, written down, is worth marks on its own.
c)
u=lnx, du=xdx; dv=x3dx, v=4x4. Then ∫x3lnxdx=4x4lnx−∫4x4⋅x1dx=4x4lnx−∫4x3dx=4x4lnx−16x4+C. Here the polynomial must be dv, against the habit built in part a). Taking dv=lnxdx would require an antiderivative of lnx just to START, and would leave ∫3x2(xlnx−x)dx, which contains x3lnx again. Differentiating lnx, on the other hand, turns it into x1, which cancels against x4: the logarithm is the factor that simplifies, so it is u. The rule of thumb LIATE (logarithm, inverse trigonometric, algebraic, trigonometric, exponential, in that order of preference for u) says the same thing, but the reason is the new integral, not the mnemonic.
d)
u=x, du=dx; dv=2xdx, v=ln22x, because dxd2x=2xln2. Then ∫x2xdx=ln2x2x−ln21∫2xdx=ln2x2x−(ln2)22x+C. The two classic wrong values of v: v=2x, copied from ex (its derivative is 2xln2, off by the factor ln2≈0.69), and v=x+12x+1, the power rule applied to a variable EXPONENT, which is not a power function at all. Both errors propagate: v appears twice, once in uv and once in ∫vdu, which is why the correct answer carries ln2 to the first power AND to the second.
e)
For a): dxd[4e2x(2x−1)]=42e2x(2x−1)+2e2x=44xe2x=xe2x. For c): dxd[4x4lnx−16x4]=x3lnx+4x4⋅x1−4x3=x3lnx. Both are confirmed. This check costs thirty seconds and is the only way, on an exam without a calculator, to know that an antiderivative is right; it catches a lost factor 21 or a sign in −∫vdu immediately. Notice that the product rule, used to check, is exactly the rule that parts runs backwards.
Points are earned before the solution; after it, you can keep practising.
For you:
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: One factor only: ln x, arctan x and arcsin x with dv = dx
7 answers to check
Some integrals have a single factor, and it is a function whose DERIVATIVE you know but whose antiderivative is not in the table: lnx, arctanx, arcsinx. Parts still applies, with the invisible partner dv=dx and v=x: the trade replaces the function by its derivative, which is algebraic.
The figure shows the graph of y=lnx and the region A under it between x=1 and x=e.
a) Compute ∫lnxdx.
b) Compute ∫arctanxdx, naming the substitution used for the new integral.
c) Compute ∫01/2arcsinxdx exactly.
d) Compute the area of the region A on the figure, and check that the value is plausible by comparing A with a rectangle and a triangle that you can read on the figure.
e) Three students give ∫lnxdx=x1+C, 2(lnx)2+C and xlnx+C. Refute each one by differentiating, and name the error behind it.
Show the solution
Answers
a)∫lnxdx=xlnx−x+C
b)∫arctanxdx=xarctanx−21ln(1+x2)+C
c)∫01/2arcsinxdx=12π+23−1
d)A=1, between the triangle 2e−1 and the rectangle e−1.
e)Derivatives: −x21, xlnx, lnx+1; none is lnx.
a)
u=lnx, du=xdx; dv=dx, v=x. Then ∫lnxdx=xlnx−∫x⋅x1dx=xlnx−∫1dx=xlnx−x+C. The trade replaced the logarithm, which we cannot integrate directly, by its derivative x1, and the v=x swallowed it. Check: dxd(xlnx−x)=lnx+1−1=lnx.
b)
u=arctanx, du=1+x2dx; dv=dx, v=x. Then ∫arctanxdx=xarctanx−∫1+x2xdx. The new integral is a substitution: w=1+x2, dw=2xdx, so ∫1+x2xdx=21∫wdw=21ln(1+x2), with no absolute value since 1+x2>0. Final answer: xarctanx−21ln(1+x2)+C. Check: arctanx+1+x2x−21⋅1+x22x=arctanx. The substitution is only a TOOL here; the structural move is dv=dx.
c)
u=arcsinx, du=1−x2dx; dv=dx, v=x. Then ∫01/2arcsinxdx=[xarcsinx]01/2−∫01/21−x2xdx. The bracket is 21⋅6π−0=12π. For the integral, w=1−x2, dw=−2xdx, so an antiderivative of 1−x2x is −1−x2, and ∫01/21−x2xdx=[−1−x2]01/2=−23+1. Hence ∫01/2arcsinxdx=12π−1+23. Plausibility, with π≈3.14 and 3≈1.73: 0.26+0.87−1≈0.13. The graph of arcsin is convex on [0,21], so it lies below its chord from (0,0) to (21,6π), and the area must be less than that triangle, 21⋅21⋅6π=24π≈0.131. It is, just barely, as the near-straight graph suggests.
d)
lnx≥0 on [1,e], so the area is the integral: A=∫1elnxdx=[xlnx−x]1e=(e⋅1−e)−(1⋅0−1)=0+1=1. Plausibility: the region sits inside the rectangle [1,e]×[0,1] of area e−1≈1.72, and since ln is concave its graph lies ABOVE the chord from (1,0) to (e,1), so A exceeds the triangle of area 2e−1≈0.86. The value 1 sits between the two. A result like e−1 or e (the typical outcome of dropping the −x) is ruled out by the figure at once.
e)
dxdx1=−x21: that student DIFFERENTIATED lnx instead of integrating it. dxd2(lnx)2=xlnx: the power rule was applied as if lnx were the variable, forgetting the chain rule factor x1; that is the antiderivative of xlnx, a substitution problem, not of lnx. dxd(xlnx)=lnx+1: this student wrote uv and stopped, forgetting the trade's second half, −∫vdu=−x. All three errors are caught by the same thirty-second derivative, which is why it belongs at the end of every answer.
Points are earned before the solution; after it, you can keep practising.
For you:
Exercise 3: Repeated parts and the tabular method
5 answers to check
When u is a polynomial of degree n, each integration by parts lowers its degree by one, so n integrations finish the job. The tabular method organizes them: a column D of successive derivatives of u down to 0, a column I of successive antiderivatives of dv, and signs that ALTERNATE, +,−,+,−,…, starting with +.
The table is only a bookkeeping of repeated parts: every line of it is one trade, and every minus sign is the minus of −∫vdu.
a) Compute ∫x2e−xdx by two explicit integrations by parts.
b) Compute ∫x3cos(2x)dx with the tabular method, showing the table.
c) Compute ∫0πx2cosxdx and explain the sign of the result.
d) Explain why the table is useless for ∫x2lnxdx and for ∫exsinxdx, and say what to do instead for the first one.
e) A student uses the table for ∫x2e−xdx with the signs +,+,+ and gets −e−x(x2−2x+2)+C. Differentiate his answer and locate the error.
Show the solution
Answers
a)∫x2e−xdx=−e−x(x2+2x+2)+C
b)2x3sin2x+43x2cos2x−43xsin2x−83cos2x+C
c)∫0πx2cosxdx=−2π
d)The D column of lnx never reaches 0; for exsinx neither column ends. ∫x2lnxdx=3x3lnx−9x3+C by one trade.
e)His derivative is e−x(x−2)2; the signs must alternate.
a)
First trade: u=x2, du=2xdx; dv=e−xdx, v=−e−x. So ∫x2e−xdx=−x2e−x+∫2xe−xdx: the degree went from 2 to 1, the trade is good. Second trade on the new integral: u=2x, du=2dx; dv=e−xdx, v=−e−x, so ∫2xe−xdx=−2xe−x+∫2e−xdx=−2xe−x−2e−x. Total: −x2e−x−2xe−x−2e−x+C=−e−x(x2+2x+2)+C. Check: e−x(x2+2x+2)−e−x(2x+2)=x2e−x. The sign of v=−e−x is where marks go: it enters twice, and −(−e−x) becomes a PLUS in front of the new integral.
b)
D column: x3, 3x2, 6x, 6, 0. I column: cos2x, 2sin2x, −4cos2x, −8sin2x, 16cos2x. Multiply each D entry by the I entry ONE ROW BELOW, with the signs +,−,+,−: +x3⋅2sin2x, −3x2⋅(−4cos2x), +6x⋅(−8sin2x), −6⋅16cos2x. So ∫x3cos2xdx=2x3sin2x+43x2cos2x−43xsin2x−83cos2x+C. Three integrations by parts would have given the same four terms in three times the space. The diagonal pattern, D in row k with I in row k+1, is the part to get right: pairing each D with the I of the SAME row gives the product x3cos2x back, which is the integrand, not its antiderivative.
c)
Table: D x2, 2x, 2, 0; I cosx, sinx, −cosx, −sinx. Antiderivative: x2sinx+2xcosx−2sinx. At π: 0+2π(−1)−0=−2π; at 0: 0. So ∫0πx2cosxdx=−2π. The sign is right: cosx>0 on (0,2π) and <0 on (2π,π), but the weight x2 is much larger on the second half, so the negative part wins. A positive answer here would be a signal to recheck the table's signs, not a result to report.
d)
For ∫x2lnxdx, putting lnx in the D column gives x1, −x21, x32, and so on: it never reaches 0. Putting x2 in D instead requires antiderivatives of lnx, then of xlnx−x, and so on: worse at every row. The right move is ONE trade: u=lnx, dv=x2dx, v=3x3, giving 3x3lnx−∫3x2dx=3x3lnx−9x3+C. For ∫exsinxdx, the derivatives of either factor cycle forever (sin, cos, −sin, … or ex, ex, …): no column reaches 0. That integral is solved by making the original integral come back, which is the next exercise. The table is a tool for ONE form only: polynomial times a function you can integrate repeatedly.
e)
dxd[−e−x(x2−2x+2)]=e−x(x2−2x+2)−e−x(2x−2)=e−x(x2−4x+4)=e−x(x−2)2, which is not x2e−x. With the D column x2, 2x, 2 and the I column e−x, −e−x, e−x, −e−x, his signs give x2(−e−x)+2x(e−x)+2(−e−x); the correct alternation +,−,+ flips the middle term to −2xe−x, which yields the answer of a). The minus signs of the table are the minus of −∫vdu, applied once per trade, so they cannot all be dropped. The derivative check located the error without redoing the table.
Points are earned before the solution; after it, you can keep practising.
For you:
Exercise 4: Cyclic parts: the integral that comes back
5 answers to check
For ∫exsinxdx no factor simplifies when differentiated: sin becomes cos, then −sin, and ex stays ex. Two integrations by parts bring back the ORIGINAL integral, with a coefficient. You then stop integrating and solve for it, like an unknown in an equation.
The figure shows the graph of y=exsinx on [0,π] and the region A under it.
a) Let I=∫exsinxdx. Integrate by parts twice with u=sinx, then u=cosx, and solve for I.
b) A student does the first step as in a), then in the second step takes u=ex and dv=cosxdx. Show what he obtains, and state the rule that avoids it.
c) Compute the area of the region A exactly, and check its size against the figure.
d) Compute ∫e2xcos3xdx.
e) Compute ∫sin(lnx)dx, for x>0, with dv=dx in both steps.
Show the solution
Answers
a)∫exsinxdx=2ex(sinx−cosx)+C
b)He gets I=I, true and empty; keep the SAME type of function as u in both steps.
c)A=2eπ+1, more than 10.
d)∫e2xcos3xdx=13e2x(2cos3x+3sin3x)+C
e)∫sin(lnx)dx=2x(sin(lnx)−cos(lnx))+C
a)
First trade: u=sinx, du=cosxdx; dv=exdx, v=ex. So I=exsinx−∫excosxdx. Second trade, on the new integral: u=cosx, du=−sinxdx; dv=exdx, v=ex. So ∫excosxdx=excosx+∫exsinxdx=excosx+I. Substituting: I=exsinx−excosx−I. The integral came back with coefficient −1, so move it to the left: 2I=ex(sinx−cosx), and I=2ex(sinx−cosx)+C. The constant is added at the END, after dividing: writing +C inside the equation and then halving it changes nothing, but forgetting to divide the WHOLE right side by 2 is the classic loss. Check: 21[ex(sinx−cosx)+ex(cosx+sinx)]=exsinx.
b)
Second step with u=ex, du=exdx; dv=cosxdx, v=sinx: ∫excosxdx=exsinx−∫exsinxdx=exsinx−I. Substituting into the first step: I=exsinx−(exsinx−I)=I. The equation is true and says nothing: the second trade simply UNDID the first, handing back the integral it had produced. The rule: in a cyclic integral, whichever type you chose as u in the first step (here the trigonometric factor), keep the same type as u in the second. Both consistent choices work, u trigonometric twice or u exponential twice; only the mixed one goes in a circle.
c)
ex>0 and sinx≥0 on [0,π], so A=∫0πexsinxdx=[2ex(sinx−cosx)]0π=2eπ(0+1)−21⋅(0−1)=2eπ+1. At the upper bound cosπ=−1 turns −cosx into +1, and at the lower bound −cos0=−1, SUBTRACTED, gives the second +21. Size, without a calculator: e3≈20 (since e3=e⋅e2≈2.72⋅7.4), so eπ>20 and A>221, more than 10. On the figure, the curve rises to about 7.5 near x=43π over a base of length π; a triangle with that height and base has area about 11.7, the same order. A value like 2eπ−1, from a sign slip at x=0, would be within the same range, which is why the bracket must be written out at BOTH bounds.
d)
Let J=∫e2xcos3xdx. First trade: u=cos3x, du=−3sin3xdx; dv=e2xdx, v=2e2x: J=2e2xcos3x+23∫e2xsin3xdx. Second trade, SAME type as u: u=sin3x, du=3cos3xdx, v=2e2x: ∫e2xsin3xdx=2e2xsin3x−23J. So J=2e2xcos3x+43e2xsin3x−49J, that is 413J=4e2x(2cos3x+3sin3x) and J=13e2x(2cos3x+3sin3x)+C. The coefficient 1+49=413 is where the work is: the number 13=22+32 always appears for eax with cosbx, which is a free check on the arithmetic.
e)
Let K=∫sin(lnx)dx. First trade: u=sin(lnx), du=xcos(lnx)dx; dv=dx, v=x: K=xsin(lnx)−∫cos(lnx)dx, the x of v cancelling the x1 of the chain rule. Second trade, same type: u=cos(lnx), du=−xsin(lnx)dx, v=x: ∫cos(lnx)dx=xcos(lnx)+K. Hence K=xsin(lnx)−xcos(lnx)−K and K=2x(sin(lnx)−cos(lnx))+C. This is the lone-factor gesture of exercise 2 and the cyclic gesture of this exercise at once: nothing in the integrand looks like a product, yet parts with dv=dx produces the cycle.
Points are earned before the solution; after it, you can keep practising.
For you:
Exercise 5: Parts on a definite integral: the bracket is evaluated at both bounds
6 answers to check
On a definite integral the trade reads ∫abudv=[uv]ab−∫abvdu. The bracket is a NUMBER, u(b)v(b)−u(a)v(a), and the new integral keeps the same bounds. The two halves are evaluated separately, and each one at both ends.
The figure shows the graph of y=arcsinx for 0≤x≤21, the region A under it and the region B between the curve and the y-axis, inside the rectangle of corners (0,0) and (21,6π).
a) Compute ∫1exlnxdx.
b) Compute ∫0π/2xcosxdx.
c) Compute ∫0πxsinxdx. Which half of the formula carries the value here?
d) Using the figure, express the area of B as an integral in y, then recover ∫01/2arcsinxdx from A+B without integrating by parts. Which term of the parts formula is the rectangle?
e) A student finds ∫12lnxdx=2ln2−2. Find the correct value and explain how a size check rules out his answer before any recomputation.
Show the solution
Answers
a)∫1exlnxdx=4e2+1
b)∫0π/2xcosxdx=2π−1
c)∫0πxsinxdx=π, all of it from the bracket.
d)B=∫0π/6sinydy=1−23, so A=12π+23−1; the rectangle is [xarcsinx]01/2.
e)∫12lnxdx=2ln2−1; his value is negative for a positive integrand.
a)
u=lnx, du=xdx; dv=xdx, v=2x2. Then ∫1exlnxdx=[2x2lnx]1e−∫1e2xdx. The bracket is 2e2⋅1−21⋅0=2e2. The new integral is [4x2]1e=4e2−1. So the value is 2e2−4e2−1=4e2+1. With e2≈7.4 that is about 2.1; the integrand lies between 0 and e on an interval of length e−1≈1.7, so the value must be below e(e−1)≈4.7, which it is. The lower bound contributed 0 to the bracket because ln1=0, but NOT to the new integral, where 41 survives: that 41 is exactly what gets lost when the lower bound is evaluated only once.
b)
u=x, du=dx; dv=cosxdx, v=sinx. Then ∫0π/2xcosxdx=[xsinx]0π/2−∫0π/2sinxdx=2π⋅1−0−[−cosx]0π/2=2π−(0+1)=2π−1. With π≈3.14, about 0.57: positive, as it must be since both factors are non-negative on [0,2π]. The step [−cosx]0π/2=−cos2π+cos0=1 carries two signs, and writing it on its own line is how they survive.
c)
u=x, du=dx; dv=sinxdx, v=−cosx. Then ∫0πxsinxdx=[−xcosx]0π+∫0πcosxdx=(−π⋅(−1)−0)+[sinx]0π=π+0=π. Here the new integral contributes NOTHING and the whole value is the bracket, the opposite of part b), where the bracket was 2π and the new integral took 1 away. Neither half can be skipped in advance: a student who assumes the bracket vanishes (it often does at x=0) would answer 0 here, for the area of a region that is visibly positive.
d)
Slice B horizontally: at height y, with 0≤y≤6π, the region runs from the y-axis to the curve, where y=arcsinx, that is x=siny. So B=∫0π/6sinydy=[−cosy]0π/6=1−23. The two regions fill the rectangle: A+B=21⋅6π=12π. Hence A=∫01/2arcsinxdx=12π−1+23, the value found by parts in exercise 2. The rectangle is the bracket [xarcsinx]01/2, and B is the new integral ∫xdu with u=arcsinx, measured along the vertical axis. That is what integration by parts says geometrically: ∫udv+∫vdu is the difference of two rectangles, u(b)v(b)−u(a)v(a).
e)
∫12lnxdx=[xlnx−x]12=(2ln2−2)−(1⋅0−1)=2ln2−1. The student evaluated the antiderivative at the upper bound only, reasoning that ln1=0 kills the lower bound; it kills xlnx but not −x, which contributes +1. Size check: on [1,2], 0≤lnx≤ln2, so the integral lies between 0 and ln2≈0.69. His value 2ln2−2≈−0.61 is NEGATIVE for a non-negative integrand: impossible, and visible in five seconds. The correct 2ln2−1≈0.39 lies in the window.
Points are earned before the solution; after it, you can keep practising.
For you:
Part B: problems and reasoning (/50)
Exercise 6: A reduction formula: the trade written once for every n
9 answers to check
When the same integration by parts would be repeated n times, it is written ONCE with a letter, and the result links the integral of index n to the one of index n−1: a reduction formula. For n≥0, let In=∫01xnexdx.
The figure shows the four integrands xnex for n=0,1,2,3 on [0,1]; from top to bottom, the curves are in the same order as the list on the left. They all meet at (1,e).
a) Prove that In=e−nIn−1 for every n≥1. Where is the hypothesis n≥1 used?
b) Compute I0, then I1, I2 and I3 exactly.
c) Prove that n+11≤In≤n+1e, and check I2 and I3 against these bounds. What does the figure say about the order of the In?
d) Let Jn=∫1e(lnx)ndx. Prove that Jn=e−nJn−1 for n≥1, and deduce J2 and J3 without any new integration. Explain the coincidence with a substitution.
e) A student starts the recursion with I0=e. Compute what he obtains for I3, and explain how an error in I0 grows along the recursion.
Show the solution
Answers
a)u=xn, dv=exdx: In=[xnex]01−nIn−1=e−nIn−1; n≥1 makes 0n=0.
b)I0=e−1, I1=1, I2=e−2, I3=6−2e
c)1≤ex≤e on [0,1]; 31≤e−2≤3e and 41≤6−2e≤4e; I0>I1>I2>I3.
d)Jn=In for all n: J2=e−2, J3=6−2e (substitution x=et).
e)He gets I3=−2e<0; an error ε in I0 becomes (−1)nn!ε in In.
a)
Integrate by parts with u=xn, du=nxn−1dx; dv=exdx, v=ex. Then In=[xnex]01−∫01nxn−1exdx=(1ne1−0ne0)−nIn−1. For n≥1, 0n=0, so the bracket is e and In=e−nIn−1. The hypothesis is used exactly there: for n=0 the lower bound would give 00e0=1, and the formula would not hold (it would not even make sense, since I−1 is not defined). The choice u=xn is the one of exercise 1, and it is right for the same reason: the power goes DOWN, from n to n−1, which is what makes the formula a reduction.
b)
I0=∫01exdx=e−1. Then I1=e−1⋅I0=e−(e−1)=1, I2=e−2I1=e−2, I3=e−3I2=e−3(e−2)=6−2e. Each value costs one line; computing I3 by the tabular method would give the antiderivative ex(x3−3x2+6x−6), whose value at 1 minus its value at 0 is −2e+6, the same number. Size: with e≈2.72, I3≈6−5.44=0.56.
c)
On [0,1], 1≤ex≤e, so xn≤xnex≤exn, and integrating (the comparison property of the definite integral) gives n+11≤In≤n+1e, since ∫01xndx=n+11. For n=2: 31≈0.33≤e−2≈0.72≤3e≈0.91. For n=3: 41=0.25≤6−2e≈0.56≤4e≈0.68. Both hold. On the figure, for 0<x<1, xn+1<xn, so each curve lies BELOW the previous one: the areas decrease, I0>I1>I2>I3>0, and the bounds show they tend to 0. These inequalities are the check that the recursion was run correctly, and they cost nothing.
d)
u=(lnx)n, du=n(lnx)n−1⋅x1dx; dv=dx, v=x. Then Jn=[x(lnx)n]1e−∫1ex⋅n(lnx)n−1⋅x1dx=(e⋅1−1⋅0)−nJn−1=e−nJn−1, where (ln1)n=0 uses n≥1 again. The start is J0=∫1edx=e−1=I0. Same recursion, same first term: Jn=In for every n, so J2=e−2 and J3=6−2e with no new integration. The coincidence is a substitution: x=et, dx=etdt, with t from 0 to 1, turns Jn into ∫01tnetdt=In. The lone-logarithm trade of exercise 2 and the power-lowering trade of exercise 1 are the SAME trade, seen in two variables.
e)
With I0=e: I1=e−e=0, I2=e−0=e, I3=e−3e=−2e. A negative value for the integral of a positive function: impossible, and part c) catches it at once. The mechanism: if the value used for In−1 is off by ε, then In=e−nIn−1 is off by −nε. Starting from an error ε=1 in I0, the errors are −1, +2, −6 in I1, I2, I3: the error is multiplied by (−1)nn!. A reduction formula is exact, but it AMPLIFIES any slip in the first term, so I0 is the value to double-check.
Points are earned before the solution; after it, you can keep practising.
For you:
Exercise 7: Parts when the function is unknown: moving the derivative
5 answers to check
Integration by parts does not need a formula for the functions involved. It moves a derivative from one factor to the other, and the bracket only needs VALUES at the bounds. This is how exam questions test the method on functions known only through a table.
A function f has a continuous second derivative on [1,4], and f(1)=2, f(4)=7, f′(1)=5, f′(4)=3. Moreover ∫14f(x)dx=12.
a) Compute ∫14xf′′(x)dx.
b) Explain why the choice u=f′′(x), dv=xdx is not available here.
c) Compute ∫14xf′(x)dx.
d) Let F(x)=∫x1e−t2dt. Compute ∫01F(x)dx exactly, by integrating by parts with u=F(x).
e) A student gets −21−e−1 in d). Locate the error, and give bounds for ∫01F(x)dx that rule out his sign.
Show the solution
Answers
a)∫14xf′′(x)dx=[xf′(x)]14−(f(4)−f(1))=7−5=2
b)It needs f′′′, which is not given and not even assumed to exist, and it raises the power of x.
c)∫14xf′(x)dx=28−2−12=14
d)∫01F(x)dx=21−e−1
e)He wrote F′(x)=+e−x2; the value lies between 2e−1 and 21, so it is positive.
a)
u=x, du=dx; dv=f′′(x)dx, v=f′(x). Then ∫14xf′′(x)dx=[xf′(x)]14−∫14f′(x)dx. The bracket needs only values: 4f′(4)−1⋅f′(1)=12−5=7. The new integral is a net change (Fundamental Theorem): ∫14f′(x)dx=f(4)−f(1)=7−2=5. So the value is 7−5=2. The derivative has moved from f′′ onto the factor x, where it became 1, and what remained, f′, has an antiderivative we can evaluate: f.
b)
With u=f′′(x) we would need du=f′′′(x)dx, and the statement only guarantees that f′′ is continuous: f′′′ may not exist, and even if it did, nothing is known about it. The new integral would be ∫142x2f′′′(x)dx, a higher power AND a higher derivative, worse on both counts. The general principle of the chapter applies to unknown functions too: put the derivative where it simplifies (x becomes 1) and take as dv what you can integrate (f′′ integrates to f′).
c)
u=x, du=dx; dv=f′(x)dx, v=f(x). Then ∫14xf′(x)dx=[xf(x)]14−∫14f(x)dx=(4⋅7−1⋅2)−12=28−2−12=14. This time the given value of ∫14f(x)dx is indispensable: without it the question could not be answered, which is why it is in the statement. The data are consistent: a polynomial of degree 4 satisfies all five conditions, so the numbers describe a real function.
d)
u=F(x), du=F′(x)dx; dv=dx, v=x. By the Fundamental Theorem, part 1, with the variable at the LOWER bound, F′(x)=−e−x2. So ∫01F(x)dx=[xF(x)]01−∫01x⋅(−e−x2)dx. The bracket vanishes at both ends: F(1)=∫11e−t2dt=0, and at x=0 the factor x is 0. What remains is ∫01xe−x2dx, a substitution (w=x2, dw=2xdx): [−21e−x2]01=21−e−1. The integrand e−t2 has no elementary antiderivative, so F has no formula; parts sidesteps that entirely, because it only uses F′, which the Fundamental Theorem gives for free. That is the lone-factor gesture of exercise 2 again, with dv=dx.
e)
His value is the correct one with the opposite sign: he took F′(x)=e−x2, forgetting that the variable is the LOWER bound, which contributes a minus sign. Bounds without computing: for 0≤t≤1, e−1≤e−t2≤1, so for 0≤x≤1, e−1(1−x)≤F(x)≤1−x. Integrating over [0,1]: 2e−1≤∫01F(x)dx≤21. The integral is positive, about between 0.18 and 0.5, and 21−e−1≈21−0.37≈0.32 sits inside. A negative answer for the integral of a function that is ≥0 is always a sign error, and here it points straight at the derivative of an integral with a variable lower bound.
Points are earned before the solution; after it, you can keep practising.
For you:
Exercise 8: Five statements to correct
5 answers to check
Each statement below was written on a real exam paper. Say whether it is true or false; when it is false, find the error, correct it, and prove the correction with a derivative or a number.
Two marks per statement: one for locating the error, one for the corrected result with its check.
a) ∫xexdx=(∫xdx)(∫exdx)=2x2ex+C.
b) ∫xsinxdx=−xcosx−sinx+C.
c) By the tabular method, ∫x2e3xdx=e3x(3x2+92x+272)+C.
d) ∫01xexdx=[xex]01−∫exdx=e−ex+C.
e) When v is computed from dv, its constant must be taken equal to 0, otherwise integration by parts gives a wrong result.
Show the solution
Answers
a)False: ∫xexdx=(x−1)ex+C.
b)False: ∫xsinxdx=−xcosx+sinx+C.
c)False: e3x(3x2−92x+272)+C.
d)False: ∫01xexdx=e−(e−1)=1.
e)False: any constant works; v=x+1 gives ∫ln(x+1)dx=(x+1)ln(x+1)−x+C in one line.
a)
False. There is no product rule for integrals: the integral of a product is not the product of the integrals. The derivative of the proposed answer is xex+2x2ex=xex. Correct method: u=x, dv=exdx, v=ex, so ∫xexdx=xex−∫exdx=(x−1)ex+C; check, ex+(x−1)ex=xex. On [0,1] the difference is visible in numbers: the correct integral is 1, while (∫01xdx)(∫01exdx)=2e−1≈0.86. Integration by parts EXISTS precisely because the naive rule is false.
b)
False, one sign. u=x, dv=sinxdx, v=−cosx: ∫xsinxdx=−xcosx−∫(−cosx)dx=−xcosx+∫cosxdx=−xcosx+sinx+C. The student subtracted ∫vdu without carrying the minus sign INSIDE v. The derivative of his answer is −cosx+xsinx−cosx=xsinx−2cosx, and the stray −2cosx is the trace of the lost sign; the corrected answer differentiates to −cosx+xsinx+cosx=xsinx. Writing v=−cosx in its own box, then −∫vdu=+∫cosxdx on a separate line, prevents it.
c)
False: the signs of the table must alternate. D column: x2, 2x, 2, 0; I column: e3x, 3e3x, 9e3x, 27e3x. With the signs +,−,+: 3x2e3x−92xe3x+272e3x, so ∫x2e3xdx=e3x(3x2−92x+272)+C. Check: 3e3x(3x2−92x+272)+e3x(32x−92)=e3x(x2−32x+92+32x−92)=x2e3x. The terms cancel in pairs only with the alternating signs; with all plus signs the derivative is e3x(x2+34x+94).
d)
False: a definite integral is a number, and this answer is a function plus a constant. The bracket was evaluated, but the new integral was treated as indefinite. Correct: ∫01xexdx=[xex]01−∫01exdx=(e−0)−(e−1)=1. The bounds stay on BOTH halves of the formula. A quick sanity check: 0≤xex≤e on [0,1], so the value lies between 0 and e, and 1 does.
e)
False. If v is replaced by v+K, the formula gives u(v+K)−∫(v+K)du=uv−∫vdu+Ku−Ku+const, the same family of antiderivatives. So any constant is allowed, and a clever one can shorten the work. For ∫ln(x+1)dx: u=ln(x+1), du=x+1dx, dv=dx, and choosing v=x+1 gives (x+1)ln(x+1)−∫1dx=(x+1)ln(x+1)−x+C at once. With v=x one gets xln(x+1)−∫x+1xdx=xln(x+1)−x+ln(x+1)+C, after writing x+1x=1−x+11: the same function, one line longer. Check: ln(x+1)+1−1=ln(x+1).
Points are earned before the solution; after it, you can keep practising.
For you:
Exercise 9: A damped oscillation: how far does the mass really travel?
6 answers to check
A mass on a spring, slowed by friction, moves along a horizontal line. Its velocity, in metres per second, is v(t)=e−tsin(πt) for t≥0 in seconds. The factor sin(πt) makes it change direction every second; the factor e−t damps the motion.
The figure shows v on [0,2]: the first shaded lobe is the first swing, the second lobe, below the axis, is the swing back. Displacement is the integral of v; distance travelled is the integral of ∣v∣.
a) Find an antiderivative P of v by cyclic integration by parts.
b) Compute the displacement during the first second, ∫01v(t)dt.
c) Compute the displacement during the next second, and the ratio of the two displacements.
d) Give the net displacement and the total distance travelled over [0,2].
e) Show that the displacement during [k,k+1] is (−1)ke−k times the first one. With π≈3.14 and e≈2.72, estimate the first swing, and find the first swing shorter than 1 cm.
Show the solution
Answers
a)P(t)=−1+π2e−t(sin(πt)+πcos(πt))
b)∫01vdt=1+π2π(1+e−1) m
c)∫12vdt=−1+π2πe−1(1+e−1) m; ratio −e−1.
d)Net 1+π2π(1−e−2) m; distance 1+π2π(1+e−1)2 m.
e)First swing about 0.40 m; the swing during [4,5] is the first under 1 cm (about 0.7 cm).
a)
Let K=∫e−tsin(πt)dt. First trade: u=sin(πt), du=πcos(πt)dt; dv=e−tdt, v=−e−t: K=−e−tsin(πt)+π∫e−tcos(πt)dt. Second trade, SAME type as u: u=cos(πt), du=−πsin(πt)dt, v=−e−t: ∫e−tcos(πt)dt=−e−tcos(πt)−πK. So K=−e−tsin(πt)−πe−tcos(πt)−π2K, that is (1+π2)K=−e−t(sin(πt)+πcos(πt)), and P(t)=−1+π2e−t(sin(πt)+πcos(πt)). Check: P′(t)=1+π2e−t(sinπt+πcosπt)−e−t(πcosπt−π2sinπt)=1+π2e−t(1+π2)sinπt=v(t). The number 1+π2 is the a2+b2 of exercise 4, with a=−1 and b=π.
b)
P(1)=−1+π2e−1(0+π⋅(−1))=1+π2πe−1 and P(0)=−1+π20+π=−1+π2π. So ∫01vdt=P(1)−P(0)=1+π2π(1+e−1) metres. The sine vanishes at every integer, so only the cosine term survives at the bounds, and cos(πk)=(−1)k does the rest: evaluating the bracket is quick once that is seen.
c)
P(2)=−1+π2e−2(0+π), so ∫12vdt=P(2)−P(1)=−1+π2π(e−2+e−1)=−1+π2πe−1(1+e−1) metres. It is negative: the mass comes back, as the lobe below the axis shows. The ratio of the second displacement to the first is −e−1: the swing back is the first swing reversed and multiplied by e−1≈0.37.
d)
Net displacement: P(2)−P(0)=1+π2π−πe−2=1+π2π(1−e−2) metres, which is also the sum of b) and c), since (1+e−1)−e−1(1+e−1)=(1+e−1)(1−e−1)=1−e−2. The distance travelled adds the two swings in absolute value, because v≥0 on [0,1] and v≤0 on [1,2]: 1+π2π(1+e−1)+1+π2πe−1(1+e−1)=1+π2π(1+e−1)2 metres. Integrating v straight over [0,2] gives the displacement, never the distance: the distance requires splitting at the zero of v, t=1.
e)
Since sin(πk)=0 and cos(πk)=(−1)k, P(k)=−1+π2π(−1)ke−k, so P(k+1)−P(k)=1+π2π(−1)ke−k(1+e−1), that is (−1)ke−k times the first swing. Estimates: π2≈9.87, so 1+π2π≈10.873.14≈0.29, and 1+e−1≈1.37: the first swing is about 0.40 m. On the figure the first lobe rises to about 0.64 over a base of 1 s; a triangle would give 0.32, and the lobe is fuller than a triangle, so 0.40 is plausible. The swings shrink by the factor e each second: with e3≈20 and e4≈55, the swing during [3,4] is about 200.40=0.02 m, still 2 cm, and the one during [4,5] about 550.40≈0.007 m. The first swing under 1 cm is the fifth, during [4,5].
Points are earned before the solution; after it, you can keep practising.
For you:
Exercise 10: Final exam problem: x arctan x, the constant hidden in v, and an exact area
7 answers to check
A typical final exam question, in four moves. The figure shows the region A under y=xarctanx on [0,1], and the dashed parabola y=x2.
Recall that arctan1=4π and dxdarctanx=1+x21.
a) Compute ∫xarctanxdx with u=arctanx and v=2x2.
b) Redo a) with v=2x2+1. Why is it allowed, and what does it save?
c) Compute the area of A exactly.
d) Prove that 4πx≤arctanx≤x on [0,1], deduce bounds for the area of A, and check c) against them.
e) Compute ∫01x2arctanxdx exactly. Does a clever constant in v help this time?
Show the solution
Answers
a)∫xarctanxdx=2x2+1arctanx−2x+C
b)vdu=21dx: same answer in one line; any antiderivative of x is a valid v.
c)A=4π−21
d)12π≤A≤31, and 4π−21≈0.285 lies between 0.262 and 0.333.
e)∫01x2arctanxdx=12π−61+6ln2; no constant helps.
a)
u=arctanx, du=1+x2dx; dv=xdx, v=2x2. The inverse trigonometric factor is u for the reason of exercise 1: its derivative is algebraic. Then ∫xarctanxdx=2x2arctanx−21∫1+x2x2dx. Add and subtract 1 in the numerator: 1+x2x2=1+x2(1+x2)−1=1−1+x21. So the new integral is x−arctanx, and ∫xarctanxdx=2x2arctanx−2x+21arctanx+C=2x2+1arctanx−2x+C.
b)
Any function whose derivative is x is a valid v, since only dv=xdx is prescribed (exercise 8, statement e). With v=2x2+1: ∫xarctanxdx=2x2+1arctanx−∫2x2+1⋅1+x21dx=2x2+1arctanx−∫21dx=2x2+1arctanx−2x+C. The constant 21 was chosen so that v contains the factor 1+x2 of du: the new integral collapses to a constant, and the algebra of a) disappears. The trade was already good; the constant made it free.
c)
xarctanx≥0 on [0,1], so A=[2x2+1arctanx−2x]01=(22⋅4π−21)−(0−0)=4π−21. With π≈3.14, A≈0.285.
d)
Upper bound: g(x)=x−arctanx has g′(x)=1−1+x21=1+x2x2≥0 and g(0)=0, so g≥0 on [0,1], that is arctanx≤x. Lower bound: (arctanx)′′=−(1+x2)22x≤0 on [0,1], so arctan is concave there and lies above its chord from (0,0) to (1,4π), that is arctanx≥4πx. Multiplying by x≥0: 4πx2≤xarctanx≤x2, and integrating over [0,1]: 12π≤A≤31. Numerically 0.262≤0.285≤0.333: c) passes. The figure shows the upper bound: the dashed parabola stays above the curve. A value like 4π+21, from a sign slip, would be outside at once.
e)
u=arctanx, dv=x2dx, v=3x3: ∫01x2arctanxdx=[3x3arctanx]01−31∫011+x2x3dx. The bracket is 12π. For the new integral, x3=x(1+x2)−x, so 1+x2x3=x−1+x2x, whose antiderivative is 2x2−21ln(1+x2) (substitution w=1+x2); on [0,1] it gives 21−2ln2. Hence the value 12π−61+6ln2, about 0.262−0.167+0.115=0.21, below A as it must be since x2≤x on [0,1]. No constant helps here: v=3x3+K would need x3+K to be a multiple of 1+x2, and no constant K makes it so. The trick of b) works only when the antiderivative of dv can be made to contain 1+x2.
Points are earned before the solution; after it, you can keep practising.
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.