4.3.2.14 Bessel form A type ode \(ay^{\prime \prime }+by^{\prime }+(ce^{rx}-m)y=f\left ( x\right ) \)
4.3.2.14.1 Example \(ay^{\prime \prime }+by^{\prime }+(ce^{rx}-m)y=0\)

ode internal name "second_order_bessel_ode_form_A"

These are ode of the above form which can be converted to Bessel using transformation \(x=\ln \left ( t\right ) \).

4.3.2.14.1 Example \(ay^{\prime \prime }+by^{\prime }+(ce^{rx}-m)y=0\) An ode of the form

\begin{equation} ay^{\prime \prime }+by^{\prime }+(ce^{rx}+m)y=0\tag {1}\end{equation}

can be transformed to Bessel ode using the transformation

\begin{align*} x & =\ln \left ( t\right ) \\ e^{x} & =t \end{align*}

Where \(a,b,c,m\) are not functions of \(x\) and where \(b\) and \(m\) are allowed to be be zero. Using this transformation gives

\begin{align} \frac {dy}{dx} & =\frac {dy}{dt}\frac {dt}{dx}\nonumber \\ & =\frac {dy}{dt}e^{x}\nonumber \\ & =t\frac {dy}{dt}\tag {2}\end{align}

And

\begin{align} \frac {d^{2}y}{dx^{2}} & =\frac {d}{dx}\left ( \frac {dy}{dx}\right ) \nonumber \\ & =\frac {d}{dx}\left ( t\frac {dy}{dt}\right ) \nonumber \\ & =\frac {d}{dt}\frac {dt}{dx}\left ( t\frac {dy}{dt}\right ) \nonumber \\ & =\frac {dt}{dx}\frac {d}{dt}\left ( t\frac {dy}{dt}\right ) \nonumber \\ & =t\frac {d}{dt}\left ( t\frac {dy}{dt}\right ) \nonumber \\ & =t\left ( \frac {dy}{dt}+t\frac {d^{2}y}{dt^{2}}\right ) \tag {3}\end{align}

Substituting (2,3) into (1) gives

\begin{align} at\left ( \frac {dy}{dt}+t\frac {d^{2}y}{dt^{2}}\right ) +bt\frac {dy}{dt}+(ce^{rx}+m)y & =0\nonumber \\ \left ( aty^{\prime }+at^{2}y^{\prime \prime }\right ) +bty^{\prime }+(ct^{r}+m)y & =0\nonumber \\ at^{2}y^{\prime \prime }+\left ( b+a\right ) ty^{\prime }+(ct^{r}+m)y & =0\nonumber \\ t^{2}y^{\prime \prime }+\frac {b+a}{a}ty^{\prime }+\left ( \frac {c}{a}t^{r}+\frac {m}{a}\right ) y & =0\tag {4}\end{align}

Which is Bessel ODE. Comparing the above to the general known Bowman form of Bessel ode which is

\begin{equation} t^{2}y^{\prime \prime }+\left ( 1-2\alpha \right ) ty^{\prime }+\left ( \beta ^{2}\gamma ^{2}t^{2\gamma }-\left ( n^{2}\gamma ^{2}-\alpha ^{2}\right ) \right ) y=0\tag {C}\end{equation}

And now comparing (4) and (C) shows that

\begin{align} \left ( 1-2\alpha \right ) & =\frac {b+a}{a}\tag {5}\\ \beta ^{2}\gamma ^{2} & =\frac {c}{a}\tag {6}\\ 2\gamma & =r\tag {7}\\ \left ( n^{2}\gamma ^{2}-\alpha ^{2}\right ) & =-\frac {m}{a}\tag {8}\end{align}

(5) gives \(\alpha =\frac {1}{2}-\frac {b+a}{2a}\). (7) gives \(\gamma =\frac {r}{2}\). (8) now becomes \(\left ( n^{2}\left ( \frac {r}{2}\right ) ^{2}-\left ( \frac {1}{2}-\frac {b+a}{2a}\right ) ^{2}\right ) =-\frac {m}{a}\) or \(n^{2}=\frac {-\frac {m}{a}+\left ( \frac {1}{2}-\frac {b+a}{2a}\right ) ^{2}}{\left ( \frac {r}{2}\right ) ^{2}}\). Hence \(n=\frac {2}{r}\sqrt {-\frac {m}{a}+\left ( \frac {1}{2}-\frac {b+a}{2a}\right ) ^{2}}\ \)by taking the positive root. And finally (6) gives \(\beta ^{2}=\frac {c}{a\gamma ^{2}}\) or \(\beta =\sqrt {\frac {c}{a}}\frac {1}{\gamma }=\sqrt {\frac {c}{a}}\frac {2}{r}\) (also taking the positive root). Hence

