We consider the non conserving equation $$u_t+(f(u))_x=af'(u)$$ where $a$ is a constant and $f(u)=u(1-u)$.
I am trying to solve this equation by method of characteristics with the initial condition $$u(x,0)=\begin{cases} u_l & x\leq0 \\ u_r & x>0 \\ \end{cases} $$ By method of characteristics, I have $\displaystyle \frac{dt}{1}=\frac{dx}{1-2u}=\frac{du}{a(1-2u)}$, this means that the characteristics equation is $$\displaystyle \frac{dx}{dt}=1-2u$$ along with $\displaystyle \frac{du}{dx}=a, \displaystyle \frac{du}{dt}=a (1-2u).$
Solving these equations, I reached upto $u(x,t)=ax+ g(t)$ where $g$ is some function of $t$ alone. I don't know how to proceed further.
I was able to solve this when we had the equation $$u_t+(f(u))_x=0$$ as there $u$ was constant along the line of characteristics. Thanks in advance for any help.