1.191 problem 192

Internal problem ID [8528]

Book: Differential Gleichungen, E. Kamke, 3rd ed. Chelsea Pub. NY, 1948
Section: Chapter 1, linear first order
Problem number: 192.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {\sqrt {a^{2}+x^{2}}\, y^{\prime }+y=\sqrt {a^{2}+x^{2}}-x} \]

Solution by Maple

Time used: 0.0 (sec). Leaf size: 36

dsolve(sqrt(x^2+a^2)*diff(y(x),x) + y(x) - sqrt(x^2+a^2) + x=0,y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {a^{2} \ln \left (x +\sqrt {a^{2}+x^{2}}\right )+c_{1}}{x +\sqrt {a^{2}+x^{2}}} \]

Solution by Mathematica

Time used: 8.215 (sec). Leaf size: 103

DSolve[Sqrt[x^2+a^2]*y'[x] + y[x] - Sqrt[x^2+a^2] + x==0,y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to \frac {1}{2} \left (x-\sqrt {a^2+x^2}\right ) \left (\log \left (1-\frac {x}{\sqrt {a^2+x^2}}\right )-\log \left (\frac {x}{\sqrt {a^2+x^2}}+1\right )\right )+\frac {c_1 \sqrt {1-\frac {x}{\sqrt {a^2+x^2}}}}{\sqrt {\frac {x}{\sqrt {a^2+x^2}}+1}} \]