24.1.7 problem 2(a)

Internal problem ID [4196]
Book : Elementary Differential equations, Chaundy, 1969
Section : Exercises 3, page 60
Problem number : 2(a)
Date solved : Monday, January 27, 2025 at 08:41:49 AM
CAS classification : [_linear]

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

Solution by Maple

Time used: 0.001 (sec). Leaf size: 13

dsolve(x*diff(y(x),x)+y(x)=x,y(x), singsol=all)
 
\[ y \left (x \right ) = \frac {x}{2}+\frac {c_{1}}{x} \]

Solution by Mathematica

Time used: 0.026 (sec). Leaf size: 17

DSolve[x*D[y[x],x]+y[x]==x,y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to \frac {x}{2}+\frac {c_1}{x} \]