Internal
problem
ID
[3350]
Book
:
Differential
Equations
by
Alfred
L.
Nelson,
Karl
W.
Folley,
Max
Coral.
3rd
ed.
DC
heath.
Boston.
1964
Section
:
Exercise
40,
page
186
Problem
number
:
16
Date
solved
:
Sunday, March 30, 2025 at 01:37:39 AM
CAS
classification
:
[NONE]
Using series method with expansion around
With initial conditions
Order:=5; ode:=diff(diff(y(x),x),x) = cos(x*y(x)); ic:=y(1/2*Pi) = 1, D(y)(1/2*Pi) = 1; dsolve([ode,ic],y(x),type='series',x=1/2*Pi);
ode=D[y[x],{x,2}]==Cos[x*y[x]]; ic={y[Pi/2]==1,Derivative[1][y][Pi/2]==1}; AsymptoticDSolveValue[{ode,ic},y[x],{x,Pi/2,4}]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-cos(x*y(x)) + Derivative(y(x), (x, 2)),0) ics = {y(pi/2): 1, Subs(Derivative(y(x), x), x, pi/2): 1} dsolve(ode,func=y(x),ics=ics,hint="2nd_power_series_regular",x0=pi/2,n=5)
ValueError : ODE -cos(x*y(x)) + Derivative(y(x), (x, 2)) does not match hint 2nd_power_series_regular