2.1.13 Problem 13

Solved as second order ode using Kovacic algorithm
Maple
Mathematica
Sympy

Internal problem ID [9183]
Book : Collection of Kovacic problems
Section : section 1
Problem number : 13
Date solved : Friday, April 25, 2025 at 05:59:16 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

Solve

t2yt(t+2)y+(t+2)y=0

Solved as second order ode using Kovacic algorithm

Time used: 0.112 (sec)

Writing the ode as

(1)t2y+(t22t)y+(t+2)y=0(2)Ay+By+Cy=0

Comparing (1) and (2) shows that

A=t2(3)B=t22tC=t+2

Applying the Liouville transformation on the dependent variable gives

z(t)=yeB2Adt

Then (2) becomes

(4)z(t)=rz(t)

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

Comparing the above to (5) shows that

s=1t=4

Therefore eq. (4) becomes

(7)z(t)=z(t)4

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

y=z(t)eB2Adt

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.13: 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=14 is not a function of t, then there is no need run Kovacic algorithm to obtain a solution for transformed ode z=rz as one solution is

z1(t)=et2

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=z1e12BAdt=z1e12t22tt2dt=z1et2+ln(t)=z1(tet2)

Which simplifies to

y1=t

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

y2=y1eBAdty12dt

Substituting gives

y2=y1et22tt2dt(y1)2dt=y1et+2ln(t)(y1)2dt=y1(et+2ln(t)t2)

Therefore the solution is

y=c1y1+c2y2=c1(t)+c2(t(et+2ln(t)t2))

Will add steps showing solving for IC soon.

Maple. Time used: 0.004 (sec). Leaf size: 12
ode:=t^2*diff(diff(y(t),t),t)-t*(t+2)*diff(y(t),t)+(t+2)*y(t) = 0; 
dsolve(ode,y(t), singsol=all);
 
y=t(etc2+c1)

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 solvet2(ddtddty(t))t(t+2)(ddty(t))+(t+2)y(t)=0Highest derivative means the order of the ODE is2ddtddty(t)Isolate 2nd derivativeddtddty(t)=(t+2)y(t)t2+(t+2)(ddty(t))tGroup terms withy(t)on the lhs of the ODE and the rest on the rhs of the ODE; ODE is linearddtddty(t)(t+2)(ddty(t))t+(t+2)y(t)t2=0Check to see ift0=0is a regular singular pointDefine functions[P2(t)=t+2t,P3(t)=t+2t2]tP2(t)is analytic att=0(tP2(t))|t=0=2t2P3(t)is analytic att=0(t2P3(t))|t=0=2t=0is a regular singular pointCheck to see ift0=0is a regular singular pointt0=0Multiply by denominatorst2(ddtddty(t))t(t+2)(ddty(t))+(t+2)y(t)=0Assume series solution fory(t)y(t)=k=0aktk+rRewrite ODE with series expansionsConverttmy(t)to series expansion form=0..1tmy(t)=k=0aktk+r+mShift index usingk>kmtmy(t)=k=makmtk+rConverttm(ddty(t))to series expansion form=1..2tm(ddty(t))=k=0ak(k+r)tk+r1+mShift index usingk>k+1mtm(ddty(t))=k=1+mak+1m(k+1m+r)tk+rConvertt2(ddtddty(t))to series expansiont2(ddtddty(t))=k=0ak(k+r)(k+r1)tk+rRewrite ODE with series expansionsa0(1+r)(2+r)tr+(k=1(ak(k+r1)(k+r2)ak1(k+r2))tk+r)=0a0cannot be 0 by assumption, giving the indicial equation(1+r)(2+r)=0Values of r that satisfy the indicial equationr{1,2}Each term in the series must be 0, giving the recursion relation(k+r2)(ak(k+r1)ak1)=0Shift index usingk>k+1(k+r1)(ak+1(k+r)ak)=0Recursion relation that defines series solution to ODEak+1=akk+rRecursion relation forr=1ak+1=akk+1Solution forr=1[y(t)=k=0aktk+1,ak+1=akk+1]Recursion relation forr=2ak+1=akk+2Solution forr=2[y(t)=k=0aktk+2,ak+1=akk+2]Combine solutions and rename parameters[y(t)=(k=0aktk+1)+(k=0bktk+2),ak+1=akk+1,bk+1=bkk+2]
Mathematica. Time used: 0.041 (sec). Leaf size: 17
ode=t^2*D[y[t],{t,2}]-t*(t+2)*D[y[t],t]+(t+2)*y[t] == 0; 
ic={}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
y(t)et(c2et+c1)
Sympy. Time used: 0.857 (sec). Leaf size: 29
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq(t**2*Derivative(y(t), (t, 2)) - t*(t + 2)*Derivative(y(t), t) + (t + 2)*y(t),0) 
ics = {} 
dsolve(ode,func=y(t),ics=ics)
 
y(t)=C2t2(t324+t26+t2+1)+C1t+O(t6)