Issue reported to Wolfram, Inc as a possible bug in Version 12.1.1; CASE:4630268.
With Mathematica "12.1.1 for Microsoft Windows (64-bit) (June 19, 2020)", DSolve
produces unexpected error messages:
DSolve[{p1'[x] == p1[x]^2 + 2 p1[x] p2[x],
p2'[x] == 2 p1[x] p2[x] + p2[x]^2}, {p1, p2}, x]
Union::normal: Nonatomic expression expected at position 2 in { ... }⋃$Failed.
Flatten::normal: Nonatomic expression expected at position 1 in Flatten[$Failed].
and returns unevaluated after a few minutes. Evidently, DSolve
has passed the bad argument {...}⋃$Failed
to Union
. I am asking
- Is this a bug? (I think it is, because
DSolve
should not show internal error messages to the user.) - Is there a work-around? (This system is solvable, when converted to a single second-order ODE, so the pair of first-order ODEs also should be solvable.)
Update: Issue resolved in Mathematica "12.3.1 for Microsoft Windows (64-bit) (June 19, 2021)"
This bug has been eliminated in the sense that the internal errors no longer are leaked. Instead, DSolve
simply returns unevaluated after a few minutes.
Union::normal
andFlatten::normal
$\endgroup$