Internal problem ID [68]
Book: Differential equations and linear algebra, 3rd ed., Edwards and Penney
Section: Section 1.5. Linear first order equations. Page 56
Problem number: 15.
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [_separable]
\[ \boxed {2 y x +y^{\prime }=x} \] With initial conditions \begin {align*} [y \left (0\right ) = -2] \end {align*}
✓ Solution by Maple
Time used: 0.015 (sec). Leaf size: 14
dsolve([2*x*y(x)+diff(y(x),x) = x,y(0) = -2],y(x), singsol=all)
\[ y \left (x \right ) = \frac {1}{2}-\frac {5 \,{\mathrm e}^{-x^{2}}}{2} \]
✓ Solution by Mathematica
Time used: 0.039 (sec). Leaf size: 20
DSolve[{2*x*y[x]+y'[x] == x,y[0]==-2},y[x],x,IncludeSingularSolutions -> True]
\[ y(x)\to \frac {1}{2}-\frac {5 e^{-x^2}}{2} \]