1.71 problem 71

1.71.1 Solved as first order Exact ode
1.71.2 Maple step by step solution
1.71.3 Maple trace
1.71.4 Maple dsolve solution
1.71.5 Mathematica DSolve solution

Internal problem ID [9053]
Book : Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section : Chapter 1, linear first order
Problem number : 71
Date solved : Thursday, October 17, 2024 at 01:16:43 PM
CAS classification : [[_1st_order, `_with_symmetry_[F(x),G(x)*y+H(x)]`]]

Solve

\begin{align*} y^{\prime }-\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y+b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}&=0 \end{align*}

1.71.1 Solved as first order Exact ode

Time used: 1.369 (sec)

To solve an ode of the form

\begin{equation} M\left ( x,y\right ) +N\left ( x,y\right ) \frac {dy}{dx}=0\tag {A}\end{equation}

We assume there exists a function \(\phi \left ( x,y\right ) =c\) where \(c\) is constant, that satisfies the ode. Taking derivative of \(\phi \) w.r.t. \(x\) gives

\[ \frac {d}{dx}\phi \left ( x,y\right ) =0 \]

Hence

\begin{equation} \frac {\partial \phi }{\partial x}+\frac {\partial \phi }{\partial y}\frac {dy}{dx}=0\tag {B}\end{equation}

Comparing (A,B) shows that

\begin{align*} \frac {\partial \phi }{\partial x} & =M\\ \frac {\partial \phi }{\partial y} & =N \end{align*}

But since \(\frac {\partial ^{2}\phi }{\partial x\partial y}=\frac {\partial ^{2}\phi }{\partial y\partial x}\) then for the above to be valid, we require that

\[ \frac {\partial M}{\partial y}=\frac {\partial N}{\partial x}\]

If the above condition is satisfied, then the original ode is called exact. We still need to determine \(\phi \left ( x,y\right ) \) but at least we know now that we can do that since the condition \(\frac {\partial ^{2}\phi }{\partial x\partial y}=\frac {\partial ^{2}\phi }{\partial y\partial x}\) is satisfied. If this condition is not satisfied then this method will not work and we have to now look for an integrating factor to force this condition, which might or might not exist. The first step is to write the ODE in standard form to check for exactness, which is

\[ M(x,y) \mathop {\mathrm {d}x}+ N(x,y) \mathop {\mathrm {d}y}=0 \tag {1A} \]

Therefore

\begin{align*} \mathop {\mathrm {d}y} &= \left (\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}\right )\mathop {\mathrm {d}x}\\ \left (-\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}\right ) \mathop {\mathrm {d}x} + \mathop {\mathrm {d}y} &= 0 \tag {2A} \end{align*}

Comparing (1A) and (2A) shows that

\begin{align*} M(x,y) &= -\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}\\ N(x,y) &= 1 \end{align*}

The next step is to determine if the ODE is is exact or not. The ODE is exact when the following condition is satisfied

\[ \frac {\partial M}{\partial y} = \frac {\partial N}{\partial x} \]

Using result found above gives

\begin{align*} \frac {\partial M}{\partial y} &= \frac {\partial }{\partial y} \left (-\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}\right )\\ &= \frac {-4 b_{4} y^{3}-3 b_{3} y^{2}-2 b_{2} y -b_{1}}{\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}\, \left (2 a_{4} x^{4}+2 a_{3} x^{3}+2 a_{2} x^{2}+2 a_{1} x +2 a_{0} \right )} \end{align*}

And

\begin{align*} \frac {\partial N}{\partial x} &= \frac {\partial }{\partial x} \left (1\right )\\ &= 0 \end{align*}

Since \(\frac {\partial M}{\partial y} \neq \frac {\partial N}{\partial x}\), then the ODE is not exact. Since the ODE is not exact, we will try to find an integrating factor to make it exact. Let

\begin{align*} A &= \frac {1}{N} \left (\frac {\partial M}{\partial y} - \frac {\partial N}{\partial x} \right ) \\ &=1\left ( \left ( -\frac {4 b_{4} y^{3}+3 b_{3} y^{2}+2 b_{2} y +b_{1}}{2 \sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}\, \left (a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0} \right )}\right ) - \left (0 \right ) \right ) \\ &=\frac {-4 b_{4} y^{3}-3 b_{3} y^{2}-2 b_{2} y -b_{1}}{\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}\, \left (2 a_{4} x^{4}+2 a_{3} x^{3}+2 a_{2} x^{2}+2 a_{1} x +2 a_{0} \right )} \end{align*}

