Consider the given expression, ∫sinx+sin2xdx=∫sinx+sin2xdx=∫sinx(1+2cosx)dx=∫sin2x(1+2cosx)sinxdx=∫(cos2x−1)(1+2cosx)−sinxdx Let cosx=t then −sinxdx=dtSo∫(t2−1)(1+2t)dt By partial fraction A=61,B=21 and C=−34 Now, ∫(t2−1)(1+2t)dt=∫t−161dt+21∫t+1dt−64∫t+21dt=6ln(t−1)+21ln(t+1)−64ln(t+21)+C=[6ln(cosx−1)+21ln(cosx+1)−32ln(cosx+21)+C].=[21ln∣1+cosx∣+61ln∣1−cosx∣−32lncosx+21+C]. Further simplify the above expression ∫(t2−1)(1+2t)dt=21ln(1+cosx)+61ln∣1−cosx∣−32ln∣1+2cosx∣+C