Jump to content

Calculus/Integration/Solutions

From Wikibooks, open books for an open world

Integration of Polynomials

[edit | edit source]

Evaluate the following:

1. ∫(x2−2)2dx
∫(x2−2)2dx=∫(x4−4x2+4)dx=x55−4x33+𝟒𝐱+𝐂
∫(x2−2)2dx=∫(x4−4x2+4)dx=x55−4x33+𝟒𝐱+𝐂
2. ∫8x3dx
∫8x3dx=8x44+C=𝟐𝐱𝟒+𝐂
∫8x3dx=8x44+C=𝟐𝐱𝟒+𝐂
3. ∫(4x2+11x3)dx
∫(4x2+11x3)dx=4x33+11x44+𝐂
∫(4x2+11x3)dx=4x33+11x44+𝐂
4. ∫(31x32+4x3−9x4)dx
∫(31x32+4x3−9x4)dx=31x3333+4x44−9x55+C=31x3333+𝐱𝟒−9x55+𝐂
∫(31x32+4x3−9x4)dx=31x3333+4x44−9x55+C=31x3333+𝐱𝟒−9x55+𝐂
5. ∫5x−2dx
∫5x−2dx=5x−1−1+C=−5x+𝐂
∫5x−2dx=5x−1−1+C=−5x+𝐂

Indefinite Integration

[edit | edit source]

Find the general antiderivative of the following:

6. ∫(cos⁡x+sin⁡x)dx
∫(cos⁡x+sin⁡x)dx=sin⁡𝐱−cos⁡𝐱+𝐂
∫(cos⁡x+sin⁡x)dx=sin⁡𝐱−cos⁡𝐱+𝐂
7. ∫3sin⁡xdx
∫3sin⁡xdx=−𝟑cos⁡(𝐱)+𝐂
∫3sin⁡xdx=−𝟑cos⁡(𝐱)+𝐂
8. ∫(1+tan2x)dx
∫(1+tan2x)dx=∫sec2xdx=tan⁡𝐱+𝐂
∫(1+tan2x)dx=∫sec2xdx=tan⁡𝐱+𝐂
9. ∫(3x−sec2x)dx
∫(3x−sec2x)dx=3x22−tan⁡𝐱+𝐂
∫(3x−sec2x)dx=3x22−tan⁡𝐱+𝐂
10. ∫−exdx
∫−exdx=−𝐞𝐱+𝐂
∫−exdx=−𝐞𝐱+𝐂
11. ∫8exdx
∫8exdx=𝟖𝐞𝐱+𝐂
∫8exdx=𝟖𝐞𝐱+𝐂
12. ∫17xdx
∫17xdx=17ln⁡|𝐱|+𝐂
∫17xdx=17ln⁡|𝐱|+𝐂

Integration by Substitution

[edit | edit source]

Find the anti-derivative or compute the integral depending on whether the integral is indefinite or definite.

13. ∫0π/2sin⁡(x)cos⁡(x)dx
Notice that
sin⁡(2x)=2sin⁡(x)cos⁡(x)12sin⁡(2x)=sin⁡(x)cos⁡(x)

By this,

∫0π/2sin⁡(x)cos⁡(x)dx=∫0π/212sin⁡(2x)dx.

Let

u=2x,du=2dx⟹12du=dx.
u(0)=0,u(π/2)=π

Then,

∫0π/212sin⁡(2x)dx=12∫0π12sin⁡(u)du=−14(cos⁡(π)−cos⁡(0))=12
Note that a student could do another substitution such as u=sin⁡(x) or u=cos⁡(x). The answers should all be the same despite the different methods. We decided to show one method instead of all possible methods.
Notice that
sin⁡(2x)=2sin⁡(x)cos⁡(x)12sin⁡(2x)=sin⁡(x)cos⁡(x)

By this,

∫0π/2sin⁡(x)cos⁡(x)dx=∫0π/212sin⁡(2x)dx.

Let

u=2x,du=2dx⟹12du=dx.
u(0)=0,u(π/2)=π

Then,

∫0π/212sin⁡(2x)dx=12∫0π12sin⁡(u)du=−14(cos⁡(π)−cos⁡(0))=12
Note that a student could do another substitution such as u=sin⁡(x) or u=cos⁡(x). The answers should all be the same despite the different methods. We decided to show one method instead of all possible methods.
14. ∫0π/4tan⁡(x)dx.
Rewrite the integral into an equivalent form to help us find the substitution:
∫0π/4tan⁡(x)dx=∫0π/4sin⁡(x)cos⁡(x)dx

