69.1.71 problem 110

Internal problem ID [14145]
Book : DIFFERENTIAL and INTEGRAL CALCULUS. VOL I. by N. PISKUNOV. MIR PUBLISHERS, Moscow 1969.
Section : Chapter 8. Differential equations. Exercises page 595
Problem number : 110
Date solved : Wednesday, March 05, 2025 at 10:36:43 PM
CAS classification : [_linear]

\begin{align*} y^{\prime }&=\frac {2 y}{x}-\sqrt {3} \end{align*}

Maple. Time used: 0.001 (sec). Leaf size: 13
ode:=diff(y(x),x) = 2*y(x)/x-3^(1/2); 
dsolve(ode,y(x), singsol=all);
 
\[ y = \left (c_{1} x +\sqrt {3}\right ) x \]
Mathematica. Time used: 0.039 (sec). Leaf size: 17
ode=D[y[x],x]==2*y[x]/x-Sqrt[3]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to x \left (\sqrt {3}+c_1 x\right ) \]
Sympy. Time used: 0.226 (sec). Leaf size: 12
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(Derivative(y(x), x) + sqrt(3) - 2*y(x)/x,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = x \left (C_{1} x + \sqrt {3}\right ) \]