Integrating Using Trigonometric Identities

A2 · P3 · 13 min

Only three trigonometric functions have integrals you can write down directly: sin⁡\sin, cos⁡\cos and sec⁡2\sec^2. Squares such as sin⁡2x\sin^2 x, cos⁡22x\cos^2 2x and tan⁡2x\tan^2 x, and products such as sin⁡3xcos⁡x\sin 3x\cos x, are not in the table. The syllabus asks you to "use trigonometrical relationships in carrying out integration": rewrite the integrand with an identity until every term is standard, then integrate. These questions are common in P3, often as the second half of a question whose first half proves the identity you need.

The idea: lower the power, raise the angle

The double angle formula for cosine has three forms:

cos⁡2x=cos⁡2x−sin⁡2x=2cos⁡2x−1=1−2sin⁡2x\cos 2x = \cos^2 x - \sin^2 x = 2\cos^2 x - 1 = 1 - 2\sin^2 x

Rearranging the last two gives cos⁡2x\cos^2 x and sin⁡2x\sin^2 x in terms of cos⁡2x\cos 2x, which has no square. A squared function of xx becomes a first power of a function of 2x2x, and a first power of cos⁡2x\cos 2x is easy to integrate.

Identities for integrating squares
cos⁡2x=12(1+cos⁡2x)sin⁡2x=12(1−cos⁡2x)\cos^2 x = \tfrac{1}{2}(1 + \cos 2x) \qquad \sin^2 x = \tfrac{1}{2}(1 - \cos 2x)tan⁡2x=sec⁡2x−1cot⁡2x=cosec⁡2x−1\tan^2 x = \sec^2 x - 1 \qquad \cot^2 x = \operatorname{cosec}^2 x - 1sin⁡xcos⁡x=12sin⁡2x\sin x\cos x = \tfrac{1}{2}\sin 2x

These hold with any angle in place of xx: sin⁡23x=12(1−cos⁡6x)\sin^2 3x = \tfrac{1}{2}(1 - \cos 6x), cos⁡2x2=12(1+cos⁡x)\cos^2\tfrac{x}{2} = \tfrac{1}{2}(1 + \cos x).

To remember which sign goes with which, test x=0x = 0: cos⁡20=1\cos^2 0 = 1 and 12(1+cos⁡0)=1\tfrac{1}{2}(1 + \cos 0) = 1, so cosine takes the plus sign.

The identities for tan⁡2\tan^2 and cot⁡2\cot^2 come from dividing sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1 by cos⁡2x\cos^2 x and by sin⁡2x\sin^2 x. They work because sec⁡2x\sec^2 x and cosec⁡2x\operatorname{cosec}^2 x are derivatives you know:

ddxtan⁡x=sec⁡2x,ddxcot⁡x=−cosec⁡2x\frac{d}{dx}\tan x = \sec^2 x, \qquad \frac{d}{dx}\cot x = -\operatorname{cosec}^2 x

so ∫sec⁡2x dx=tan⁡x+c\displaystyle\int \sec^2 x\, dx = \tan x + c and ∫cosec⁡2x dx=−cot⁡x+c\displaystyle\int \operatorname{cosec}^2 x\, dx = -\cot x + c. The second is not in the formula list, but it follows from differentiating cot⁡x=cos⁡xsin⁡x\cot x = \dfrac{\cos x}{\sin x} with the quotient rule (see Differentiating trigonometric functions).

Integrating with a trigonometric identity
  1. Identify the obstacle: a square, a product, or a reciprocal that is not in the table.
  2. Choose the identity that removes it (table above, or one the question has asked you to prove).
  3. Rewrite the whole integrand as a sum of terms sin⁡(ax+b)\sin(ax + b), cos⁡(ax+b)\cos(ax + b), sec⁡2(ax+b)\sec^2(ax + b), cosec⁡2(ax+b)\operatorname{cosec}^2(ax+b) and constants.
  4. Integrate term by term, dividing by the coefficient of xx inside each.
  5. For a definite integral, substitute the limits in radians and use exact values.

Squares of sine and cosine

∫cos⁡2x dx=∫12(1+cos⁡2x) dx=12x+14sin⁡2x+c\int \cos^2 x\, dx = \int \tfrac{1}{2}(1 + \cos 2x)\, dx = \tfrac{1}{2}x + \tfrac{1}{4}\sin 2x + c ∫sin⁡2x dx=∫12(1−cos⁡2x) dx=12x−14sin⁡2x+c\int \sin^2 x\, dx = \int \tfrac{1}{2}(1 - \cos 2x)\, dx = \tfrac{1}{2}x - \tfrac{1}{4}\sin 2x + c

