Internal problem ID [14900]
Internal file name [OUTPUT/14598_Tuesday_April_09_2024_02_05_37_AM_85703265/index.tex
]
Book: INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton.
Fourth edition 2014. ElScAe. 2014
Section: Chapter 5. Applications of Higher Order Equations. Exercises 5.1, page 232
Problem number: 9.
ODE order: 2.
ODE degree: 1.
The type(s) of ODE detected by this program : "kovacic", "second_order_linear_constant_coeff", "second_order_ode_can_be_made_integrable"
Maple gives the following as the ode type
[[_2nd_order, _missing_x]]
\[ \boxed {x^{\prime \prime }+9 x=0} \] With initial conditions \begin {align*} \left [x \left (0\right ) = {\frac {1}{3}}, x^{\prime }\left (0\right ) = -1\right ] \end {align*}
This is a linear ODE. In canonical form it is written as \begin {align*} x^{\prime \prime } + p(t)x^{\prime } + q(t) x &= F \end {align*}
Where here \begin {align*} p(t) &=0\\ q(t) &=9\\ F &=0 \end {align*}
Hence the ode is \begin {align*} x^{\prime \prime }+9 x = 0 \end {align*}
The domain of \(p(t)=0\) is \[
\{-\infty
This is second order with constant coefficients homogeneous ODE. In standard form the
ODE is \[ A x''(t) + B x'(t) + C x(t) = 0 \] Where in the above \(A=1, B=0, C=9\). Let the solution be \(x=e^{\lambda t}\). Substituting this into the ODE gives \[ \lambda ^{2} {\mathrm e}^{\lambda t}+9 \,{\mathrm e}^{\lambda t} = 0 \tag {1} \]
Since exponential function is never zero, then dividing Eq(2) throughout by \(e^{\lambda t}\) gives \[ \lambda ^{2}+9 = 0 \tag {2} \]
Equation (2) is the characteristic equation of the ODE. Its roots determine the
general solution form.Using the quadratic formula \[ \lambda _{1,2} = \frac {-B}{2 A} \pm \frac {1}{2 A} \sqrt {B^2 - 4 A C} \] Substituting \(A=1, B=0, C=9\) into the above gives
\begin {align*} \lambda _{1,2} &= \frac {0}{(2) \left (1\right )} \pm \frac {1}{(2) \left (1\right )} \sqrt {0^2 - (4) \left (1\right )\left (9\right )}\\ &= \pm 3 i \end {align*}
Hence \begin {align*} \lambda _1 &= + 3 i\\ \lambda _2 &= - 3 i \end {align*}
Which simplifies to \begin{align*}
\lambda _1 &= 3 i \\
\lambda _2 &= -3 i \\
\end{align*} Since roots are complex conjugate of each others, then let the roots be \[
\lambda _{1,2} = \alpha \pm i \beta
\]
Where \(\alpha =0\) and \(\beta =3\). Therefore the final solution, when using Euler relation, can be written
as \[
x = e^{\alpha t} \left ( c_{1} \cos (\beta t) + c_{2} \sin (\beta t) \right )
\] Which becomes \[
x = e^{0}\left (c_{1} \cos \left (3 t \right )+c_{2} \sin \left (3 t \right )\right )
\] Or \[
x = c_{1} \cos \left (3 t \right )+c_{2} \sin \left (3 t \right )
\] Initial conditions are used to solve for the constants of
integration.
Looking at the above solution \begin {align*} x = c_{1} \cos \left (3 t \right )+c_{2} \sin \left (3 t \right ) \tag {1} \end {align*}
Initial conditions are now substituted in the above solution. This will generate the required
equations to solve for the integration constants. substituting \(x = {\frac {1}{3}}\) and \(t = 0\) in the above gives
\begin {align*} {\frac {1}{3}} = c_{1}\tag {1A} \end {align*}
Taking derivative of the solution gives \begin {align*} x^{\prime } = -3 c_{1} \sin \left (3 t \right )+3 c_{2} \cos \left (3 t \right ) \end {align*}
substituting \(x^{\prime } = -1\) and \(t = 0\) in the above gives \begin {align*} -1 = 3 c_{2}\tag {2A} \end {align*}
Equations {1A,2A} are now solved for \(\{c_{1}, c_{2}\}\). Solving for the constants gives \begin {align*} c_{1}&={\frac {1}{3}}\\ c_{2}&=-{\frac {1}{3}} \end {align*}
Substituting these values back in above solution results in \begin {align*} x = \frac {\cos \left (3 t \right )}{3}-\frac {\sin \left (3 t \right )}{3} \end {align*}
Summary
The solution(s) found are the following \begin{align*}
\tag{1} x &= \frac {\cos \left (3 t \right )}{3}-\frac {\sin \left (3 t \right )}{3} \\
\end{align*} Verification of solutions
\[
x = \frac {\cos \left (3 t \right )}{3}-\frac {\sin \left (3 t \right )}{3}
\] Verified OK. Multiplying the ode by \(x^{\prime }\) gives \[ x^{\prime } x^{\prime \prime }+9 x x^{\prime } = 0 \] Integrating the above w.r.t \(t\) gives \begin {align*} \int \left (x^{\prime } x^{\prime \prime }+9 x x^{\prime }\right )d t &= 0 \\ \frac {{x^{\prime }}^{2}}{2}+\frac {9 x^{2}}{2} = c_2 \end {align*}
Which is now solved for \(x\). Solving the given ode for \(x^{\prime }\) results in \(2\) differential equations
to solve. Each one of these will generate a solution. The equations generated are
\begin {align*} x^{\prime }&=\sqrt {-9 x^{2}+2 c_{1}} \tag {1} \\ x^{\prime }&=-\sqrt {-9 x^{2}+2 c_{1}} \tag {2} \end {align*}
Now each one of the above ODE is solved.
Solving equation (1)
Integrating both sides gives \begin{align*}
\int \frac {1}{\sqrt {-9 x^{2}+2 c_{1}}}d x &= \int d t \\
\frac {\arctan \left (\frac {3 x}{\sqrt {-9 x^{2}+2 c_{1}}}\right )}{3}&=t +c_{2} \\
\end{align*} Solving equation (2)
Integrating both sides gives \begin{align*}
\int -\frac {1}{\sqrt {-9 x^{2}+2 c_{1}}}d x &= \int d t \\
-\frac {\arctan \left (\frac {3 x}{\sqrt {-9 x^{2}+2 c_{1}}}\right )}{3}&=t +c_{3} \\
\end{align*} Initial conditions are used to solve for the constants of
integration.
Looking at the First solution \begin {align*} \frac {\arctan \left (\frac {3 x}{\sqrt {-9 x^{2}+2 c_{1}}}\right )}{3} = t +c_{2} \tag {1} \end {align*}
Initial conditions are now substituted in the above solution. This will generate the required
equations to solve for the integration constants. substituting \(x = {\frac {1}{3}}\) and \(t = 0\) in the above gives
\begin {align*} \frac {\arctan \left (\frac {1}{\sqrt {2 c_{1} -1}}\right )}{3} = c_{2}\tag {1A} \end {align*}
Taking derivative of the solution gives \begin {align*} x^{\prime } = \frac {\left (3 \tan \left (3 t +3 c_{2} \right )^{2}+3\right ) \sqrt {2}\, \sqrt {\frac {c_{1}}{\tan \left (3 t +3 c_{2} \right )^{2}+1}}}{3}-\frac {\tan \left (3 t +3 c_{2} \right )^{2} \sqrt {2}\, c_{1} \left (3 \tan \left (3 t +3 c_{2} \right )^{2}+3\right )}{3 \sqrt {\frac {c_{1}}{\tan \left (3 t +3 c_{2} \right )^{2}+1}}\, \left (\tan \left (3 t +3 c_{2} \right )^{2}+1\right )^{2}} \end {align*}
substituting \(x^{\prime } = -1\) and \(t = 0\) in the above gives \begin {align*} -1 = \frac {\cos \left (3 c_{2} \right )^{2} c_{1} \sqrt {2}}{\sqrt {\cos \left (3 c_{2} \right )^{2} c_{1}}}\tag {2A} \end {align*}
Equations {1A,2A} are now solved for \(\{c_{1}, c_{2}\}\). There is no solution for the constants of
integrations. This solution is removed.
Looking at the Second solution \begin {align*} -\frac {\arctan \left (\frac {3 x}{\sqrt {-9 x^{2}+2 c_{1}}}\right )}{3} = t +c_{3} \tag {2} \end {align*}
Initial conditions are now substituted in the above solution. This will generate the required
equations to solve for the integration constants. substituting \(x = {\frac {1}{3}}\) and \(t = 0\) in the above gives
\begin {align*} -\frac {\arctan \left (\frac {1}{\sqrt {2 c_{1} -1}}\right )}{3} = c_{3}\tag {1A} \end {align*}
Taking derivative of the solution gives \begin {align*} x^{\prime } = -\frac {\left (3 \tan \left (3 t +3 c_{3} \right )^{2}+3\right ) \sqrt {2}\, \sqrt {\frac {c_{1}}{\tan \left (3 t +3 c_{3} \right )^{2}+1}}}{3}+\frac {\tan \left (3 t +3 c_{3} \right )^{2} \sqrt {2}\, c_{1} \left (3 \tan \left (3 t +3 c_{3} \right )^{2}+3\right )}{3 \sqrt {\frac {c_{1}}{\tan \left (3 t +3 c_{3} \right )^{2}+1}}\, \left (\tan \left (3 t +3 c_{3} \right )^{2}+1\right )^{2}} \end {align*}
substituting \(x^{\prime } = -1\) and \(t = 0\) in the above gives \begin {align*} -1 = -\frac {\cos \left (3 c_{3} \right )^{2} c_{1} \sqrt {2}}{\sqrt {\cos \left (3 c_{3} \right )^{2} c_{1}}}\tag {2A} \end {align*}
Equations {1A,2A} are now solved for \(\{c_{1}, c_{3}\}\). Solving for the constants gives \begin {align*} c_{1}&=1\\ c_{3}&=-\frac {\pi }{12} \end {align*}
Substituting these values back in above solution results in \begin {align*} -\frac {\arctan \left (\frac {3 x}{\sqrt {-9 x^{2}+2}}\right )}{3} = t -\frac {\pi }{12} \end {align*}
Summary
The solution(s) found are the following \begin{align*}
\tag{1} -\frac {\arctan \left (\frac {3 x}{\sqrt {-9 x^{2}+2}}\right )}{3} &= t -\frac {\pi }{12} \\
\end{align*} Verification of solutions
\[
-\frac {\arctan \left (\frac {3 x}{\sqrt {-9 x^{2}+2}}\right )}{3} = t -\frac {\pi }{12}
\] Verified OK.
Writing the ode as \begin {align*} x^{\prime \prime }+9 x &= 0 \tag {1} \\ A x^{\prime \prime } + B x^{\prime } + C x &= 0 \tag {2} \end {align*}
Comparing (1) and (2) shows that \begin {align*} A &= 1 \\ B &= 0\tag {3} \\ C &= 9 \end {align*}
Applying the Liouville transformation on the dependent variable gives \begin {align*} z(t) &= x e^{\int \frac {B}{2 A} \,dt} \end {align*}
Then (2) becomes \begin {align*} z''(t) = r z(t)\tag {4} \end {align*}
Where \(r\) is given by \begin {align*} r &= \frac {s}{t}\tag {5} \\ &= \frac {2 A B' - 2 B A' + B^2 - 4 A C}{4 A^2} \end {align*}
Substituting the values of \(A,B,C\) from (3) in the above and simplifying gives \begin {align*} r &= \frac {-9}{1}\tag {6} \end {align*}
Comparing the above to (5) shows that \begin {align*} s &= -9\\ t &= 1 \end {align*}
Therefore eq. (4) becomes \begin {align*} z''(t) &= -9 z \left (t \right ) \tag {7} \end {align*}
Equation (7) is now solved. After finding \(z(t)\) then \(x\) is found using the inverse transformation
\begin {align*} x &= z \left (t \right ) e^{-\int \frac {B}{2 A} \,dt} \end {align*}
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 \begin {align*} O\left (\infty \right ) &= \text {deg}(t) - \text {deg}(s) \\ &= 0 - 0 \\ &= 0 \end {align*}
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 \begin {align*} L &= [1] \end {align*}
Since \(r = -9\) 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 \[ z_1(t) = \cos \left (3 t \right ) \] 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
\[
x_1 = z_1 e^{ \int -\frac {1}{2} \frac {B}{A} \,dt}
\]
Since \(B=0\) then the above reduces to \begin{align*}
x_1 &= z_1 \\
&= \cos \left (3 t \right ) \\
\end{align*} Which simplifies to \[
x_1 = \cos \left (3 t \right )
\] The second solution \(x_2\) to the original
ode is found using reduction of order \[ x_2 = x_1 \int \frac { e^{\int -\frac {B}{A} \,dt}}{x_1^2} \,dt \] Since \(B=0\) then the above becomes \begin{align*}
x_2 &= x_1 \int \frac {1}{x_1^2} \,dt \\
&= \cos \left (3 t \right )\int \frac {1}{\cos \left (3 t \right )^{2}} \,dt \\
&= \cos \left (3 t \right )\left (\frac {\tan \left (3 t \right )}{3}\right ) \\
\end{align*} Therefore the solution
is
\begin{align*}
x &= c_{1} x_1 + c_{2} x_2 \\
&= c_{1} \left (\cos \left (3 t \right )\right ) + c_{2} \left (\cos \left (3 t \right )\left (\frac {\tan \left (3 t \right )}{3}\right )\right ) \\
\end{align*} Initial conditions are used to solve for the constants of integration.
Looking at the above solution \begin {align*} x = c_{1} \cos \left (3 t \right )+\frac {c_{2} \sin \left (3 t \right )}{3} \tag {1} \end {align*}
Initial conditions are now substituted in the above solution. This will generate the required
equations to solve for the integration constants. substituting \(x = {\frac {1}{3}}\) and \(t = 0\) in the above gives
\begin {align*} {\frac {1}{3}} = c_{1}\tag {1A} \end {align*}
Taking derivative of the solution gives \begin {align*} x^{\prime } = -3 c_{1} \sin \left (3 t \right )+c_{2} \cos \left (3 t \right ) \end {align*}
substituting \(x^{\prime } = -1\) and \(t = 0\) in the above gives \begin {align*} -1 = c_{2}\tag {2A} \end {align*}
Equations {1A,2A} are now solved for \(\{c_{1}, c_{2}\}\). Solving for the constants gives \begin {align*} c_{1}&={\frac {1}{3}}\\ c_{2}&=-1 \end {align*}
Substituting these values back in above solution results in \begin {align*} x = \frac {\cos \left (3 t \right )}{3}-\frac {\sin \left (3 t \right )}{3} \end {align*}
Summary
The solution(s) found are the following \begin{align*}
\tag{1} x &= \frac {\cos \left (3 t \right )}{3}-\frac {\sin \left (3 t \right )}{3} \\
\end{align*} Verification of solutions
\[
x = \frac {\cos \left (3 t \right )}{3}-\frac {\sin \left (3 t \right )}{3}
\] Verified OK. \[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left [x^{\prime \prime }+9 x=0, x \left (0\right )=\frac {1}{3}, x^{\prime }{\raise{-0.36em}{\Big |}}{\mstack {}{_{\left \{t \hiderel {=}0\right \}}}}=-1\right ] \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 2 \\ {} & {} & x^{\prime \prime } \\ \bullet & {} & \textrm {Characteristic polynomial of ODE}\hspace {3pt} \\ {} & {} & r^{2}+9=0 \\ \bullet & {} & \textrm {Use quadratic formula to solve for}\hspace {3pt} r \\ {} & {} & r =\frac {0\pm \left (\sqrt {-36}\right )}{2} \\ \bullet & {} & \textrm {Roots of the characteristic polynomial}\hspace {3pt} \\ {} & {} & r =\left (-3 \,\mathrm {I}, 3 \,\mathrm {I}\right ) \\ \bullet & {} & \textrm {1st solution of the ODE}\hspace {3pt} \\ {} & {} & x_{1}\left (t \right )=\cos \left (3 t \right ) \\ \bullet & {} & \textrm {2nd solution of the ODE}\hspace {3pt} \\ {} & {} & x_{2}\left (t \right )=\sin \left (3 t \right ) \\ \bullet & {} & \textrm {General solution of the ODE}\hspace {3pt} \\ {} & {} & x=c_{1} x_{1}\left (t \right )+c_{2} x_{2}\left (t \right ) \\ \bullet & {} & \textrm {Substitute in solutions}\hspace {3pt} \\ {} & {} & x=c_{1} \cos \left (3 t \right )+c_{2} \sin \left (3 t \right ) \\ \square & {} & \textrm {Check validity of solution}\hspace {3pt} x=c_{1} \cos \left (3 t \right )+c_{2} \sin \left (3 t \right ) \\ {} & \circ & \textrm {Use initial condition}\hspace {3pt} x \left (0\right )=\frac {1}{3} \\ {} & {} & \frac {1}{3}=c_{1} \\ {} & \circ & \textrm {Compute derivative of the solution}\hspace {3pt} \\ {} & {} & x^{\prime }=-3 c_{1} \sin \left (3 t \right )+3 c_{2} \cos \left (3 t \right ) \\ {} & \circ & \textrm {Use the initial condition}\hspace {3pt} x^{\prime }{\raise{-0.36em}{\Big |}}{\mstack {}{_{\left \{t \hiderel {=}0\right \}}}}=-1 \\ {} & {} & -1=3 c_{2} \\ {} & \circ & \textrm {Solve for}\hspace {3pt} c_{1} \hspace {3pt}\textrm {and}\hspace {3pt} c_{2} \\ {} & {} & \left \{c_{1} =\frac {1}{3}, c_{2} =-\frac {1}{3}\right \} \\ {} & \circ & \textrm {Substitute constant values into general solution and simplify}\hspace {3pt} \\ {} & {} & x=\frac {\cos \left (3 t \right )}{3}-\frac {\sin \left (3 t \right )}{3} \\ \bullet & {} & \textrm {Solution to the IVP}\hspace {3pt} \\ {} & {} & x=\frac {\cos \left (3 t \right )}{3}-\frac {\sin \left (3 t \right )}{3} \end {array} \]
Maple trace
✓ Solution by Maple
Time used: 0.016 (sec). Leaf size: 17
\[
x \left (t \right ) = -\frac {\sin \left (3 t \right )}{3}+\frac {\cos \left (3 t \right )}{3}
\]
✓ Solution by Mathematica
Time used: 0.013 (sec). Leaf size: 20
\[
x(t)\to \frac {1}{3} (\cos (3 t)-\sin (3 t))
\]
19.9.2 Solving as second order linear constant coeff ode
19.9.3 Solving as second order ode can be made integrable ode
19.9.4 Solving using Kovacic algorithm
19.9.5 Maple step by step solution
`Methods for second order ODEs:
--- Trying classification methods ---
trying a quadrature
checking if the LODE has constant coefficients
<- constant coefficients successful`
dsolve([diff(x(t),t$2)+9*x(t)=0,x(0) = 1/3, D(x)(0) = -1],x(t), singsol=all)
DSolve[{x''[t]+9*x[t]==0,{x[0]==1/3,x'[0]==-1}},x[t],t,IncludeSingularSolutions -> True]