Internal
problem
ID
[7179]
Book
:
A
treatise
on
ordinary
and
partial
differential
equations
by
William
Woolsey
Johnson.
1913
Section
:
Chapter
VII,
Solutions
in
series.
Examples
XIV.
page
177
Problem
number
:
5
Date
solved
:
Tuesday, September 30, 2025 at 04:25:06 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Using series method with expansion around
Order:=6; ode:=diff(diff(y(x),x),x)+a*x^2*y(x) = 1+x; dsolve(ode,y(x),type='series',x=0);
ode=D[y[x],{x,2}]+a*x^2*y[x]==1+x; ic={}; AsymptoticDSolveValue[{ode,ic},y[x],{x,0,5}]
from sympy import * x = symbols("x") a = symbols("a") y = Function("y") ode = Eq(a*x**2*y(x) - x + Derivative(y(x), (x, 2)) - 1,0) ics = {} dsolve(ode,func=y(x),ics=ics,hint="2nd_power_series_regular",x0=0,n=6)
ValueError : ODE a*x**2*y(x) - x + Derivative(y(x), (x, 2)) - 1 does not match hint 2nd_power_series_regular