$$
u(x,t) = \frac{1}{2}\int_{x - t}^{x + t}g(s)ds = \begin{cases}
t, & (x,t)\in R_1\\
\frac{1}{2}(1 - x + t), & (x,t)\in R_2\\
\frac{1}{2}(x + t + 1), & (x,t)\in R_3\\
1, & (x,t)\in R_4\\
0, & (x,t)\in R_5,R_6
\end{cases}
$$
where
\begin{alignat*}{3}
R_1 & = & \{(x,t):-1 < x - t < 1\text{ and }...