I am trying to plot the characteristic lines for the inviscid Burgers equation which is $$u_t +uu_x=0.$$
From what I understand, with the initial condition $u(x,0)=f(x)$ and using the method of characteristics, the solution can be obtained implicitly as
$$u(x,t)=f(\xi)$$
where $\xi=x-ut$ and $\frac{dx}{dt}=f(\xi)$ describes the characteristics curve.
Then to plot the characteristics onto the $(x,t)$ plane, one could rearrange to get
$$t=\frac{1}{u}(x-\xi)=\frac{1}{f(\xi)}(x-\xi) $$
Assuming the above is correct, then consider the following initial condition:
\begin{equation} u(x,0)=f(x)= \left \{ \begin{aligned} &a^2-x^2, && \text{if}\ |x|)\leq a \\ &0, && \text{if}\ |x|)\geq a \\ \end{aligned} \right. \end{equation}
which gives the solution \begin{equation} u(x,t)=f(\xi)= \left \{ \begin{aligned} &a^2-\xi^2, && \text{if}\ |x|)\leq a \\ &0, && \text{if}\ |x|)\geq a \\ \end{aligned} \right. \end{equation}
where $\xi=x-ut=x-(a^2-\xi^2)t.$
The characteristics equation would then be $$t=\frac{1}{a^2-\xi^2}(x-\xi)$$
and substituting $\xi$
$$t=\frac{1}{a^2-(x-ut)^2}(ut) \tag{1}$$
which shouldn't be correct since we are expecting the characteristics to be straight lines.
Furthermore, I think I have started to enter into a "loop" with the substitutions. May I ask what have I done wrong?
An example of the characteristic lines onto the $x-t$ plane can be seen in Inviscid Burgers equation
This example was obtained from Debnath, Example 5.2.1.