Hi,
I am reading a book about optics. I tried to solve the following differential equation using Mathematica. For some reason, it didn’t work. It seems that the solver can’t handle the absolute value of a complex variable in a differential equation. it would helpful, if I get a possible solution. Thanks.
Mathematica NDSolve does not solve with non-linear coefficients. The parsing error seems to be related to Abs use only
Remove the Abs and you’ll see the real issue
NDSolve[
I D[u[x, t], x] + 1/2 D[u[x, t], {t, 2}] + u[x, t]^3 == 0, u, {x, 0, 10}, {t, 0, 10}]
NDSolve::femnonlinear: Nonlinear coefficients are not supported in this version of NDSolve. >>
ps. you also missing initial/boundary conditions. This error was seen here also