For (a sin x + b cos x)/(c sin x + d cos x): write the numerator = A × (denominator) + B × (derivative of the denominator). Then the integral is Ax + B ln|c sin x + d cos x| + C.

Key takeaways: t = tan(x/2) rationalises any trigonometric fraction; divide by cos²x when the denominator is quadratic in sin and cos; divide by x² for symmetric quartics; multiply by xⁿ⁻¹ to create du; and write a trigonometric numerator as a combination of the denominator and its derivative.