Question: why can't dsolve find this solution to first order ode

Maple 2026 and 2025.2 can't solve this ode.  It actually hangs which is worst.

The ode is from a textbook

ode:=x*diff(y(x),x) = y(x)*cos(ln(y(x)/x)); 
dsolve(ode,y(x), singsol=all);

It just gets stuck.

But we see by just inspection that y(x)=x is a solution

odetest(y(x)=x,ode)

Gives zero. I solved this also by hand as HOMOGENEOUS and got y(x)=x

Trace shows Maple hangs in "trying homogeneous D" for some unknown reason

CPU is also running very high, which seems it is stuck in a LOOP internally.

Any one could shed more light what is happening here and why it hangs on this basic ode? I think the hang in loop could indicate a bug.

Any older version of Maple able to solve this?

 

 

 

Please Wait...