For an even function u and an odd function v, the identity 1+ev(x)1+1+e−v(x)1=1 gives ∫−aa1+ev(x)u(x)dx=∫0au(x)dx. The same identity applies to πx=exlogπ.
Both numerators are even, while xlogπ and sin(x2023) are odd. Therefore the required integral is ∫0π/2x2cosxdx+∫0π/2(1+sin2x)dx.
Two integrations by parts give ∫0π/2x2cosxdx=[x2sinx+2xcosx−2sinx]0π/2=π2/4−2. The second integral is π/2+π/4=3π/4. Their sum is 4π(π+3)−2, so a=3, option (1).