I=π/2∫−π/2(x2+αx+β)(pcosx+qsinx)dx ⋯(1)
Since b∫af(x)dx=b∫af(a+b−x)dx,
I=π/2∫−π/2(x2−αx+β)(pcosx−qsinx)dx …(2)
From (1)+(2),
2I=2π/2∫−π/2[px2cosx+pβcosx+qαxsinx]dx
We know that if f(x) is an even function, then a∫−af(x)dx=2a∫0f(x)dx
I=2π/2∫0[px2cosx+pβcosx+qαxsinx]dx
Let I1=π/2∫0px2cosx dx
Apply integration by parts
I1=px2sinx∣∣π/20−2pπ/2∫0xsinx dx
=pπ24−2p[−xcosx|π/20+sinx|π/20]I1=pπ24−2p=p(π24−2)
Let I2=π/2∫0pβcosx dx=pβ
Let I3=qαπ/2∫0xsinx dx
⇒I3=qα[−xcosx|π/20+sinx|π/20]⇒I3=qα
Now, I=2(I1+I2+I3)=0
⇒p(π24−2)+pβ+qα=0
⇒p(π24+β−2)+qα=0
Coefficient of p and q has to be zero.
β=−π24+2, α=0
∴π2+4β+α=8