Since \(A\) depends on \(y\), it can not be used to obtain an integrating factor. We will now try a second method to find an integrating factor. Let

\begin{align*} B &= \frac {1}{M} \left ( \frac {\partial N}{\partial x} - \frac {\partial M}{\partial y} \right ) \\ &=-\frac {1}{\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}}\left ( \left ( 0\right ) - \left (-\frac {4 b_{4} y^{3}+3 b_{3} y^{2}+2 b_{2} y +b_{1}}{2 \sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}\, \left (a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0} \right )} \right ) \right ) \\ &=\frac {-4 b_{4} y^{3}-3 b_{3} y^{2}-2 b_{2} y -b_{1}}{2 b_{4} y^{4}+2 b_{3} y^{3}+2 b_{2} y^{2}+2 b_{1} y +2 b_{0}} \end{align*}

Since \(B\) does not depend on \(x\), it can be used to obtain an integrating factor. Let the integrating factor be \(\mu \). Then

\begin{align*} \mu &= e^{\int B \mathop {\mathrm {d}y}} \\ &= e^{\int \frac {-4 b_{4} y^{3}-3 b_{3} y^{2}-2 b_{2} y -b_{1}}{2 b_{4} y^{4}+2 b_{3} y^{3}+2 b_{2} y^{2}+2 b_{1} y +2 b_{0}}\mathop {\mathrm {d}y} } \end{align*}

The result of integrating gives

\begin{align*} \mu &= e^{-\frac {\ln \left (b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0} \right )}{2} } \\ &= \frac {1}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}} \end{align*}

\(M\) and \(N\) are now multiplied by this integrating factor, giving new \(M\) and new \(N\) which are called \(\overline {M}\) and \(\overline {N}\) so not to confuse them with the original \(M\) and \(N\).

\begin{align*} \overline {M} &=\mu M \\ &= \frac {1}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}}\left (-\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}\right ) \\ &= -\frac {\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}} \end{align*}

And

\begin{align*} \overline {N} &=\mu N \\ &= \frac {1}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}}\left (1\right ) \\ &= \frac {1}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}} \end{align*}

So now a modified ODE is obtained from the original ODE which will be exact and can be solved using the standard method. The modified ODE is

\begin{align*} \overline {M} + \overline {N} \frac { \mathop {\mathrm {d}y}}{\mathop {\mathrm {d}x}} &= 0 \\ \left (-\frac {\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}}\right ) + \left (\frac {1}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}}\right ) \frac { \mathop {\mathrm {d}y}}{\mathop {\mathrm {d}x}} &= 0 \end{align*}

The following equations are now set up to solve for the function \(\phi \left (x,y\right )\)

\begin{align*} \frac {\partial \phi }{\partial x } &= \overline {M}\tag {1} \\ \frac {\partial \phi }{\partial y } &= \overline {N}\tag {2} \end{align*}

Integrating (2) w.r.t. \(y\) gives

\begin{align*} \int \frac {\partial \phi }{\partial y} \mathop {\mathrm {d}y} &= \int \overline {N}\mathop {\mathrm {d}y} \\ \int \frac {\partial \phi }{\partial y} \mathop {\mathrm {d}y} &= \int \frac {1}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}}\mathop {\mathrm {d}y} \\ \tag{3} \phi &= \int \frac {1}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}}d y+ f(x) \\ \end{align*}

Where \(f(x)\) is used for the constant of integration since \(\phi \) is a function of both \(x\) and \(y\). Taking derivative of equation (3) w.r.t \(x\) gives

\begin{equation} \tag{4} \frac {\partial \phi }{\partial x} = 0+f'(x) \end{equation}

But equation (1) says that \(\frac {\partial \phi }{\partial x} = -\frac {\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}}\). Therefore equation (4) becomes

\begin{equation} \tag{5} -\frac {\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}} = 0+f'(x) \end{equation}