Let

u=cos⁡(x),−du=sin⁡(x)dx.
u(0)=1,u(π/4)=12.

Apply all this information to find the original integral:

∫0π/4sin⁡(x)cos⁡(x)dx=−∫11/21udu=∫1/211udu=ln⁡(1)−ln⁡(12)=0+ln⁡(2)=ln⁡(2)2
Rewrite the integral into an equivalent form to help us find the substitution:
∫0π/4tan⁡(x)dx=∫0π/4sin⁡(x)cos⁡(x)dx

Let

u=cos⁡(x),−du=sin⁡(x)dx.
u(0)=1,u(π/4)=12.

Apply all this information to find the original integral:

∫0π/4sin⁡(x)cos⁡(x)dx=−∫11/21udu=∫1/211udu=ln⁡(1)−ln⁡(12)=0+ln⁡(2)=ln⁡(2)2
15. ∫1/21e2x−12x−1dx.
Let
u=2x−1,du=12x−1dx.
u(1/2)=0,u(1)=1.

Then,

∫1/21e2x−12x−1dx=∫01eudu=e1−e0=𝐞−𝟏
Let
u=2x−1,du=12x−1dx.
u(1/2)=0,u(1)=1.

Then,

∫1/21e2x−12x−1dx=∫01eudu=e1−e0=𝐞−𝟏
16. ∫−3−68xx2−5dx.
Let
u=x2−5,du=2xdx.
u(−3)=4,u(−6)=1.

Then,

∫−3−68xx2−5dx=4∫−3−62xx2−5dx=4∫411udu=−4∫14u−1/2du=−8(4−1)du=−8(2−1)=−𝟖
Let
u=x2−5,du=2xdx.
u(−3)=4,u(−6)=1.

Then,

∫−3−68xx2−5dx=4∫−3−62xx2−5dx=4∫411udu=−4∫14u−1/2du=−8(4−1)du=−8(2−1)=−𝟖
17. ∫−322e3x−2dx.
It may be easier to see what to substitute once the integrand is written in an equivalent form.
∫−322e3x−2dx=∫−322e−12(3x−2)dx

From there, it becomes obvious to let

u=−12(3x−2),du=−32dx.

Then,

∫−322e−12(3x−2)dx=∫2eudu=2eu+C=2e−12(3x−2)+C=2e3x−2+𝐂
It may be easier to see what to substitute once the integrand is written in an equivalent form.
∫−322e3x−2dx=∫−322e−12(3x−2)dx

From there, it becomes obvious to let

u=−12(3x−2),du=−32dx.

Then,

∫−322e−12(3x−2)dx=∫2eudu=2eu+C=2e−12(3x−2)+C=2e3x−2+𝐂
18. ∫xsec⁡(x2−5)tan⁡(x2−5)50x2−5dx.
Let
u=x2−5,du=xx2−5dx.

Then,

∫xsec⁡(x2−5)tan⁡(x2−5)50x2−5dx=∫150sec⁡(u)tan⁡(u)du=150sec⁡(u)+C=sec⁡(x2−5)50+𝐂
Let
u=x2−5,du=xx2−5dx.

Then,

∫xsec⁡(x2−5)tan⁡(x2−5)50x2−5dx=∫150sec⁡(u)tan⁡(u)du=150sec⁡(u)+C=sec⁡(x2−5)50+𝐂
19. ∫2sec2(ln⁡(x))tan⁡(ln⁡(x))xdx.
Let
u=ln⁡(x),du=1xdx.

Then,

∫2sec2(ln⁡(x))tan⁡(ln⁡(x))xdx=∫2sec2(u)tan⁡(u)du.

Let

v=tan⁡(u),dv=sec2(u)du.

Therefore,

∫2sec2(u)tan⁡(u)du=∫2vdv=v2+C=tan2(u)+C=tan𝟐(ln⁡(x))+𝐂

Alternatively, this could all be done with one substitution if one realized that

ddx(tan⁡[ln⁡(x)])=sec2(ln⁡(x))x.
Let
u=ln⁡(x),du=1xdx.

Then,

∫2sec2(ln⁡(x))tan⁡(ln⁡(x))xdx=∫2sec2(u)tan⁡(u)du.

