I have shown that a smooth solution of the problem $u_t+uu_x=0$ with $u(x,0)=\cos{(\pi x)}$ must satisfy the equation $u=\cos{[\pi (x-ut)]}$. Now I want to show that $u$ ceases to exist (as a single-valued continuous function) when $t=\frac{1}{\pi}$.
When $t=\frac{1}{\pi}$, then we get that $u=\cos{(\pi x-u)}$.
With single-valued function is it meant that the function is 1-1 ?
If so, then we have that $\cos{(2 \pi-u)}=\cos{(4 \pi -u)}$, i.e. for two different values of $x$, we get the same $u$, and so for $t=\frac{1}{\pi}$, $u$ is not 1-1.
But if this is meant, how are we sure that for $t \neq \frac{1}{\pi}$ the function is single-valued?

The partial derivative of $F$ with respect to $u$ is $$ \frac{\partial F}{\partial u}\colon = \partial_u F = 1 - \pi t\sin\Big(\pi(x-ut)\Big) $$ and along the characteristic $x = \cos(\pi x_0)t + x_0 = u(x_0,0)t + x_0$ for an arbitrary but fixed $x_0\in\mathbb{R}$ we have that $$ \partial_u F = 1 - \pi t\sin(\pi x_0). $$ It follows that $\partial_u F = 0$ whenever $$ t = \frac{1}{\pi\sin(\pi x_0)}. \tag{1}$$
Denote by $t^*$ the shortest time where $\partial_u F = 0$. Clearly, $\partial_u F\neq 0$ for all $t\ge 0$ if $$ \pi x_0\in [n\pi, (n+1)\pi], n=\pm 1,\pm 3, \pm 5, \dots, $$ so suppose not. It follows from $(1)$ that $$ t^* = \min_{x_0\in\mathbb{R}}\frac{1}{\pi\sin(\pi x_0)} = \frac{1}{\pi}. $$