1.22 problem 22

Internal problem ID [1891]

Book: Differential Equations, Nelson, Folley, Coral, 3rd ed, 1964
Section: Exercis 5, page 21
Problem number: 22.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

Solve \begin {gather*} \boxed {2 y+y^{\prime } x=0} \end {gather*} With initial conditions \begin {align*} [y \relax (2) = 1] \end {align*}

Solution by Maple

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

dsolve([x*diff(y(x),x)+2*y(x)=0,y(2) = 1],y(x), singsol=all)
 

\[ y \relax (x ) = \frac {4}{x^{2}} \]

Solution by Mathematica

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

DSolve[{x*y'[x]+2*y[x]==0,y[2]==1},y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to \frac {4}{x^2} \\ \end{align*}