2.1.357 Problem 364

Solved as second order ode using Kovacic algorithm
Maple
Mathematica
Sympy

Internal problem ID [9529]
Book : Collection of Kovacic problems
Section : section 1
Problem number : 364
Date solved : Sunday, March 30, 2025 at 02:36:53 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

Solved as second order ode using Kovacic algorithm

Time used: 0.124 (sec)

Writing the ode as

(1)y+2x2y+(x4+2x1)y=0(2)Ay+By+Cy=0

Comparing (1) and (2) shows that

A=1(3)B=2x2C=x4+2x1

Applying the Liouville transformation on the dependent variable gives

z(x)=yeB2Adx

Then (2) becomes

(4)z(x)=rz(x)

Where r is given by

(5)r=st=2AB2BA+B24AC4A2

Substituting the values of A,B,C from (3) in the above and simplifying gives

(6)r=11

Comparing the above to (5) shows that

s=1t=1

Therefore eq. (4) becomes

(7)z(x)=z(x)

Equation (7) is now solved. After finding z(x) then y is found using the inverse transformation

y=z(x)eB2Adx

The first step is to determine the case of Kovacic algorithm this ode belongs to. There are 3 cases depending on the order of poles of r and the order of r at . The following table summarizes these cases.

Case

Allowed pole order for r

Allowed value for O()

1

{0,1,2,4,6,8,}

{,6,4,2,0,2,3,4,5,6,}

2

Need to have at least one pole that is either order 2 or odd order greater than 2. Any other pole order is allowed as long as the above condition is satisfied. Hence the following set of pole orders are all allowed. {1,2},{1,3},{2},{3},{3,4},{1,2,5}.

no condition

3

{1,2}

{2,3,4,5,6,7,}

Table 2.357: Necessary conditions for each Kovacic case

The order of r at is the degree of t minus the degree of s. Therefore

O()=deg(t)deg(s)=00=0

There are no poles in r. Therefore the set of poles Γ is empty. Since there is no odd order pole larger than 2 and the order at is 0 then the necessary conditions for case one are met. Therefore

L=[1]

Since r=1 is not a function of x, then there is no need run Kovacic algorithm to obtain a solution for transformed ode z=rz as one solution is

z1(x)=ex

Using the above, the solution for the original ode can now be found. The first solution to the original ode in y is found from

y1=z1e12BAdx=z1e122x21dx=z1ex33=z1(ex33)

Which simplifies to

y1=ex(x2+3)3

The second solution y2 to the original ode is found using reduction of order

y2=y1eBAdxy12dx

Substituting gives

y2=y1e2x21dx(y1)2dx=y1e2x33(y1)2dx=y1(e2x33e2x(x2+3)32)

Therefore the solution is

y=c1y1+c2y2=c1(ex(x2+3)3)+c2(ex(x2+3)3(e2x33e2x(x2+3)32))

Will add steps showing solving for IC soon.

Maple. Time used: 0.003 (sec). Leaf size: 22
ode:=diff(diff(y(x),x),x)+2*x^2*diff(y(x),x)+(x^4+2*x-1)*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
y=(c1e2x+c2)ex(x2+3)3

Maple trace

Methods for second order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
checking if the LODE has constant coefficients 
checking if the LODE is of Euler type 
trying a symmetry of the form [xi=0, eta=F(x)] 
checking if the LODE is missing y 
-> Trying a Liouvillian solution using Kovacics algorithm 
   A Liouvillian solution exists 
   Reducible group (found an exponential solution) 
   Reducible group (found another exponential solution) 
<- Kovacics algorithm successful
 

Maple step by step

Let’s solveddxddxy(x)+2x2(ddxy(x))+(x4+2x1)y(x)=0Highest derivative means the order of the ODE is2ddxddxy(x)Assume series solution fory(x)y(x)=k=0akxkRewrite ODE with series expansionsConvertxmy(x)to series expansion form=0..4xmy(x)=k=max(0,m)akxk+mShift index usingk>kmxmy(x)=k=max(0,m)+makmxkConvertx2(ddxy(x))to series expansionx2(ddxy(x))=k=0akkxk+1Shift index usingk>k1x2(ddxy(x))=k=1ak1(k1)xkConvertddxddxy(x)to series expansionddxddxy(x)=k=2akk(k1)xk2Shift index usingk>k+2ddxddxy(x)=k=0ak+2(k+2)(k+1)xkRewrite ODE with series expansions2a2a0+(6a3a1+2a0)x+(12a4a2+4a1)x2+(20a5a3+6a2)x3+(k=4(ak+2(k+2)(k+1)ak+2ak1k+ak4)xk)=0The coefficients of each power ofxmust be 0[2a2a0=0,6a3a1+2a0=0,12a4a2+4a1=0,20a5a3+6a2=0]Solve for the dependent coefficient(s){a2=a02,a3=a16a03,a4=a024a13,a5=a1120a06}Each term in the series must be 0, giving the recursion relation(k2+3k+2)ak+2+2ak1kak+ak4=0Shift index usingk>k+4((k+4)2+3k+14)ak+6+2ak+3(k+4)ak+4+ak=0Recursion relation that defines the series solution to the ODE[y(x)=k=0akxk,ak+6=2kak+3+ak+8ak+3ak+4k2+11k+30,a2=a02,a3=a16a03,a4=a024a13,a5=a1120a06]
Mathematica. Time used: 0.037 (sec). Leaf size: 34
ode=D[y[x],{x,2}]+2*x^2*D[y[x],x]+(x^4+2*x-1)*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)12e13x(x2+3)(c2e2x+2c1)
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(2*x**2*Derivative(y(x), x) + (x**4 + 2*x - 1)*y(x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
False