2.1.538 Problem 554

Solved as second order ode using Kovacic algorithm
Maple
Mathematica
Sympy

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

Solved as second order ode using Kovacic algorithm

Time used: 0.121 (sec)

Writing the ode as

(1)(4x4+12x3+4x2)y+(12x3+12x24x)y+(3x23x+3)y=0(2)Ay+By+Cy=0

Comparing (1) and (2) shows that

A=4x4+12x3+4x2(3)B=12x3+12x24xC=3x23x+3

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=01

Comparing the above to (5) shows that

s=0t=1

Therefore eq. (4) becomes

(7)z(x)=0

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.538: 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)=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 infinity then the necessary conditions for case one are met. Therefore

L=[1]

Since r=0 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)=1

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=z1e1212x3+12x24x4x4+12x3+4x2dx=z1eln(x2+3x+1)+ln(x)2=z1(xx2+3x+1)

Which simplifies to

y1=xx2+3x+1

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

y2=y1eBAdxy12dx

Substituting gives

y2=y1e12x3+12x24x4x4+12x3+4x2dx(y1)2dx=y1e2ln(x2+3x+1)+ln(x)(y1)2dx=y1(x)

Therefore the solution is

y=c1y1+c2y2=c1(xx2+3x+1)+c2(xx2+3x+1(x))

Will add steps showing solving for IC soon.

Maple. Time used: 0.014 (sec). Leaf size: 23
ode:=4*x^2*(x^2+3*x+1)*diff(diff(y(x),x),x)-4*x*(-3*x^2-3*x+1)*diff(y(x),x)+3*(x^2-x+1)*y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
y=x(c2x+c1)x2+3x+1

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) 
<- Kovacics algorithm successful
 

Maple step by step

Let’s solve4x2(x2+3x+1)(ddxddxy(x))4x(3x23x+1)(ddxy(x))+3(x2x+1)y(x)=0Highest derivative means the order of the ODE is2ddxddxy(x)Isolate 2nd derivativeddxddxy(x)=3(x2x+1)y(x)4x2(x2+3x+1)(3x2+3x1)(ddxy(x))x(x2+3x+1)Group terms withy(x)on the lhs of the ODE and the rest on the rhs of the ODE; ODE is linearddxddxy(x)+(3x2+3x1)(ddxy(x))x(x2+3x+1)+3(x2x+1)y(x)4x2(x2+3x+1)=0Check to see ifx0is a regular singular pointDefine functions[P2(x)=3x2+3x1x(x2+3x+1),P3(x)=3(x2x+1)4x2(x2+3x+1)]xP2(x)is analytic atx=0(xP2(x))|x=0=1x2P3(x)is analytic atx=0(x2P3(x))|x=0=34x=0is a regular singular pointCheck to see ifx0is a regular singular pointx0=0Multiply by denominators4x2(x2+3x+1)(ddxddxy(x))+4x(3x2+3x1)(ddxy(x))+(3x23x+3)y(x)=0Assume series solution fory(x)y(x)=k=0akxk+rRewrite ODE with series expansionsConvertxmy(x)to series expansion form=0..2xmy(x)=k=0akxk+r+mShift index usingk>kmxmy(x)=k=makmxk+rConvertxm(ddxy(x))to series expansion form=1..3xm(ddxy(x))=k=0ak(k+r)xk+r1+mShift index usingk>k+1mxm(ddxy(x))=k=1+mak+1m(k+1m+r)xk+rConvertxm(ddxddxy(x))to series expansion form=2..4xm(ddxddxy(x))=k=0ak(k+r)(k+r1)xk+r2+mShift index usingk>k+2mxm(ddxddxy(x))=k=2+mak+2m(k+2m+r)(k+1m+r)xk+rRewrite ODE with series expansionsa0(1+2r)(3+2r)xr+(a1(1+2r)(1+2r)+3a0(1+2r)(1+2r))x1+r+(k=2(ak(2k+2r1)(2k+2r3)+3ak1(2k+2r1)(2k+2r3)+ak2(2k+2r1)(2k+2r3))xk+r)=0a0cannot be 0 by assumption, giving the indicial equation(1+2r)(3+2r)=0Values of r that satisfy the indicial equationr{12,32}Each term must be 0a1(1+2r)(1+2r)+3a0(1+2r)(1+2r)=0Solve for the dependent coefficient(s)a1=3a0Each term in the series must be 0, giving the recursion relation(2k+2r1)(2k+2r3)(ak+3ak1+ak2)=0Shift index usingk>k+2(2k+2r+3)(2k+2r+1)(ak+2+3ak+1+ak)=0Recursion relation that defines series solution to ODEak+2=3ak+1akRecursion relation forr=12ak+2=3ak+1akSolution forr=12[y(x)=k=0akxk+12,ak+2=3ak+1ak,a1=3a0]Recursion relation forr=32ak+2=3ak+1akSolution forr=32[y(x)=k=0akxk+32,ak+2=3ak+1ak,a1=3a0]Combine solutions and rename parameters[y(x)=(k=0akxk+12)+(k=0bkxk+32),ak+2=3ak+1ak,a1=3a0,bk+2=3bk+1bk,b1=3b0]
Mathematica. Time used: 0.184 (sec). Leaf size: 52
ode=4*x^2*(1+3*x+x^2)*D[y[x],{x,2}]-4*x*(1-3*x-3*x^2)*D[y[x],x]+3*(1-x+x^2)*y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)(c2x+c1)exp(121x3K[1](K[1]+1)1K[1](K[1](K[1]+3)+1)dK[1])
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(4*x**2*(x**2 + 3*x + 1)*Derivative(y(x), (x, 2)) - 4*x*(-3*x**2 - 3*x + 1)*Derivative(y(x), x) + (3*x**2 - 3*x + 3)*y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
False