How to use NDSolve to solve 1+1 D heat equation $u_t=u_{xx}$ with $ -\infty<x<\infty$ and $0\leq t\leq T$?
NDSolve[{Derivative[1, 0][u][t, x] == Derivative[0, 2][u][ t, x],
u[0, x] == Sin[x]}, u, {t, 0, 10}, {x, -Infinity, Infinity}]
The error code is:
NDSolve::ndnl: Endpoint -∞
in {x, -∞, ∞}
is not a real number.