dsolve BUG?

67 views
Skip to first unread message

Ramiro Rebolledo

unread,
Sep 14, 2026, 3:06:59 PMSep 14
to sympy
Hello.

I need to solve the following ODE:



(x2+3xy+y2)dx−x2dy=0(x2+3xy+y2)dx−x2dy=0

The actual solution is:

Screenshot From 2026-09-14 15-17-55.png

But, dsolve calculates

Screenshot From 2026-09-14 15-19-13.png
which, certainly, is not the solution.





Screenshot From 2026-09-11 15-31-13.png


But, suggesting the method to solve the ode, sympy solves correctly

Screenshot From 2026-09-14 15-24-46.png

Is this a bug? Or it is just normal on sympy and I always need to verify that the solution of the ODE are in fact solutions?

--
Ramiro

Oscar Benjamin

unread,
Sep 14, 2026, 4:39:23 PMSep 14
to sy...@googlegroups.com
Hi Ramiro,

On Mon, 14 Sept 2026 at 20:06, Ramiro Rebolledo <ramr...@gmail.com> wrote:
>
> Is this a bug? Or it is just normal on sympy and I always need to verify that the solution of the ODE are in fact solutions?

Yes, this is a bug.

I have a fix here:

-- 
Oscar

Ramiro Rebolledo

unread,
Sep 14, 2026, 4:47:04 PMSep 14
to sympy
Thanks Oscar.

--
Ramiro

Sanchit Sharma

unread,
Sep 14, 2026, 4:55:25 PMSep 14
to sy...@googlegroups.com
I've got a same issue thanks Oscar

---
Sanchit

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/sympy/5121f694-5e37-44ef-a5bd-b21841a2f743n%40googlegroups.com.

Oscar Benjamin

unread,
Sep 14, 2026, 6:44:19 PMSep 14
to sy...@googlegroups.com
No problem and thanks for the bug report.

The fix is merged now.

--
Oscar
Reply all
Reply to author
Forward
0 new messages