15.1.22 problem 22

Internal problem ID [2862]
Book : Differential Equations by Alfred L. Nelson, Karl W. Folley, Max Coral. 3rd ed. DC heath. Boston. 1964
Section : Exercise 5, page 21
Problem number : 22
Date solved : Monday, January 27, 2025 at 06:20:34 AM
CAS classification : [_separable]

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

With initial conditions

\begin{align*} y \left (2\right )&=1 \end{align*}

Solution by Maple

Time used: 0.007 (sec). Leaf size: 9

dsolve([x*diff(y(x),x)+2*y(x)=0,y(2) = 1],y(x), singsol=all)
 
\[ y = \frac {4}{x^{2}} \]

Solution by Mathematica

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

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