Let

v=tan⁡(u),dv=sec2(u)du.

Therefore,

∫2sec2(u)tan⁡(u)du=∫2vdv=v2+C=tan2(u)+C=tan𝟐(ln⁡(x))+𝐂

Alternatively, this could all be done with one substitution if one realized that

ddx(tan⁡[ln⁡(x)])=sec2(ln⁡(x))x.
20. ∫(ex−1)xex−2+xex−1exln⁡(x)dx.
It may be easier to see what to substitute once the integrand is written in an equivalent form.
∫(ex−1)xex−2+xex−1exln⁡(x)dx=∫xex−1(ex−1x+exln⁡(x))dx=∫e(ex−1)ln⁡(x)(ex−1x+exln⁡(x))dx

From there, let

u=(ex−1)ln⁡(x),du=(ex−1x+exln⁡(x))dx.

Then,

∫e(ex−1)ln⁡(x)(ex−1x+exln⁡(x))dx=∫eudu=eu+C=e(ex−1)ln⁡(x)+C=𝐱𝐞𝐱−𝟏+𝐂
It may be easier to see what to substitute once the integrand is written in an equivalent form.
∫(ex−1)xex−2+xex−1exln⁡(x)dx=∫xex−1(ex−1x+exln⁡(x))dx=∫e(ex−1)ln⁡(x)(ex−1x+exln⁡(x))dx

From there, let

u=(ex−1)ln⁡(x),du=(ex−1x+exln⁡(x))dx.

Then,

∫e(ex−1)ln⁡(x)(ex−1x+exln⁡(x))dx=∫eudu=eu+C=e(ex−1)ln⁡(x)+C=𝐱𝐞𝐱−𝟏+𝐂
21. ∫2sec2(ln⁡(x2+2x))x3−1x4+2xdx.
Let
u=ln⁡(x2+2x),du=2x3−1x4+2xdxdx.

Then,

∫2sec2(ln⁡(x2+2x))x3−1x4+2xdx=∫sec2(u)du=tan⁡(u)+C=tan⁡(ln⁡(x2+2x))+𝐂
Let
u=ln⁡(x2+2x),du=2x3−1x4+2xdxdx.

Then,

∫2sec2(ln⁡(x2+2x))x3−1x4+2xdx=∫sec2(u)du=tan⁡(u)+C=tan⁡(ln⁡(x2+2x))+𝐂
22. ∫2(sin⁡(x)−cos⁡(x))tan⁡(sin⁡(x)+cos⁡(x))sin⁡(x)+cos⁡(x)dx.
Let
u=sin⁡(x)+cos⁡(x),du=(cos⁡(x)−sin⁡(x))dx=−(sin⁡(x)−cos⁡(x))dx.

Then,

∫2(sin⁡(x)−cos⁡(x))tan⁡(sin⁡(x)+cos⁡(x))sin⁡(x)+cos⁡(x)dx=−∫2tan⁡(u)udu

This requires another substitution. Let

t=u,dt=12udu⇔2dt=1udu.

Then,

−∫2tan⁡(u)udu=−2∫2tan⁡(t)dt=−4ln⁡|cos⁡(t)|+CSee Question 14.=−4ln⁡|cos⁡(u)|+C=−𝟒ln⁡|cos⁡(sin⁡(x)+cos⁡(x))|+𝐂
Let
u=sin⁡(x)+cos⁡(x),du=(cos⁡(x)−sin⁡(x))dx=−(sin⁡(x)−cos⁡(x))dx.

Then,

∫2(sin⁡(x)−cos⁡(x))tan⁡(sin⁡(x)+cos⁡(x))sin⁡(x)+cos⁡(x)dx=−∫2tan⁡(u)udu

This requires another substitution. Let

t=u,dt=12udu⇔2dt=1udu.

Then,

−∫2tan⁡(u)udu=−2∫2tan⁡(t)dt=−4ln⁡|cos⁡(t)|+CSee Question 14.=−4ln⁡|cos⁡(u)|+C=−𝟒ln⁡|cos⁡(sin⁡(x)+cos⁡(x))|+𝐂
23. ∫xx+1dx.
Let
u=x+1,du=dxandx=u−1.

Then,

