56.1.46 problem 46

Internal problem ID [8758]
Book : Own collection of miscellaneous problems
Section : section 1.0
Problem number : 46
Date solved : Wednesday, March 05, 2025 at 06:45:56 AM
CAS classification : [_quadrature]

\begin{align*} f^{\prime }&=\frac {1}{f} \end{align*}

Maple. Time used: 0.005 (sec). Leaf size: 23
ode:=diff(f(x),x) = 1/f(x); 
dsolve(ode,f(x), singsol=all);
 
\begin{align*} f &= \sqrt {c_{1} +2 x} \\ f &= -\sqrt {c_{1} +2 x} \\ \end{align*}
Mathematica. Time used: 0.065 (sec). Leaf size: 38
ode=D[ f[x],x]==f[x]^(-1); 
ic={}; 
DSolve[{ode,ic},f[x],x,IncludeSingularSolutions->True]
 
\begin{align*} f(x)\to -\sqrt {2} \sqrt {x+c_1} \\ f(x)\to \sqrt {2} \sqrt {x+c_1} \\ \end{align*}
Sympy. Time used: 0.214 (sec). Leaf size: 22
from sympy import * 
x = symbols("x") 
f = Function("f") 
ode = Eq(Derivative(f(x), x) - 1/f(x),0) 
ics = {} 
dsolve(ode,func=f(x),ics=ics)
 
\[ \left [ f{\left (x \right )} = - \sqrt {C_{1} + 2 x}, \ f{\left (x \right )} = \sqrt {C_{1} + 2 x}\right ] \]