Entering kovacic solverWriting 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
Since \(B=0\) then the above reduces to
Which simplifies to
The second solution \(x_2\) to the original ode is found using reduction of order
Since \(B=0\) then the above becomes
Therefore the solution is
This is second order nonhomogeneous ODE. Let the solution be
Where \(x_h\) is the solution to the homogeneous ODE
And \(x_p\) is a particular solution to the nonhomogeneous ODE
\(x_h\) is the solution to
The homogeneous solution is found using the Kovacic algorithm which results in
The particular solution \(x_p\) can be found using either the method of undetermined coefficients or the method of variation of parameters. The method of variation of parameters will be used as it is more general and can be used when the coefficients of the ODE depend on \(t\) as well. Let
Where \(u_1,u_2\) to be determined, and \(x_1,x_2\) are the two basis solutions (the two linearly independent solutions of the homogeneous ODE) found earlier when solving the homogeneous ODE as
In the Variation of parameters \(u_1,u_2\) are found using
Where \(W(t)\) is the Wronskian and \(a\) is the coefficient in front of \(x''\) in the given ODE. The Wronskian is given by \(W= \begin {vmatrix} x_1 & x_{2} \\ x_{1}^{\prime } & x_{2}^{\prime } \end {vmatrix} \). Hence
Which gives
Therefore
Which simplifies to
Which simplifies to
Therefore Eq. (2) becomes
Which simplifies to
Hence
And Eq. (3) becomes
Which simplifies to
Hence
Therefore the particular solution, from equation (1) is
Which simplifies to
Therefore the general solution is
Applying the initial conditions \([x \left (0\right ) = 0, x^{\prime }\left (0\right ) = 1]\), the solution becomes
| | |
| \(x = -\frac {{\mathrm e}^{-t}}{4}+\frac {{\mathrm e}^{t} \left (t +\frac {1}{2}\right )}{2}\) | Direction field |