44.1.25 problem 27

Internal problem ID [6900]
Book : A First Course in Differential Equations with Modeling Applications by Dennis G. Zill. 12 ed. Metric version. 2024. Cengage learning.
Section : Chapter 1. Introduction to differential equations. Exercises 1.1 at page 12
Problem number : 27
Date solved : Wednesday, March 05, 2025 at 02:50:01 AM
CAS classification : [[_linear, `class A`]]

\begin{align*} x y^{\prime }-3 x y&=1 \end{align*}

Maple. Time used: 0.001 (sec). Leaf size: 18
ode:=x*diff(y(x),x)-3*x*y(x) = 1; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \left (-\operatorname {Ei}_{1}\left (3 x \right )+c_{1} \right ) {\mathrm e}^{3 x} \]
Mathematica. Time used: 0.058 (sec). Leaf size: 18
ode=x*D[y[x],x]-3*x*y[x]==1; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to e^{3 x} (\operatorname {ExpIntegralEi}(-3 x)+c_1) \]
Sympy. Time used: 1.167 (sec). Leaf size: 15
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-3*x*y(x) + x*Derivative(y(x), x) - 1,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \left (C_{1} + \operatorname {Ei}{\left (- 3 x \right )}\right ) e^{3 x} \]