Internal
problem
ID
[5909]
Book
:
Ordinary
differential
equations
and
their
solutions.
By
George
Moseley
Murphy.
1960
Section
:
Part
II.
Chapter
3.
THE
DIFFERENTIAL
EQUATION
IS
LINEAR
AND
OF
SECOND
ORDER,
page
311
Problem
number
:
197
Date
solved
:
Tuesday, September 30, 2025 at 02:06:04 PM
CAS
classification
:
[[_Emden, _Fowler]]
ode:=-y(x)+2*n*diff(y(x),x)+x*diff(diff(y(x),x),x) = 0; dsolve(ode,y(x), singsol=all);
ode=-y[x] + 2*n*D[y[x],x] + x*D[y[x],{x,2}] == 0; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") n = symbols("n") y = Function("y") ode = Eq(2*n*Derivative(y(x), x) + x*Derivative(y(x), (x, 2)) - y(x),0) ics = {} dsolve(ode,func=y(x),ics=ics)
TypeError : invalid input: 1 - 2*n