Do not memorise these results; memorise the identities and derive the integrals each time. With a different angle the numbers change: ∫sin⁡23x dx=∫12(1−cos⁡6x) dx=12x−112sin⁡6x+c\displaystyle\int \sin^2 3x\, dx = \int \tfrac{1}{2}(1 - \cos 6x)\, dx = \tfrac{1}{2}x - \tfrac{1}{12}\sin 6x + c.

The graph shows why the answer contains 12x\tfrac{1}{2}x. The curve y=sin⁡2xy = \sin^2 x oscillates between 00 and 11 about the line y=12y = \tfrac{1}{2}, so on average it contributes 12\tfrac{1}{2} per unit of xx. The cos⁡2x\cos 2x term is the wobble around that average.

y = sin(x)^2 y = 1/2 fill 0 pi y = sin(x)^2

y=sin⁡2xy = \sin^2 x oscillates about y=12y = \tfrac{1}{2}, twice as fast as sin⁡x\sin x. The shaded area from 00 to π\pi is exactly π2\tfrac{\pi}{2}, half of the rectangle of height 11.

Higher even powers

For cos⁡4x\cos^4 x or sin⁡4x\sin^4 x, apply the identity twice. Square the identity for cos⁡2x\cos^2 x, and you meet cos⁡22x\cos^2 2x, which needs the identity again with angle 2x2x:

cos⁡4x=(12(1+cos⁡2x))2=14(1+2cos⁡2x+cos⁡22x)=14(1+2cos⁡2x+12+12cos⁡4x)\cos^4 x = \left(\tfrac{1}{2}(1 + \cos 2x)\right)^2 = \tfrac{1}{4}\left(1 + 2\cos 2x + \cos^2 2x\right) = \tfrac{1}{4}\left(1 + 2\cos 2x + \tfrac{1}{2} + \tfrac{1}{2}\cos 4x\right) cos⁡4x=38+12cos⁡2x+18cos⁡4x\cos^4 x = \tfrac{3}{8} + \tfrac{1}{2}\cos 2x + \tfrac{1}{8}\cos 4x

Questions usually ask you to prove an identity like this first, then use it.

Products of the two

sin⁡2xcos⁡2x\sin^2 x\cos^2 x looks hard but collapses: sin⁡xcos⁡x=12sin⁡2x\sin x\cos x = \tfrac{1}{2}\sin 2x, so sin⁡2xcos⁡2x=14sin⁡22x=18(1−cos⁡4x)\sin^2 x\cos^2 x = \tfrac{1}{4}\sin^2 2x = \tfrac{1}{8}(1 - \cos 4x).

Odd powers such as sin⁡3x\sin^3 x or cos⁡5x\cos^5 x, and products such as sin⁡2xcos⁡x\sin^2 x\cos x, are handled differently: by recognition or substitution, since cos⁡x\cos x is the derivative of sin⁡x\sin x. See Integrating f'(x)/f(x) and related forms and Integration by substitution.

Squares of tangent and cotangent

tan⁡2x\tan^2 x has no simple integral as it stands, but sec⁡2x\sec^2 x does:

∫tan⁡2x dx=∫(sec⁡2x−1)dx=tan⁡x−x+c\int \tan^2 x\, dx = \int\left(\sec^2 x - 1\right) dx = \tan x - x + c

Similarly ∫cot⁡2x dx=∫(cosec⁡2x−1)dx=−cot⁡x−x+c\displaystyle\int \cot^2 x\, dx = \int\left(\operatorname{cosec}^2 x - 1\right) dx = -\cot x - x + c.

Some integrands become sec⁡2\sec^2 after a double angle step. Since 1+cos⁡2x=2cos⁡2x1 + \cos 2x = 2\cos^2 x,

11+cos⁡2x=12cos⁡2x=12sec⁡2x,so∫11+cos⁡2x dx=12tan⁡x+c\frac{1}{1 + \cos 2x} = \frac{1}{2\cos^2 x} = \tfrac{1}{2}\sec^2 x, \qquad\text{so}\qquad \int\frac{1}{1 + \cos 2x}\, dx = \tfrac{1}{2}\tan x + c

Products of sines and cosines with different angles

sin⁡3xcos⁡x\sin 3x\cos x is a product of two different angles. Adding the compound angle formulae

sin⁡(A+B)=sin⁡Acos⁡B+cos⁡Asin⁡B,sin⁡(A−B)=sin⁡Acos⁡B−cos⁡Asin⁡B\sin(A + B) = \sin A\cos B + \cos A\sin B, \qquad \sin(A - B) = \sin A\cos B - \cos A\sin B

