9.21 problem 14.2 (k)

Internal problem ID [13545]
Internal file name [OUTPUT/12717_Friday_February_16_2024_12_11_12_AM_10151113/index.tex]

Book: Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section: Chapter 14. Higher order equations and the reduction of order method. Additional exercises page 277
Problem number: 14.2 (k).
ODE order: 2.
ODE degree: 1.

The type(s) of ODE detected by this program : "reduction_of_order", "second_order_change_of_variable_on_y_method_1"

Maple gives the following as the ode type

[[_2nd_order, _with_linear_symmetries]]

\[ \boxed {\sin \left (x \right )^{2} y^{\prime \prime }-2 \cos \left (x \right ) \sin \left (x \right ) y^{\prime }+\left (1+\cos \left (x \right )^{2}\right ) y=0} \] Given that one solution of the ode is \begin {align*} y_1 &= \sin \left (x \right ) \end {align*}

Given one basis solution \(y_{1}\left (x \right )\), then the second basis solution is given by \[ y_{2}\left (x \right ) = y_{1} \left (\int \frac {{\mathrm e}^{-\left (\int p d x \right )}}{y_{1}^{2}}d x \right ) \] Where \(p(x)\) is the coefficient of \(y^{\prime }\) when the ode is written in the normal form \[ y^{\prime \prime }+p \left (x \right ) y^{\prime }+q \left (x \right ) y = f \left (x \right ) \] Looking at the ode to solve shows that \[ p \left (x \right ) = -\frac {2 \cos \left (x \right )}{\sin \left (x \right )} \] Therefore \begin{align*} y_{2}\left (x \right ) &= \sin \left (x \right ) \left (\int \frac {{\mathrm e}^{-\left (\int -\frac {2 \cos \left (x \right )}{\sin \left (x \right )}d x \right )}}{\sin \left (x \right )^{2}}d x \right ) \\ y_{2}\left (x \right ) &= \sin \left (x \right ) \int \frac {\sin \left (x \right )^{2}}{\sin \left (x \right )^{2}} , dx \\ y_{2}\left (x \right ) &= \sin \left (x \right ) \left (\int 1d x \right ) \\ y_{2}\left (x \right ) &= \sin \left (x \right ) x \\ \end{align*} Hence the solution is \begin{align*} y &= c_{1} y_{1}\left (x \right )+c_{2} y_{2}\left (x \right ) \\ &= \sin \left (x \right ) c_{1} +c_{2} \sin \left (x \right ) x \\ \end{align*}

Summary

The solution(s) found are the following \begin{align*} \tag{1} y &= \sin \left (x \right ) c_{1} +c_{2} \sin \left (x \right ) x \\ \end{align*}

Verification of solutions

\[ y = \sin \left (x \right ) c_{1} +c_{2} \sin \left (x \right ) x \] Verified OK.

Maple trace Kovacic algorithm successful

`Methods for second order ODEs: 
--- Trying classification methods --- 
trying a symmetry of the form [xi=0, eta=F(x)] 
checking if the LODE is missing y 
-> Trying a Liouvillian solution using Kovacics algorithm 
   A Liouvillian solution exists 
   Reducible group (found an exponential solution) 
<- Kovacics algorithm successful`
 

Solution by Maple

Time used: 0.0 (sec). Leaf size: 12

dsolve([sin(x)^2*diff(y(x),x$2)-2*cos(x)*sin(x)*diff(y(x),x)+(1+cos(x)^2)*y(x)=0,sin(x)],singsol=all)
 

\[ y \left (x \right ) = \sin \left (x \right ) \left (c_{2} x +c_{1} \right ) \]

Solution by Mathematica

Time used: 0.079 (sec). Leaf size: 15

DSolve[Sin[x]^2*y''[x]-2*Cos[x]*Sin[x]*y'[x]+(1+Cos[x]^2)*y[x]==0,y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to (c_2 x+c_1) \sin (x) \]