When trying to find the symbolic solution in the following code, I got a warning and empty sym!
syms y(t) y0 Dy0A=1;B=2;Dy = diff(y,t);D2y = diff(y,t,2);ode = diff(y,t,2)-A*(y)^2-B^2*y==0;cond1 = y(0) == 1;cond2 = Dy(1) == 0;conds = [cond1 cond2];ySol(t) = dsolve(ode,conds);ySol = simplify(ySol, 'Steps',20)disp(ySol(t))
Warning: Explicit solution could not be found.
> In dsolve (line 201)
In symbolic_Fun (line 11)
ySol(t) =
[ empty sym ]
[ empty sym ]
What was my mistake?
Please advise.
Best Answer