Solve the IVP $$ \begin{cases} u_t + cu_x = 1 & c \in \mathbb{R} \\ u(x,0) = \sin x \end{cases}$$
To solve this, I have used characteristics as follows:
Note that $$\frac{\partial u}{\partial t} = u_x \frac{dx}{dt} + u_t$$ So this equation is equal to the one in the IVP if $\frac{\partial u}{\partial t} = 1$ and $\frac{dx}{dt} = c$
$$\frac{\partial u}{\partial t} = 1 \Rightarrow u(x,t) = t + A(x)$$ Using the initial condition, we find that $A(x) = \sin x$ so that $u(x,t) = t + \sin x$.
But this is not the correct solution and I have not used the fact that $\frac{dx}{dt} = c$ either.
Can someone explain where I am wrong and perhaps give a rigorous answer to the problem using my method so I can also see just how to solve the problem properly as I am currently doing it without really understanding anything...
I would suggest that the most critical information here is $ dx/dt = c$ as it shows how constant values propagate. So using this fact we have:
$ \frac{dx}{dt} = c \rightarrow x = ct + x_0$
Which describes the characteristic line on which the information is propagated. Now let us go back to the solution of the first part: $ \frac{du}{dt} = 1 \rightarrow u = t+A$ to say that $A$ is dependent on $x$ is quite wrong over here since we presume $x$ is dependent on $t$ and it just creates a confusion (for me at least). Then, to find A we go to the initial condition:
$ u(x,t) = t+A \rightarrow u(x(0),0) = u(x_0,0) = \sin(x_0) = A$
If we want to go back to the original coordinates we then apply $ x_0 = x-ct$ and we get: $u(x,t) = t+\sin(x-ct)$