2.1.73 ut+tux=0 with u(x,0)=ex

problem number 73

Added May 23, 2019.

From Math 5587 midterm I, Fall 2016, practice exam, problem 4.

Solve for u(x,t) ut+tux=0

With with u(x,0)=ex

Mathematica

ClearAll["Global`*"]; 
pde = D[u[x, t], t] + t*D[u[x, t], x] == 0; 
ic  = u[x,0]==Exp[x]; 
sol = AbsoluteTiming[TimeConstrained[DSolve[{pde,ic}, u[x, t], {x, t}], 60*10]];
 

{{u(x,t)ext22}}

Maple

restart; 
pde := diff(u(x,t),t)+t*diff(u(x,t),x)=0; 
ic :=u(x,0)=exp(x); 
cpu_time := timelimit(60*10,CodeTools[Usage](assign('sol',pdsolve([pde,ic],u(x,t))),output='realtime'));
 

u(x,t)=et22+x

Hand solution

Solve ut+xux=0 with u(x,0)=ex. Using the method of characteristics, the systems of characteristic lines are (from the PDE itself)(1)dtds=1(2)dxds=t(3)duds=0

With initial conditions at s=0t(0)=0,x(0)=ξ,u(0)=eξ Equation (1) givest=s+t(0)(5)=s

Equation (2) now becomes dxds=s, whose solution is x=s22+x(0)(6)x=s22+ξ

From (5,6) solving for ξ givesξ=xs22(7)=xt22

Equation (3) givesu=u(0)=eξ=e(xt22)

____________________________________________________________________________________