Please help me solve the following integral,
$$
I=\int\limits_{\{x,y,z\}\in \mathbb{S}^2}\!\!\!\max\{0,x,x\cos{\theta}+y\sin{\theta}\}\,\mathrm dx\,\mathrm dy\,\mathrm dz
$$
where $\mathbb{S}^2$ is a unit sphere and $\theta$ is some constant such that $0\le\theta\le2\pi$.
Numerically (up to arbitrary precision) this is equal to
$$
I=\pi(1+\frac{\sqrt{(1-\cos{\theta})^2+\sin^2{\theta}}}{2}).
$$
I am unable to solve/prove this analytically.
This is for a research project, any help would be appreciated and acknowledged in the article.
I am going to write $\theta_0$ where you write $\theta$ so that I can later use $\theta$ in the usual way as part of spherical coordinates.
Define vectors $\mathbf u_1 = (1, 0, 0)^T$ and $\mathbf u_2 = (\cos\theta_0, \sin\theta_0, 0)^T$. For any point $(x,y,z)$, if we view that point as a vector $\mathbf v = (x,y,z)^T$ then $x = \mathbf v^T\mathbf u_1$ and $x\cos\theta + y\sin\theta = \mathbf v^T\mathbf u_2.$
The angle between the vectors $\mathbf u_1$ and $\mathbf u_2$ is $\theta_0.$ Let $S$ be the plane through the $z$ axis bisecting the angle between $\mathbf u_1$ and $\mathbf u_2$; then $\max\{0,x,x\cos\theta_0+y\sin\theta_0\} = x$ when $(x,y,z)$ is on the same side of the $y,z$ plane as $\mathbf u_1$ (or the positive $x$ axis) and also on the same side of the plane $P$ as $\mathbf u_1$. That is, the part of the integral where we are just integrating $x$ is a segment of the sphere generated by placing a semicircle with endpoints at $(0,0,\pm 1)$ and rotating it from the $y,z$ plane to the $x,z$ plane and an angle $\frac{\theta_0}2$ beyond that. That is, the angle of the segment is $\frac\pi2 + \frac{\theta_0}2.$
On another segment of the sphere we integrate $x\cos\theta_0+y\sin\theta_0.$ That segment is a mirror image of the first segment in the plane $P,$ and its contribution to the integral is the same. On the remainder of the sphere the integral is zero.
So we just have to integrate $x$ over the segment on which the integrand is $x,$ and then multiply the result by $2$ in order to count both of the segments where the integral is non-zero.
Depending on which way $\mathbf u_2$ is pointing, the segment where we integrate $x$ might be mostly on the positive $y$ side of the $x,z$ plane or mostly on the negative $y$ side. Either way we get the same integral by reflection through the $x,z$ plane, so we can get the correct answer by assuming the segment is mostly on the positive $y$ side.
So you just need to compute this integral for $r = 1$ in spherical coordinates (where $\phi = 0$ on the positive $z$ axis and $\theta = 0$ on the positive $x$ axis): $$ 2 \int_{-\theta_0/2}^{\pi/2} \int_0^\pi x \sin\phi\, \mathrm d\phi\,\mathrm d\theta = 2 \int_{-\theta_0/2}^{\pi/2} \int_0^\pi \cos\theta \sin^2\phi \,\mathrm d\phi\,\mathrm d\theta = \pi \left(1 + \sin \frac{\theta_0}2 \right),$$
which is exactly equal to your numeric result.