∫xx+1dx=∫u−1udu=∫uu−1uduSplit the fraction=∫u12−u−12duExponent laws=23u32−2u12Worry about the constant later=2u12(u3−1)=2x+1(x+13−1)+C=2x+1(x+13−33)+C=2x+1(x−23)=23(𝐱−𝟐)𝐱+𝟏+𝐂
Note that the solution of 23(x+1)32−2(x+1)12 is also correct but not as simplified as it could be. Another thing of note is you can choose your substitution as u=x+1. If the algebraic steps are correct, your answer should be the exact same as above. Try both methods to get to the same solution.
Let
u=x+1,du=dxandx=u−1.

Then,

∫xx+1dx=∫u−1udu=∫uu−1uduSplit the fraction=∫u12−u−12duExponent laws=23u32−2u12Worry about the constant later=2u12(u3−1)=2x+1(x+13−1)+C=2x+1(x+13−33)+C=2x+1(x−23)=23(𝐱−𝟐)𝐱+𝟏+𝐂
Note that the solution of 23(x+1)32−2(x+1)12 is also correct but not as simplified as it could be. Another thing of note is you can choose your substitution as u=x+1. If the algebraic steps are correct, your answer should be the exact same as above. Try both methods to get to the same solution.
24. ∫x+1x(x+ln⁡(x))2dx.
This integral would be a nightmare to do without first making the form something we can work with. Note the domain of the integrand (which we shall denote as f(x)): x≠0, x+ln⁡(x)≠0, and x>0 (due to the natural domain of the natural logarithm).

Solve for x+ln⁡(x)=0. Let g(x)=x+ln⁡(x).

g′(x)=1+1x>0. For all x>0, g is strictly increasing.
g(1)=1+ln⁡(1)=1>0 while limx→0+g(x)=−∞ (show this yourself).
By the intermediate value theorem, there must be a solution for g(x) for any x∈[a,1]where 1≫a>0. Let that solution be x0.

Therefore, the domain for f(x) is (0,∞)−{x0}.

Note finding a solution x0 is not possible with standard methods, but can be found using the productlog function. An approximation for x0 is 0.567 using Newton's method (try it yourself!).

Now, attempt to rewrite f(x).

f(x)=x+1x(x+ln⁡(x))2=(x+1)⋅1xx(x+ln⁡(x))2⋅1x=1+1x(x+ln⁡(x))2

This algebraic rewrite is valid if and only if 1x is defined and nonzero. Note however the domain argument from before, where x>0 excluding x0.

Since 1x is undefined only at zero, and for all other x>0, 1x>0.

This means the multiplication by 1x on the numerator andn denominator is algebraically valid in its domain.

∫x+1x(x+ln⁡(x))2dx=∫1+1x(x+ln⁡(x))2dx.

Then, let

u=x+ln⁡(x),du=(1+1x)dx

Note that the domain must be preserved for the derivative given that the algebraic manipulation may alter the domain.

The domain of (1+1x)>1>0 for all x>0, so du≠0.
The mapping x↦u within the domain of x is strictly increasing and one-to-one on (0,x0)∪(x0,∞).
(Notice that the natural log and the rational function is one-to-one. As an exercise to the reader, prove ln⁡(x)<1x for all x>0).
Therefore, u≠0 for all u in the domain. Meaning the rewritten integrand is valid and does not introduce new singularities.

Thus,

∫1+1x(x+ln⁡(x))2dx=∫1u2du=∫u−2du=−u−1=−1u=−1x+ln⁡(x)+𝐂
The domain argument is necessary if a student chooses to rewrite the integral in this way. In fact, this is the only way to integrate if one does integration by substution as traditionally done (i.e., a u-sub). This means any student answer that does not confirm nor discusses the domain will not be formally correct!
This integral would be a nightmare to do without first making the form something we can work with. Note the domain of the integrand (which we shall denote as f(x)): x≠0, x+ln⁡(x)≠0, and x>0 (due to the natural domain of the natural logarithm).

Solve for x+ln⁡(x)=0. Let g(x)=x+ln⁡(x).

g′(x)=1+1x>0. For all x>0, g is strictly increasing.
g(1)=1+ln⁡(1)=1>0 while limx→0+g(x)=−∞ (show this yourself).
By the intermediate value theorem, there must be a solution for g(x) for any x∈[a,1]where 1≫a>0. Let that solution be x0.

Therefore, the domain for f(x) is (0,∞)−{x0}.

Note finding a solution x0 is not possible with standard methods, but can be found using the productlog function. An approximation for x0 is 0.567 using Newton's method (try it yourself!).

