87.2.2 problem 2

Internal problem ID [23237]
Book : Ordinary differential equations with modern applications. Ladas, G. E. and Finizio, N. Wadsworth Publishing. California. 1978. ISBN 0-534-00552-7. QA372.F56
Section : Chapter 1. Elementary methods. First order differential equations. Exercise at page 17
Problem number : 2
Date solved : Saturday, October 04, 2025 at 05:35:57 PM
CAS classification : [_separable]

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

With initial conditions

\begin{align*} y \left (0\right )&=1 \\ \end{align*}
Maple
ode:=x*diff(y(x),x)+y(x) = 3; 
ic:=[y(0) = 1]; 
dsolve([ode,op(ic)],y(x), singsol=all);
 
\[ \text {No solution found} \]
Mathematica
ode=x*D[y[x],x]+y[x]==3; 
ic={y[0]==1}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 

Not solved

Sympy. Time used: 0.105 (sec). Leaf size: 3
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), x) + y(x) - 3,0) 
ics = {y(0): 1} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = 3 \]