Given the following inital value problem problem
$$u_t+uu_x=0, \quad x \in \mathbb{R}, 0<t<\infty \\ u(x,0)=f(x)=x^2$$
I want to find the solution. Also I want to check if the formula holds for all $x \in \mathbb{R}, t>0$ and if there is a $C^1$ solution for each $x \in \mathbb{R}, t>0$.
Using the method of characteristics, I have shown that the solution is $$u(x,t)=f(x-ut)$$
Doesnt the fact that $f$ is smooth, imply that the formula holds for all $x \in \mathbb{R}, t>0$ and that it is a $C^1$ solution?
Or am I wrong at some point?