Now, attempt to rewrite f(x).

f(x)=x+1x(x+ln⁡(x))2=(x+1)⋅1xx(x+ln⁡(x))2⋅1x=1+1x(x+ln⁡(x))2

This algebraic rewrite is valid if and only if 1x is defined and nonzero. Note however the domain argument from before, where x>0 excluding x0.

Since 1x is undefined only at zero, and for all other x>0, 1x>0.

This means the multiplication by 1x on the numerator andn denominator is algebraically valid in its domain.

∫x+1x(x+ln⁡(x))2dx=∫1+1x(x+ln⁡(x))2dx.

Then, let

u=x+ln⁡(x),du=(1+1x)dx

Note that the domain must be preserved for the derivative given that the algebraic manipulation may alter the domain.

The domain of (1+1x)>1>0 for all x>0, so du≠0.
The mapping x↦u within the domain of x is strictly increasing and one-to-one on (0,x0)∪(x0,∞).
(Notice that the natural log and the rational function is one-to-one. As an exercise to the reader, prove ln⁡(x)<1x for all x>0).
Therefore, u≠0 for all u in the domain. Meaning the rewritten integrand is valid and does not introduce new singularities.

Thus,

∫1+1x(x+ln⁡(x))2dx=∫1u2du=∫u−2du=−u−1=−1u=−1x+ln⁡(x)+𝐂
The domain argument is necessary if a student chooses to rewrite the integral in this way. In fact, this is the only way to integrate if one does integration by substution as traditionally done (i.e., a u-sub). This means any student answer that does not confirm nor discusses the domain will not be formally correct!

Integration by parts

[edit | edit source]
30. Consider the integral ∫sin⁡(x)cos⁡(x)dx. Find the integral in two different ways. (a) Integrate by parts with u=sin⁡(x) and v′=cos⁡(x). (b) Integrate by parts with u=cos⁡(x) and v′=sin⁡(x). Compare your answers. Are they the same?
(a)
u=sin⁡x;du=cos⁡xdx
v=sin⁡x;dv=cos⁡xdx
∫sin⁡xcos⁡xdx=sin2x−∫sin⁡xcos⁡xdx⟹2∫sin⁡xcos⁡xdx=sin2x⟹∫sin⁡xcos⁡xdx=sin2x2

(b)

u=cos⁡x;du=−sin⁡xdx
v=−cos⁡xdv=sin⁡xdx
∫sin⁡xcos⁡xdx=−cos2x−∫sin⁡xcos⁡xdx⟹2∫sin⁡xcos⁡xdx=−cos2x⟹∫sin⁡xcos⁡xdx=−cos2x2

Notice that the answers in parts (a) and (b) are not equal. However, since indefinite integrals include a constant term, we expect that the answers we found will differ by a constant. Indeed

sin2x2−(−cos2x2)=sin2x+cos2x2=12
(a)
u=sin⁡x;du=cos⁡xdx
v=sin⁡x;dv=cos⁡xdx
∫sin⁡xcos⁡xdx=sin2x−∫sin⁡xcos⁡xdx⟹2∫sin⁡xcos⁡xdx=sin2x⟹∫sin⁡xcos⁡xdx=sin2x2

(b)

u=cos⁡x;du=−sin⁡xdx
v=−cos⁡xdv=sin⁡xdx
∫sin⁡xcos⁡xdx=−cos2x−∫sin⁡xcos⁡xdx⟹2∫sin⁡xcos⁡xdx=−cos2x⟹∫sin⁡xcos⁡xdx=−cos2x2

Notice that the answers in parts (a) and (b) are not equal. However, since indefinite integrals include a constant term, we expect that the answers we found will differ by a constant. Indeed

sin2x2−(−cos2x2)=sin2x+cos2x2=12

Integration by Trigonometric Substitution

[edit | edit source]
40. ∫1x2+a2dx
Let
x=atan⁡θ;dx=asec2θdθ

Then

∫1x2+a2dx=∫asec2θdθa2(tan2θ+1)=∫sec2θdθasec2θ=1a∫dθ=θa+C=1aarctan⁡xa+𝐂
Let
x=atan⁡θ;dx=asec2θdθ

Then

∫1x2+a2dx=∫asec2θdθa2(tan2θ+1)=∫sec2θdθasec2θ=1a∫dθ=θa+C=1aarctan⁡xa+𝐂