Internal problem ID [14349]
Internal file name [OUTPUT/14030_Monday_March_11_2024_01_30_07_AM_46790618/index.tex
]
Book: INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton.
Fourth edition 2014. ElScAe. 2014
Section: Chapter 2. First Order Equations. Exercises 2.5, page 64
Problem number: 7.
ODE order: 1.
ODE degree: 1.
The type(s) of ODE detected by this program : "riccati", "bernoulli", "homogeneousTypeD2", "exactWithIntegrationFactor", "first_order_ode_lie_symmetry_lookup"
Maple gives the following as the ode type
[[_homogeneous, `class D`], _rational, _Bernoulli]
\[ \boxed {y^{\prime }-\frac {y}{t}-t y^{2}=0} \]
Using the change of variables \(y = u \left (t \right ) t\) on the above ode results in new ode in \(u \left (t \right )\) \begin {align*} u^{\prime }\left (t \right ) t -t^{3} u \left (t \right )^{2} = 0 \end {align*}
In canonical form the ODE is \begin {align*} u' &= F(t,u)\\ &= f( t) g(u)\\ &= u^{2} t^{2} \end {align*}
Where \(f(t)=t^{2}\) and \(g(u)=u^{2}\). Integrating both sides gives \begin{align*} \frac {1}{u^{2}} \,du &= t^{2} \,d t \\ \int { \frac {1}{u^{2}} \,du} &= \int {t^{2} \,d t} \\ -\frac {1}{u}&=\frac {t^{3}}{3}+c_{2} \\ \end{align*} The solution is \[ -\frac {1}{u \left (t \right )}-\frac {t^{3}}{3}-c_{2} = 0 \] Replacing \(u(t)\) in the above solution by \(\frac {y}{t}\) results in the solution for \(y\) in implicit form \begin {align*} -\frac {t}{y}-\frac {t^{3}}{3}-c_{2} = 0\\ -\frac {t}{y}-\frac {t^{3}}{3}-c_{2} = 0 \end {align*}
Summary
The solution(s) found are the following \begin{align*} \tag{1} -\frac {t}{y}-\frac {t^{3}}{3}-c_{2} &= 0 \\ \end{align*}
Verification of solutions
\[ -\frac {t}{y}-\frac {t^{3}}{3}-c_{2} = 0 \] Verified OK.
Writing the ode as \begin {align*} y^{\prime }&=\frac {y \left (y \,t^{2}+1\right )}{t}\\ y^{\prime }&= \omega \left ( t,y\right ) \end {align*}
The condition of Lie symmetry is the linearized PDE given by \begin {align*} \eta _{t}+\omega \left ( \eta _{y}-\xi _{t}\right ) -\omega ^{2}\xi _{y}-\omega _{t}\xi -\omega _{y}\eta =0\tag {A} \end {align*}
The type of this ode is known. It is of type Bernoulli
. Therefore we do not need
to solve the PDE (A), and can just use the lookup table shown below to find \(\xi ,\eta \)
ODE class |
Form |
\(\xi \) |
\(\eta \) |
linear ode |
\(y'=f(x) y(x) +g(x)\) |
\(0\) |
\(e^{\int fdx}\) |
separable ode |
\(y^{\prime }=f\left ( x\right ) g\left ( y\right ) \) |
\(\frac {1}{f}\) |
\(0\) |
quadrature ode |
\(y^{\prime }=f\left ( x\right ) \) |
\(0\) |
\(1\) |
quadrature ode |
\(y^{\prime }=g\left ( y\right ) \) |
\(1\) |
\(0\) |
homogeneous ODEs of Class A |
\(y^{\prime }=f\left ( \frac {y}{x}\right ) \) |
\(x\) |
\(y\) |
homogeneous ODEs of Class C |
\(y^{\prime }=\left ( a+bx+cy\right ) ^{\frac {n}{m}}\) |
\(1\) |
\(-\frac {b}{c}\) |
homogeneous class D |
\(y^{\prime }=\frac {y}{x}+g\left ( x\right ) F\left (\frac {y}{x}\right ) \) |
\(x^{2}\) |
\(xy\) |
First order special form ID 1 |
\(y^{\prime }=g\left ( x\right ) e^{h\left (x\right ) +by}+f\left ( x\right ) \) |
\(\frac {e^{-\int bf\left ( x\right )dx-h\left ( x\right ) }}{g\left ( x\right ) }\) |
\(\frac {f\left ( x\right )e^{-\int bf\left ( x\right ) dx-h\left ( x\right ) }}{g\left ( x\right ) }\) |
polynomial type ode |
\(y^{\prime }=\frac {a_{1}x+b_{1}y+c_{1}}{a_{2}x+b_{2}y+c_{2}}\) |
\(\frac {a_{1}b_{2}x-a_{2}b_{1}x-b_{1}c_{2}+b_{2}c_{1}}{a_{1}b_{2}-a_{2}b_{1}}\) |
\(\frac {a_{1}b_{2}y-a_{2}b_{1}y-a_{1}c_{2}-a_{2}c_{1}}{a_{1}b_{2}-a_{2}b_{1}}\) |
Bernoulli ode |
\(y^{\prime }=f\left ( x\right ) y+g\left ( x\right ) y^{n}\) |
\(0\) |
\(e^{-\int \left ( n-1\right ) f\left ( x\right ) dx}y^{n}\) |
Reduced Riccati |
\(y^{\prime }=f_{1}\left ( x\right ) y+f_{2}\left ( x\right )y^{2}\) |
\(0\) |
\(e^{-\int f_{1}dx}\) |
|
|||
|
|||
The above table shows that \begin {align*} \xi \left (t,y\right ) &=0\\ \tag {A1} \eta \left (t,y\right ) &=\frac {y^{2}}{t} \end {align*}
The next step is to determine the canonical coordinates \(R,S\). The canonical coordinates map \(\left ( t,y\right ) \to \left ( R,S \right )\) where \(\left ( R,S \right )\) are the canonical coordinates which make the original ode become a quadrature and hence solved by integration.
The characteristic pde which is used to find the canonical coordinates is \begin {align*} \frac {d t}{\xi } &= \frac {d y}{\eta } = dS \tag {1} \end {align*}
The above comes from the requirements that \(\left ( \xi \frac {\partial }{\partial t} + \eta \frac {\partial }{\partial y}\right ) S(t,y) = 1\). Starting with the first pair of ode’s in (1) gives an ode to solve for the independent variable \(R\) in the canonical coordinates, where \(S(R)\). Since \(\xi =0\) then in this special case \begin {align*} R = t \end {align*}
\(S\) is found from \begin {align*} S &= \int { \frac {1}{\eta }} dy\\ &= \int { \frac {1}{\frac {y^{2}}{t}}} dy \end {align*}
Which results in \begin {align*} S&= -\frac {t}{y} \end {align*}
Now that \(R,S\) are found, we need to setup the ode in these coordinates. This is done by evaluating \begin {align*} \frac {dS}{dR} &= \frac { S_{t} + \omega (t,y) S_{y} }{ R_{t} + \omega (t,y) R_{y} }\tag {2} \end {align*}
Where in the above \(R_{t},R_{y},S_{t},S_{y}\) are all partial derivatives and \(\omega (t,y)\) is the right hand side of the original ode given by \begin {align*} \omega (t,y) &= \frac {y \left (y \,t^{2}+1\right )}{t} \end {align*}
Evaluating all the partial derivatives gives \begin {align*} R_{t} &= 1\\ R_{y} &= 0\\ S_{t} &= -\frac {1}{y}\\ S_{y} &= \frac {t}{y^{2}} \end {align*}
Substituting all the above in (2) and simplifying gives the ode in canonical coordinates. \begin {align*} \frac {dS}{dR} &= t^{2}\tag {2A} \end {align*}
We now need to express the RHS as function of \(R\) only. This is done by solving for \(t,y\) in terms of \(R,S\) from the result obtained earlier and simplifying. This gives \begin {align*} \frac {dS}{dR} &= R^{2} \end {align*}
The above is a quadrature ode. This is the whole point of Lie symmetry method. It converts an ode, no matter how complicated it is, to one that can be solved by integration when the ode is in the canonical coordiates \(R,S\). Integrating the above gives \begin {align*} S \left (R \right ) = \frac {R^{3}}{3}+c_{1}\tag {4} \end {align*}
To complete the solution, we just need to transform (4) back to \(t,y\) coordinates. This results in \begin {align*} -\frac {t}{y} = \frac {t^{3}}{3}+c_{1} \end {align*}
Which simplifies to \begin {align*} -\frac {t}{y} = \frac {t^{3}}{3}+c_{1} \end {align*}
Which gives \begin {align*} y = -\frac {3 t}{t^{3}+3 c_{1}} \end {align*}
The following diagram shows solution curves of the original ode and how they transform in the canonical coordinates space using the mapping shown.
Original ode in \(t,y\) coordinates |
Canonical coordinates transformation |
ODE in canonical coordinates \((R,S)\) |
\( \frac {dy}{dt} = \frac {y \left (y \,t^{2}+1\right )}{t}\) |
|
\( \frac {d S}{d R} = R^{2}\) |
|
\(\!\begin {aligned} R&= t\\ S&= -\frac {t}{y} \end {aligned} \) |
|
Summary
The solution(s) found are the following \begin{align*} \tag{1} y &= -\frac {3 t}{t^{3}+3 c_{1}} \\ \end{align*}
Verification of solutions
\[ y = -\frac {3 t}{t^{3}+3 c_{1}} \] Verified OK.
In canonical form, the ODE is \begin {align*} y' &= F(t,y)\\ &= \frac {y \left (y \,t^{2}+1\right )}{t} \end {align*}
This is a Bernoulli ODE. \[ y' = \frac {1}{t} y +t y^{2} \tag {1} \] The standard Bernoulli ODE has the form \[ y' = f_0(t)y+f_1(t)y^n \tag {2} \] The first step is to divide the above equation by \(y^n \) which gives \[ \frac {y'}{y^n} = f_0(t) y^{1-n} +f_1(t) \tag {3} \] The next step is use the substitution \(w = y^{1-n}\) in equation (3) which generates a new ODE in \(w \left (t \right )\) which will be linear and can be easily solved using an integrating factor. Backsubstitution then gives the solution \(y(t)\) which is what we want.
This method is now applied to the ODE at hand. Comparing the ODE (1) With (2) Shows that \begin {align*} f_0(t)&=\frac {1}{t}\\ f_1(t)&=t\\ n &=2 \end {align*}
Dividing both sides of ODE (1) by \(y^n=y^{2}\) gives \begin {align*} y'\frac {1}{y^{2}} &= \frac {1}{t y} +t \tag {4} \end {align*}
Let \begin {align*} w &= y^{1-n} \\ &= \frac {1}{y} \tag {5} \end {align*}
Taking derivative of equation (5) w.r.t \(t\) gives \begin {align*} w' &= -\frac {1}{y^{2}}y' \tag {6} \end {align*}
Substituting equations (5) and (6) into equation (4) gives \begin {align*} -w^{\prime }\left (t \right )&= \frac {w \left (t \right )}{t}+t\\ w' &= -\frac {w}{t}-t \tag {7} \end {align*}
The above now is a linear ODE in \(w \left (t \right )\) which is now solved.
Entering Linear first order ODE solver. In canonical form a linear first order is \begin {align*} w^{\prime }\left (t \right ) + p(t)w \left (t \right ) &= q(t) \end {align*}
Where here \begin {align*} p(t) &=\frac {1}{t}\\ q(t) &=-t \end {align*}
Hence the ode is \begin {align*} w^{\prime }\left (t \right )+\frac {w \left (t \right )}{t} = -t \end {align*}
The integrating factor \(\mu \) is \begin{align*} \mu &= {\mathrm e}^{\int \frac {1}{t}d t} \\ &= t \\ \end{align*} The ode becomes \begin {align*} \frac {\mathop {\mathrm {d}}}{ \mathop {\mathrm {d}t}}\left ( \mu w\right ) &= \left (\mu \right ) \left (-t\right ) \\ \frac {\mathop {\mathrm {d}}}{ \mathop {\mathrm {d}t}} \left (t w\right ) &= \left (t\right ) \left (-t\right )\\ \mathrm {d} \left (t w\right ) &= \left (-t^{2}\right )\, \mathrm {d} t \end {align*}
Integrating gives \begin {align*} t w &= \int {-t^{2}\,\mathrm {d} t}\\ t w &= -\frac {t^{3}}{3} + c_{1} \end {align*}
Dividing both sides by the integrating factor \(\mu =t\) results in \begin {align*} w \left (t \right ) &= -\frac {t^{2}}{3}+\frac {c_{1}}{t} \end {align*}
Replacing \(w\) in the above by \(\frac {1}{y}\) using equation (5) gives the final solution. \begin {align*} \frac {1}{y} = -\frac {t^{2}}{3}+\frac {c_{1}}{t} \end {align*}
Or \begin {align*} y = \frac {1}{-\frac {t^{2}}{3}+\frac {c_{1}}{t}} \end {align*}
Which is simplified to \[ y = -\frac {3 t}{t^{3}-3 c_{1}} \]
The solution(s) found are the following \begin{align*} \tag{1} y &= -\frac {3 t}{t^{3}-3 c_{1}} \\ \end{align*}
Verification of solutions
\[ y = -\frac {3 t}{t^{3}-3 c_{1}} \] Verified OK.
Entering Exact first order ODE solver. (Form one type)
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(t,y) \mathop {\mathrm {d}t}+ N(t,y) \mathop {\mathrm {d}y}=0 \tag {1A} \] Therefore \begin {align*} \left (t\right )\mathop {\mathrm {d}y} &= \left (y \left (y \,t^{2}+1\right )\right )\mathop {\mathrm {d}t}\\ \left (-y \left (y \,t^{2}+1\right )\right )\mathop {\mathrm {d}t} + \left (t\right )\mathop {\mathrm {d}y} &= 0 \tag {2A} \end {align*}
Comparing (1A) and (2A) shows that \begin {align*} M(t,y) &= -y \left (y \,t^{2}+1\right )\\ N(t,y) &= t \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 t} \] Using result found above gives \begin {align*} \frac {\partial M}{\partial y} &= \frac {\partial }{\partial y} \left (-y \left (y \,t^{2}+1\right )\right )\\ &= -2 y \,t^{2}-1 \end {align*}
And \begin {align*} \frac {\partial N}{\partial t} &= \frac {\partial }{\partial t} \left (t\right )\\ &= 1 \end {align*}
Since \(\frac {\partial M}{\partial y} \neq \frac {\partial N}{\partial t}\), 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 t} \right ) \\ &=\frac {1}{t}\left ( \left ( -2 y \,t^{2}-1\right ) - \left (1 \right ) \right ) \\ &=\frac {-2 y \,t^{2}-2}{t} \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 t} - \frac {\partial M}{\partial y} \right ) \\ &=-\frac {1}{y \left (y \,t^{2}+1\right )}\left ( \left ( 1\right ) - \left (-2 y \,t^{2}-1 \right ) \right ) \\ &=-\frac {2}{y} \end {align*}
Since \(B\) does not depend on \(t\), 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 {2}{y}\mathop {\mathrm {d}y} } \end {align*}
The result of integrating gives \begin {align*} \mu &= e^{-2 \ln \left (y \right ) } \\ &= \frac {1}{y^{2}} \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}{y^{2}}\left (-y \left (y \,t^{2}+1\right )\right ) \\ &= \frac {-y \,t^{2}-1}{y} \end {align*}
And \begin {align*} \overline {N} &=\mu N \\ &= \frac {1}{y^{2}}\left (t\right ) \\ &= \frac {t}{y^{2}} \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}t}} &= 0 \\ \left (\frac {-y \,t^{2}-1}{y}\right ) + \left (\frac {t}{y^{2}}\right ) \frac { \mathop {\mathrm {d}y}}{\mathop {\mathrm {d}t}} &= 0 \end {align*}
The following equations are now set up to solve for the function \(\phi \left (t,y\right )\) \begin {align*} \frac {\partial \phi }{\partial t } &= \overline {M}\tag {1} \\ \frac {\partial \phi }{\partial y } &= \overline {N}\tag {2} \end {align*}
Integrating (1) w.r.t. \(t\) gives \begin{align*} \int \frac {\partial \phi }{\partial t} \mathop {\mathrm {d}t} &= \int \overline {M}\mathop {\mathrm {d}t} \\ \int \frac {\partial \phi }{\partial t} \mathop {\mathrm {d}t} &= \int \frac {-y \,t^{2}-1}{y}\mathop {\mathrm {d}t} \\ \tag{3} \phi &= -\frac {t \left (y \,t^{2}+3\right )}{3 y}+ f(y) \\ \end{align*} Where \(f(y)\) is used for the constant of integration since \(\phi \) is a function of both \(t\) and \(y\). Taking derivative of equation (3) w.r.t \(y\) gives \begin{align*} \tag{4} \frac {\partial \phi }{\partial y} &= -\frac {t^{3}}{3 y}+\frac {t \left (y \,t^{2}+3\right )}{3 y^{2}}+f'(y) \\ &=\frac {t}{y^{2}}+f'(y) \\ \end{align*} But equation (2) says that \(\frac {\partial \phi }{\partial y} = \frac {t}{y^{2}}\). Therefore equation (4) becomes \begin{equation} \tag{5} \frac {t}{y^{2}} = \frac {t}{y^{2}}+f'(y) \end{equation} Solving equation (5) for \( f'(y)\) gives \[ f'(y) = 0 \] Therefore \[ f(y) = c_{1} \] Where \(c_{1}\) is constant of integration. Substituting this result for \(f(y)\) into equation (3) gives \(\phi \) \[ \phi = -\frac {t \left (y \,t^{2}+3\right )}{3 y}+ 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 new constant \(c_{1}\) gives the solution as \[ c_{1} = -\frac {t \left (y \,t^{2}+3\right )}{3 y} \] The solution becomes\[ y = -\frac {3 t}{t^{3}+3 c_{1}} \]
The solution(s) found are the following \begin{align*} \tag{1} y &= -\frac {3 t}{t^{3}+3 c_{1}} \\ \end{align*}
Verification of solutions
\[ y = -\frac {3 t}{t^{3}+3 c_{1}} \] Verified OK.
In canonical form the ODE is \begin {align*} y' &= F(t,y)\\ &= \frac {y \left (y \,t^{2}+1\right )}{t} \end {align*}
This is a Riccati ODE. Comparing the ODE to solve \[ y' = \frac {y}{t}+t \,y^{2} \] With Riccati ODE standard form \[ y' = f_0(t)+ f_1(t)y+f_2(t)y^{2} \] Shows that \(f_0(t)=0\), \(f_1(t)=\frac {1}{t}\) and \(f_2(t)=t\). Let \begin {align*} y &= \frac {-u'}{f_2 u} \\ &= \frac {-u'}{t u} \tag {1} \end {align*}
Using the above substitution in the given ODE results (after some simplification)in a second order ODE to solve for \(u(x)\) which is \begin {align*} f_2 u''(t) -\left ( f_2' + f_1 f_2 \right ) u'(t) + f_2^2 f_0 u(t) &= 0 \tag {2} \end {align*}
But \begin {align*} f_2' &=1\\ f_1 f_2 &=1\\ f_2^2 f_0 &=0 \end {align*}
Substituting the above terms back in equation (2) gives \begin {align*} t u^{\prime \prime }\left (t \right )-2 u^{\prime }\left (t \right ) &=0 \end {align*}
Solving the above ODE (this ode solved using Maple, not this program), gives
\[ u \left (t \right ) = c_{2} t^{3}+c_{1} \] The above shows that \[ u^{\prime }\left (t \right ) = 3 c_{2} t^{2} \] Using the above in (1) gives the solution \[ y = -\frac {3 c_{2} t}{c_{2} t^{3}+c_{1}} \] Dividing both numerator and denominator by \(c_{1}\) gives, after renaming the constant \(\frac {c_{2}}{c_{1}}=c_{3}\) the following solution
\[ y = -\frac {3 t}{t^{3}+c_{3}} \]
The solution(s) found are the following \begin{align*} \tag{1} y &= -\frac {3 t}{t^{3}+c_{3}} \\ \end{align*}
Verification of solutions
\[ y = -\frac {3 t}{t^{3}+c_{3}} \] Verified OK.
\[ \begin {array}{lll} & {} & \textrm {Let's solve}\hspace {3pt} \\ {} & {} & y^{\prime }-\frac {y}{t}-t y^{2}=0 \\ \bullet & {} & \textrm {Highest derivative means the order of the ODE is}\hspace {3pt} 1 \\ {} & {} & y^{\prime } \\ \bullet & {} & \textrm {Solve for the highest derivative}\hspace {3pt} \\ {} & {} & y^{\prime }=\frac {y}{t}+t y^{2} \end {array} \]
Maple trace
`Methods for first order ODEs: --- Trying classification methods --- trying a quadrature trying 1st order linear trying Bernoulli <- Bernoulli successful`
✓ Solution by Maple
Time used: 0.0 (sec). Leaf size: 16
dsolve(diff(y(t),t)-1/t*y(t)=t*y(t)^2,y(t), singsol=all)
\[ y \left (t \right ) = -\frac {3 t}{t^{3}-3 c_{1}} \]
✓ Solution by Mathematica
Time used: 0.131 (sec). Leaf size: 23
DSolve[y'[t]-1/t*y[t]==t*y[t]^2,y[t],t,IncludeSingularSolutions -> True]
\begin{align*} y(t)\to -\frac {3 t}{t^3-3 c_1} \\ y(t)\to 0 \\ \end{align*}