∫cosnxsinmxdx,n,m∈N.
The strategy depends on the parity of the exponents.
Case 1: at least one odd exponent
If m is odd, detach one factor sinx; what remains, sinm−1x, is an even power, written with the cosine through sin2x=1−cos2x:
∫cosnxsinmxdx=∫cosnx(1−cos2x)2m−1sinxdx.
Now it is "a function of cosx times sinx" (the derivative of cosx up to sign): put y=cosx, dy=−sinxdx, and a polynomial in y remains. If instead n is odd, detach a cosx, use cos2x=1−sin2x and put y=sinx, dy=cosxdx.
Example.∫sin3xdx=∫(1−cos2x)sinxdx; with y=cosx, sinxdx=−dy:
−∫(1−y2)dy=−y+3y3+k=−cosx+31cos3x+k.
Case 2: both exponents even
Use the half-angle formulas (from cos2x=2cos2x−1=1−2sin2x):
cos2x=21+cos2x,sin2x=21−cos2x.Example.∫cos2xdx=2x+4sin2x+k.
The degree halves (at the price of cos2x in place of cosx); repeat until known integrals or odd powers are reached.
Example.cos4x=(21+cos2x)2=41(1+2cos2x+cos22x), so
∫cos4xdx=4x+21∫cos2xdx+41∫cos22xdx.
∫cos4xdx=4x+41sin2x+161(2x+sin2xcos2x)+k=83x+41sin2x+321sin4x+k
(using 4x+8x=83x and sin2xcos2x=21sin4x).
Exponents
Method
m odd
detach sinx, write sinm−1 with 1−cos2, y=cosx
n odd
detach cosx, write cosn−1 with 1−sin2, y=sinx
both even
half-angle: cos2=21+cos2x, sin2=21−cos2x
Irrational functions
1. Roots of x (or x+a) of different index
∫R(nx,mx)dx,∫R(nx+a,mx+a)dx.
Put y=Nx (or Nx+a) with N=lcm{n,m}. Then x=yN, dx=NyN−1dy and all roots become integer powers of y (nx=yN/n, nN an integer): the integral is rational in y.
Complete the square and make a linear substitution to reach an immediate integral:
Case
Reduces to
Result
a<0, Δ>0
∫1−y2dy
arcsiny+k
a>0, Δ<0
∫y2+1dy
log(y+y2+1)+k
a>0, Δ>0
∫y2−1dy
log(y+y2−1)+k (y>1)
(With a<0 and Δ<0 the radicand is always negative.)
Example.∫3−2x−x2dx: 3−2x−x2=4−(x+1)2=4[1−(2x+1)2]. With y=2x+1, dx=2dy: ∫21−y22dy=arcsin2x+1+k.
3. ∫ax2+bx+cdx
Completing the square reduces to one of
∫R2−x2dx(a<0,Δ>0),∫x2+R2dx(a>0,Δ<0),∫x2−R2dx(a>0,Δ>0),
which are not immediate. Use the substitution "backwards" x=f(t), f invertible, chosen so that the root disappears:
Integral
Substitution
Relation used
R2−x2
x=Rsint, t∈[−2π,2π]
1−sin2t=cos2t
x2+R2
x=Rsinht
sinh2t+1=cosh2t
x2−R2
x=Rcosht, t≥0
cosh2t−1=sinh2t
∫R2−x2dx (R>0, −R≤x≤R). With x=Rsint, dx=Rcostdt, t=arcsinRx∈[−2π,2π] where cost≥0, so 1−sin2t=cost:
R2∫cos2tdt=R2⋅2t+sintcost+k.
Returning to x (sint=Rx, cost=1−R2x2):
∫R2−x2dx=21(R2arcsinRx+xR2−x2)+k.Example.∫024−x2dx=π, the area of a quarter of a disc of radius 2.
Area of the circle. The disc x2+y2≤R2: the quarter in the first quadrant is the trapezoid of f(x)=R2−x2 on [0,R], so ∣C∣=4∫0RR2−x2dx. With x=Rsintchange the limits: x=0⇒t=0, x=R⇒t=2π:
∣C∣=4R2∫0π/2cos2tdt=4R2[2t+sintcost]0π/2=πR2.