Integrals of the Form $\int\dfrac{dx}{a\sin x+b\cos x+c}$
10.2.6
Integrals of the Form $\int\dfrac{dx}{a\sin x+b\cos x+c}$
To evaluate ∫asinx+bcosx+cdx, substitute t=tan2x. Then sec22x⋅21dx=dt, so dx=1+t22dt (using sec22x=1+tan22x); and, from the double-angle formulae applied to 2x, sinx=1+t22t and cosx=1+t21−t2. Substituting turns the whole integral into a rational function of t with a quadratic denominator — the 3.2.4 type. For the closely related pattern ∫asin2x+bcos2x+cdx, the substitution t=tanx is used instead, giving dx=1+t2dt, sin2x=1+t22t, cos2x=1+t21−t2.
∫5−4cosxdx. With t=tan2x: denominator becomes 5−4⋅1+t21−t2=1+t29t2+1, so the integral is ∫9t2+12dt=92∫t2+1/9dt, a Formula-1 shape: result =32tan−1(2tan2x)+c.
∫2−3sin2xdx. With t=tanx: denominator becomes 2−3⋅1+t22t=1+t22t2−6t+2, giving ∫t2−3t+1dt. Completing the square, (t−23)2−45, a Formula-2 shape: result =251log2tanx−3+52tanx−3−5+c.
∫3−2sinx+5cosxdx. With t=tan2x, the denominator becomes 1+t28−4t−2t2, giving ∫4−2t−t2dt. Completing the square, 5−(t+1)2, a Formula-4-family shape (5 vs (t+1), log form since it's not under a root): result =251log5−1−tan2x5+1+tan2x+c. …