(1/2)int_(pi/8)^(pi/2)(theta^2 - thetasin(2theta- pi/4) + cos(3theta - (5pi)/4))^2d theta