I am trying to plot the solution to the following PDE with the help of mathematica, however, when trying to employ manipulate to animate the behavior, I find that if I try this:
sol = DSolve[{D[u[t, x], t] - x*D[u[t, x], x] == 0, u[0, x] == 1/((x^2) + 1)}, u[t, x], {t, x}]
Manipulate[Plot3D[u[t, x] /. sol, {t, 0, 10}, {x, -10, 10}, PlotRange -> 1], {t,0.001, 10}]
I get just an empty graph.
On the other hand, If I try this:
Manipulate[Plot3D[u[t, x] /. sol, {t, 0, n}, {x, -10, 10}, PlotRange -> 1], {n,0.001, 10}]
I do get a plot of the solution, but when I move the slider the image becomes distorted and does not update fluidly.
Is this some sort of a problem with how my machine is rendering this plot, or do I need to implement a solution within the code?
Many thanks for the help.