\begin{align*} \alpha & =\frac {1}{2}-\frac {b+a}{2a}\\ n & =\frac {2}{r}\sqrt {-\frac {m}{a}+\left ( \frac {1}{2}-\frac {b+a}{2a}\right ) ^{2}}\\ \beta & =\sqrt {\frac {c}{a}}\frac {2}{r}\\ \gamma & =\frac {r}{2}\end{align*}

But the solution to (C) which is general form of Bessel ode is known and given by

\[ y\left ( t\right ) =t^{\alpha }\left ( c_{1}J_{n}\left ( \beta t^{\gamma }\right ) +c_{2}Y_{n}\left ( \beta t^{\gamma }\right ) \right ) \]

Substituting the above values found into this solution gives

\[ y\left ( t\right ) =t^{\frac {1}{2}-\frac {b+a}{2a}}\left ( c_{1}J_{\frac {2}{r}\sqrt {-\frac {m}{a}+\left ( \frac {1}{2}-\frac {b+a}{2a}\right ) ^{2}}}\left ( \sqrt {\frac {c}{a}}\frac {2}{r}t^{\frac {r}{2}}\right ) +c_{2}Y_{\frac {2}{r}\sqrt {-\frac {m}{a}+\left ( \frac {1}{2}-\frac {b+a}{2a}\right ) ^{2}}}\left ( \sqrt {\frac {c}{a}}\frac {2}{r}t^{\frac {r}{2}}\right ) \right ) \]

Since \(e^{x}=t\) then the above becomes

\begin{align} y\left ( x\right ) & =e^{x\left ( \frac {1}{2}-\frac {b+a}{2a}\right ) }\left ( c_{1}J_{\frac {2}{r}\sqrt {-\frac {m}{a}+\left ( \frac {1}{2}-\frac {b+a}{2a}\right ) ^{2}}}\left ( \sqrt {\frac {c}{a}}\frac {2}{r}e^{x\frac {r}{2}}\right ) +c_{2}Y_{\frac {2}{r}\sqrt {-\frac {m}{a}+\left ( \frac {1}{2}-\frac {b+a}{2a}\right ) ^{2}}}\left ( \sqrt {\frac {c}{a}}\frac {2}{r}e^{x\frac {r}{2}}\right ) \right ) \nonumber \\ & =e^{x\left ( \frac {-b}{2a}\right ) }\left ( c_{1}J_{\frac {2}{r}\sqrt {-\frac {m}{a}+\left ( \frac {-b}{2a}\right ) ^{2}}}\left ( \sqrt {\frac {c}{a}}\frac {2}{r}e^{x\frac {r}{2}}\right ) +c_{2}Y_{\frac {2}{r}\sqrt {-\frac {m}{a}+\left ( \frac {-b}{2a}\right ) ^{2}}}\left ( \sqrt {\frac {c}{a}}\frac {2}{r}e^{x\frac {r}{2}}\right ) \right ) \nonumber \\ & =e^{x\left ( \frac {-b}{2a}\right ) }\left ( c_{1}J_{\frac {2}{r}\sqrt {-\frac {m}{a}+\frac {b^{2}}{4a^{2}}}}\left ( \sqrt {\frac {c}{a}}\frac {2}{r}e^{x\frac {r}{2}}\right ) +c_{2}Y_{\frac {2}{r}\sqrt {-\frac {m}{a}+\frac {b^{2}}{4a^{2}}}}\left ( \sqrt {\frac {c}{a}}\frac {2}{r}e^{x\frac {r}{2}}\right ) \right ) \nonumber \\ & =e^{x\left ( \frac {-b}{2a}\right ) }\left ( c_{1}J_{\frac {2}{r}\sqrt {-\frac {4ma+b^{2}}{4a^{2}}}}\left ( \sqrt {\frac {c}{a}}\frac {2}{r}e^{x\frac {r}{2}}\right ) +c_{2}Y_{\frac {2}{r}\sqrt {-\frac {4ma+b^{2}}{4a^{2}}}}\left ( \sqrt {\frac {c}{a}}\frac {2}{r}e^{x\frac {r}{2}}\right ) \right ) \nonumber \\ & =e^{x\left ( \frac {-b}{2a}\right ) }\left ( c_{1}J_{\frac {1}{ra}\sqrt {-4ma+b^{2}}}\left ( \sqrt {\frac {c}{a}}\frac {2}{r}e^{x\frac {r}{2}}\right ) +c_{2}Y_{\frac {1}{ra}\sqrt {-4ma+b^{2}}}\left ( \sqrt {\frac {c}{a}}\frac {2}{r}e^{x\frac {r}{2}}\right ) \right ) \tag {9}\end{align}

