Solution
Let
t=sinx
Differentiating with respect to x,
dt=cosxdx
Therefore,
∫(1−sinx)(2−sinx)cosxdx=∫(1−t)(2−t)dt
Let
(1−t)(2−t)1=1−tA+2−tB
Multiplying by (1−t)(2−t),
1=A(2−t)+B(1−t)
Putting t=1,
A=1
Putting t=2,
B=−1
Therefore,
(1−t)(2−t)1=1−t1−2−t1
Integrating,
∫(1−t)(2−t)dt=∫1−t1dt−∫2−t1dt=−log∣1−t∣+log∣2−t∣+C
Therefore,
∫(1−t)(2−t)dt=log1−t2−t+C
Substituting t=sinx,
∫(1−sinx)(2−sinx)cosxdx=log1−sinx2−sinx+C