If numerator were: sin
2x + 4sinxcosx + 3cos
2x things would be much easier.
In this case numerator = (sinx + 3cosx)(sinx + cosx). But as it stands, I have not figured out how. Alternatively, were the denominator (sinx - cos x) it'd also be simple.
The numerator as it stands = (sinx - cosx)(sinx - 3cosx)