Internal
problem
ID
[8716]
Book
:
Own
collection
of
miscellaneous
problems
Section
:
section
1.0
Problem
number
:
4
Date
solved
:
Wednesday, March 05, 2025 at 06:13:26 AM
CAS
classification
:
[_separable]
Solve
Time used: 0.367 (sec)
The ode
is separable as it can be written as
Where
Integrating gives
We now need to find the singular solutions, these are found by finding for what values
for
Now we go over each such singular solution and check if it verifies the ode itself and any initial conditions given. If it does not then the singular solution will not be used.
Therefore the solutions found are
Summary of solutions found
Time used: 0.345 (sec)
To solve an ode of the form
We assume there exists a function
Hence
But since
If the above condition is satisfied, then the original ode is called exact. We still need to determine
Therefore
Comparing (1A) and (2A) shows that
The next step is to determine if the ODE is is exact or not. The ODE is exact when the following condition is satisfied
Using result found above gives
And
Since
Since
Since
The result of integrating gives
And
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
The following equations are now set up to solve for the function
Integrating (1) w.r.t.
Where
But equation (2) says that
Solving equation (5) for
Integrating the above w.r.t
Where
But since
Summary of solutions found
ode:=diff(y(x),x) = (5+sec(x)/x)*(sin(y(x))+y(x)); dsolve(ode,y(x), singsol=all);
Maple trace
`Methods for first order ODEs: --- Trying classification methods --- trying a quadrature trying 1st order linear trying Bernoulli trying separable <- separable successful`
Maple step by step
ode=D[y[x],x] == (5+Sec[x]/x)*(Sin[y[x]]+y[x]); ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq((-5 - 1/(x*cos(x)))*(y(x) + sin(y(x))) + Derivative(y(x), x),0) ics = {} dsolve(ode,func=y(x),ics=ics)