4.9 problem 9

Internal problem ID [62]

Book: Differential equations and linear algebra, 3rd ed., Edwards and Penney
Section: Section 1.5. Linear first order equations. Page 56
Problem number: 9.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

\[ y \left (x \right ) = \left (\ln \left (x \right )+7\right ) x \]

Solution by Mathematica

Time used: 0.021 (sec). Leaf size: 11

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

\[ y(x)\to x (\log (x)+7) \]