Internal
problem
ID
[7303]
Book
:
ADVANCED
ENGINEERING
MATHEMATICS.
ERWIN
KREYSZIG,
HERBERT
KREYSZIG,
EDWARD
J.
NORMINTON.
10th
edition.
John
Wiley
USA.
2011
Section
:
Chapter
5.
Series
Solutions
of
ODEs.
Special
Functions.
Problem
set
5.1.
page
174
Problem
number
:
19
Date
solved
:
Wednesday, March 05, 2025 at 04:22:56 AM
CAS
classification
:
[_separable]
Using series method with expansion around
With initial conditions
Order:=6; ode:=(x-2)*diff(y(x),x) = x*y(x); ic:=y(0) = 4; dsolve([ode,ic],y(x),type='series',x=0);
ode=(x-2)*D[y[x],x]==x*y[x]; ic={y[0]==4}; AsymptoticDSolveValue[{ode,ic},y[x],{x,0,5}]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x*y(x) + (x - 2)*Derivative(y(x), x),0) ics = {y(0): 4} dsolve(ode,func=y(x),ics=ics,hint="1st_power_series",x0=0,n=6)