(integrate (1+cos(theta))^2 from theta=0 to pi)-(integrate (cos(theta))^2 from theta=0 to pi/2)