We know the property
amp;∫−aaf(x)dxamp;={2∫0af(x)dx,0,amp; when f(x) is an even function amp; when f(x) is an odd function
Let, I=∫2−π2π(x2+ln(π−xπ+x))cosx⋅dx
⇒I=∫2−π2πx2⋅cosxdx+∫2−π2πcosx⋅ln(π−xπ+x)dx
Here, x2cosx is an even function and cosx⋅ln(π−xπ+x) is an odd function.
amp;∴I=2∫02πx2cosxdx+0amp;⇒I=2[(sinx⋅x2)02π−∫02π2xsinx⋅dx]amp;⇒I=2π2−4∫02πxsinx⋅dxamp;⇒I=2π2−4[(x(−cosx))02π−∫02π1⋅(−cosx)dx]amp;⇒I=2π2−4∫02πcosxdxamp;⇒I=2π2−4[sinx]02πamp;⇒I=2π2−4