2.34 problem 34

Internal problem ID [4612]

Book: Engineering Mathematics. By K. A. Stroud. 5th edition. Industrial press Inc. NY. 2001
Section: Program 24. First order differential equations. Further problems 24. page 1068
Problem number: 34.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.043 (sec). Leaf size: 15

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

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