2.1.623 Problem 640

Solved as second order ode using Kovacic algorithm
Maple
Mathematica
Sympy

Internal problem ID [9793]
Book : Collection of Kovacic problems
Section : section 1
Problem number : 640
Date solved : Friday, April 25, 2025 at 06:19:52 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

Solve

2t2yty+(1+t)y=0

Solved as second order ode using Kovacic algorithm

Time used: 0.314 (sec)

Writing the ode as

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

Comparing (1) and (2) shows that

A=2t2(3)B=tC=1+t

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=38t16t2

Comparing the above to (5) shows that

s=38tt=16t2

Therefore eq. (4) becomes

(7)z(t)=(38t16t2)z(t)

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.623: 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)=21=1

The poles of r in eq. (7) and the order of each pole are determined by solving for the roots of t=16t2. There is a pole at t=0 of order 2. Since there is a pole of order 2 then necessary conditions for case two are met. Therefore

L=[2]

Attempting to find a solution using case n=2.

Looking at poles of order 2. The partial fractions decomposition of r is

r=316t212t

For the pole at t=0 let b be the coefficient of 1t2 in the partial fractions decomposition of r given above. Therefore b=316. Hence

Ec={2,2+21+4b,221+4b}={1,2,3}

Since the order of r at is 1<2 then

E={1}

The following table summarizes the findings so far for poles and for the order of r at for case 2 of Kovacic algorithm.

pole c location pole order Ec
0 2 {1,2,3}

Order of r at E
1 {1}

Using the family {e1,e2,,e} given by

e1=1,e=1

Gives a non negative integer d (the degree of the polynomial p(t)), which is generated using

d=12(ecΓec)=12(1(1))=0

We now form the following rational function

θ=12cΓectc=12(1(t(0)))=12t

Now we search for a monic polynomial p(t) of degree d=0 such that

(1A)p+3θp+(3θ2+3θ4r)p+(θ+3θθ+θ34rθ2r)p=0

Since d=0, then letting

(2A)p=1

Substituting p and θ into Eq. (1A) gives

0=0

And solving for p gives

p=1

Now that p(t) is found let

ϕ=θ+pp=12t

Let ω be the solution of

ω2ϕω+(12ϕ+12ϕ2r)=0

Substituting the values for ϕ and r into the above equation gives

w2w2t+1+8t16t2=0

Solving for ω gives

ω=1+22t4t

Therefore the first solution to the ode z=rz is

z1(t)=eωdt=e1+22t4tdt=t1/4e2t

The first solution to the original ode in y is found from

y1=z1e12BAdt=z1e12t2t2dt=z1eln(t)4=z1(t1/4)

Which simplifies to

y1=te2t

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

y2=y1eBAdty12dt

Substituting gives

y2=y1et2t2dt(y1)2dt=y1eln(t)2(y1)2dt=y1(2t(1e22t)2t)

Therefore the solution is

y=c1y1+c2y2=c1(te2t)+c2(te2t(2t(1e22t)2t))

Will add steps showing solving for IC soon.

Maple. Time used: 0.006 (sec). Leaf size: 29
ode:=2*t^2*diff(diff(y(t),t),t)-t*diff(y(t),t)+(t+1)*y(t) = 0; 
dsolve(ode,y(t), singsol=all);
 
y=t(c1sin(t2)+c2cos(t2))

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 
   Group is reducible or imprimitive 
<- Kovacics algorithm successful
 

Maple step by step

Let’s solve2t2(ddtddty(t))t(ddty(t))+(1+t)y(t)=0Highest derivative means the order of the ODE is2ddtddty(t)Isolate 2nd derivativeddtddty(t)=(1+t)y(t)2t2+ddty(t)2tGroup terms withy(t)on the lhs of the ODE and the rest on the rhs of the ODE; ODE is linearddtddty(t)ddty(t)2t+(1+t)y(t)2t2=0Check to see ift0=0is a regular singular pointDefine functions[P2(t)=12t,P3(t)=1+t2t2]tP2(t)is analytic att=0(tP2(t))|t=0=12t2P3(t)is analytic att=0(t2P3(t))|t=0=12t=0is a regular singular pointCheck to see ift0=0is a regular singular pointt0=0Multiply by denominators2t2(ddtddty(t))t(ddty(t))+(1+t)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+rConvertt(ddty(t))to series expansiont(ddty(t))=k=0ak(k+r)tk+rConvertt2(ddtddty(t))to series expansiont2(ddtddty(t))=k=0ak(k+r)(k+r1)tk+rRewrite ODE with series expansionsa0(1+2r)(1+r)tr+(k=1(ak(2k+2r1)(k+r1)+ak1)tk+r)=0a0cannot be 0 by assumption, giving the indicial equation(1+2r)(1+r)=0Values of r that satisfy the indicial equationr{1,12}Each term in the series must be 0, giving the recursion relation2(k+r1)(k+r12)ak+ak1=0Shift index usingk>k+12(k+r)(k+12+r)ak+1+ak=0Recursion relation that defines series solution to ODEak+1=ak(k+r)(2k+1+2r)Recursion relation forr=1ak+1=ak(k+1)(2k+3)Solution forr=1[y(t)=k=0aktk+1,ak+1=ak(k+1)(2k+3)]Recursion relation forr=12ak+1=ak(k+12)(2k+2)Solution forr=12[y(t)=k=0aktk+12,ak+1=ak(k+12)(2k+2)]Combine solutions and rename parameters[y(t)=(k=0aktk+1)+(k=0bktk+12),ak+1=ak(k+1)(2k+3),bk+1=bk(k+12)(2k+2)]
Mathematica. Time used: 0.065 (sec). Leaf size: 62
ode=2*t^2*D[y[t],{t,2}]-t*D[y[t],t]+(1+t)*y[t]==0; 
ic={}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
y(t)12ei2tt(2c1e2i2t+i2c2)
Sympy. Time used: 0.223 (sec). Leaf size: 37
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq(2*t**2*Derivative(y(t), (t, 2)) - t*Derivative(y(t), t) + (t + 1)*y(t),0) 
ics = {} 
dsolve(ode,func=y(t),ics=ics)
 
y(t)=t34(C1J12(2t)+C2Y12(2t))