2.2.4 Problem 5 (i)

Solved as second order linear constant coeff ode
Solved as second order ode using Kovacic algorithm
Maple
Mathematica
Sympy

Internal problem ID [18446]
Book : Elementary Differential Equations. By R.L.E. Schwarzenberger. Chapman and Hall. London. First Edition (1969)
Section : Chapter 4. Autonomous systems. Exercises at page 69
Problem number : 5 (i)
Date solved : Monday, March 31, 2025 at 05:29:32 PM
CAS classification : [[_2nd_order, _missing_x]]

Solved as second order linear constant coeff ode

Time used: 0.060 (sec)

Solve

x5x+6x=0

This is second order with constant coefficients homogeneous ODE. In standard form the ODE is

Ax(t)+Bx(t)+Cx(t)=0

Where in the above A=1,B=5,C=6. Let the solution be x=eλt. Substituting this into the ODE gives

(1)λ2etλ5λetλ+6etλ=0

Since exponential function is never zero, then dividing Eq(2) throughout by eλt gives

(2)λ25λ+6=0

Equation (2) is the characteristic equation of the ODE. Its roots determine the general solution form.Using the quadratic formula

λ1,2=B2A±12AB24AC

Substituting A=1,B=5,C=6 into the above gives

λ1,2=5(2)(1)±1(2)(1)52(4)(1)(6)=52±12

Hence

λ1=52+12λ2=5212

Which simplifies to

λ1=3λ2=2

Since roots are real and distinct, then the solution is

x=c1eλ1t+c2eλ2tx=c1e(3)t+c2e(2)t

Or

x=c1e3t+c2e2t

Will add steps showing solving for IC soon.

Summary of solutions found

x=c1e3t+c2e2t
Figure 2.50: Slope field x5x+6x=0
Solved as second order ode using Kovacic algorithm

Time used: 0.071 (sec)

Solve

x5x+6x=0

Writing the ode as

(1)x5x+6x=0(2)Ax+Bx+Cx=0

Comparing (1) and (2) shows that

A=1(3)B=5C=6

Applying the Liouville transformation on the dependent variable gives

z(t)=xeB2Adt

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 x is found using the inverse transformation

x=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.10: 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 x is found from

x1=z1e12BAdt=z1e1251dt=z1e5t2=z1(e5t2)

Which simplifies to

x1=e2t

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

x2=x1eBAdtx12dt

Substituting gives

x2=x1e51dt(x1)2dt=x1e5t(x1)2dt=x1(e5te4t)

Therefore the solution is

x=c1x1+c2x2=c1(e2t)+c2(e2t(e5te4t))

Will add steps showing solving for IC soon.

Summary of solutions found

x=c1e2t+c2e3t
Figure 2.51: Slope field x5x+6x=0
Maple. Time used: 0.003 (sec). Leaf size: 15
ode:=diff(diff(x(t),t),t)-5*diff(x(t),t)+6*x(t) = 0; 
dsolve(ode,x(t), singsol=all);
 
x=(c1et+c2)e2t

Maple trace

Methods for second order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
checking if the LODE has constant coefficients 
<- constant coefficients successful
 

Maple step by step

Let’s solveddtddtx(t)5ddtx(t)+6x(t)=0Highest derivative means the order of the ODE is2ddtddtx(t)Characteristic polynomial of ODEr25r+6=0Factor the characteristic polynomial(r2)(r3)=0Roots of the characteristic polynomialr=(2,3)1st solution of the ODEx1(t)=e2t2nd solution of the ODEx2(t)=e3tGeneral solution of the ODEx(t)=C1x1(t)+C2x2(t)Substitute in solutionsx(t)=C1e2t+C2e3t
Mathematica. Time used: 0.013 (sec). Leaf size: 20
ode=D[x[t],{t,2}]-5*D[x[t],t]+6*x[t]==0; 
ic={}; 
DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
 
x(t)e2t(c2et+c1)
Sympy. Time used: 0.158 (sec). Leaf size: 14
from sympy import * 
t = symbols("t") 
x = Function("x") 
ode = Eq(6*x(t) - 5*Derivative(x(t), t) + Derivative(x(t), (t, 2)),0) 
ics = {} 
dsolve(ode,func=x(t),ics=ics)
 
x(t)=(C1+C2et)e2t