Internal
problem
ID
[18510]
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, February 22, 2025 at 09:18:18 PM
CAS
classification
:
[[_2nd_order, _missing_x]]
Solve
Time used: 0.050 (sec)
This is second order with constant coefficients homogeneous ODE. In standard form the ODE is
Where in the above \(A=1, B=-4, C=5\). Let the solution be \(x=e^{\lambda t}\). Substituting this into the ODE gives
Since exponential function is never zero, then dividing Eq(2) throughout by \(e^{\lambda t}\) gives
Equation (2) is the characteristic equation of the ODE. Its roots determine the general solution form.Using the quadratic formula
Substituting \(A=1, B=-4, C=5\) into the above gives
Hence
Which simplifies to
Since roots are complex conjugate of each others, then let the roots be
Where \(\alpha =2\) and \(\beta =1\). Therefore the final solution, when using Euler relation, can be written as
Which becomes
Will add steps showing solving for IC soon.
Summary of solutions found
Time used: 0.118 (sec)
Writing the ode as
Comparing (1) and (2) shows that
Applying the Liouville transformation on the dependent variable gives
Then (2) becomes
Where \(r\) is given by
Substituting the values of \(A,B,C\) from (3) in the above and simplifying gives
Comparing the above to (5) shows that
Therefore eq. (4) becomes
Equation (7) is now solved. After finding \(z(t)\) then \(x\) is found using the inverse transformation
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 \(\infty \). The following table summarizes these cases.
Case |
Allowed pole order for \(r\) |
Allowed value for \(\mathcal {O}(\infty )\) |
1 |
\(\left \{ 0,1,2,4,6,8,\cdots \right \} \) |
\(\left \{ \cdots ,-6,-4,-2,0,2,3,4,5,6,\cdots \right \} \) |
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 |
\(\left \{ 1,2\right \} \) |
\(\left \{ 2,3,4,5,6,7,\cdots \right \} \) |
The order of \(r\) at \(\infty \) is the degree of \(t\) minus the degree of \(s\). Therefore
There are no poles in \(r\). Therefore the set of poles \(\Gamma \) is empty. Since there is no odd order pole larger than \(2\) and the order at \(\infty \) is \(0\) then the necessary conditions for case one are met. Therefore
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''=r z\) as one solution is
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
Which simplifies to
The second solution \(x_2\) to the original ode is found using reduction of order
Substituting gives
Therefore the solution is
Will add steps showing solving for IC soon.
Summary of solutions found
`Methods for second order ODEs: --- Trying classification methods --- trying a quadrature checking if the LODE has constant coefficients <- constant coefficients successful`
Solving time : 0.001
(sec)
Leaf size : 18
dsolve(diff(diff(x(t),t),t)-4*diff(x(t),t)+5*x(t) = 0,x(t),singsol=all)
Solving time : 0.015
(sec)
Leaf size : 22
DSolve[{D[x[t],{t,2}]-4*D[x[t],t]+5*x[t]==0,{}},x[t],t,IncludeSingularSolutions->True]
Solving time : 0.146
(sec)
Leaf size : 17
Python version: 3.13.1 (main, Dec 4 2024, 18:05:56) [GCC 14.2.1 20240910] Sympy version 1.13.3
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)
Eq(x(t), (C1*sin(t) + C2*cos(t))*exp(2*t))