Integrals of [(a sin x + b cos x +c)/(p sin x + q cos x +r)] dx

Express the numerator as

λ (denominator) + µ (Differential of denominator) + υ

The solution will come as λx + µ log |denominator| + υ ∫ dx / (p sin x + q cos x + r)