Solving equation (5) for \( f'(x)\) gives

\[ f'(x) = -\frac {\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}} \]

Integrating the above w.r.t \(x\) gives

\begin{align*} \int f'(x) \mathop {\mathrm {d}x} &= \int \left ( -\frac {\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}}\right ) \mathop {\mathrm {d}x} \\ f(x) &= \int _{0}^{x}-\frac {\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} \tau ^{4}+a_{3} \tau ^{3}+a_{2} \tau ^{2}+a_{1} \tau +a_{0}}}}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}}d \tau + c_1 \\ \end{align*}

Where \(c_1\) is constant of integration. Substituting result found above for \(f(x)\) into equation (3) gives \(\phi \)

\[ \phi = \int \frac {1}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}}d y +\int _{0}^{x}-\frac {\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} \tau ^{4}+a_{3} \tau ^{3}+a_{2} \tau ^{2}+a_{1} \tau +a_{0}}}}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}}d \tau + c_1 \]

But since \(\phi \) itself is a constant function, then let \(\phi =c_2\) where \(c_2\) is new constant and combining \(c_1\) and \(c_2\) constants into the constant \(c_1\) gives the solution as

\[ c_1 = \int \frac {1}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}}d y +\int _{0}^{x}-\frac {\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}{a_{4} \tau ^{4}+a_{3} \tau ^{3}+a_{2} \tau ^{2}+a_{1} \tau +a_{0}}}}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y +b_{0}}}d \tau \]

1.71.2 Maple step by step solution
\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & \frac {d}{d x}y \left (x \right )-\sqrt {\frac {b_{4} y \left (x \right )^{4}+b_{3} y \left (x \right )^{3}+b_{2} y \left (x \right )^{2}+b_{1} y \left (x \right )+b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}}=0 \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 1 \\ {} & {} & \frac {d}{d x}y \left (x \right ) \\ \bullet & {} & \textrm {Solve for the highest derivative}\hspace {3pt} \\ {} & {} & \frac {d}{d x}y \left (x \right )=\sqrt {\frac {b_{4} y \left (x \right )^{4}+b_{3} y \left (x \right )^{3}+b_{2} y \left (x \right )^{2}+b_{1} y \left (x \right )+b_{0}}{a_{4} x^{4}+a_{3} x^{3}+a_{2} x^{2}+a_{1} x +a_{0}}} \end {array} \]

1.71.3 Maple trace
`Methods for first order ODEs: 
--- Trying classification methods --- 
trying homogeneous types: 
differential order: 1; looking for linear symmetries 
trying exact 
<- exact successful`
 
1.71.4 Maple dsolve solution

Solving time : 0.006 (sec)
Leaf size : 113

dsolve(diff(y(x),x)-((b__4*y(x)^4+b__3*y(x)^3+b__2*y(x)^2+b__1*y(x)+b__0)/(a__4*x^4+a__3*x^3+a__2*x^2+a__1*x+a__0))^(1/2) = 0, 
       y(x),singsol=all)
 
\[ \int _{}^{y}\frac {1}{\sqrt {\textit {\_a}^{4} b_{4} +\textit {\_a}^{3} b_{3} +\textit {\_a}^{2} b_{2} +\textit {\_a} b_{1} +b_{0}}}d \textit {\_a} -\frac {\int _{}^{x}\sqrt {\frac {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y+b_{0}}{\textit {\_a}^{4} a_{4} +\textit {\_a}^{3} a_{3} +\textit {\_a}^{2} a_{2} +\textit {\_a} a_{1} +a_{0}}}d \textit {\_a}}{\sqrt {b_{4} y^{4}+b_{3} y^{3}+b_{2} y^{2}+b_{1} y+b_{0}}}+c_{1} = 0 \]
1.71.5 Mathematica DSolve solution

Solving time : 2.33 (sec)
Leaf size : 2237

DSolve[{D[y[x],x] - Sqrt[(b4*y[x]^4+b3*y[x]^3+b2*y[x]^2+b1*y[x]+b0)/(a4*x^4+a3*x^3+a2*x^2+a1*x+a0)]==0,{}}, 
       y[x],x,IncludeSingularSolutions->True]
 

Too large to display