My teacher just went over the method of characteristics and we did an example with shocks then drew a picture, but I wanted to clarify some things for myself.
The example was $$u_t + (1-2u) u_x = 0$$ such that $u(x,0 )= \begin{cases} 0 & x\leq 0 \\ 0.5 & \geq 1 \\ x/2 & \text{otherwise} \end{cases} $
So from my understanding due to the method of characteristics I get two ODEs $\frac{dx}{dt}= 1-2u$ and $\frac{du}{dt} = 0$ where $u = u(x(t),t)$. Solving the second equation first I get $u(x(t),t) = u_0$. Now depending at $x(t)$ I have three different options $0,0.5$, and $x/2$.
Where I am confused is he drew the picture, I am attaching. I get the characteristics for $x<0$ and $x>1$. However, I do not understand how he obtained the characteristics in the middle region. That ODE should be $\frac{dx}{dt} = 1-x$ Which I can use sep of variables to get $\frac{1}{1-x}dx = 1dt$ and from there , I get $-ln|1-x| = t + x_0$ so from my understanding the characteristics should look like logarithms. I would greatly appreciate some clarification on this, thank you.
