Evaluate the definite integrals.
∫ππ2ex(1−sin x1−cos x)dx.
Let I=∫ππ2ex(1−sin x1−cos x)dx=∫ππ2ex(1−2 sin(x2)cos(x2)2 sin2(x2))dx (∵ sin x=2 sin x2 cosx2 and 1−cos x=2 sin2x2)=∫ππ2ex(12 cosec2x2−cot x2)dx=∫ππ2ex(−cot x2+12 cosec2x2)dx ⎡⎣Here,ddx(−cotx2)=12cosec2x2 it is the form of∫ex{f(x)+f′(x)}dx=exf(x)⎤⎦∴ I=[ex(−cot x2)]ππ2 =−eπcot (π2)−[−eπ2cot(π4)]=−eπ.0+eπ2.1=eπ2