2.2.8 Problem 6 (i)

Existence and uniqueness analysis
Solved as second order linear constant coeff ode
Solved as second order ode using Kovacic algorithm
Maple
Mathematica
Sympy

Internal problem ID [18450]
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 : 6 (i)
Date solved : Monday, March 31, 2025 at 05:29:38 PM
CAS classification : [[_2nd_order, _missing_x]]

Existence and uniqueness analysis

Solve

x3x+2x=0

With initial conditions

x(0)=0x(0)=1

This is a linear ODE. In canonical form it is written as

x+p(t)x+q(t)x=F

Where here

p(t)=3q(t)=2F=0

Hence the ode is

x3x+2x=0

The domain of p(t)=3 is

{<t<}

And the point t0=0 is inside this domain. The domain of q(t)=2 is

{<t<}

And the point t0=0 is also inside this domain. Hence solution exists and is unique.

Solved as second order linear constant coeff ode

Time used: 0.091 (sec)

Solve

x3x+2x=0

With initial conditions

x(0)=0x(0)=1

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

(1)λ2etλ3λetλ+2etλ=0

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

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

λ1,2=3(2)(1)±1(2)(1)32(4)(1)(2)=32±12

Hence

λ1=32+12λ2=3212

Which simplifies to

λ1=2λ2=1

Since roots are real and distinct, then the solution is

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

Or

x=c1e2t+c2et

Will add steps showing solving for IC soon.

Summary of solutions found

x=e2tet
Solution plot Slope field x3x+2x=0
Solved as second order ode using Kovacic algorithm

Time used: 0.069 (sec)

Solve

x3x+2x=0

With initial conditions

x(0)=0x(0)=1

Writing the ode as

(1)x3x+2x=0(2)Ax+Bx+Cx=0

Comparing (1) and (2) shows that

A=1(3)B=3C=2

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.14: 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=z1e1231dt=z1e3t2=z1(e3t2)

Which simplifies to

x1=et

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

x2=x1eBAdtx12dt

Substituting gives

x2=x1e31dt(x1)2dt=x1e3t(x1)2dt=x1(e3te2t)

Therefore the solution is

x=c1x1+c2x2=c1(et)+c2(et(e3te2t))

Will add steps showing solving for IC soon.

Summary of solutions found

x=e2tet
Solution plot Slope field x3x+2x=0
Maple. Time used: 0.052 (sec). Leaf size: 13
ode:=diff(diff(x(t),t),t)-3*diff(x(t),t)+2*x(t) = 0; 
ic:=x(0) = 0, D(x)(0) = 1; 
dsolve([ode,ic],x(t), singsol=all);
 
x=et+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 solve[ddtddtx(t)3ddtx(t)+2x(t)=0,x(0)=0,(ddtx(t))|{t=0}=1]Highest derivative means the order of the ODE is2ddtddtx(t)Characteristic polynomial of ODEr23r+2=0Factor the characteristic polynomial(r1)(r2)=0Roots of the characteristic polynomialr=(1,2)1st solution of the ODEx1(t)=et2nd solution of the ODEx2(t)=e2tGeneral solution of the ODEx(t)=C1x1(t)+C2x2(t)Substitute in solutionsx(t)=C1et+C2e2tCheck validity of solutionx(t)=_C1et+_C2e2tUse initial conditionx(0)=00=_C1+_C2Compute derivative of the solutionddtx(t)=_C1et+2_C2e2tUse the initial condition(ddtx(t))|{t=0}=11=_C1+2_C2Solve for_C1and_C2{_C1=1,_C2=1}Substitute constant values into general solution and simplifyx(t)=et+e2tSolution to the IVPx(t)=et+e2t
Mathematica. Time used: 0.012 (sec). Leaf size: 14
ode=D[x[t],{t,2}]-3*D[x[t],t]+2*x[t]==0; 
ic={x[0]==0,Derivative[1][x][0] == 1}; 
DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
 
x(t)et(et1)
Sympy. Time used: 0.147 (sec). Leaf size: 10
from sympy import * 
t = symbols("t") 
x = Function("x") 
ode = Eq(2*x(t) - 3*Derivative(x(t), t) + Derivative(x(t), (t, 2)),0) 
ics = {x(0): 0, Subs(Derivative(x(t), t), t, 0): 1} 
dsolve(ode,func=x(t),ics=ics)
 
x(t)=(et1)et