If polynomials P and Q satisfies
∫((3x−1)cosx+(1−2x)sinx)dx=Pcosx+Qsinx
(ignoring the constant of integration) then
P=3x−12
Q=2+x
P=3(x−1)
Q=3(x−1)
Integrating by parts, the given integral is equal to
(3x−1)sinx−3∫sinxdx−(1−2x)cosx−2∫cosxdx=(3x−1)sinx+3cosx−(1−2x)cosx−2sinx=(3x−3)sinx+(2+2x)cosx
Hence Q=3(x−1) and P=2(1+x)