Internal problem ID [5956]
Internal file name [OUTPUT/5204_Sunday_June_05_2022_03_27_24_PM_9716775/index.tex
]
Book: An introduction to Ordinary Differential Equations. Earl A. Coddington. Dover. NY
1961
Section: Chapter 2. Linear equations with constant coefficients. Page 52
Problem number: 3(d).
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 {y^{\prime \prime }+y=0} \] With initial conditions \begin {align*} \left [y \left (0\right ) = 0, y \left (\frac {\pi }{2}\right ) = 0\right ] \end {align*}
This is second order with constant coefficients homogeneous ODE. In standard form the ODE is \[ A y''(x) + B y'(x) + C y(x) = 0 \] Where in the above \(A=1, B=0, C=1\). Let the solution be \(y=e^{\lambda x}\). Substituting this into the ODE gives \[ \lambda ^{2} {\mathrm e}^{\lambda x}+{\mathrm e}^{\lambda x} = 0 \tag {1} \] Since exponential function is never zero, then dividing Eq(2) throughout by \(e^{\lambda x}\) gives \[ \lambda ^{2}+1 = 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=1\) 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 (1\right )}\\ &= \pm i \end {align*}
Hence \begin {align*} \lambda _1 &= + i\\ \lambda _2 &= - i \end {align*}
Which simplifies to \begin{align*} \lambda _1 &= i \\ \lambda _2 &= -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 =1\). Therefore the final solution, when using Euler relation, can be written as \[ y = e^{\alpha x} \left ( c_{1} \cos (\beta x) + c_{2} \sin (\beta x) \right ) \] Which becomes \[ y = e^{0}\left (c_{1} \cos \left (x \right )+c_{2} \sin \left (x \right )\right ) \] Or \[ y = c_{1} \cos \left (x \right )+c_{2} \sin \left (x \right ) \] Initial conditions are used to solve for the constants of integration.
Looking at the above solution \begin {align*} y = c_{1} \cos \left (x \right )+c_{2} \sin \left (x \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 \(y = 0\) and \(x = \frac {\pi }{2}\) in the above gives \begin {align*} 0 = c_{2}\tag {1A} \end {align*}
substituting \(y = 0\) and \(x = 0\) in the above gives \begin {align*} 0 = c_{1}\tag {2A} \end {align*}
Equations {1A,2A} are now solved for \(\{c_{1}, c_{2}\}\). Solving for the constants gives \begin {align*} c_{1}&=0\\ c_{2}&=0 \end {align*}
Substituting these values back in above solution results in \begin {align*} y = 0 \end {align*}
Summary
The solution(s) found are the following \begin{align*} \tag{1} y &= 0 \\ \end{align*}
Verification of solutions
\[ y = 0 \] Verified OK.
Multiplying the ode by \(y^{\prime }\) gives \[ y^{\prime } y^{\prime \prime }+y y^{\prime } = 0 \] Integrating the above w.r.t \(x\) gives \begin {align*} \int \left (y^{\prime } y^{\prime \prime }+y y^{\prime }\right )d x &= 0 \\ \frac {{y^{\prime }}^{2}}{2}+\frac {y^{2}}{2} = c_2 \end {align*}
Which is now solved for \(y\). Solving the given ode for \(y^{\prime }\) results in \(2\) differential equations to solve. Each one of these will generate a solution. The equations generated are \begin {align*} y^{\prime }&=\sqrt {-y^{2}+2 c_{1}} \tag {1} \\ y^{\prime }&=-\sqrt {-y^{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 {-y^{2}+2 c_{1}}}d y &= \int d x \\ \arctan \left (\frac {y}{\sqrt {-y^{2}+2 c_{1}}}\right )&=x +c_{2} \\ \end{align*} Solving equation (2)
Integrating both sides gives \begin{align*} \int -\frac {1}{\sqrt {-y^{2}+2 c_{1}}}d y &= \int d x \\ \arctan \left (\frac {\sqrt {-y^{2}+2 c_{1}}}{y}\right )&=x +c_{3} \\ \end{align*} Initial conditions are used to solve for the constants of integration.
Looking at the First solution \begin {align*} \arctan \left (\frac {y}{\sqrt {-y^{2}+2 c_{1}}}\right ) = x +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 \(y = 0\) and \(x = \frac {\pi }{2}\) in the above gives \begin {align*} 0 = \frac {\pi }{2}+c_{2}\tag {1A} \end {align*}
substituting \(y = 0\) and \(x = 0\) in the above gives \begin {align*} 0 = c_{2}\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*} \arctan \left (\frac {\sqrt {-y^{2}+2 c_{1}}}{y}\right ) = x +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 \(y = 0\) and \(x = \frac {\pi }{2}\) in the above gives \begin {align*} \textit {undefined} = \frac {\pi }{2}+c_{3}\tag {1A} \end {align*}
substituting \(y = 0\) and \(x = 0\) in the above gives \begin {align*} \textit {undefined} = c_{3}\tag {2A} \end {align*}
Equations {1A,2A} are now solved for \(\{c_{1}, c_{3}\}\). There is no solution for the constants of integrations. This solution is removed.
Verification of solutions N/A
Writing the ode as \begin {align*} y^{\prime \prime }+y &= 0 \tag {1} \\ A y^{\prime \prime } + B y^{\prime } + C y &= 0 \tag {2} \end {align*}
Comparing (1) and (2) shows that \begin {align*} A &= 1 \\ B &= 0\tag {3} \\ C &= 1 \end {align*}
Applying the Liouville transformation on the dependent variable gives \begin {align*} z(x) &= y e^{\int \frac {B}{2 A} \,dx} \end {align*}
Then (2) becomes \begin {align*} z''(x) = r z(x)\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 {-1}{1}\tag {6} \end {align*}
Comparing the above to (5) shows that \begin {align*} s &= -1\\ t &= 1 \end {align*}
Therefore eq. (4) becomes \begin {align*} z''(x) &= -z \left (x \right ) \tag {7} \end {align*}
Equation (7) is now solved. After finding \(z(x)\) then \(y\) is found using the inverse transformation \begin {align*} y &= z \left (x \right ) e^{-\int \frac {B}{2 A} \,dx} \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 = -1\) is not a function of \(x\), then there is no need run Kovacic algorithm to obtain a solution for transformed ode \(z''=r z\) as one solution is \[ z_1(x) = \cos \left (x \right ) \] Using the above, the solution for the original ode can now be found. The first solution to the original ode in \(y\) is found from \[ y_1 = z_1 e^{ \int -\frac {1}{2} \frac {B}{A} \,dx} \]
Since \(B=0\) then the above reduces to \begin{align*} y_1 &= z_1 \\ &= \cos \left (x \right ) \\ \end{align*} Which simplifies to \[ y_1 = \cos \left (x \right ) \] The second solution \(y_2\) to the original ode is found using reduction of order \[ y_2 = y_1 \int \frac { e^{\int -\frac {B}{A} \,dx}}{y_1^2} \,dx \] Since \(B=0\) then the above becomes \begin{align*} y_2 &= y_1 \int \frac {1}{y_1^2} \,dx \\ &= \cos \left (x \right )\int \frac {1}{\cos \left (x \right )^{2}} \,dx \\ &= \cos \left (x \right )\left (\tan \left (x \right )\right ) \\ \end{align*} Therefore the solution is
\begin{align*} y &= c_{1} y_1 + c_{2} y_2 \\ &= c_{1} \left (\cos \left (x \right )\right ) + c_{2} \left (\cos \left (x \right )\left (\tan \left (x \right )\right )\right ) \\ \end{align*} Initial conditions are used to solve for the constants of integration.
Looking at the above solution \begin {align*} y = c_{1} \cos \left (x \right )+c_{2} \sin \left (x \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 \(y = 0\) and \(x = \frac {\pi }{2}\) in the above gives \begin {align*} 0 = c_{2}\tag {1A} \end {align*}
substituting \(y = 0\) and \(x = 0\) in the above gives \begin {align*} 0 = c_{1}\tag {2A} \end {align*}
Equations {1A,2A} are now solved for \(\{c_{1}, c_{2}\}\). Solving for the constants gives \begin {align*} c_{1}&=0\\ c_{2}&=0 \end {align*}
Substituting these values back in above solution results in \begin {align*} y = 0 \end {align*}
Summary
The solution(s) found are the following \begin{align*} \tag{1} y &= 0 \\ \end{align*}
Verification of solutions
\[ y = 0 \] Verified OK.
\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \left [y^{\prime \prime }+y=0, y \left (0\right )=0, y \left (\frac {\pi }{2}\right )=0\right ] \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 2 \\ {} & {} & y^{\prime \prime } \\ \bullet & {} & \textrm {Characteristic polynomial of ODE}\hspace {3pt} \\ {} & {} & r^{2}+1=0 \\ \bullet & {} & \textrm {Use quadratic formula to solve for}\hspace {3pt} r \\ {} & {} & r =\frac {0\pm \left (\sqrt {-4}\right )}{2} \\ \bullet & {} & \textrm {Roots of the characteristic polynomial}\hspace {3pt} \\ {} & {} & r =\left (\mathrm {-I}, \mathrm {I}\right ) \\ \bullet & {} & \textrm {1st solution of the ODE}\hspace {3pt} \\ {} & {} & y_{1}\left (x \right )=\cos \left (x \right ) \\ \bullet & {} & \textrm {2nd solution of the ODE}\hspace {3pt} \\ {} & {} & y_{2}\left (x \right )=\sin \left (x \right ) \\ \bullet & {} & \textrm {General solution of the ODE}\hspace {3pt} \\ {} & {} & y=c_{1} y_{1}\left (x \right )+c_{2} y_{2}\left (x \right ) \\ \bullet & {} & \textrm {Substitute in solutions}\hspace {3pt} \\ {} & {} & y=c_{1} \cos \left (x \right )+c_{2} \sin \left (x \right ) \end {array} \]
Maple trace
`Methods for second order ODEs: --- Trying classification methods --- trying a quadrature checking if the LODE has constant coefficients <- constant coefficients successful`
✓ Solution by Maple
Time used: 0.015 (sec). Leaf size: 5
dsolve([diff(y(x),x$2)+y(x)=0,y(0) = 0, y(1/2*Pi) = 0],y(x), singsol=all)
\[ y \left (x \right ) = 0 \]
✓ Solution by Mathematica
Time used: 0.012 (sec). Leaf size: 6
DSolve[{y''[x]+y[x]==0,{y[0]==0,y[Pi/2]==0}},y[x],x,IncludeSingularSolutions -> True]
\[ y(x)\to 0 \]