Internal problem ID [918]
Book: Elementary differential equations with boundary value problems. William F. Trench.
Brooks/Cole 2001
Section: Chapter 2, First order equations. Linear first order. Section 2.1 Page 41
Problem number: 32.
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [_linear]
\[ \boxed {y^{\prime } x -2 y=-x^{2}} \] With initial conditions \begin {align*} [y \left (1\right ) = 1] \end {align*}
✓ Solution by Maple
Time used: 0.015 (sec). Leaf size: 14
dsolve([x*diff(y(x),x)-2*y(x)=-x^2,y(1) = 1],y(x), singsol=all)
\[ y \left (x \right ) = \left (1-\ln \left (x \right )\right ) x^{2} \]
✓ Solution by Mathematica
Time used: 0.026 (sec). Leaf size: 14
DSolve[{x*y'[x]-2*y[x]==-x^2,y[1]==1},y[x],x,IncludeSingularSolutions -> True]
\[ y(x)\to -x^2 (\log (x)-1) \]