gives sin⁡(A+B)+sin⁡(A−B)=2sin⁡Acos⁡B\sin(A + B) + \sin(A - B) = 2\sin A\cos B. Similar sums and differences give the other two forms.

Products from the compound angle formulae
2sin⁡Acos⁡B=sin⁡(A+B)+sin⁡(A−B)2\sin A\cos B = \sin(A + B) + \sin(A - B)2cos⁡Acos⁡B=cos⁡(A+B)+cos⁡(A−B)2\cos A\cos B = \cos(A + B) + \cos(A - B)2sin⁡Asin⁡B=cos⁡(A−B)−cos⁡(A+B)2\sin A\sin B = \cos(A - B) - \cos(A + B)

These are not on the formula list and you are not expected to quote them. A question that needs one either asks you to derive it from the compound angle formulae or gives it to you. Know how to derive them in two lines.

Using the R formula

An expression acos⁡x+bsin⁡xa\cos x + b\sin x can be written as Rcos⁡(x−α)R\cos(x - \alpha) (see The R method). That turns an integrand like 1(3cos⁡x+sin⁡x)2\dfrac{1}{(\sqrt{3}\cos x + \sin x)^2} into a multiple of sec⁡2(x−α)\sec^2(x - \alpha), which integrates to a tangent. Look for this whenever the question has just asked you to express something in the form Rcos⁡(x±α)R\cos(x \pm \alpha) or Rsin⁡(x±α)R\sin(x \pm \alpha).

Worked examples

Routine: a squared sine with a multiple angle

Find ∫sin⁡23x dx\displaystyle\int \sin^2 3x\, dx.

Solution

Use sin⁡2θ=12(1−cos⁡2θ)\sin^2\theta = \tfrac{1}{2}(1 - \cos 2\theta) with θ=3x\theta = 3x:

∫sin⁡23x dx=∫12(1−cos⁡6x)dx=12x−12⋅16sin⁡6x+c=12x−112sin⁡6x+c\int \sin^2 3x\, dx = \int \tfrac{1}{2}\left(1 - \cos 6x\right) dx = \tfrac{1}{2}x - \tfrac{1}{2}\cdot\tfrac{1}{6}\sin 6x + c = \tfrac{1}{2}x - \tfrac{1}{12}\sin 6x + c
Show that a definite integral has a given value

Show that ∫0π/4cos⁡2x dx=π+28\displaystyle\int_0^{\pi/4} \cos^2 x\, dx = \frac{\pi + 2}{8}.

Solution∫0π/412(1+cos⁡2x)dx=12[x+12sin⁡2x]0π/4=12[(π4+12sin⁡π2)−(0+0)]\int_0^{\pi/4} \tfrac{1}{2}\left(1 + \cos 2x\right) dx = \tfrac{1}{2}\Big[x + \tfrac{1}{2}\sin 2x\Big]_0^{\pi/4} = \tfrac{1}{2}\left[\left(\tfrac{\pi}{4} + \tfrac{1}{2}\sin\tfrac{\pi}{2}\right) - (0 + 0)\right]=12(π4+12)=π8+14=π+28= \tfrac{1}{2}\left(\tfrac{\pi}{4} + \tfrac{1}{2}\right) = \frac{\pi}{8} + \frac{1}{4} = \frac{\pi + 2}{8}
A product of two angles

(a) Using the compound angle formulae, show that 2sin⁡3xcos⁡x=sin⁡4x+sin⁡2x2\sin 3x\cos x = \sin 4x + \sin 2x.

(b) Hence find the exact value of ∫0π/2sin⁡3xcos⁡x dx\displaystyle\int_0^{\pi/2} \sin 3x\cos x\, dx.

Solution

(a) sin⁡(3x+x)=sin⁡3xcos⁡x+cos⁡3xsin⁡x\sin(3x + x) = \sin 3x\cos x + \cos 3x\sin x and sin⁡(3x−x)=sin⁡3xcos⁡x−cos⁡3xsin⁡x\sin(3x - x) = \sin 3x\cos x - \cos 3x\sin x. Adding: sin⁡4x+sin⁡2x=2sin⁡3xcos⁡x\sin 4x + \sin 2x = 2\sin 3x\cos x.

(b)

∫0π/2sin⁡3xcos⁡x dx=12∫0π/2(sin⁡4x+sin⁡2x)dx=12[−14cos⁡4x−12cos⁡2x]0π/2\int_0^{\pi/2} \sin 3x\cos x\, dx = \tfrac{1}{2}\int_0^{\pi/2}\left(\sin 4x + \sin 2x\right) dx = \tfrac{1}{2}\Big[-\tfrac{1}{4}\cos 4x - \tfrac{1}{2}\cos 2x\Big]_0^{\pi/2}

