Consider the advection-equation equation $$\frac{\partial u}{\partial t}(x,t) + \frac{\partial u}{\partial x}(x,t) + u(x,t) = 0, \quad (x,t) \in (0,2\pi)\times (0,T),$$ with boundary conditions $u(x,0) = \sin(x)$, $u(0,t) = u(2\pi,t) = -\sin(t)$.
I'm trying to get wolfram alpha to give me a solution but i can't, how can I know if there is in fact a solution given those boundary conditions or not?
More precisely, I'm trying to find an explicit solution, but don't know how to proceed. I already found a numerical solution, so ideally I should be able to compute its accuracy.
Thank you.
Setting $u(x,t)=v(t-x,t+x)$ transforms the equation to $$ 2\partial_2v+v=0 $$ so that $$ u(x,t)=e^{-(t+x)/2}w(t-x) $$ This implies that $$ e^{t/2+s}u(s, t+s)=w(t)=e^{t/2}u(0,t)=e^{t/2+2\pi}u(2\pi,t+2\pi) $$ which is not compatible with the boundary conditions, as they would require $1=e^{2\pi}$.