Problem 1 Find the following indefinite integrals: (a) ∫1−x2xdx; (b) ∫x1−x2dx; (c) ∫x21−x2dx.
Solution (a) Let y=1−x2. Thus dy=−2xdx. The integral is equal to
∫−21y−1/2dy=−y1/2+C=−1−x2+C.
(b) The integral is equal to
∫−21y1/2dy=−31y3/2+C=−31(1−x2)3/2+C.
(c) Substitute x=sinu and dx=cosudu. Then 1−x2=1−sin2u=cosu. The integral is equal to
∫sin2ucos2udu=41∫sin22udu=81∫(1−cos4u)du=81(u−41sin4u)+C.
Note that u=arcsinx and
41sin4u=21sin2ucos2u=sinucosu(1−2sin2u)=x1−x2(1−2x2).
Therefore the integral is equal to
81(arcsinx−x1−x2(1−2x2))+C.
Problem 2 Find the following indefinite integrals: (a) ∫(x−1)(x2−5x+6)2x+7dx; (b) ∫x2−5x+6x3+x2−2x−4dx.
Solution (a) The partial fraction decomposition of
(x−1)(x2−5x+6)2x+7=x−1A+x−2B+x−3C.
Multiplying both sides by x−1 and plugging in x=1 gives A=29. Similarly, we get B=−11,C=213. The integral is thus
29ln∣x−1∣−11ln∣x−2∣+213ln∣x−3∣+C.
(b) By long polynomial division, x2−5x+6x3+x2−2x−4=x+6+x2−5x+622x−40. The partial fraction decomposition of
x2−5x+622x−40=x−2A+x−3B.
Solve for A,B and get A=−4,B=26. The integral is thus
21x2+6x−4ln∣x−2∣+26ln∣x−3∣+C.
Reduction formulas For indefinite integrals of powers of trig functions, we have two useful reduction formulas (try to prove them by integration by parts):
m∫cosmxdxm∫sinmxdx=cosm−1xsinx+(m−1)∫cosm−2xdx;=−sinm−1cosx+(m−1)∫sinm−2xdx.
Proof of the 1st reduction formula Start by setting:
In=∫cosnxdx.Now re-write as:
In=∫cosn−1xcosxdx.
Integrating by this substitution: cosxdx=d(sinx),In=∫cosn−1xd(sinx). Now integrating by parts:
∫cosnxdx=cosn−1xsinx−∫sinxd(cosn−1x)=cosn−1xsinx+(n−1)∫sinxcosn−2xsinxdx=cosn−1xsinx+(n−1)∫cosn−2x(1−cos2x)dx=cosn−1xsinx+(n−1)In−2−(n−1)In.
Solving for In: nIn=cosn−1xsinx+(n−1)In−2.
Problem 3 Find the following indefinite integrals: (a) ∫x3sinxdx; (b) ∫cos3xdx; (c) ∫cos4xdx; (d) ∫sin2x1dx; (e) ∫sinx1dx.
Solution (a) Using integration by parts, we obtain
∫x3sinxdx=∫−x3dcosx=−x3cosx−∫cosxd(−x3)=−x3cosx+3∫x2cosxdx.
By integration by parts again,
∫x2cosxdx=∫x2dsinx=x2sinx−∫sinxd(x2)=x2sinx−2∫xsinxdx.
Again, integration by parts gives
∫xsinxdx=∫−xdcosx=−xcosx−∫cosxd(−x)=−xcosx+sinx+C.
The integral is thus
3(x2−2)sinx−x(x2−6)cosx+C.
(b) By the reduction formula for m=3, the integral equals
31cos2xsinx+32∫cosxdx=31cos2xsinx+32sinx+C.
(c) By the reduction formula for m=4, the integral equals
41cos3xsinx+43∫cos2xdx.
By the reduction formula for m=2,
∫cos2xdx=21(cosxsinx+21∫dx)=21cosxsinx+21x+C.
The integral is thus
41cos3xsinx+81cosxsinx+81x+C.
(d) By the reduction formula for m=0,
∫sin−2xdx=−sin−1cosx+C=−cotx+C.
(e) Substitute x=2u and dx=2du and get
∫sin2u12du=∫sinucosu1du=∫sinucosusin2u+cos2udu=∫tanudu+∫cotudu=−ln∣cosu∣+ln∣sinu∣+C=ln∣tan(x/2)∣+C.
Fact Using integration by parts, we can get
∫exsinxdx=21ex(sinx−cosx)+C,∫excosxdx=21ex(sinx+cosx).
Problem 4 Find the following indefinite integrals: (a) ∫xexsinxdx; (b) ∫x2exsinxdx; (c) ∫x2lnxdx.
Solution outline (a) Let f(x)=x,g(x)=21ex(sinx−cosx). The integral equals
∫fdg=fg−∫gdf=21xex(sinx−cosx)−21∫ex(sinx−cosx)dx.
Use the fact twice then. (b) Let f(x)=x2,g(x)=21ex(sinx−cosx). The integral equals
∫fdg=fg−∫gdf=21x2ex(sinx−cosx)−∫xex(sinx−cosx)dx.
The answer to ∫xexsinxdx is given by part (a). The answer to ∫xexcosxdx can be obtained similarly. (c) Integration by parts gives
∫x2lnxdx=∫lnxd(−1/x)=−xlnx−∫(−1/x)d(lnx)=−xlnx+∫1/x2dx=−xlnx−x1+C.
Problem 5 Let f:[0,2]→R be the function defined by f(x)=0 for x∈[0,1] and f(x)=1 for x∈(1,2]. Show that f does not have antiderivative.
Solution Assume, for the sake of contradiction, that f has an antiderivative F. For every 0<h<1, by mean value theorem, hF(1+h)−F(1)=F′(1+c)=f(1+c) for some 0<c<h. Therefore hF(1+h)−F(1)=1 for every 0<h<1, and so
0=f(1)=F′(1)=limh→0+hF(1+h)−F(1)=1.
A contradiction.
Problem 6 Let f:[0,2]→R be a function such that for all x∈[0,1] we have f(x)<0 and for all x∈(1,2] we have f(x)>0. Show that f does not have antiderivative.
Solution Similar to problem 5, using mean value theorem, if the antiderivative exists, then hF(1+h)−F(1)>0 for all 0<h<1. Therefore
0>f(1)=F′(1)=limh→0+hF(1+h)−F(1)≥0.
A contradiction.