Internal
problem
ID
[8740]
Book
:
Own
collection
of
miscellaneous
problems
Section
:
section
1.0
Problem
number
:
29
Date
solved
:
Friday, February 21, 2025 at 08:26:55 PM
CAS
classification
:
[_quadrature]
Solve
Time used: 0.016 (sec)
Since the ode has the form \(y^{\prime }=f(x)\), then we only need to integrate \(f(x)\).
Summary of solutions found
Time used: 0.150 (sec)
Applying change of variables \(y = u \left (x \right ) x\), then the ode becomes
Which is now solved 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 \(g(u)\) is zero, since we had to divide by this above. Solving \(g(u)=0\) or
for \(u \left (x \right )\) gives
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
Solving for \(u \left (x \right )\) gives
Converting \(u \left (x \right ) = 0\) back to \(y\) gives
Converting \(u \left (x \right ) = \frac {{\mathrm e}^{c_1}}{x}\) back to \(y\) gives
Summary of solutions found
Time used: 0.010 (sec)
Writing the ode as
Which becomes
But the RHS is complete differential because
Hence (2) becomes
Integrating gives
Summary of solutions found
`Methods for first order ODEs: --- Trying classification methods --- trying a quadrature trying 1st order linear <- 1st order linear successful`
Solving time : 0.002
(sec)
Leaf size : 5
dsolve(diff(y(x),x) = 0,y(x),singsol=all)
Solving time : 0.002
(sec)
Leaf size : 7
DSolve[{D[y[x],x]==0,{}},y[x],x,IncludeSingularSolutions->True]
Solving time : 0.026
(sec)
Leaf size : 3
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(Derivative(y(x), x),0) ics = {} dsolve(ode,func=y(x),ics=ics)
Eq(y(x), C1)