Hi, I would like to solve this ODE with initial conditions y=0 and y'=0, and boundary cond L=[0,1] using the given command:
syms x y(x)
Dy = diff(y,x);
Diff = (1i*diff(y,x)-x)^2+x^2 == 0.326307*y;
y = y(0) == 0;
Dy = diff(y,0) == 0;
Uc_sym = dsolve(Diff, y, Dy);
display(['y = ',char(10),char(Uc_sym),char(10)])
Alternatively, check out this example in the documentation.
But I am not aware on how to include the BCs and how to make this script work at all.. Can someone help?