At π2\tfrac{\pi}{2}: cos⁡2π=1\cos 2\pi = 1, cos⁡π=−1\cos\pi = -1, giving −14+12=14-\tfrac{1}{4} + \tfrac{1}{2} = \tfrac{1}{4}.

At 00: −14−12=−34-\tfrac{1}{4} - \tfrac{1}{2} = -\tfrac{3}{4}.

12(14−(−34))=12\tfrac{1}{2}\left(\tfrac{1}{4} - \left(-\tfrac{3}{4}\right)\right) = \tfrac{1}{2}
Tangent and cotangent squared

Find the exact value of ∫π/6π/3(tan⁡x+cot⁡x)2dx\displaystyle\int_{\pi/6}^{\pi/3} \left(\tan x + \cot x\right)^2 dx.

Solution

Expand, using tan⁡xcot⁡x=1\tan x\cot x = 1:

(tan⁡x+cot⁡x)2=tan⁡2x+2+cot⁡2x=(sec⁡2x−1)+2+(cosec⁡2x−1)=sec⁡2x+cosec⁡2x(\tan x + \cot x)^2 = \tan^2 x + 2 + \cot^2 x = \left(\sec^2 x - 1\right) + 2 + \left(\operatorname{cosec}^2 x - 1\right) = \sec^2 x + \operatorname{cosec}^2 x∫π/6π/3(sec⁡2x+cosec⁡2x)dx=[tan⁡x−cot⁡x]π/6π/3\int_{\pi/6}^{\pi/3}\left(\sec^2 x + \operatorname{cosec}^2 x\right) dx = \Big[\tan x - \cot x\Big]_{\pi/6}^{\pi/3}

At π3\tfrac{\pi}{3}: 3−13\sqrt{3} - \tfrac{1}{\sqrt{3}}. At π6\tfrac{\pi}{6}: 13−3\tfrac{1}{\sqrt{3}} - \sqrt{3}.

(3−13)−(13−3)=23−23=23−233=433\left(\sqrt{3} - \tfrac{1}{\sqrt{3}}\right) - \left(\tfrac{1}{\sqrt{3}} - \sqrt{3}\right) = 2\sqrt{3} - \frac{2}{\sqrt{3}} = 2\sqrt{3} - \frac{2\sqrt{3}}{3} = \frac{4\sqrt{3}}{3}
Exam-hard: a fourth power

(a) Show that cos⁡4x=38+12cos⁡2x+18cos⁡4x\cos^4 x = \tfrac{3}{8} + \tfrac{1}{2}\cos 2x + \tfrac{1}{8}\cos 4x.

(b) Hence find the exact value of ∫0π/2cos⁡4x dx\displaystyle\int_0^{\pi/2} \cos^4 x\, dx.

(c) Deduce the exact value of ∫0π/2sin⁡4x dx\displaystyle\int_0^{\pi/2} \sin^4 x\, dx, explaining your reasoning.

Solution

(a) cos⁡4x=(cos⁡2x)2=14(1+cos⁡2x)2=14(1+2cos⁡2x+cos⁡22x)\cos^4 x = \left(\cos^2 x\right)^2 = \tfrac{1}{4}(1 + \cos 2x)^2 = \tfrac{1}{4}\left(1 + 2\cos 2x + \cos^2 2x\right).

Apply the identity again with angle 2x2x: cos⁡22x=12(1+cos⁡4x)\cos^2 2x = \tfrac{1}{2}(1 + \cos 4x).

cos⁡4x=14+12cos⁡2x+18+18cos⁡4x=38+12cos⁡2x+18cos⁡4x\cos^4 x = \tfrac{1}{4} + \tfrac{1}{2}\cos 2x + \tfrac{1}{8} + \tfrac{1}{8}\cos 4x = \tfrac{3}{8} + \tfrac{1}{2}\cos 2x + \tfrac{1}{8}\cos 4x

(b)

∫0π/2cos⁡4x dx=[38x+14sin⁡2x+132sin⁡4x]0π/2=3π16+14sin⁡π+132sin⁡2π−0=3π16\int_0^{\pi/2}\cos^4 x\, dx = \Big[\tfrac{3}{8}x + \tfrac{1}{4}\sin 2x + \tfrac{1}{32}\sin 4x\Big]_0^{\pi/2} = \tfrac{3\pi}{16} + \tfrac{1}{4}\sin\pi + \tfrac{1}{32}\sin 2\pi - 0 = \frac{3\pi}{16}

