Internal
problem
ID
[4784]
Book
:
Ordinary
differential
equations
and
their
solutions.
By
George
Moseley
Murphy.
1960
Section
:
Various
7
Problem
number
:
184
Date
solved
:
Sunday, March 30, 2025 at 03:54:28 AM
CAS
classification
:
[[_1st_order, _with_linear_symmetries], _rational, _Riccati]
ode:=x*diff(y(x),x) = 2*x-y(x)+a*x^n*(x-y(x))^2; dsolve(ode,y(x), singsol=all);
ode=x D[y[x],x]==2 x -y[x]+a x^n(x-y[x])^2; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") a = symbols("a") n = symbols("n") y = Function("y") ode = Eq(-a*x**n*(x - y(x))**2 + x*Derivative(y(x), x) - 2*x + y(x),0) ics = {} dsolve(ode,func=y(x),ics=ics)