Internal
problem
ID
[6856]
Book
:
Notes
on
Diffy
Qs.
Differential
Equations
for
Engineers.
By
by
Jiri
Lebl,
2013.
Section
:
Chapter
7.
POWER
SERIES
METHODS.
7.2.1
Exercises.
page
290
Problem
number
:
7.2.102
Date
solved
:
Sunday, March 30, 2025 at 11:24:34 AM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Using series method with expansion around
With initial conditions
Order:=6; ode:=diff(diff(y(x),x),x)-x*y(x) = 1/(1-x); ic:=y(0) = 0, D(y)(0) = 0; dsolve([ode,ic],y(x),type='series',x=0);
ode=D[y[x],{x,2}]-x*y[x]==1/(1-x); ic={y[0]==0,Derivative[1][y][0] == 0}; AsymptoticDSolveValue[{ode,ic},y[x],{x,0,5}]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x*y(x) + Derivative(y(x), (x, 2)) - 1/(1 - x),0) ics = {y(0): 0, Subs(Derivative(y(x), x), x, 0): 0} dsolve(ode,func=y(x),ics=ics,hint="2nd_power_series_regular",x0=0,n=6)
ValueError : ODE -x*y(x) + Derivative(y(x), (x, 2)) - 1/(1 - x) does not match hint 2nd_power_series_regular