(c) The graph of sin⁡x\sin x on [0,π2]\left[0, \tfrac{\pi}{2}\right] is the graph of cos⁡x\cos x reflected in the line x=π4x = \tfrac{\pi}{4}, because sin⁡x=cos⁡(π2−x)\sin x = \cos\left(\tfrac{\pi}{2} - x\right). The same is true of their fourth powers, so the areas are equal: ∫0π/2sin⁡4x dx=3π16\displaystyle\int_0^{\pi/2}\sin^4 x\, dx = \frac{3\pi}{16}.

(You can confirm this directly: sin⁡4x=38−12cos⁡2x+18cos⁡4x\sin^4 x = \tfrac{3}{8} - \tfrac{1}{2}\cos 2x + \tfrac{1}{8}\cos 4x, and the cos⁡2x\cos 2x term contributes −14sin⁡π=0-\tfrac{1}{4}\sin\pi = 0.)

Exam-hard: using the R formula

(a) Express 3cos⁡x+sin⁡x\sqrt{3}\cos x + \sin x in the form Rcos⁡(x−α)R\cos(x - \alpha), where R>0R > 0 and 0<α<π20 < \alpha < \tfrac{\pi}{2}.

(b) Hence find the exact value of ∫0π/31(3cos⁡x+sin⁡x)2 dx\displaystyle\int_0^{\pi/3} \frac{1}{\left(\sqrt{3}\cos x + \sin x\right)^2}\, dx.

Solution

(a) Rcos⁡(x−α)=Rcos⁡xcos⁡α+Rsin⁡xsin⁡αR\cos(x - \alpha) = R\cos x\cos\alpha + R\sin x\sin\alpha. Comparing: Rcos⁡α=3R\cos\alpha = \sqrt{3}, Rsin⁡α=1R\sin\alpha = 1. So R=3+1=2R = \sqrt{3 + 1} = 2 and tan⁡α=13\tan\alpha = \tfrac{1}{\sqrt{3}}, α=π6\alpha = \tfrac{\pi}{6}.

3cos⁡x+sin⁡x=2cos⁡(x−π6)\sqrt{3}\cos x + \sin x = 2\cos\left(x - \tfrac{\pi}{6}\right)

(b) The integrand is 14cos⁡2(x−π6)=14sec⁡2(x−π6)\dfrac{1}{4\cos^2\left(x - \frac{\pi}{6}\right)} = \tfrac{1}{4}\sec^2\left(x - \tfrac{\pi}{6}\right). For 0≤x≤π30 \le x \le \tfrac{\pi}{3} the angle x−π6x - \tfrac{\pi}{6} runs from −π6-\tfrac{\pi}{6} to π6\tfrac{\pi}{6}, so the cosine is never zero.

∫0π/314sec⁡2(x−π6)dx=14[tan⁡(x−π6)]0π/3=14(tan⁡π6−tan⁡(−π6))\int_0^{\pi/3}\tfrac{1}{4}\sec^2\left(x - \tfrac{\pi}{6}\right) dx = \tfrac{1}{4}\Big[\tan\left(x - \tfrac{\pi}{6}\right)\Big]_0^{\pi/3} = \tfrac{1}{4}\left(\tan\tfrac{\pi}{6} - \tan\left(-\tfrac{\pi}{6}\right)\right)=14⋅23=123=36= \tfrac{1}{4}\cdot\frac{2}{\sqrt{3}} = \frac{1}{2\sqrt{3}} = \frac{\sqrt{3}}{6}
Common mistakes
  • Integrating a square as if it were a power of xx. ∫sin⁡2x dx≠13sin⁡3x\displaystyle\int \sin^2 x\, dx \ne \tfrac{1}{3}\sin^3 x. Differentiate 13sin⁡3x\tfrac{1}{3}\sin^3 x and you get sin⁡2xcos⁡x\sin^2 x\cos x, not sin⁡2x\sin^2 x.
  • Wrong sign in the identity. cos⁡2x\cos^2 x has the plus, sin⁡2x\sin^2 x the minus. Check with x=0x = 0.
  • Not doubling the angle. cos⁡23x=12(1+cos⁡6x)\cos^2 3x = \tfrac{1}{2}(1 + \cos 6x), not 12(1+cos⁡3x)\tfrac{1}{2}(1 + \cos 3x).
  • Dividing by the wrong number. ∫cos⁡6x dx=16sin⁡6x\displaystyle\int \cos 6x\, dx = \tfrac{1}{6}\sin 6x. After the identity, the coefficient of xx is the doubled one.
  • Losing the half. sin⁡2x=12(1−cos⁡2x)\sin^2 x = \tfrac{1}{2}(1 - \cos 2x): the 12\tfrac{1}{2} multiplies both terms.
  • Treating tan⁡2x\tan^2 x as sec⁡2x\sec^2 x. tan⁡2x=sec⁡2x−1\tan^2 x = \sec^2 x - 1: the −1-1 integrates to −x-x, which is easily dropped.
  • Degrees. Limits are in radians; sin⁡π2=1\sin\tfrac{\pi}{2} = 1, not sin⁡90\sin 90 typed into a calculator in radian mode.
