2.1.49 Problem 49

Solved as second order Euler type ode
Solved as second order ode using change of variable on x method 2
Solved as second order ode using change of variable on x method 1
Solved as second order ode using change of variable on y method 2
Solved as second order ode using Kovacic algorithm
Maple
Mathematica
Sympy

Internal problem ID [8761]
Book : Own collection of miscellaneous problems
Section : section 1.0
Problem number : 49
Date solved : Sunday, March 30, 2025 at 01:30:38 PM
CAS classification : [[_Emden, _Fowler]]

Solved as second order Euler type ode

Time used: 0.096 (sec)

Solve

t2y3ty+5y=0

This is Euler second order ODE. Let the solution be y=tr, then y=rtr1 and y=r(r1)tr2. Substituting these back into the given ODE gives

t2(r(r1))tr23trtr1+5tr=0

Simplifying gives

r(r1)tr3rtr+5tr=0

Since tr0 then dividing throughout by tr gives

r(r1)3r+5=0

Or

(1)r24r+5=0

Equation (1) is the characteristic equation. Its roots determine the form of the general solution. Using the quadratic equation the roots are

r1=2ir2=2+i

The roots are complex conjugate of each others. Let the roots be

r1=α+iβr2=αiβ

Where in this case α=2 and β=1. Hence the solution becomes

y=c1tr1+c2tr2=c1tα+iβ+c2tαiβ=tα(c1tiβ+c2tiβ)=tα(c1eln(tiβ)+c2eln(tiβ))=tα(c1ei(βlnt)+c2ei(βlnt))

Using the values for α=2,β=1, the above becomes

y=t2(c1eiln(t)+c2eiln(t))

Using Euler relation, the expression c1eiA+c2eiA is transformed to c1cosA+c1sinA where the constants are free to change. Applying this to the above result gives

y=t2(c1cos(ln(t))+c2sin(ln(t)))

Will add steps showing solving for IC soon.

Summary of solutions found

y=t2(c1cos(ln(t))+c2sin(ln(t)))

Solved as second order ode using change of variable on x method 2

Time used: 0.160 (sec)

Solve

t2y3ty+5y=0

In normal form the ode

(1)t2y3ty+5y=0

Becomes

(2)y+p(t)y+q(t)y=0

Where

p(t)=3tq(t)=5t2

Applying change of variables τ=g(t) to (2) gives

(3)d2dτ2y(τ)+p1(ddτy(τ))+q1y(τ)=0

Where τ is the new independent variable, and

(4)p1(τ)=τ(t)+p(t)τ(t)τ(t)2(5)q1(τ)=q(t)τ(t)2

Let p1=0. Eq (4) simplifies to

τ(t)+p(t)τ(t)=0

This ode is solved resulting in

τ=ep(t)dtdt=e3tdtdt=e3ln(t)dt=t3dt(6)=t44

Using (6) to evaluate q1 from (5) gives

q1(τ)=q(t)τ(t)2=5t2t6(7)=5t8

Substituting the above in (3) and noting that now p1=0 results in

d2dτ2y(τ)+q1y(τ)=0d2dτ2y(τ)+5y(τ)t8=0

But in terms of τ

5t8=516τ2

Hence the above ode becomes

d2dτ2y(τ)+5y(τ)16τ2=0

The above ode is now solved for y(τ). This is Euler second order ODE. Let the solution be y=τr, then y=rτr1 and y=r(r1)τr2. Substituting these back into the given ODE gives

16τ2(r(r1))τr2+0rτr1+5τr=0

Simplifying gives

16r(r1)τr+0τr+5τr=0

Since τr0 then dividing throughout by τr gives

16r(r1)+0+5=0

Or

(1)16r216r+5=0

Equation (1) is the characteristic equation. Its roots determine the form of the general solution. Using the quadratic equation the roots are

r1=12i4r2=12+i4

The roots are complex conjugate of each others. Let the roots be

r1=α+iβr2=αiβ

Where in this case α=12 and β=14. Hence the solution becomes

y=c1τr1+c2τr2=c1τα+iβ+c2ταiβ=τα(c1τiβ+c2τiβ)=τα(c1eln(τiβ)+c2eln(τiβ))=τα(c1ei(βlnτ)+c2ei(βlnτ))

Using the values for α=12,β=14, the above becomes

y=τ12(c1eiln(τ)4+c2eiln(τ)4)

Using Euler relation, the expression c1eiA+c2eiA is transformed to c1cosA+c1sinA where the constants are free to change. Applying this to the above result gives

y=τ(c1cos(ln(τ)4)+c2sin(ln(τ)4))

Will add steps showing solving for IC soon.

The above solution is now transformed back to y(t) using (6) which results in

y(t)=4t4(c1cos(ln(t44)4)+c2sin(ln(t44)4))4

