We are given that I=∫cos(x−a)sin(x+b)dx
I=∫cos(x+b−a−b)sin(x+b)dx
=∫cos[(x+b)−(a+b)]sin(x+b)dx
=∫[cos(x+b)cos(a+b)+sin(a+b)+sin(x+b)sin(a+b)]sin(x+b)dx
=∫cot(x+b)cos(a+b)dx+∫sin(a+b)dx
as we know, ∫cotθ=ln|sinθ|+C
I=cos(a+b).ln|sin(x+b)|+[sin(a+b)]x+C