Equation (9) above is the solution to \(ay^{\prime \prime }+by^{\prime }+(ce^{rx}+m)y=0\). Therefore we just need now to compare this form to the ode given and use (9) to obtain the final solution. Let us now apply this to an example for illustration. Given the ode

\[ y^{\prime \prime }+(e^{2x}-4)y=0 \]

Comparing the above to \(ay^{\prime \prime }+by^{\prime }+(ce^{rx}+m)y=0\) shows that \(a=1,b=0,c=1,r=2,m=-4\). Hence the solution (9) becomes

\begin{align*} y\left ( x\right ) & =e^{x\left ( \frac {-b}{2a}\right ) }\left ( c_{1}J_{\frac {1}{ra}\sqrt {-4ma+b^{2}}}\left ( \sqrt {\frac {c}{a}}\frac {2}{r}e^{x\frac {r}{2}}\right ) +c_{2}Y_{\frac {1}{ra}\sqrt {-4ma+b^{2}}}\left ( \sqrt {\frac {c}{a}}\frac {2}{r}e^{x\frac {r}{2}}\right ) \right ) \\ & =c_{1}J_{\frac {1}{2}\sqrt {16}}\left ( e^{x}\right ) +c_{2}Y_{\frac {1}{2}\sqrt {16}}\left ( e^{x}\right ) \\ & =c_{1}J_{2}\left ( e^{x}\right ) +c_{2}Y_{2}\left ( e^{x}\right ) \\ & =c_{1}\operatorname {BesselJ}\left ( 2,e^{x}\right ) +c_{2}\operatorname {BesselY}\left ( 2,e^{x}\right ) \end{align*}

Another example for illustration. Given the ode

\[ y^{\prime \prime }+y^{\prime }+(e^{x}-4)y=0 \]

Comparing the above to \(ay^{\prime \prime }+by^{\prime }+(ce^{rx}+m)y=0\) shows that \(a=1,b=1,c=1,r=1,m=-4\). Hence the solution (9) becomes

\begin{align*} y\left ( x\right ) & =e^{x\left ( \frac {-1}{2}\right ) }\left ( c_{1}J_{\sqrt {16}}\left ( 2e^{x\frac {1}{2}}\right ) +c_{2}Y_{\sqrt {16+1}}\left ( 2e^{x\frac {1}{2}}\right ) \right ) \\ & =e^{\frac {-x}{2}}\left ( c_{1}J_{\sqrt {17}}\left ( 2e^{\frac {x}{2}}\right ) +c_{2}Y_{\sqrt {17}}\left ( 2e^{\frac {x}{2}}\right ) \right ) \end{align*}

Another example for illustration. Given the ode

\[ y^{\prime \prime }+(e^{2x}-n^{2})y=0 \]

Comparing the above to \(ay^{\prime \prime }+by^{\prime }+(ce^{rx}+m)y=0\) shows that \(a=1,b=0,c=1,r=2,m=-n^{2}\). Hence the solution (9) becomes

\begin{align*} y\left ( x\right ) & =e^{x\left ( \frac {-b}{2a}\right ) }\left ( c_{1}J_{\frac {1}{ra}\sqrt {-4ma+b^{2}}}\left ( \sqrt {\frac {c}{a}}\frac {2}{r}e^{x\frac {r}{2}}\right ) +c_{2}Y_{\frac {1}{ra}\sqrt {-4ma+b^{2}}}\left ( \sqrt {\frac {c}{a}}\frac {2}{r}e^{x\frac {r}{2}}\right ) \right ) \\ & =c_{1}J_{\frac {1}{2}\sqrt {-4\left ( -n^{2}\right ) }}\left ( e^{x}\right ) +c_{2}Y_{\frac {1}{2}\sqrt {-4\left ( -n^{2}\right ) }}\left ( e^{x}\right ) \\ & =c_{1}J_{n}\left ( e^{x}\right ) +c_{2}Y_{n}\left ( e^{x}\right ) \\ & =c_{1}\operatorname {BesselJ}\left ( n,e^{x}\right ) +c_{2}\operatorname {BesselY}\left ( n,e^{x}\right ) \end{align*}