Internal
problem
ID
[4837]
Book
:
Ordinary
differential
equations
and
their
solutions.
By
George
Moseley
Murphy.
1960
Section
:
Part
II.
Chapter
1.
THE
DIFFERENTIAL
EQUATION
IS
OF
FIRST
ORDER
AND
OF
FIRST
DEGREE,
page
223
Problem
number
:
226
Date
solved
:
Tuesday, September 30, 2025 at 08:43:46 AM
CAS
classification
:
[_linear]
ode:=(1+x)*diff(y(x),x) = exp(x)*(1+x)^(n+1)+n*y(x); dsolve(ode,y(x), singsol=all);
ode=(1+x)*D[y[x],x]==Exp[x]*(1+x)^(n+1)+n*y[x]; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") n = symbols("n") y = Function("y") ode = Eq(-n*y(x) + (x + 1)*Derivative(y(x), x) - (x + 1)**(n + 1)*exp(x),0) ics = {} dsolve(ode,func=y(x),ics=ics)