2.5.11 Problem 11

Maple
Mathematica
Sympy

Internal problem ID [8972]
Book : Own collection of miscellaneous problems
Section : section 5.0
Problem number : 11
Date solved : Wednesday, March 05, 2025 at 07:13:27 AM
CAS classification : [[_2nd_order, _quadrature]]

Solve

y=1x

Using series expansion around x=0

The type of the expansion point is first determined. This is done on the homogeneous part of the ODE.

y=0

The following is summary of singularities for the above ode. Writing the ode as

y+p(x)y+q(x)y=0

Where

p(x)=0q(x)=0
Table 2.117: Table p(x),q(x) singularites.
p(x)=0
singularity type
q(x)=0
singularity type

Combining everything together gives the following summary of singularities for the ode as

Regular singular points : []

Irregular singular points : []

Maple
Order:=6; 
ode:=diff(diff(y(x),x),x) = 1/x; 
dsolve(ode,y(x),type='series',x=0);
 
No solution found

Maple trace

`Methods for second order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
<- quadrature successful`
 

Maple step by step

Let’s solved2dx2y(x)=1xHighest derivative means the order of the ODE is2d2dx2y(x)Characteristic polynomial of homogeneous ODEr2=0Use quadratic formula to solve forrr=0±(0)2Roots of the characteristic polynomialr=01st solution of the homogeneous ODEy1(x)=1Repeated root, multiplyy1(x)byxto ensure linear independencey2(x)=xGeneral solution of the ODEy(x)=C1y1(x)+C2y2(x)+yp(x)Substitute in solutions of the homogeneous ODEy(x)=C1+C2x+yp(x)Find a particular solutionyp(x)of the ODEUse variation of parameters to findypheref(x)is the forcing function[yp(x)=y1(x)(y2(x)f(x)W(y1(x),y2(x))dx)+y2(x)(y1(x)f(x)W(y1(x),y2(x))dx),f(x)=1x]Wronskian of solutions of the homogeneous equationW(y1(x),y2(x))=[1x01]Compute WronskianW(y1(x),y2(x))=1Substitute functions into equation foryp(x)yp(x)=(1dx)+(1xdx)xCompute integralsyp(x)=x(1+ln(x))Substitute particular solution into general solution to ODEy(x)=C1+C2x+x(1+ln(x))
Mathematica. Time used: 0.03 (sec). Leaf size: 17
ode=D[y[x],{x,2}]==1/x; 
ic={}; 
AsymptoticDSolveValue[{ode,ic},y[x],{x,0,5}]
 
y(x)x+xlog(x)+c2x+c1
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(Derivative(y(x), (x, 2)) - 1/x,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics,hint="2nd_power_series_regular",x0=0,n=6)
 
ValueError : ODE Derivative(y(x), (x, 2)) - 1/x does not match hint 2nd_power_series_regular