Exam tip
  • These questions usually come in two parts: "Show that ..." (an identity) and "Hence find ...". The "hence" part expects you to use the identity just proved. If you could not prove it, use it anyway: the marks for the integration are still available.
  • When proving an identity for integration, start from the more complicated side (usually cos⁡4x\cos^4 x or the product) and work towards the sum of cosines.
  • Write the rewritten integrand before integrating. A correct identity and a correct integration are separate method marks.
  • With exact limits, write each term at each limit before simplifying: examiners need to see sin⁡π=0\sin\pi = 0 being used.
  • Many students give 12x+12sin⁡2x\tfrac{1}{2}x + \tfrac{1}{2}\sin 2x for ∫cos⁡2x dx\displaystyle\int\cos^2 x\, dx, forgetting to divide by 22. Differentiate your answer as a check.
Summary
  • cos⁡2x=12(1+cos⁡2x)\cos^2 x = \tfrac{1}{2}(1 + \cos 2x) and sin⁡2x=12(1−cos⁡2x)\sin^2 x = \tfrac{1}{2}(1 - \cos 2x): lower the power, double the angle.
  • tan⁡2x=sec⁡2x−1\tan^2 x = \sec^2 x - 1 and cot⁡2x=cosec⁡2x−1\cot^2 x = \operatorname{cosec}^2 x - 1, with ∫sec⁡2x dx=tan⁡x\displaystyle\int\sec^2 x\, dx = \tan x and ∫cosec⁡2x dx=−cot⁡x\displaystyle\int\operatorname{cosec}^2 x\, dx = -\cot x.
  • sin⁡xcos⁡x=12sin⁡2x\sin x\cos x = \tfrac{1}{2}\sin 2x, so sin⁡2xcos⁡2x=18(1−cos⁡4x)\sin^2 x\cos^2 x = \tfrac{1}{8}(1 - \cos 4x).
  • Fourth powers: apply the squared identity twice.
  • Products with different angles: derive 2sin⁡Acos⁡B=sin⁡(A+B)+sin⁡(A−B)2\sin A\cos B = \sin(A + B) + \sin(A - B) and its relatives from the compound angle formulae.
  • acos⁡x+bsin⁡x=Rcos⁡(x−α)a\cos x + b\sin x = R\cos(x - \alpha) turns 1(acos⁡x+bsin⁡x)2\dfrac{1}{(a\cos x + b\sin x)^2} into 1R2sec⁡2(x−α)\dfrac{1}{R^2}\sec^2(x - \alpha).
  • After the identity, integrate term by term and divide by the coefficient of xx.

Practice

Question
  1. Find ∫cos⁡24x dx\displaystyle\int \cos^2 4x\, dx.
  2. Find ∫2sin⁡212x dx\displaystyle\int 2\sin^2\tfrac{1}{2}x\, dx.
  3. Find the exact value of ∫0π/4tan⁡2x dx\displaystyle\int_0^{\pi/4} \tan^2 x\, dx.
  4. Find the exact value of ∫0π/2(sin⁡x+cos⁡x)2 dx\displaystyle\int_0^{\pi/2} (\sin x + \cos x)^2\, dx.
  5. Show that 11+cos⁡2x=12sec⁡2x\dfrac{1}{1 + \cos 2x} = \tfrac{1}{2}\sec^2 x, and hence find the exact value of ∫0π/411+cos⁡2x dx\displaystyle\int_0^{\pi/4} \frac{1}{1 + \cos 2x}\, dx.
  6. Find the exact value of ∫0π/6sin⁡2xcos⁡2x dx\displaystyle\int_0^{\pi/6} \sin 2x\cos 2x\, dx.
  7. Show that sin⁡2xcos⁡2x=18(1−cos⁡4x)\sin^2 x\cos^2 x = \tfrac{1}{8}(1 - \cos 4x), and hence find the exact value of ∫0π/4sin⁡2xcos⁡2x dx\displaystyle\int_0^{\pi/4} \sin^2 x\cos^2 x\, dx.
  8. Show that 2cos⁡5xcos⁡3x=cos⁡8x+cos⁡2x2\cos 5x\cos 3x = \cos 8x + \cos 2x, and hence find the exact value of ∫0π/4cos⁡5xcos⁡3x dx\displaystyle\int_0^{\pi/4} \cos 5x\cos 3x\, dx.
  9. By first expressing sin⁡4x\sin^4 x in terms of cos⁡2x\cos 2x and cos⁡4x\cos 4x, show that ∫0π/4sin⁡4x dx=3π−832\displaystyle\int_0^{\pi/4} \sin^4 x\, dx = \frac{3\pi - 8}{32}.
  10. (a) Express cos⁡x−sin⁡x\cos x - \sin x in the form Rcos⁡(x+α)R\cos(x + \alpha), where R>0R > 0 and 0<α<π20 < \alpha < \tfrac{\pi}{2}. (b) Hence show that ∫0π/61(cos⁡x−sin⁡x)2 dx=1+32\displaystyle\int_0^{\pi/6} \frac{1}{(\cos x - \sin x)^2}\, dx = \frac{1 + \sqrt{3}}{2}.
