4.5 problem 5

Internal problem ID [58]

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

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {2 y+y^{\prime } x -3 x=0} \end {gather*} With initial conditions \begin {align*} [y \relax (1) = 5] \end {align*}

Solution by Maple

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

dsolve([2*y(x)+x*diff(y(x),x) = 3*x,y(1) = 5],y(x), singsol=all)
 

\[ y \relax (x ) = \frac {x^{3}+4}{x^{2}} \]

Solution by Mathematica

Time used: 0.023 (sec). Leaf size: 12

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

\begin{align*} y(x)\to \frac {4}{x^2}+x \\ \end{align*}