Using the property, ∫a0f(x)dx=∫a0f(a−x)dx
Applying this property to the given integral,
I=∫π0xdxa2cos2x+b2sin2x ......(1)
I=∫π0(π−x)dxa2cos2(π−x)+b2sin2(π−x)
I=∫π0xdxa2cos2x+b2sin2x−∫π0(π−x)dxa2cos2(π−x)+b2sin2(π−x) ......(2)
Adding (1) and (2), we get
⇒2I=∫π0πdxa2cos2x+b2sin2x
⇒I=π2∫π0dxa2cos2x+b2sin2x
⇒I=2×π2∫π0dxa2cos2x+b2sin2x using the property,∫2a0f(x)dx=2∫a0f(a−x)dx if f(2a−x)=f(x)
⇒I=π∫π20dxa2cos2x+b2sin2x
Divide the numerator and denominator by cos2x we get
⇒I=π∫π201cos2xdxa2cos2xcos2x+b2sin2xcos2x
⇒I=π∫π20sec2xdxa2+b2tan2x
Put btanx=t⇒bsec2xdx=dt or sec2xdx=dtb
Also, when x=0,t=0 and when x=π2,t→∞
So,I=πb∫∞0dta2+t2
⇒I=πab∣∣∣tan−1(ta)]∞0
⇒I=πab[π2−0]
=π22ab