with(plots); F:=Heaviside(x)-Heaviside(x-1); f1:=exp(x*t)*(1-exp(-1)); f2:=1-exp(t*(x-1)); a:=(1-Heaviside(x))*f1+(F*f2); animate(a,x=-2..2,t=1..10);