Every trigonometric integral in this section is solved with only two tools: a trigonometric identity that reshapes the integrand, followed by a substitution that finishes the job. The art lies entirely in choosing the right identity.
| Integral | Result |
|---|---|
| \displaystyle\int\cot x\,dx\ln | |
| \displaystyle\int\csc x\,dx-\ln |
| Situation | Strategy |
|---|---|
| , odd | Peel off one for ; convert the rest with ; let |
| , odd | Peel off one for ; convert the rest with ; let |
| , both even | Use the half-angle identities repeatedly |
| , even | Peel off for ; convert the rest with ; let |
| , odd | Peel off for ; convert the rest with ; let |
| , , | Use the product-to-sum identities |
Integrals That Follow Directly From Derivatives
In the previous chapter we saw
\bbox[8px, #E6F0FA, border: 3px solid #0066CC]{\begin{aligned} \int\sin x\ dx &= -\cos x+C\\ \int\cos x\ dx &= \sin x+C. \end{aligned}}In this section, we will investigate the integrals of the other trigonometric functions.
What is ? Because (\tan x)'=\sec^{2}x, we have
\bbox[8px, #E6F0FA, border: 3px solid #0066CC]{\int\sec^{2}x\ dx=\tan x+C.}Similarly, because (\cot x)'=-\csc^{2}x,
\bbox[8px, #E6F0FA, border: 3px solid #0066CC]{\int\csc^{2}x\ dx=-\cot x+C.}In words: every derivative formula for a trigonometric function, read backwards, is an integration formula. The remaining trigonometric functions, , , , and , are not the derivative of any function we have named, so their integrals take a little more work.
The Integrals of tan x and cot x
It is worth repeating an important integral that we evaluated in the section on integration by substitution.
Find .
Solution
Because and (\cos x)'=-\sin x, let . Then
and
\begin{aligned} \int\tan x\ dx &= \int\frac{\sin x}{\cos x}\,dx\\ &= \int\frac{-du}{u}\\ &= -\ln|u|+C\\ &= -\ln|\cos x|+C. \end{aligned}Recall that . So
\begin{aligned} -\ln|\cos x|+C &= \ln\left(|\cos x|^{-1}\right)+C\\ &= \ln|\sec x|+C. &&{\small(\sec x=\tfrac{1}{\cos x})} \end{aligned}Therefore, the result can also be written as
Find .
Solution
Because , if we let , then
and
\begin{aligned} \int\cot x\ dx &= \int\frac{\cos x}{\sin x}\,dx\\ &= \int\frac{du}{u}\\ &= \ln|u|+C\\ &= \ln|\sin x|+C. \end{aligned}Notice the pattern that makes both of these work: in each case the numerator is, up to sign, the derivative of the denominator. Any integral of the form \displaystyle\int\frac{g'(x)}{g(x)}\,dx equals .
The Integral of sec x tan x
Find .
Solution
Because
we already know that the result of this integral is . However, even if we did not know the result, we could use integration by substitution to derive it:
\begin{aligned} \int\sec x\tan x\ dx &= \int\frac{1}{\cos x}\frac{\sin x}{\cos x}\,dx\\ &= \int\frac{\sin x}{\cos^{2}x}\,dx. \end{aligned}Let , then
So
\begin{aligned} \int\frac{\sin x}{\cos^{2}x}\,dx &= \int-\frac{du}{u^{2}}\\ &= -\int u^{-2}\,du\\ &= -(-u^{-1})+C\\ &= \frac{1}{u}+C\\ &= \frac{1}{\cos x}+C &&{\small(u=\cos x)}\\ &= \sec x+C. \end{aligned}Find .
Solution
Let . Then
and
\begin{aligned} \int\sec(\underbrace{e^{x}}_{u})\tan(\underbrace{e^{x}}_{u})\underbrace{e^{x}\,dx}_{du} &= \int\sec u\tan u\ du\\ &= \sec u+C\\ &= \sec e^{x}+C. \end{aligned}
The Integrals of sec x and csc x
Find .
Solution
There are several ways to evaluate this integral; each involves a trick. The easiest way is to multiply and divide the integrand by :
\begin{aligned} \int\sec x\ dx &= \int\sec x\frac{\sec x+\tan x}{\sec x+\tan x}\,dx\\ &= \int\frac{\sec^{2}x+\sec x\tan x}{\sec x+\tan x}\,dx. \end{aligned}Let , which gives
The numerator is now exactly . Substituting these into the integral yields
\begin{aligned} \int\frac{\sec^{2}x+\sec x\tan x}{\sec x+\tan x}\,dx &= \int\frac{du}{u}\\ &= \ln|u|+C\\ &= \ln|\sec x+\tan x|+C. \end{aligned}Find .
Solution
Similar to the evaluation of , we can integrate by multiplying and dividing by :
Now let
Then the differential is
Factoring out the negative sign gives
Substituting and back into the integral, we obtain
\begin{aligned} \int \csc x\; dx &= \int \frac{-du}{u} \\ &= -\int \frac{1}{u} \, du\\ &= -\ln|u| + C. \end{aligned}Finally substituting back for yields
Alternative Form. Using the logarithmic property :
If we multiply the numerator and denominator inside the absolute value by and apply the trigonometric identity , we get
Both and are correct forms.
The Integrals of sin²x and cos²x
Neither nor is the derivative of anything obvious, and no substitution helps directly. The way out is to lower the power first, using the half-angle identities
Each identity trades a squared function of for a first power of a function of , and first powers we can integrate.
Find .
Solution
We lower the power with the half-angle identity for the sine, , where is the angle inside the sine. Taking gives , so
\begin{aligned} \int\sin^{2}x\ dx &= \frac{1}{2}\int(1-\cos2x)\,dx\\ &= \frac{1}{2}x-\frac{1}{4}\sin2x+C, \end{aligned}where is evaluated using the substitution .
Find .
Solution
We lower the power with the half-angle identity for the cosine, , where is the angle inside the cosine. Taking gives , so
\begin{aligned} \int\cos^{2}x\ dx &= \frac{1}{2}\int(1+\cos2x)\,dx\\ &= \frac{1}{2}x+\frac{1}{4}\sin2x+C. \end{aligned}Notice that adding these two results gives , exactly as it must, because . This is a useful way to check that you have the signs right.
Products of Sines and Cosines of Different Angles
In many applied problems such as mechanical vibrations and electromagnetic waves, we encounter the following trigonometric integrals
To evaluate these integrals, we use the product-to-sum identities
In each of these identities, a is the coefficient of inside the first factor and b is the coefficient of inside the second factor. For instance, in the first factor is , so , and the second factor is , so . The two angles appearing on the right are then and .
Each identity replaces a product, which we cannot integrate directly, by a sum of two single trigonometric functions, each of which integrates in one step by the linear substitution rule.
Find .
Solution
The integrand is a sine times a cosine of a different angle, so we use the product-to-sum identity
in which a is the coefficient of inside the sine and b is the coefficient of inside the cosine. Our integrand is , so the sine carries and the cosine carries , giving
Since the sine is an odd function, , so
\begin{aligned} \int\sin3x\,\cos5x\,dx &= \frac{1}{2}\int\left[\sin(-2x)+\sin8x\right]\,dx\\ &= \frac{1}{2}\int\left[\sin8x-\sin2x\right]\ dx\\ &= \frac{1}{2}\left(-\frac{1}{8}\cos8x+\frac{1}{2}\cos2x\right)+C\\ &= \frac{1}{4}\cos2x-\frac{1}{16}\cos8x+C. \end{aligned}Two cautions when applying the product-to-sum identities, in which a is the coefficient of in the first factor and b is the coefficient of in the second. First, may be negative; use and to clean up the result, as in the example above. Second, if then , so the term becomes , and the identity reduces to the half-angle formulas of the previous subsection.
Integrating sinm x cosn x When Either m or n Is a Positive Odd Integer
When has an odd exponent, we first reduce the integral to the form
and when has an odd exponent, we reduce the integral to the form
Then we can perform the integration by means of
The reason this works is worth stating plainly: an odd power always leaves one factor over after we pair the rest into squares, and that leftover factor is exactly the differential we need. The following examples will illustrate how to use this.
Find .
Solution
Here the exponent of is odd, so we separate one factor of for the differential and convert the remaining into sines with the Pythagorean identity
so that . Thus
\begin{aligned} \int\sin^{2}x\cos^{5}x\, dx &= \int\sin^{2}x\cos^{4}x\cos x\,dx\\ &= \int\sin^{2}x\,(1-\sin^{2}x)^{2}\cos x\,dx\\ &= \int(\sin^{2}x-2\sin^{4}x+\sin^{6}x)\cos x\,dx\\ &= \int\sin^{2}x\cos x\ dx-2\int\sin^{4}x\cos x\ dx\\ &\qquad +\int\sin^{6}x\cos x\ dx. \end{aligned}Now let
Thus
\begin{aligned} \int\sin^{2}x\cos^{5}x\,dx=\int&\underbrace{\sin^{2}x}_{u^{2}}\underbrace{\cos x\ dx}_{du}-2\int\underbrace{\sin^{4}x}_{u^{4}}\underbrace{\cos x\ dx}_{du}\\ &+\int\underbrace{\sin^{6}x}_{u^{6}}\underbrace{\cos x\ dx}_{du} \end{aligned}Find .
Solution
The exponent of is odd, so we split off one factor of for the differential and convert the remaining into sines by the Pythagorean identity
Therefore
\begin{aligned} \int\cos^{3}x\,dx &= \int\cos^{2}x\cos x\,dx\\ &= \int(1-\sin^{2}x)\cos x\,dx\\ &= \int\cos x\,dx-\int\underbrace{\sin^{2}x}_{u^{2}}\ \underbrace{\cos x\,dx}_{du}\\ &= \sin x-\underbrace{\frac{\sin^{3}x}{3}}_{u^{3}/3}+C. \end{aligned}Find .
Solution
Writing the integrand as , we have and , since . Notice that the strategy does not require to be a positive integer; only the odd exponent on matters. We separate a factor of from and express the remaining factor in terms of using the Pythagorean identity
so that . That is,
\begin{aligned} \int\frac{\cos^{5}x}{\sqrt{\sin x}}\,dx &= \int\frac{\cos^{4}x}{\sqrt{\sin x}}\cos x\ dx\\ &= \int\frac{(1-\sin^{2}x)^{2}}{\sqrt{\sin x}}\cos x\ dx. \end{aligned}Now let . Then and
\begin{aligned} \int\frac{(1-\sin^{2}x)^{2}}{\sqrt{\sin x}}\cos x\ dx &= \int\frac{(1-u^{2})^{2}}{\sqrt{u}}\,du\\ &= \int\frac{1-2u^{2}+u^{4}}{\sqrt{u}}\,du\\ &= \int\left(u^{-1/2}-2u^{3/2}+u^{7/2}\right)\,du\\ &= 2u^{1/2}-\frac{4}{5}u^{5/2}+\frac{2}{9}u^{9/2}+C\\ &= 2\sqrt{\sin x}-\frac{4}{5}\sqrt{\sin^{5}x}+\frac{2}{9}\sqrt{\sin^{9}x}+C. \end{aligned}
Integrating sinm x cosn x When Both m and n Are Positive Even Integers
When both exponents are even, the odd-power strategy no longer applies: there is no spare factor to serve as . Instead, we use the half-angle identities
and the double-angle identity
repeatedly until no even powers remain. The resulting integrals involve only first powers of cosines of multiple angles, which are straightforward to integrate.
Find .
Solution
We use the double-angle identity for the sine,
in which is the common angle of the sine and cosine. Here , so and
\begin{aligned} \int\sin^{2}x\cos^{2}x\,dx &= \int\left(\sin x\cos x\right)^{2}\,dx\\ &= \int\left(\frac{1}{2}\sin2x\right)^{2}\,dx\\ &= \frac{1}{4}\int\sin^{2}2x\,dx. \end{aligned}Now we apply :
\begin{aligned} \frac{1}{4}\int\sin^{2}2x\,dx &= \frac{1}{4}\int\frac{1-\cos4x}{2}\,dx\\ &= \frac{1}{8}\int\left(1-\cos4x\right)\,dx\\ &= \frac{1}{8}\left(x-\frac{1}{4}\sin4x\right)+C\\ &= \frac{x}{8}-\frac{\sin4x}{32}+C. \end{aligned}Find .
Solution
We write and apply the half-angle identities
in which is the angle inside the sine or cosine and is twice that angle. Both factors here have , so and
Thus
\begin{aligned} \int\sin^{4}x\cos^{2}x\,dx &= \int\left(\frac{1-\cos2x}{2}\right)^{2}\cdot\frac{1+\cos2x}{2}\,dx\\ &= \frac{1}{8}\int(1-\cos2x)^{2}(1+\cos2x)\,dx. \end{aligned}Expanding :
\begin{aligned} (1-\cos2x)^{2}(1+\cos2x) &= (1-2\cos2x+\cos^{2}2x)(1+\cos2x)\\ &= 1+\cos2x-2\cos2x-2\cos^{2}2x\\ &\qquad+\cos^{2}2x+\cos^{3}2x\\ &= 1-\cos2x-\cos^{2}2x+\cos^{3}2x. \end{aligned}For the term we again use the half-angle identity , now with so that , giving . For the term the exponent is odd, so we split off one factor of and convert the rest with the Pythagorean identity :
Substituting back:
\begin{aligned} \int\sin^{4}x\cos^{2}x\,dx &= \frac{1}{8}\int\left[1-\cos2x-\frac{1+\cos4x}{2} +(1-\sin^{2}2x)\cos2x\right]\,dx\\ &= \frac{1}{8}\int\left[\frac{1}{2}-\frac{\cos4x}{2} -\sin^{2}2x\cos2x\right]\,dx. \end{aligned}Integrating term by term, using for and for the last term:
\begin{aligned} \int\sin^{4}x\cos^{2}x\,dx &= \frac{1}{8}\left[\frac{x}{2}-\frac{\sin4x}{8} -\frac{\sin^{3}2x}{6}\right]+C\\ &= \frac{x}{16}-\frac{\sin4x}{64}-\frac{\sin^{3}2x}{48}+C. \end{aligned}Find .
Solution
We write and apply the half-angle identity for the cosine,
where is the angle inside the cosine. With this reads , so
\begin{aligned} \int\cos^{4}x\,dx &= \int\left(\frac{1+\cos2x}{2}\right)^{2}\,dx\\ &= \frac{1}{4}\int\left(1+2\cos2x+\cos^{2}2x\right)\,dx. \end{aligned}For the remaining term, we apply the same identity once more, this time with , so that :
Substituting back:
\begin{aligned} \frac{1}{4}\int&\left(1+2\cos2x+\cos^{2}2x\right)\,dx\\ &= \frac{1}{4}\int\left(1+2\cos2x+\frac{1+\cos4x}{2}\right)\,dx\\ &= \frac{1}{4}\int\left(\frac{3}{2}+2\cos2x+\frac{\cos4x}{2}\right)\,dx\\ &= \frac{1}{4}\left(\frac{3}{2}x+\sin2x+\frac{\sin4x}{8}\right)+C\\ &= \frac{3x}{8}+\frac{\sin2x}{4}+\frac{\sin4x}{32}+C. \end{aligned}
Integrating tanm x secn x When m Is a Positive Odd Integer or n Is a Positive Even Integer
The key identities for this family of integrals are
Two cases arise naturally.
Case 1: is a positive even integer. The goal is to use the substitution
For this to work, we need a bare factor of to serve as the differential . Since is even, we can always peel one off the integrand and reserve it for . The remaining factor has an even exponent, so it can be converted entirely into powers of using
repeatedly. The integral then becomes a polynomial in :
\begin{aligned} \int\tan^{m}x\,\sec^{n}x\,dx &= \int\tan^{m}x\,\sec^{n-2}x\cdot\sec^{2}x\,dx\\ &= \int u^{m}(\text{polynomial in }u)\,du. \end{aligned}Case 2: is a positive odd integer. The goal is to use the substitution
For this to work, we need a bare factor of to serve as the differential . Since is odd, we can always peel one factor of off and pair it with one factor of from , reserving the product for . The remaining factor has an even exponent, so it can be converted entirely into powers of using repeatedly. The integral then becomes a polynomial in :
\begin{aligned} \int\tan^{m}x\,\sec^{n}x\,dx &= \int\tan^{m-1}x\,\sec^{n-1}x\cdot\sec x\tan x\,dx\\ &= \int u^{n-1}(\text{polynomial in }u)\,du. \end{aligned}Find .
Solution
The exponent of is even, so we apply Case 1. We separate one factor of to serve as the differential, and convert the remaining into tangents by the Pythagorean identity
Therefore
\begin{aligned} \int\tan^{2}x\sec^{4}x\,dx &= \int\tan^{2}x\sec^{2}x\cdot\sec^{2}x\,dx\\ &= \int\tan^{2}x\,(1+\tan^{2}x)\sec^{2}x\,dx. \end{aligned}Let , so :
\begin{aligned} \int u^{2}(1+u^{2})\,du &= \int\left(u^{2}+u^{4}\right)\,du\\ &= \frac{u^{3}}{3}+\frac{u^{5}}{5}+C\\ &= \frac{\tan^{3}x}{3}+\frac{\tan^{5}x}{5}+C. \end{aligned}Find .
Solution
The exponent of is odd, so we apply Case 2. We separate a factor of to serve as the differential, and convert the remaining into secants by the Pythagorean identity
Therefore
\begin{aligned} \int\tan^{3}x\sec^{3}x\,dx &= \int\tan^{2}x\sec^{2}x\cdot\sec x\tan x\,dx\\ &= \int(\sec^{2}x-1)\sec^{2}x\cdot\sec x\tan x\,dx. \end{aligned}Let , so :
\begin{aligned} \int(u^{2}-1)u^{2}\,du &= \int\left(u^{4}-u^{2}\right)\,du\\ &= \frac{u^{5}}{5}-\frac{u^{3}}{3}+C\\ &= \frac{\sec^{5}x}{5}-\frac{\sec^{3}x}{3}+C. \end{aligned}Find .
Solution
We can write this integral as . The exponent of is even, so we apply Case 1. Notice again that the exponent on need not be an integer. We separate one factor of to serve as the differential, and convert the remaining into tangents by the Pythagorean identity
Therefore
\begin{aligned} \int\tan^{1/2}x\,\sec^{4}x\,dx &= \int\tan^{1/2}x\,\sec^{2}x\cdot\sec^{2}x\,dx\\ &= \int\tan^{1/2}x\,(1+\tan^{2}x)\sec^{2}x\,dx. \end{aligned}Let , so :
\begin{aligned} \int u^{1/2}(1+u^{2})\,du &= \int\left(u^{1/2}+u^{5/2}\right)\,du\\ &= \frac{2}{3}u^{3/2}+\frac{2}{7}u^{7/2}+C\\ &= \frac{2}{3}\tan^{3/2}x+\frac{2}{7}\tan^{7/2}x+C. \end{aligned}
Exercises
Each of the following can be done with the basic formulas, the substitution rule, and the identities of this section. No other technique is needed.
Evaluate .
Solution
Let , so and . Then
\begin{aligned} \int\tan 3x\,dx &= \frac{1}{3}\int\tan u\,du\\ &= \frac{1}{3}\ln|\sec u|+C\\ &= \frac{1}{3}\ln|\sec 3x|+C. \end{aligned}Equivalently, .
Evaluate .
Solution
Let . Then , so and
\begin{aligned} \int x\cot(x^{2})\,dx &= \frac{1}{2}\int\cot u\,du\\ &= \frac{1}{2}\ln|\sin u|+C\\ &= \frac{1}{2}\ln|\sin(x^{2})|+C. \end{aligned}Evaluate .
Solution
Let , so . Using the formula for established above,
\begin{aligned} \int\csc 2x\,dx &= \frac{1}{2}\int\csc u\,du\\ &= -\frac{1}{2}\ln|\csc u+\cot u|+C\\ &= -\frac{1}{2}\ln|\csc 2x+\cot 2x|+C. \end{aligned}Evaluate .
Solution
The exponent of is odd, so we peel off one factor of to serve as the differential and convert what remains into cosines. The conversion uses the Pythagorean identity
Therefore
\begin{aligned} \int\sin^{3}x\,dx &= \int\sin^{2}x\,\sin x\,dx\\ &= \int(1-\cos^{2}x)\sin x\,dx. \end{aligned}Let , so :
\begin{aligned} \int(1-u^{2})(-du) &= \int(u^{2}-1)\,du\\ &= \frac{u^{3}}{3}-u+C\\ &= \frac{\cos^{3}x}{3}-\cos x+C. \end{aligned}Evaluate .
Solution
The exponent of is odd, so we peel off one factor of for the differential. The remaining is converted into sines by the Pythagorean identity
which squared gives . Therefore
\begin{aligned} \int\cos^{5}x\,dx &= \int(1-\sin^{2}x)^{2}\cos x\,dx. \end{aligned}Let , so :
\begin{aligned} \int(1-u^{2})^{2}\,du &= \int\left(1-2u^{2}+u^{4}\right)\,du\\ &= u-\frac{2u^{3}}{3}+\frac{u^{5}}{5}+C\\ &= \sin x-\frac{2\sin^{3}x}{3}+\frac{\sin^{5}x}{5}+C. \end{aligned}Evaluate .
Solution
Both exponents are odd, so either factor may supply the differential. We peel off a factor of and convert the remaining using the Pythagorean identity
Therefore
\begin{aligned} \int\sin^{3}x\cos^{3}x\,dx &= \int\sin^{3}x\,(1-\sin^{2}x)\cos x\,dx. \end{aligned}Let , so :
\begin{aligned} \int u^{3}(1-u^{2})\,du &= \int\left(u^{3}-u^{5}\right)\,du\\ &= \frac{u^{4}}{4}-\frac{u^{6}}{6}+C\\ &= \frac{\sin^{4}x}{4}-\frac{\sin^{6}x}{6}+C. \end{aligned}Peeling off a factor of instead gives , which differs from the first answer only by a constant.
Evaluate .
Solution
Both exponents are even (here ), so we lower the power with the half-angle identity for the sine,
In this identity stands for whatever angle appears inside the sine, and is twice that angle. Our angle is , so and the identity reads
Therefore
\begin{aligned} \int\sin^{2}3x\,dx &= \frac{1}{2}\int(1-\cos 6x)\,dx\\ &= \frac{x}{2}-\frac{\sin 6x}{12}+C. \end{aligned}Evaluate .
Solution
We lower the power with the half-angle identity for the cosine,
in which is the angle inside the cosine and is twice that angle. Here , so and the identity reads
Therefore
\begin{aligned} \int\cos^{2}\frac{x}{2}\,dx &= \frac{1}{2}\int(1+\cos x)\,dx\\ &= \frac{x}{2}+\frac{\sin x}{2}+C. \end{aligned}Evaluate .
Solution
Write and apply the half-angle identity for the sine,
where is the angle inside the sine. Here , so and . Squaring,
\begin{aligned} \sin^{4}x &= \left(\frac{1-\cos 2x}{2}\right)^{2}\\ &= \frac{1-2\cos 2x+\cos^{2}2x}{4}. \end{aligned}The term is still an even power, so we apply the half-angle identity for the cosine,
this time with , so that and . Substituting,
\begin{aligned} \sin^{4}x &= \frac{1}{4}\left(1-2\cos 2x+\frac{1+\cos 4x}{2}\right)\\ &= \frac{1}{4}\left(\frac{3}{2}-2\cos 2x+\frac{\cos 4x}{2}\right). \end{aligned}Integrating term by term,
\begin{aligned} \int\sin^{4}x\,dx &= \frac{1}{4}\left(\frac{3x}{2}-\sin 2x+\frac{\sin 4x}{8}\right)+C\\ &= \frac{3x}{8}-\frac{\sin 2x}{4}+\frac{\sin 4x}{32}+C. \end{aligned}Evaluate .
Solution
The integrand is a sine times a cosine of a different angle, so we use the product-to-sum identity
Here a is the coefficient of inside the sine and b is the coefficient of inside the cosine. Our integrand is , so the sine carries and the cosine carries , which means
Substituting these into the identity gives , and therefore
\begin{aligned} \int\sin 4x\cos 2x\,dx &= \frac{1}{2}\int\left[\sin 2x+\sin 6x\right]\,dx\\ &= \frac{1}{2}\left(-\frac{\cos 2x}{2}-\frac{\cos 6x}{6}\right)+C\\ &= -\frac{\cos 2x}{4}-\frac{\cos 6x}{12}+C. \end{aligned}Evaluate . (Here the sine has the smaller coefficient, so watch the sign.)
Solution
We again use the product-to-sum identity for a sine times a cosine,
where a is the coefficient of inside the sine and b is the coefficient of inside the cosine. Our integrand is . The sine carries and the cosine carries , so
This time is negative. Since the sine is an odd function, , and the identity becomes
Therefore
\begin{aligned} \int\sin x\cos 4x\,dx &= \frac{1}{2}\int\left[\sin 5x-\sin 3x\right]\,dx\\ &= \frac{1}{2}\left(-\frac{\cos 5x}{5}+\frac{\cos 3x}{3}\right)+C\\ &= \frac{\cos 3x}{6}-\frac{\cos 5x}{10}+C. \end{aligned}Evaluate .
Solution
The integrand is a product of two sines, so we use the product-to-sum identity
Here a is the coefficient of in the first sine and b is the coefficient of in the second sine. Our integrand is , so
Because the cosine is an even function, , so the negative difference causes no trouble here. The identity gives , and therefore
\begin{aligned} \int\sin 2x\sin 5x\,dx &= \frac{1}{2}\int\left[\cos 3x-\cos 7x\right]\,dx\\ &= \frac{1}{2}\left(\frac{\sin 3x}{3}-\frac{\sin 7x}{7}\right)+C\\ &= \frac{\sin 3x}{6}-\frac{\sin 7x}{14}+C. \end{aligned}Evaluate .
Solution
Two sines again, so we use
with a the coefficient of in the first sine and b the coefficient of in the second. Our integrand is , so
The identity gives . Note the minus sign between the two cosines; this is what distinguishes the sine-times-sine identity from the cosine-times-cosine one. Therefore
\begin{aligned} \int\sin 7x\sin 3x\,dx &= \frac{1}{2}\int\left[\cos 4x-\cos 10x\right]\,dx\\ &= \frac{1}{2}\left(\frac{\sin 4x}{4}-\frac{\sin 10x}{10}\right)+C\\ &= \frac{\sin 4x}{8}-\frac{\sin 10x}{20}+C. \end{aligned}Evaluate .
Solution
The integrand is a product of two cosines, so we use the product-to-sum identity
Here a is the coefficient of in the first cosine and b is the coefficient of in the second cosine. Our integrand is , so the first cosine carries and the second carries , which means
The identity gives , and therefore
\begin{aligned} \int\cos 5x\cos x\,dx &= \frac{1}{2}\int\left[\cos 4x+\cos 6x\right]\,dx\\ &= \frac{1}{2}\left(\frac{\sin 4x}{4}+\frac{\sin 6x}{6}\right)+C\\ &= \frac{\sin 4x}{8}+\frac{\sin 6x}{12}+C. \end{aligned}Evaluate .
Solution
Two cosines, so we use
with a the coefficient of in the first cosine and b the coefficient of in the second. Our integrand is , so
Since the cosine is even, , so the identity gives . Therefore
\begin{aligned} \int\cos 3x\cos 4x\,dx &= \frac{1}{2}\int\left[\cos x+\cos 7x\right]\,dx\\ &= \frac{1}{2}\left(\sin x+\frac{\sin 7x}{7}\right)+C\\ &= \frac{\sin x}{2}+\frac{\sin 7x}{14}+C. \end{aligned}Evaluate . (The coefficients need not be whole numbers.)
Solution
The integrand is a sine times a cosine, so we use
where a is the coefficient of inside the sine and b is the coefficient of inside the cosine. Our integrand is . Writing and , we read off
Nothing in the identity requires a and b to be integers. Using , the identity gives
Therefore
\begin{aligned} \int\sin\frac{x}{2}\cos\frac{3x}{2}\,dx &= \frac{1}{2}\int\left[\sin 2x-\sin x\right]\,dx\\ &= \frac{1}{2}\left(-\frac{\cos 2x}{2}+\cos x\right)+C\\ &= \frac{\cos x}{2}-\frac{\cos 2x}{4}+C. \end{aligned}Apply the product-to-sum identity to , and check that it agrees with the half-angle method.
Solution
The integrand is a product of two cosines, so the relevant identity is
with a the coefficient of in the first cosine and b the coefficient of in the second. Both factors are , so this time the two coefficients are equal:
Since , the identity collapses to , and therefore
\begin{aligned} \int\cos^{2}3x\,dx &= \frac{1}{2}\int\left[1+\cos 6x\right]\,dx\\ &= \frac{x}{2}+\frac{\sin 6x}{12}+C. \end{aligned}Check against the half-angle method. The half-angle identity applied to the angle , whose double is , reads
which is the same integrand, so it gives the same answer. This confirms that the half-angle identities are exactly the special case of the product-to-sum identities.
In an alternating-current circuit, the instantaneous power is the product of a voltage and a current . Find , where is a constant.
Solution
The variable of integration is , and the integrand is a product of two cosines, so we use the product-to-sum identity in the form
where A is the whole angle inside the first cosine and B is the whole angle inside the second. Our integrand is , so
Since the cosine is even, , and the identity gives
Therefore
\begin{aligned} \int\cos\omega t\cos 2\omega t\,dt &= \frac{1}{2}\int\left[\cos\omega t+\cos 3\omega t\right]\,dt\\ &= \frac{1}{2}\left(\frac{\sin\omega t}{\omega}+\frac{\sin 3\omega t}{3\omega}\right)+C\\ &= \frac{\sin\omega t}{2\omega}+\frac{\sin 3\omega t}{6\omega}+C. \end{aligned}Evaluate .
Solution
There is no odd power of and no factor of at all, so neither case applies directly. Instead we convert the whole integrand into something we can integrate, using the Pythagorean identity
Therefore
\begin{aligned} \int\tan^{2}x\,dx &= \int\left(\sec^{2}x-1\right)\,dx\\ &= \tan x-x+C. \end{aligned}Evaluate .
Solution
Here we use the companion Pythagorean identity, the one relating the cotangent and the cosecant:
Therefore
\begin{aligned} \int\cot^{2}x\,dx &= \int\left(\csc^{2}x-1\right)\,dx\\ &= -\cot x-x+C. \end{aligned}Evaluate .
Solution
Split off a factor of and replace it using the Pythagorean identity
Then
\begin{aligned} \int\tan^{3}x\,dx &= \int\tan x\left(\sec^{2}x-1\right)\,dx\\ &= \int\tan x\sec^{2}x\,dx-\int\tan x\,dx. \end{aligned}For the first integral, let , so and . For the second, we use the formula established earlier in this section. Therefore
Evaluate .
Solution
The exponent of is even, so Case 1 applies even though there is no factor of (that is, ). We peel off one for the differential and convert the remaining into tangents with the Pythagorean identity
Therefore
Let , so :
\begin{aligned} \int(1+u^{2})\,du &= u+\frac{u^{3}}{3}+C\\ &= \tan x+\frac{\tan^{3}x}{3}+C. \end{aligned}Evaluate .
Solution
The exponent of is even, so we use Case 1: peel off one for the differential, and convert the remaining into tangents with the Pythagorean identity
Therefore
\begin{aligned} \int\tan^{4}x\sec^{4}x\,dx &= \int\tan^{4}x\,(1+\tan^{2}x)\sec^{2}x\,dx. \end{aligned}With and ,
\begin{aligned} \int u^{4}(1+u^{2})\,du &= \int\left(u^{4}+u^{6}\right)\,du\\ &= \frac{u^{5}}{5}+\frac{u^{7}}{7}+C\\ &= \frac{\tan^{5}x}{5}+\frac{\tan^{7}x}{7}+C. \end{aligned}Evaluate .
Solution
The exponent of is odd, so we use Case 2: peel off a factor of for the differential, and convert the remaining into secants with the Pythagorean identity
which squared gives . Therefore
\begin{aligned} \int\tan^{5}x\sec x\,dx &= \int\tan^{4}x\cdot\sec x\tan x\,dx\\ &= \int(\sec^{2}x-1)^{2}\sec x\tan x\,dx. \end{aligned}Let , so :
\begin{aligned} \int(u^{2}-1)^{2}\,du &= \int\left(u^{4}-2u^{2}+1\right)\,du\\ &= \frac{u^{5}}{5}-\frac{2u^{3}}{3}+u+C\\ &= \frac{\sec^{5}x}{5}-\frac{2\sec^{3}x}{3}+\sec x+C. \end{aligned}Evaluate .
Solution
Let , so . Then
\begin{aligned} \int e^{x}\tan(e^{x})\,dx &= \int\tan u\,du\\ &= \ln|\sec u|+C\\ &= \ln\left|\sec(e^{x})\right|+C. \end{aligned}Evaluate .
Solution
The numerator is exactly the derivative of the denominator. Let , so :
\begin{aligned} \int\frac{\sec^{2}x}{1+\tan x}\,dx &= \int\frac{du}{u}\\ &= \ln|u|+C\\ &= \ln|1+\tan x|+C. \end{aligned}Evaluate .
Solution
The exponent of is odd, so we peel off one factor of for the differential and convert the remaining into cosines with the Pythagorean identity
Therefore
Let , so :
\begin{aligned} \int\frac{1-u^{2}}{u^{4}}(-du) &= \int\left(u^{-2}-u^{-4}\right)\,du\\ &= -u^{-1}+\frac{u^{-3}}{3}+C\\ &= -\frac{1}{\cos x}+\frac{1}{3\cos^{3}x}+C\\ &= -\sec x+\frac{\sec^{3}x}{3}+C. \end{aligned}The same integral can be written as , and Case 2 gives the same answer.
Evaluate in two different ways and reconcile the answers.
Solution
Method (a): substitution. Let , so :
\begin{aligned} \int\sin 4x\cos 4x\,dx &= \frac{1}{4}\int u\,du\\ &= \frac{u^{2}}{8}+C\\ &= \frac{\sin^{2}4x}{8}+C. \end{aligned}Method (b): double-angle identity. We use
where is the angle shared by the sine and the cosine. Here , so and . Therefore
\begin{aligned} \int\sin 4x\cos 4x\,dx &= \frac{1}{2}\int\sin 8x\,dx\\ &= -\frac{\cos 8x}{16}+C_{1}. \end{aligned}Reconciling. We use the double-angle identity for the cosine in the form
where is the angle inside the sine on the right. Taking gives , so and
so the two answers differ only by the constant , which is absorbed into the constant of integration.