The above is a line in my textbook. $G, \delta, $ and $a$ are constants, the inner integral is just
$$\int_0^{\pi/2} \cos\phi \sin\phi\, d\phi$$ Shouldn't the antiderivative of that be $\frac{(\sin\phi)^2}{2} $ and not $ -\frac{(\cos\phi)^2}{2}$?
The above is a line in my textbook. $G, \delta, $ and $a$ are constants, the inner integral is just
$$\int_0^{\pi/2} \cos\phi \sin\phi\, d\phi$$ Shouldn't the antiderivative of that be $\frac{(\sin\phi)^2}{2} $ and not $ -\frac{(\cos\phi)^2}{2}$?
In the textbook, the inner integral is carried out as
$$\int_0^{\pi/2}\cos\phi \sin\phi d\phi = -\int_0^{\pi/2}\cos\phi d(\cos\phi) =- \frac 12 \cos^2\phi |_0^{\pi/2} $$
Alternatively, $$\int_0^{\pi/2}\cos\phi \sin\phi d\phi = \int_0^{\pi/2}\sin\phi d(\sin\phi) = \frac 12 \sin^2\phi |_0^{\pi/2} $$
After taking the boundary values, they are the same.
Here is an additional constribution to Quanto's answer: \begin{align*} \int_{0}^{\pi/2}\cos(\theta)\sin(\theta)\mathrm{d}\theta = \int_{0}^{\pi/2}\frac{\sin(2\theta)}{2}\mathrm{d}\theta = -\frac{\cos(2\theta)}{4}\bigg\rvert_{0}^{\pi/2} = \frac{1}{2} \end{align*}