Will add steps showing solving for IC soon.

Summary of solutions found

y(t)=4t4(c1cos(ln(t44)4)+c2sin(ln(t44)4))4

Solved as second order ode using change of variable on x method 1

Time used: 0.223 (sec)

Solve

t2y3ty+5y=0

In normal form the ode

(1)t2y3ty+5y=0

Becomes

(2)y+p(t)y+q(t)y=0

Where

p(t)=3tq(t)=5t2

Applying change of variables τ=g(t) to (2) results

(3)d2dτ2y(τ)+p1(ddτy(τ))+q1y(τ)=0

Where τ is the new independent variable, and

(4)p1(τ)=τ(t)+p(t)τ(t)τ(t)2(5)q1(τ)=q(t)τ(t)2

Let q1=c2 where c is some constant. Therefore from (5)

τ=1cq(6)=51t2cτ=5c1t2t3

Substituting the above into (4) results in

p1(τ)=τ(t)+p(t)τ(t)τ(t)2=5c1t2t33t51t2c(51t2c)2=4c55

Therefore ode (3) now becomes

y(τ)+p1y(τ)+q1y(τ)=0(7)d2dτ2y(τ)4c5(ddτy(τ))5+c2y(τ)=0

The above ode is now solved for y(τ). Since the ode is now constant coefficients, it can be easily solved to give

y(τ)=e25cτ5(c1cos(5cτ5)+c2sin(5cτ5))

Now from (6)

τ=1cqdt=51t2dtc=5ln(t)c

Substituting the above into the solution obtained gives

y=t2(c1cos(ln(t))+c2sin(ln(t)))

Will add steps showing solving for IC soon.

Summary of solutions found

y=t2(c1cos(ln(t))+c2sin(ln(t)))

Solved as second order ode using change of variable on y method 2

Time used: 0.177 (sec)

Solve

t2y3ty+5y=0

In normal form the ode

(1)t2y3ty+5y=0

Becomes

(2)y+p(t)y+q(t)y=0

Where

p(t)=3tq(t)=5t2

Applying change of variables on the depndent variable y=v(t)tn to (2) gives the following ode where the dependent variables is v(t) and not y.

(3)v(t)+(2nt+p)v(t)+(n(n1)t2+npt+q)v(t)=0

Let the coefficient of v(t) above be zero. Hence

(4)n(n1)t2+npt+q=0

Substituting the earlier values found for p(t) and q(t) into (4) gives

(5)n(n1)t23nt2+5t2=0

Solving (5) for n gives

(6)n=2+i

Substituting this value in (3) gives

v(t)+(4+2it3t)v(t)=0(7)v(t)+(1+2i)v(t)t=0

Using the substitution

u(t)=v(t)

Then (7) becomes

(8)u(t)+(1+2i)u(t)t=0

The above is now solved for u(t). The ode

(1)u=(12i)ut

is separable as it can be written as

u=(12i)ut=f(t)g(u)

Where

f(t)=12itg(u)=u

Integrating gives

1g(u)du=f(t)dt1udu=12itdt
ln(u)=(12i)ln(t)+c1

Taking the exponential of both sides the solution becomes

u=c1t12i

We now need to find the singular solutions, these are found by finding for what values g(u) is zero, since we had to divide by this above. Solving g(u)=0 or

u=0

for u gives

u=0

Now we go over each such singular solution and check if it verifies the ode itself and any initial conditions given. If it does not then the singular solution will not be used.

Therefore the solutions found are

u=0u=c1t12i

Now that u is known, then

v(t)=uv(t)=udt+c2=it2ic12+c2

Hence

y(t)=v(t)tn=(it2ic12+c2)t2+i=(it2ic1+2c2)t2+i2

Will add steps showing solving for IC soon.

Summary of solutions found

y(t)=(it2ic12+c2)t2+i

Solved as second order ode using Kovacic algorithm

Time used: 0.202 (sec)

Solve

t2y3ty+5y=0

Writing the ode as

(1)t2y3ty+5y=0(2)Ay+By+Cy=0

Comparing (1) and (2) shows that

A=t2(3)B=3tC=5

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=54t2

Comparing the above to (5) shows that

s=5t=4t2

Therefore eq. (4) becomes

(7)z(t)=(54t2)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.15: 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)=20=2

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

L=[1,2,4,6,12]

Attempting to find a solution using case n=1.

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

r=54t2

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

[r]c=0αc+=12+1+4b=12+iαc=121+4b=12i

Since the order of r at is 2 then [r]=0. Let b be the coefficient of 1t2 in the Laurent series expansion of r at . which can be found by dividing the leading coefficient of s by the leading coefficient of t from

r=st=54t2

Since the gcd(s,t)=1. This gives b=54. Hence

