Let sinx−cosx=t
(cosx+sinx)dx=dt (sinx−cosx)2=t2
Squaring on both sides
sin2x+cos2x−2sinxcosx=t2
1−sin2x=t2
sin2x=1−t2
∫sinx+cosx9+16sin2xdx
∫dt9+16sin2x=∫dt25−16t2=116∫dt(54)2−16t2
=116×12(54)log∣∣
∣
∣
∣∣54+t54−t∣∣
∣
∣
∣∣+c =140log∣∣∣5+4(sinxcosx)5−4(sinxcosx)∣∣∣+c