38.4.32 problem 12 (b)

Internal problem ID [8331]
Book : A First Course in Differential Equations with Modeling Applications by Dennis G. Zill. 12 ed. Metric version. 2024. Cengage learning.
Section : Chapter 2. First order differential equations. Section 2.1 Solution curves without a solution. Exercises 2.1 at page 44
Problem number : 12 (b)
Date solved : Tuesday, September 30, 2025 at 05:26:45 PM
CAS classification : [_linear]

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

With initial conditions

\begin{align*} y \left (\frac {3}{2}\right )&=0 \\ \end{align*}
Maple. Time used: 0.006 (sec). Leaf size: 13
ode:=diff(y(x),x) = 1-y(x)/x; 
ic:=[y(3/2) = 0]; 
dsolve([ode,op(ic)],y(x), singsol=all);
 
\[ y = \frac {x}{2}-\frac {9}{8 x} \]
Mathematica. Time used: 0.015 (sec). Leaf size: 18
ode=D[y[x],x]==1-y[x]/x; 
ic={y[3/2]==0}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \frac {x}{2}-\frac {9}{8 x} \end{align*}
Sympy. Time used: 0.102 (sec). Leaf size: 10
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(Derivative(y(x), x) - 1 + y(x)/x,0) 
ics = {y(3/2): 0} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {x}{2} - \frac {9}{8 x} \]