Internal
problem
ID
[9094]
Book
:
Second
order
enumerated
odes
Section
:
section
1
Problem
number
:
23
Date
solved
:
Friday, February 21, 2025 at 09:10:36 PM
CAS
classification
:
[[_2nd_order, _missing_x]]
Solve
Time used: 0.775 (sec)
This is missing independent variable second order ode. Solved by reduction of order by using substitution which makes the dependent variable \(y\) an independent variable. Using
Then
Hence the ode becomes
Which is now solved as first order ode for \(p(y)\).
In canonical form, the ODE is
This is a Bernoulli ODE.
The standard Bernoulli ODE has the form
Comparing this to (1) shows that
The first step is to divide the above equation by \(p^n \) which gives
The next step is use the substitution \(v = p^{1-n}\) in equation (3) which generates a new ODE in \(v \left (y \right )\) which will be linear and can be easily solved using an integrating factor. Backsubstitution then gives the solution \(p(y)\) which is what we want.
This method is now applied to the ODE at hand. Comparing the ODE (1) With (2) Shows that
Dividing both sides of ODE (1) by \(p^n=\frac {1}{p}\) gives
Let
Taking derivative of equation (5) w.r.t \(y\) gives
Substituting equations (5) and (6) into equation (4) gives
The above now is a linear ODE in \(v \left (y \right )\) which is now solved.
In canonical form a linear first order is
Comparing the above to the given ode shows that
The integrating factor \(\mu \) is
The ode becomes
Integrating gives
Dividing throughout by the integrating factor \({\mathrm e}^{2 y}\) gives the final solution
The substitution \(v = p^{1-n}\) is now used to convert the above solution back to \(p\) which results in
Solving for \(p\) gives
For solution (1) found earlier, since \(p=y^{\prime }\) then we now have a new first order ode to solve which is
Unable to integrate (or intergal too complicated), and since no initial conditions are given, then the result can be written as
Singular solutions are found by solving
for \(y\). This is because we had to divide by this in the above step. This gives the following singular solution(s), which also have to satisfy the given ODE.
For solution (2) found earlier, since \(p=y^{\prime }\) then we now have a new first order ode to solve which is
Unable to integrate (or intergal too complicated), and since no initial conditions are given, then the result can be written as
Singular solutions are found by solving
for \(y\). This is because we had to divide by this in the above step. This gives the following singular solution(s), which also have to satisfy the given ODE.
Will add steps showing solving for IC soon.
The solution
was found not to satisfy the ode or the IC. Hence it is removed.
Summary of solutions found
`Methods for second order ODEs: --- Trying classification methods --- trying 2nd order Liouville trying 2nd order WeierstrassP trying 2nd order JacobiSN differential order: 2; trying a linearization to 3rd order trying 2nd order ODE linearizable_by_differentiation trying 2nd order, 2 integrating factors of the form mu(x,y) trying differential order: 2; missing variables `, `-> Computing symmetries using: way = 3 `, `-> Computing symmetries using: way = exp_sym -> Calling odsolve with the ODE`, (diff(_b(_a), _a))*_b(_a)+_b(_a)^2+_a = 0, _b(_a)` *** Sublevel 2 *** Methods for first order ODEs: --- Trying classification methods --- trying a quadrature trying 1st order linear trying Bernoulli <- Bernoulli successful <- differential order: 2; canonical coordinates successful <- differential order 2; missing variables successful`
Solving time : 0.020
(sec)
Leaf size : 61
dsolve(diff(diff(y(x),x),x)+diff(y(x),x)^2+y(x) = 0,y(x),singsol=all)
Solving time : 0.823
(sec)
Leaf size : 272
DSolve[{D[y[x],{x,2}]+(D[y[x],x])^2+y[x]==0,{}},y[x],x,IncludeSingularSolutions->True]
Solving time : 0.000
(sec)
Leaf size : 0
Python version: 3.13.1 (main, Dec 4 2024, 18:05:56) [GCC 14.2.1 20240910] Sympy version 1.13.3
from sympy import * x = symbols("x") y = Function("y") ode = Eq(y(x) + Derivative(y(x), x)**2 + Derivative(y(x), (x, 2)),0) ics = {} dsolve(ode,func=y(x),ics=ics)
NotImplementedError : The given ODE -sqrt(-y(x) - Derivative(y(x), (x, 2))) + Derivative(y(x), x) cannot be solved by the factorable group method