[r]=0α+=12+1+4b=12+iα=121+4b=12i

The following table summarizes the findings so far for poles and for the order of r at where r is

r=54t2

pole c location pole order [r]c αc+ αc
0 2 0 12+i 12i

Order of r at [r] α+ α
2 0 12+i 12i

Now that the all [r]c and its associated αc± have been determined for all the poles in the set Γ and [r] and its associated α± have also been found, the next step is to determine possible non negative integer d from these using

d=αs()cΓαcs(c)

Where s(c) is either + or and s() is the sign of α±. This is done by trial over all set of families s=(s(c))cΓ until such d is found to work in finding candidate ω. Trying α=12i then

d=α(αc1)=12i(12i)=0

Since d an integer and d0 then it can be used to find ω using

ω=cΓ(s(c)[r]c+αcs(c)tc)+s()[r]

The above gives

ω=(()[r]c1+αc1tc1)+()[r]=12it+()(0)=12it=12it

Now that ω is determined, the next step is find a corresponding minimal polynomial p(t) of degree d=0 to solve the ode. The polynomial p(t) needs to satisfy the equation

(1A)p+2ωp+(ω+ω2r)p=0

Let

(2A)p(t)=1

Substituting the above in eq. (1A) gives

(0)+2(12it)(0)+((12+it2)+(12it)2(54t2))=00=0

The equation is satisfied since both sides are zero. Therefore the first solution to the ode z=rz is

z1(t)=peωdt=e12itdt=t12i

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

y1=z1e12BAdt=z1e123tt2dt=z1e3ln(t)2=z1(t3/2)

Which simplifies to

y1=t2i

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

y2=y1eBAdty12dt

Substituting gives

y2=y1e3tt2dt(y1)2dt=y1e3ln(t)(y1)2dt=y1(it4t4+2i2)

Therefore the solution is

y=c1y1+c2y2=c1(t2i)+c2(t2i(it4t4+2i2))

Will add steps showing solving for IC soon.

Summary of solutions found

y=c1t2iic2t2+i2
Maple. Time used: 0.002 (sec). Leaf size: 19
ode:=t^2*diff(diff(y(t),t),t)-3*diff(y(t),t)*t+5*y(t) = 0; 
dsolve(ode,y(t), singsol=all);
 
y=t2(c1sin(ln(t))+c2cos(ln(t)))

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 
<- LODE of Euler type successful
 

Maple step by step

Let’s solvet2(ddtddty(t))3t(ddty(t))+5y(t)=0Highest derivative means the order of the ODE is2ddtddty(t)Isolate 2nd derivativeddtddty(t)=5y(t)t2+3(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)3(ddty(t))t+5y(t)t2=0Multiply by denominators of the ODEt2(ddtddty(t))3t(ddty(t))+5y(t)=0Make a change of variabless=ln(t)Substitute the change of variables back into the ODECalculate the1stderivative ofywith respect tot, using the chain ruleddty(t)=(ddsy(s))(ddts(t))Compute derivativeddty(t)=ddsy(s)tCalculate the2ndderivative ofywith respect tot, using the chain ruleddtddty(t)=(ddsddsy(s))(ddts(t))2+(ddtddts(t))(ddsy(s))Compute derivativeddtddty(t)=ddsddsy(s)t2ddsy(s)t2Substitute the change of variables back into the ODEt2(ddsddsy(s)t2ddsy(s)t2)3ddsy(s)+5y(s)=0Simplifyddsddsy(s)4ddsy(s)+5y(s)=0Characteristic polynomial of ODEr24r+5=0Use quadratic formula to solve forrr=4±(4)2Roots of the characteristic polynomialr=(2I,2+I)1st solution of the ODEy1(s)=e2scos(s)2nd solution of the ODEy2(s)=e2ssin(s)General solution of the ODEy(s)=C1y1(s)+C2y2(s)Substitute in solutionsy(s)=C1e2scos(s)+C2e2ssin(s)Change variables back usings=ln(t)y(t)=C1t2cos(ln(t))+C2t2sin(ln(t))Simplifyy(t)=t2(C1cos(ln(t))+C2sin(ln(t)))
Mathematica. Time used: 0.028 (sec). Leaf size: 22
ode=t^2*D[y[t],{t,2}]-3*t*D[y[t],t]+5*y[t]==0; 
ic={}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
y(t)t2(c2cos(log(t))+c1sin(log(t)))
Sympy. Time used: 0.164 (sec). Leaf size: 19
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq(t**2*Derivative(y(t), (t, 2)) - 3*t*Derivative(y(t), t) + 5*y(t),0) 
ics = {} 
dsolve(ode,func=y(t),ics=ics)
 
y(t)=t2(C1sin(log(t))+C2cos(log(t)))