Integrals of sinⁿx cosᵐx: if one exponent is odd, peel off one factor, turn the rest into the other function with sin²x + cos²x = 1, and substitute u = cos x or u = sin x. If both are even, lower the powers with the half-angle formulas cos²x = (1 + cos 2x)/2 and sin²x = (1 − cos 2x)/2. The notes treat secants and tangents the same way. Then a trigonometric substitution, y = a sin θ, integrates √(a² − y²) and splits the area of a piece of a disk into a sector and a triangle.
This lecture, given by a substitute lecturer, collects techniques for integrals involving trigonometric functions: powers of sines and cosines, then secants and tangents (in the notes), then a substitution that uses trigonometry to integrate a square root (transcript, p. 1). The notes for it are numbered Lecture 26; in their calendar Lecture 27 is the third exam (notes, p. 5).
Everything rests on the unit circle: the point at angle θ is (cosθ,sinθ), so sin2θ+cos2θ=1, where sin2θ means (sinθ)2 (transcript, p. 1). The double-angle formulas are cos2θ=cos2θ−sin2θ and sin2θ=2sinθcosθ (p. 1). Replacing sin2θ by 1−cos2θ in the first gives cos2θ=2cos2θ−1, and solving for the square (pp. 1–2; notes, p. 2):
Half-angle formulas
cos2θ=21+cos2θ,sin2θ=21−cos2θ
In words
cos squared theta equals the quantity 1 plus cos 2 theta, all over 2, sine squared theta equals the quantity 1 minus cos 2 theta, all over 2
For integration they are a way to remove squares, at the cost of doubling the angle (p. 2). The starting integrals are ∫cosxdx=sinx+c and ∫sinxdx=−cosx+c (p. 2; notes, p. 1).
The family is ∫sinnxcosmxdx with n and m whole numbers, 0,1,2,…; such integrals come up in Fourier series and elsewhere (transcript, p. 2). The easy case is when at least one exponent is odd (p. 2; notes, Method A, p. 1). With m=1, the factor cosxdx is exactly d(sinx), so substitute u=sinx, du=cosxdx (pp. 2–3):
One factor of cosine
∫sinnxcosxdx=∫undu=n+1un+1+c=n+1sinn+1x+c
In words
the integral of sine to the power n x cos x d x equals the integral of u to the power n d u equals u to the power n plus 1, end of power, over the quantity n plus 1, plus c equals sine to the power n plus 1, end of power, x over the quantity n plus 1, plus c
Then substitute back: you introduced u, but the question was asked in terms of x (p. 3). When the odd power is higher, keep one factor and turn the remaining even power into the other function with sin2x=1−cos2x (p. 3):
the integral of sine cubed x cos squared x d x equals the integral of the quantity 1 minus cos squared x, cos squared x sine x d x equals minus the integral of the quantity u squared minus u to the power 4, d u equals minus cos cubed x over 3 plus cos to the power 5 x over 5 plus c
using u=cosx, du=−sinxdx; mind the minus sign (p. 4; notes, Example 1, p. 1). Differentiating the answer is an easy check (p. 4). With no cosine at all, ∫sin3xdx=∫(1−cos2x)sinxdx=−cosx+3cos3x+c (p. 4). (The transcript drops the minus sign on cosx in this last answer, p. 4; differentiating confirms −cosx.) The notes do ∫cos3xdx=sinx−3sin3x+c the same way, with u=sinx (notes, Example 2, p. 1).
The harder case is when every exponent is even: there is no spare factor to serve as du, and writing cos2x=1−sin2x only swaps one even power for another (transcript, p. 5). Use the half-angle formulas instead (p. 5; notes, Method B, p. 2):
Cosine squared
∫cos2xdx=∫21+cos2xdx=2x+4sin2x+c
In words
the integral of cos squared x d x equals the integral of the quantity 1 plus cos 2 x, all over 2, times d x equals x over 2 plus sine 2 x over 4 plus c
The 41 comes from the chain rule: differentiatingsin2x brings out a 2 (p. 5). Note that a non-trigonometric term, x/2, appears (p. 5). In the same way ∫sin2xdx=2x−4sin2x+c (notes, p. 2).
For sin2xcos2x, do the trigonometry on the side first (pp. 5–6). Both half-angle formulas, then (a−b)(a+b)=a2−b2, then the half-angle formula once more:
sine squared x cos squared x equals the quantity 1 minus cos squared 2 x, all over 4 equals one eighth minus cos 4 x over 8, the integral of sine squared x cos squared x d x equals x over 8 minus sine 4 x over 32 plus c
A shortcut: sinxcosx=21sin2x, so sin2xcos2x=41sin22x, and one half-angle step gives the same expression (pp. 6–7; notes, Example 3, p. 2). Alternating these two procedures handles any sinnxcosmx (transcript, p. 6; notes, p. 2).
Loading graph…
The curve y=sin2xcos2x from 0 to π, computed from the formula, with its average value 1/8 (dashed). It equals 1/8−cos(4x)/8, and the cosine part averages to zero over a whole number of periods, so the area from 0 to π is π/8.
The notes start a second family, ∫secnxtanmxdx, with the identity sec2x=1+tan2x and the derivativesdxdtanx=sec2x and dxdsecx=secxtanx (notes, p. 2). The same ideas work:
∫tanxdx=∫cosxsinxdx=−ln∣cosx∣+c, with u=cosx (notes, p. 3).
An even power of secant: ∫sec4xdx=∫(1+tan2x)sec2xdx=tanx+3tan3x+c, with u=tanx (p. 3).
An odd power of tangent: ∫tan3xsecxdx=∫(sec2x−1)secxtanxdx=3sec3x−secx+c, with u=secx (p. 3).
And one integral found by "knowing the answer ahead of time": multiply and divide by secx+tanx, and the numerator becomes the derivative of the denominator (notes, pp. 3–4):
the integral of secant x d x equals the integral of the quantity secant squared x plus secant x tan x, all over the quantity secant x plus tan x, times d x equals log the absolute value of secant x plus tan x plus c
(The notes write these logarithms without the absolute value signs, which are needed where the inside is negative.) Odd powers of secant with even powers of tangent are left for later (p. 4).
Now a problem with no trigonometry in it. A disk of radius a is centred at the origin; cut out the piece in the first quadrant below the height y=b. What is its area (transcript, p. 7)? Vertical strips are awkward, because the top edge is flat and then curved. Horizontal strips of width dy and length x=a2−y2 work in one piece (p. 7):
Area of the piece
A=∫0ba2−y2dy
In words
capital A equals the integral from 0 to b of the square root of a squared minus y squared, end of root, d y
The square root comes from the circle, so use the circle: put y=asinθ, as in polar coordinates (pp. 7–8). Then a2−y2=a2−a2sin2θ=acosθ and dy=acosθdθ, so the square root disappears and only trigonometry is left (p. 8; notes, p. 5):
The substitution y=asinθ
∫a2−y2dy=a2∫cos2θdθ=a2(2θ+4sin2θ)+c
In words
the integral of the square root of a squared minus y squared, end of root, d y equals a squared the integral of cos squared theta d theta equals a squared the quantity theta over 2 plus sine 2 theta over 4, all plus c
using the cosine-squared integral from before. To go back to y, write sin2θ=2sinθcosθ, θ=arcsin(y/a), asinθ=y and acosθ=a2−y2 (pp. 8–9):
Integral of the square root
∫a2−y2dy=2a2arcsinay+2ya2−y2+c
In words
the integral of the square root of a squared minus y squared, end of root, d y equals a squared over 2 arc sine y over a plus y the square root of a squared minus y squared, end of root, over 2 plus c
Whenever you see a constant minus a square under a root, think of sin2+cos2=1; the substitution y=acosθ works just as well (p. 9). At y=0 both terms vanish, so with θ0=arcsin(b/a), the angle at the corner (pp. 9–10):
The area, read geometrically
A=2a2θ0+2ba2−b2
In words
capital A equals a squared theta nought over 2 plus b the square root of a squared minus b squared, end of root, over 2
The first term is the area of a sector of angle θ0, the second the area of a right triangle with legs b and a2−b2: plain geometry gives the same answer as the calculus (p. 10).
Worked example
Three integrals
Find (a) ∫0π/2sin3xdx, (b) ∫0πsin2xcos2xdx, (c) the area of the piece of a disk of radius 2 below the height 1, in the first quadrant.
(a) An odd power
∫sin3xdx=−cosx+3cos3x+c. At π/2 this is 0; at 0 it is −1+31=−32. So the integral is 32≈0.667.
(b) Even powers
[8x−32sin4x]0π=8π≈0.393, since sin4π=0.
(c) The trigonometric substitution
With a=2, b=1: θ0=arcsin21=6π, so A=24⋅6π+21⋅3=3π+23≈1.047+0.866=1.913. The piece is a little less than the rectangle of width 2 and height 1: it must be, since the length x=4−y2 of each horizontal strip is at most 2.
The variable of integration (an angle, in radians, in the trigonometric integrals); in the area problem, the horizontal length √(a² − y²) of a strip; in the cosmology note, a shifted scale factor. Say it: “x”.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
A way of writing a repeating function as a sum of sines and cosines whose frequencies are whole-number multiples of one frequency. Explained in Normal modes of a string and Fourier series.
A universe with more than the critical density, whose space curves back on itself like a sphere, so it is finite. Explained in Open, closed and flat universes.
A solution that gives two quantities, such as size and time, each as a function of a third helper variable, instead of one directly. Explained in The closed universe as a cycloid.
To become zero; sometimes, of a fixed point or solution, to stop existing.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).