Secants and tangents: their derivatives, the integrals of tan x and sec x, and powers of sec x. Then the three trigonometric substitutions that remove a square root: x = a sin θ for √(a² − x²), x = a tan θ for √(a² + x²), x = a sec θ for √(x² − a²). A right triangle undoes the substitution at the end. When the quadratic under the root has a middle term, completing the square brings it to one of these forms.
The second of two lectures by the substitute lecturer, and in his words maybe the most technical part of the course (transcript, p. 1). It finishes the trigonometric integrals with secants and tangents, then uses trigonometric identities to integrate square roots of quadratics.
The secant is 1/cosx, the cosecant 1/sinx, the tangentsinx/cosx and the cotangent cosx/sinx: putting "co" in front exchanges sine and cosine (transcript, p. 1). Dividing cos2x+sin2x=1 by cos2x gives the identity behind this lecture, sec2x=1+tan2x (p. 1). The quotient rule gives the derivatives (pp. 1–2):
d over d x tan x equals the quantity cos squared x plus sine squared x, all over the quantity cos squared x, equals secant squared x, d over d x secant x equals sine x over the quantity cos squared x, equals secant x tan x
so ∫sec2xdx=tanx+c and ∫secxtanxdx=secx+c (p. 2). With u=cosx, ∫tanxdx=−ln∣cosx∣+c (p. 2), as in the previous lecture.
For the secant the lecture uses a different trick from the one in the previous lecture's notes. Add the two derivatives: (secx+tanx)′=sec2x+secxtanx=secx(secx+tanx). Call u=secx+tanx; then u′=usecx, so secx=u′/u, the logarithmic derivative of u (p. 3):
Integral of the secant
secx=uu′=dxdlnu⇒∫secxdx=ln∣secx+tanx∣+c
In words
secant x equals u prime over u equals d over d x log u which gives the integral of secant x d x equals log the absolute value of secant x plus tan x plus c
(The lecture and the notes write ln(secx+tanx); the absolute value is needed where secx+tanx<0.) With these, most trigonometric polynomials can be integrated (p. 3). For example, replace two of four secants with 1+tan2x and substitute u=tanx, du=sec2xdx (pp. 3–4):
the integral of secant to the power 4 x d x equals the integral of the quantity 1 plus tan squared x, secant squared x d x equals the integral of the quantity 1 plus u squared, d u equals tan x plus tan cubed x over 3 plus c
Now a hard-looking integral, ∫x21+x2dx (transcript, p. 4). The square root is the ugly part. The identity 1+tan2θ=sec2θ writes 1+x2 as a square if x=tanθ: then 1+x2=secθ and dx=sec2θdθ (p. 4). This is an inverse substitution: instead of naming a piece of the integrandu, we write x itself as a function of a new variable. Substituting, cancelling, and writing everything in sines and cosines (pp. 4–5):
After the substitution x=tanθ
∫tan2θsecθsec2θdθ=∫tan2θsecθdθ=∫sin2θcosθdθ
In words
the integral of secant squared theta d theta over the quantity tan squared theta secant theta, equals the integral of secant theta over the quantity tan squared theta, times d theta equals the integral of cos theta over the quantity sine squared theta, times d theta
Rewriting in sines and cosines is the systematic move when it is not clear how a mix of trig functions will simplify (p. 5). Now u=sinθ, du=cosθdθ gives ∫u−2du=−1/u+c=−sinθ1+c, minus the cosecant (pp. 5–6). Choose u=sinθ rather than cosθ because then du appears in the numerator (p. 5).
The answer is in terms of θ, but x=tanθ. Draw a right triangle with angle θ and choose the sides to make that true: opposite x, adjacent 1, so the hypotenuse is 1+x2 (transcript, p. 6). Then 1/sinθ, the cosecant, is hypotenuse over opposite (pp. 6–7):
Result
∫x21+x2dx=−sinθ1+c=−x1+x2+c
In words
the integral of d x over the quantity x squared the square root of 1 plus x squared, end of root, equals minus 1 over the quantity sine theta, plus c equals minus the square root of 1 plus x squared, end of root, over x plus c
Writing minus the cosecant of tan−1x would also be correct, but the triangle gives a far more useful answer (pp. 7–8). (On p. 7 the transcript says "cosine" and "arctan of theta" where it means minus the cosecant of tan−1x.) The same trick evaluates any trig function of an inverse trig function. For the tangent of the angle whose cosecant is x (the arccosecant): take θ with 1/sinθ=x, so hypotenuse over opposite is x; choose opposite 1 and hypotenuse x, so the adjacent side is x2−1 and tanθ=1/x2−1 (p. 8).
the square root of a squared minus x squared, end of root, : x equals a sine theta which gives a cos theta; the square root of a squared plus x squared, end of root, : x equals a tan theta which gives a secant theta; the square root of x squared minus a squared, end of root, : x equals a secant theta which gives a tan theta
For the first, x=acosθ works equally well and gives asinθ (p. 8). This is how the previous lecture found the area of a piece of a disk, which the notes complete with the triangle trick: ∫0xa2−t2dt=2a2sin−1ax+2xa2−x2, a sector plus a triangle (notes, pp. 1–3). The notes remark that when the answer is this complicated, the route to it cannot be simple (p. 2).
Not every root of a quadratic has one of these forms: there may be a middle term (transcript, p. 9). Complete the square: write the quadratic as a square plus or minus a constant. For x2+4x, the middle term 2ax forces a=2, and (x+2)2=x2+4x+4, so (pp. 9–10; notes, p. 3):
Completing the square
x2+4x=(x+2)2−4
In words
x squared plus 4 x equals the quantity x plus 2, all squared minus 4
Substitute u=x+2, du=dx, to get ∫u2−4du, the third form with a=2. So u=2secθ, du=2secθtanθdθ and u2−4=2tanθ; everything cancels except ∫secθdθ (pp. 10–11). Then secθ=u/2 and tanθ=u2−4/2 (p. 11), and the constant −ln2 can be absorbed (notes, p. 4):
Result after completing the square
∫x2+4xdx=ln(2x+2+2x2+4x)+c=ln(x+2+x2+4x)+c~
In words
the integral of d x over the square root of x squared plus 4 x, end of root, equals log of the quantity the quantity x plus 2, all over 2 plus the square root of x squared plus 4 x, end of root, over 2, plus c equals log of the quantity x plus 2 plus the square root of x squared plus 4 x, end of root, plus c tilde
(For x>0; for x<−4 the logarithm needs an absolute value.) The notes end with a preview: next comes integrating any ratio of polynomials, by partial fractions (notes, pp. 4–5).
Worked example
Three square roots
Find (a) ∫x24+x2dx, (b) ∫011+x2dx, (c) ∫x2−6x+5dx for x>5.
(a) x=2tanθ
dx=2sec2θdθ and 4+x2=2secθ, so the integral is ∫4tan2θ⋅2secθ2sec2θdθ=41∫sin2θcosθdθ=−4sinθ1+c. The triangle has opposite x, adjacent 2, hypotenuse 4+x2, so the answer is −4x4+x2+c.
(b) x=tanθ
The integrand becomes secθdθ, and x from 0 to 1 means θ from 0 to π/4: ln(secθ+tanθ) at π/4 is ln(2+1)≈0.881, and at 0 it is ln1=0. So the integral is about 0.881.
(c) Complete the square
x2−6x+5=(x−3)2−4. With u=x−3=2secθ this is the integral just done: ln(x−3+x2−6x+5)+c. Check by differentiating: the derivative of the inside is 1+x2−6x+5x−3, which divided by the inside is x2−6x+51.
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.
The thing that undoes another: a matrix times its inverse gives the identity matrix, as a function followed by its inverse gives back the start. Explained in Planes through three points, and matrices.
A universe with exactly the critical density, whose space has no curvature and which expands forever, ever more slowly. Explained in Open, closed and flat universes.
The number a(t) that tells how much distances in the universe have stretched: when it doubles, every distance between galaxies doubles. Explained in Towards the universe: an expanding gas cools.
A method of solving an integral by replacing the variable with a sine, cosine or similar function so that a square root simplifies. Explained in The closed universe as a cycloid.
Following a fixed method; of an error, one that pushes every result the same way, so averaging does not remove it.
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).