For a given PDE, uniqueness of the solution requires boundary/initial conditions, the exact type of conditions depending on the particular PDE under consideration. For example consider the wave equation in 2 dimensions:
$u_{tt}(t,x)=c^2 u_{xx}(t,x)$
where $c>0$, we take $x\in[0,L]$ with $L>0$ and $t>0$. Then for instance we get a unique solution if we specify the functions $u(0,x)$, $u_t(0,x)$, $u(t,0)$ and $u(t,L)$ (with special care to choose these functions consistently). Mathematica behaves as expected in this case (i.e. it gives me a solution and no error/warnings).
However, if I don't specify part of the boundary conditions, say I don't fix the value of $u(t,L)$, then Mathematica gives no error (nor warning) and gives a solution for $u(t,x)$.
How is this possible? We don't expect such problems to have a unique solution, so is Mathematica implicitly choosing the missing boundary condition? Or is Mathematica using a property of numerical solutions to PDE that I am missing?
Examples:
With all the boundary conditions:
NDSolve[{
Derivative[2, 0][u][t, x] == 2 Derivative[0, 2][u][t, x],
u[0, x] == 0,
Derivative[1, 0][u][0, x] == 1,
u[t, 0] == Sin[t],
u[t, 5] == (1/3) Sin[3 t]},
u, {t, 0, 10}, {x, 0, 5}]
The same as above but with one boundary condition dropped:
NDSolve[{
Derivative[2, 0][u][t, x] == 2 Derivative[0, 2][u][t, x],
u[0, x] == 0,
Derivative[1, 0][u][0, x] == 1,
u[t, 0] == Sin[t]},
u, {t, 0, 10}, {x, 0, 5}]
\[PartialD]with their corresponding characters, like ∂, here on the site. Many users have it installed. You can find it here. – C. E. Mar 30 '17 at 15:18TagBox,RowBoxetc. are not things that it can handle. But this is not at all useless to me, when I copy this code into Mathematica I get well-formatted code that I can run and experiment with. Thank you for adding this to the question, hopefully it will increase people's willingness to try to answer. That is the idea. – C. E. Mar 30 '17 at 18:10bcartwarning doesn't pop up, I've included this in the previous question, thanks for pointing out. – xzczd Mar 31 '17 at 03:44