This ODE (#50 from Murphy's ODE collection book) causes kernel crash each time
Here is the code
ClearAll[y, x]
DSolve[ y'[x] == Cos[2 x] + (Sin[2 x] + y[x]) y[x], y[x], x]
Screen shot below. Should this be tagged a bug? Does this happen on other platforms? I am using windows 7. I tried it on 10.4, and it also crashes there.
But on version 9.0, it does not crash, but it can't solve it:
Maple can solve it, but solution is complicated using HeunC special functions which Mathematica do not have
But Book also gives one simple solution y(x)=tan(x)
, which is easily verified to be true by Mathematica. (the other solution it gives is little more complicated).
eq = Hold [D[y[x], x] == Cos[2 x] + (Sin[2 x] + y[x]) y[x]];
Simplify[ReleaseHold[eq /. y[x] -> Tan[x]]]
Why does Mathematica kernel crash on this ODE?
Update:
Send bug report to Wolfram support, CASE:3806616 .
fyi, the book contains 2315 ODE's, which will take me long time to type and run. The current test report if you are interested is here. But it currently contains small number of ODE's from the book, will add more with time.