记 sinx - cosx = p(sinx+2cosx) + q(sinx+2cosx)'
= (p-2q)sinx + (2p+q)cosx
p-2q = 1, 2p+q = -1, 解得 p = -1/5, q = -3/5
sinx - cosx = (-1/5)(sinx+2cosx) - (3/5)(sinx+2cosx)'
则 I = ∫(-1/5)dx - (3/5) ∫d(sinx+2cosx)/(sinx+2cosx)
= (-1/5)x - (3/5)ln|sinx+2cosx| + C