Question: Bug report: ODESteps gives invalid input when there is extra y(x) at end of ode

There seems to be parsing problem with ODESteps. This input diff(y(x),x)=x^2*sqrt(y(x)) -  y(x) gives invalid input error, but diff(y(x),x)=x^2*sqrt(y(x)) does not.  

Everything else the same.

Worksheet below. 

restart;

interface(version);

`Standard Worksheet Interface, Maple 2024.2, Windows 10, October 29 2024 Build ID 1872373`

Physics:-Version();

`The "Physics Updates" version in the MapleCloud is 1841 and is the same as the version installed in this computer, created 2025, January 3, 8:59 hours Pacific Time.`

ode:=diff(y(x),x)=x^2*sqrt(y(x)) -  y(x);
IC:=y(0)=1;
Student:-ODEs:-ODESteps([ode,IC]);

diff(y(x), x) = x^2*y(x)^(1/2)-y(x)

y(0) = 1

Error, (in Student:-ODEs:-Test) invalid input

ode:=diff(y(x),x)=x^2*sqrt(y(x)) ;
IC:=y(0)=1;
Student:-ODEs:-ODESteps([ode,IC])

ode := diff(y(x), x) = x^2*sqrt(y(x))

IC := y(0) = 1

"[[,,"Let's solve"],[,,[(ⅆ)/(ⅆx) y(x)=x^2 sqrt(y(x)),y(0)=1]],["•",,"Highest derivative means the order of the ODE is" 1],[,,(ⅆ)/(ⅆx) y(x)],["•",,"Solve for the highest derivative"],[,,(ⅆ)/(ⅆx) y(x)=x^2 sqrt(y(x))],["•",,"Separate variables"],[,,((ⅆ)/(ⅆx) y(x))/(sqrt(y(x)))=x^2],["•",,"Integrate both sides with respect to" x],[,,∫((ⅆ)/(ⅆx) y(x))/(sqrt(y(x))) ⅆx=∫x^2 ⅆx+`c__1`],["•",,"Evaluate integral"],[,,2 sqrt(y(x))=(x^3)/3+`c__1`],["•",,"Solve for" y(x)],[,,y(x)=1/36 x^6+1/6 x^3 `c__1`+1/4 `c__1`^2],["•",,"Simplify"],[,,y(x)=((x^3+3 `c__1`)^2)/36],["•",,"Redefine the integration constant(s)"],[,,y(x)=((x^3+`c__1`)^2)/36],["•",,"Use initial condition" y(0)=1],[,,1=(`c__1`^2)/36],["•",,"Solve for" `c__1`],[,,{`c__1`=-6,`c__1`=6}],["•",,"Remove solutions that don't satisfy the ODE"],[,,`∅`],["•",,"Solution does not satisfy initial condition"]]"

 


 

Download ode_steps_parsing_problem_jan_17_2025.mw

Please Wait...