2.2.6 Problem 5 (iiI=i)

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

Internal problem ID [18441]
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 (iiI=i)
Date solved : Saturday, April 26, 2025 at 11:17:20 AM
CAS classification : [[_2nd_order, _missing_x]]

Solved as second order linear constant coeff ode

Time used: 0.075 (sec)

Solve

x4x+5x=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=4,C=5. Let the solution be x=eλt. Substituting this into the ODE gives

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

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

(2)λ24λ+5=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=4,C=5 into the above gives

λ1,2=4(2)(1)±1(2)(1)42(4)(1)(5)=2±i

Hence

λ1=2+iλ2=2i

Which simplifies to

λ1=2+iλ2=2i

Since roots are complex conjugate of each others, then let the roots be

λ1,2=α±iβ

Where α=2 and β=1. Therefore the final solution, when using Euler relation, can be written as

x=eαt(c1cos(βt)+c2sin(βt))

Which becomes

x=e2t(c1cos(t)+c2sin(t))

Will add steps showing solving for IC soon.

Summary of solutions found

x=e2t(c1cos(t)+c2sin(t))
Figure 2.54: Slope field x4x+5x=0
Solved as second order ode using Kovacic algorithm

Time used: 0.191 (sec)

Solve

x4x+5x=0

Writing the ode as

(1)x4x+5x=0(2)Ax+Bx+Cx=0

Comparing (1) and (2) shows that

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

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

Comparing the above to (5) shows that

s=1t=1

Therefore eq. (4) becomes

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

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.12: 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=1 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)=cos(t)

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=z1e1241dt=z1e2t=z1(e2t)

Which simplifies to

x1=e2tcos(t)

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

x2=x1eBAdtx12dt

Substituting gives

x2=x1e41dt(x1)2dt=x1e4t(x1)2dt=x1(tan(t))

Therefore the solution is

x=c1x1+c2x2=c1(e2tcos(t))+c2(e2tcos(t)(tan(t)))

Will add steps showing solving for IC soon.

Summary of solutions found

x=c1e2tcos(t)+c2e2tsin(t)
Figure 2.55: Slope field x4x+5x=0
Maple. Time used: 0.001 (sec). Leaf size: 18
ode:=diff(diff(x(t),t),t)-4*diff(x(t),t)+5*x(t) = 0; 
dsolve(ode,x(t), singsol=all);
 
x=e2t(c1sin(t)+c2cos(t))

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)4ddtx(t)+5x(t)=0Highest derivative means the order of the ODE is2ddtddtx(t)Characteristic polynomial of ODEr24r+5=0Use quadratic formula to solve forrr=4±(4)2Roots of the characteristic polynomialr=(2I,2+I)1st solution of the ODEx1(t)=e2tcos(t)2nd solution of the ODEx2(t)=e2tsin(t)General solution of the ODEx(t)=C1x1(t)+C2x2(t)Substitute in solutionsx(t)=C1e2tcos(t)+C2e2tsin(t)
Mathematica. Time used: 0.015 (sec). Leaf size: 22
ode=D[x[t],{t,2}]-4*D[x[t],t]+5*x[t]==0; 
ic={}; 
DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
 
x(t)e2t(c2cos(t)+c1sin(t))
Sympy. Time used: 0.146 (sec). Leaf size: 17
from sympy import * 
t = symbols("t") 
x = Function("x") 
ode = Eq(5*x(t) - 4*Derivative(x(t), t) + Derivative(x(t), (t, 2)),0) 
ics = {} 
dsolve(ode,func=x(t),ics=ics)
 
x(t)=(C1sin(t)+C2cos(t))e2t