1.2 problem 2

Internal problem ID [3135]

Book: An introduction to the solution and applications of differential equations, J.W. Searl, 1966
Section: Chapter 4, Ex. 4.1
Problem number: 2.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_homogeneous, `class A`], _exact, _rational, [_Abel, `2nd type`, `class A`]]

\[ \boxed {y+\left (-y+x \right ) y^{\prime }=-x} \] With initial conditions \begin {align*} [y \left (0\right ) = 0] \end {align*}

Solution by Maple

Time used: 0.031 (sec). Leaf size: 22

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

\begin{align*} y \left (x \right ) = \left (1+\sqrt {2}\right ) x y \left (x \right ) = -\left (\sqrt {2}-1\right ) x \end{align*}

Solution by Mathematica

Time used: 0.482 (sec). Leaf size: 40

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

\begin{align*} y(x)\to x-\sqrt {2} \sqrt {x^2} y(x)\to \sqrt {2} \sqrt {x^2}+x \end{align*}