Answers
  1. cos⁡24x=12(1+cos⁡8x)\cos^2 4x = \tfrac{1}{2}(1 + \cos 8x), so the integral is 12x+116sin⁡8x+c\tfrac{1}{2}x + \tfrac{1}{16}\sin 8x + c.

  2. 2sin⁡212x=1−cos⁡x2\sin^2\tfrac{1}{2}x = 1 - \cos x, so the integral is x−sin⁡x+cx - \sin x + c.

  3. ∫0π/4(sec⁡2x−1)dx=[tan⁡x−x]0π/4=1−π4\displaystyle\int_0^{\pi/4}\left(\sec^2 x - 1\right) dx = \Big[\tan x - x\Big]_0^{\pi/4} = 1 - \dfrac{\pi}{4}.

  4. (sin⁡x+cos⁡x)2=sin⁡2x+cos⁡2x+2sin⁡xcos⁡x=1+sin⁡2x(\sin x + \cos x)^2 = \sin^2 x + \cos^2 x + 2\sin x\cos x = 1 + \sin 2x. Then [x−12cos⁡2x]0π/2=(π2+12)−(0−12)=π2+1\Big[x - \tfrac{1}{2}\cos 2x\Big]_0^{\pi/2} = \left(\tfrac{\pi}{2} + \tfrac{1}{2}\right) - \left(0 - \tfrac{1}{2}\right) = \dfrac{\pi}{2} + 1.

  5. 1+cos⁡2x=1+(2cos⁡2x−1)=2cos⁡2x1 + \cos 2x = 1 + (2\cos^2 x - 1) = 2\cos^2 x, so 11+cos⁡2x=12cos⁡2x=12sec⁡2x\dfrac{1}{1 + \cos 2x} = \dfrac{1}{2\cos^2 x} = \tfrac{1}{2}\sec^2 x. Then [12tan⁡x]0π/4=12\Big[\tfrac{1}{2}\tan x\Big]_0^{\pi/4} = \dfrac{1}{2}.

  6. sin⁡2xcos⁡2x=12sin⁡4x\sin 2x\cos 2x = \tfrac{1}{2}\sin 4x. Then [−18cos⁡4x]0π/6=−18cos⁡2π3+18=116+18=316\Big[-\tfrac{1}{8}\cos 4x\Big]_0^{\pi/6} = -\tfrac{1}{8}\cos\tfrac{2\pi}{3} + \tfrac{1}{8} = \tfrac{1}{16} + \tfrac{1}{8} = \dfrac{3}{16}.

  7. sin⁡2xcos⁡2x=(sin⁡xcos⁡x)2=(12sin⁡2x)2=14sin⁡22x=14⋅12(1−cos⁡4x)=18(1−cos⁡4x)\sin^2 x\cos^2 x = (\sin x\cos x)^2 = \left(\tfrac{1}{2}\sin 2x\right)^2 = \tfrac{1}{4}\sin^2 2x = \tfrac{1}{4}\cdot\tfrac{1}{2}(1 - \cos 4x) = \tfrac{1}{8}(1 - \cos 4x). Then 18[x−14sin⁡4x]0π/4=18(π4−14sin⁡π)=π32\tfrac{1}{8}\Big[x - \tfrac{1}{4}\sin 4x\Big]_0^{\pi/4} = \tfrac{1}{8}\left(\tfrac{\pi}{4} - \tfrac{1}{4}\sin\pi\right) = \dfrac{\pi}{32}.

  8. cos⁡(5x+3x)=cos⁡5xcos⁡3x−sin⁡5xsin⁡3x\cos(5x + 3x) = \cos 5x\cos 3x - \sin 5x\sin 3x and cos⁡(5x−3x)=cos⁡5xcos⁡3x+sin⁡5xsin⁡3x\cos(5x - 3x) = \cos 5x\cos 3x + \sin 5x\sin 3x. Adding: cos⁡8x+cos⁡2x=2cos⁡5xcos⁡3x\cos 8x + \cos 2x = 2\cos 5x\cos 3x. Then 12[18sin⁡8x+12sin⁡2x]0π/4=12(18sin⁡2π+12sin⁡π2)=12⋅12=14\tfrac{1}{2}\Big[\tfrac{1}{8}\sin 8x + \tfrac{1}{2}\sin 2x\Big]_0^{\pi/4} = \tfrac{1}{2}\left(\tfrac{1}{8}\sin 2\pi + \tfrac{1}{2}\sin\tfrac{\pi}{2}\right) = \tfrac{1}{2}\cdot\tfrac{1}{2} = \dfrac{1}{4}.

  9. sin⁡4x=14(1−cos⁡2x)2=14(1−2cos⁡2x+cos⁡22x)=14(1−2cos⁡2x+12+12cos⁡4x)=38−12cos⁡2x+18cos⁡4x\sin^4 x = \tfrac{1}{4}(1 - \cos 2x)^2 = \tfrac{1}{4}\left(1 - 2\cos 2x + \cos^2 2x\right) = \tfrac{1}{4}\left(1 - 2\cos 2x + \tfrac{1}{2} + \tfrac{1}{2}\cos 4x\right) = \tfrac{3}{8} - \tfrac{1}{2}\cos 2x + \tfrac{1}{8}\cos 4x. Then [38x−14sin⁡2x+132sin⁡4x]0π/4=3π32−14sin⁡π2+132sin⁡π=3π32−14=3π−832\Big[\tfrac{3}{8}x - \tfrac{1}{4}\sin 2x + \tfrac{1}{32}\sin 4x\Big]_0^{\pi/4} = \tfrac{3\pi}{32} - \tfrac{1}{4}\sin\tfrac{\pi}{2} + \tfrac{1}{32}\sin\pi = \tfrac{3\pi}{32} - \tfrac{1}{4} = \dfrac{3\pi - 8}{32}.

  10. (a) Rcos⁡(x+α)=Rcos⁡xcos⁡α−Rsin⁡xsin⁡αR\cos(x + \alpha) = R\cos x\cos\alpha - R\sin x\sin\alpha, so Rcos⁡α=1R\cos\alpha = 1 and Rsin⁡α=1R\sin\alpha = 1. Hence R=2R = \sqrt{2}, α=π4\alpha = \tfrac{\pi}{4}: cos⁡x−sin⁡x=2cos⁡(x+π4)\cos x - \sin x = \sqrt{2}\cos\left(x + \tfrac{\pi}{4}\right). (b) The integrand is 12cos⁡2(x+π4)=12sec⁡2(x+π4)\dfrac{1}{2\cos^2\left(x + \frac{\pi}{4}\right)} = \tfrac{1}{2}\sec^2\left(x + \tfrac{\pi}{4}\right), and x+π4x + \tfrac{\pi}{4} runs from π4\tfrac{\pi}{4} to 5π12\tfrac{5\pi}{12}, where the cosine is not zero. The integral is 12[tan⁡(x+π4)]0π/6=12(tan⁡5π12−tan⁡π4)\tfrac{1}{2}\Big[\tan\left(x + \tfrac{\pi}{4}\right)\Big]_0^{\pi/6} = \tfrac{1}{2}\left(\tan\tfrac{5\pi}{12} - \tan\tfrac{\pi}{4}\right). By the compound angle formula, tan⁡5π12=tan⁡(π4+π6)=1+131−13=3+13−1=(3+1)22=2+3\tan\tfrac{5\pi}{12} = \tan\left(\tfrac{\pi}{4} + \tfrac{\pi}{6}\right) = \dfrac{1 + \frac{1}{\sqrt{3}}}{1 - \frac{1}{\sqrt{3}}} = \dfrac{\sqrt{3} + 1}{\sqrt{3} - 1} = \dfrac{(\sqrt{3} + 1)^2}{2} = 2 + \sqrt{3}. So the integral is 12(2+3−1)=1+32\tfrac{1}{2}\left(2 + \sqrt{3} - 1\right) = \dfrac{1 + \sqrt{3}}{2}.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action