8.16 problem 19

8.16.1 Solving as second order change of variable on y method 2 ode

Internal problem ID [1102]
Internal file name [OUTPUT/1103_Sunday_June_05_2022_02_02_37_AM_61910818/index.tex]

Book: Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section: Chapter 5 linear second order equations. Section 5.1 Homogeneous linear equations. Page 203
Problem number: 19.
ODE order: 2.
ODE degree: 1.

The type(s) of ODE detected by this program : "second_order_change_of_variable_on_y_method_2"

Maple gives the following as the ode type

[[_2nd_order, _with_linear_symmetries]]

\[ \boxed {4 x^{2} \sin \left (x \right ) y^{\prime \prime }-4 x \left (\cos \left (x \right ) x +\sin \left (x \right )\right ) y^{\prime }+\left (2 \cos \left (x \right ) x +3 \sin \left (x \right )\right ) y=0} \]

8.16.1 Solving as second order change of variable on y method 2 ode

In normal form the ode \begin {align*} 4 x^{2} \sin \left (x \right ) y^{\prime \prime }-4 x \left (\cos \left (x \right ) x +\sin \left (x \right )\right ) y^{\prime }+\left (2 \cos \left (x \right ) x +3 \sin \left (x \right )\right ) y&=0 \tag {1} \end {align*}

Becomes \begin {align*} y^{\prime \prime }+p \left (x \right ) y^{\prime }+q \left (x \right ) y&=0 \tag {2} \end {align*}

Where \begin {align*} p \left (x \right )&=\frac {-x \cot \left (x \right )-1}{x}\\ q \left (x \right )&=\frac {2 x \cot \left (x \right )+3}{4 x^{2}} \end {align*}

Applying change of variables on the depndent variable \(y = v \left (x \right ) x^{n}\) to (2) gives the following ode where the dependent variables is \(v \left (x \right )\) and not \(y\). \begin {align*} v^{\prime \prime }\left (x \right )+\left (\frac {2 n}{x}+p \right ) v^{\prime }\left (x \right )+\left (\frac {n \left (n -1\right )}{x^{2}}+\frac {n p}{x}+q \right ) v \left (x \right )&=0 \tag {3} \end {align*}

Let the coefficient of \(v \left (x \right )\) above be zero. Hence \begin {align*} \frac {n \left (n -1\right )}{x^{2}}+\frac {n p}{x}+q&=0 \tag {4} \end {align*}

Substituting the earlier values found for \(p \left (x \right )\) and \(q \left (x \right )\) into (4) gives \begin {align*} \frac {n \left (n -1\right )}{x^{2}}+\frac {n \left (-x \cot \left (x \right )-1\right )}{x^{2}}+\frac {2 x \cot \left (x \right )+3}{4 x^{2}}&=0 \tag {5} \end {align*}

Solving (5) for \(n\) gives \begin {align*} n&={\frac {1}{2}} \tag {6} \end {align*}

Substituting this value in (3) gives \begin {align*} v^{\prime \prime }\left (x \right )+\left (\frac {1}{x}+\frac {-x \cot \left (x \right )-1}{x}\right ) v^{\prime }\left (x \right )&=0 \\ v^{\prime \prime }\left (x \right )-\cot \left (x \right ) v^{\prime }\left (x \right )&=0 \tag {7} \\ \end {align*}

Using the substitution \begin {align*} u \left (x \right ) = v^{\prime }\left (x \right ) \end {align*}

Then (7) becomes \begin {align*} u^{\prime }\left (x \right )-\cot \left (x \right ) u \left (x \right ) = 0 \tag {8} \\ \end {align*}

The above is now solved for \(u \left (x \right )\). In canonical form the ODE is \begin {align*} u' &= F(x,u)\\ &= f( x) g(u)\\ &= \cot \left (x \right ) u \end {align*}

Where \(f(x)=\cot \left (x \right )\) and \(g(u)=u\). Integrating both sides gives \begin {align*} \frac {1}{u} \,du &= \cot \left (x \right ) \,d x\\ \int { \frac {1}{u} \,du} &= \int {\cot \left (x \right ) \,d x}\\ \ln \left (u \right )&=\ln \left (\sin \left (x \right )\right )+c_{1}\\ u&={\mathrm e}^{\ln \left (\sin \left (x \right )\right )+c_{1}}\\ &=c_{1} \sin \left (x \right ) \end {align*}

Now that \(u \left (x \right )\) is known, then \begin {align*} v^{\prime }\left (x \right )&= u \left (x \right )\\ v \left (x \right )&= \int u \left (x \right )d x +c_{2}\\ &= -c_{1} \cos \left (x \right )+c_{2} \end {align*}

Hence \begin {align*} y&= v \left (x \right ) x^{n}\\ &= \left (-c_{1} \cos \left (x \right )+c_{2} \right ) \sqrt {x}\\ &= \left (-c_{1} \cos \left (x \right )+c_{2} \right ) \sqrt {x}\\ \end {align*}

Summary

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

Verification of solutions

\[ y = \left (-c_{1} \cos \left (x \right )+c_{2} \right ) \sqrt {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 
-> Heun: Equivalence to the GHE or one of its 4 confluent cases under a power @ Moebius 
-> trying a solution of the form r0(x) * Y + r1(x) * Y where Y = exp(int(r(x), dx)) * 2F1([a1, a2], [b1], f) 
-> Trying changes of variables to rationalize or make the ODE simpler 
   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 
   Change of variables used: 
      [x = arccos(t)] 
   Linear ODE actually solved: 
      (2*arccos(t)*t+3*(-t^2+1)^(1/2))*u(t)+(-4*arccos(t)*t^2+4*arccos(t))*diff(u(t),t)+(-4*arccos(t)^2*(-t^2+1)^(1/2)*t^2+4*arccos( 
<- change of variables successful`
 

Solution by Maple

Time used: 0.094 (sec). Leaf size: 14

dsolve(4*x^2*sin(x)*diff(y(x),x$2)-4*x*(x*cos(x)+sin(x))*diff(y(x),x)+(2*x*cos(x)+3*sin(x))*y(x)=0,y(x), singsol=all)
 

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

Solution by Mathematica

Time used: 0.356 (sec). Leaf size: 21

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

\[ y(x)\to \sqrt {\arccos (\cos (x))} (c_2 \cos (x)+c_1) \]