6.28 problem 28

Internal problem ID [148]

Book: Differential equations and linear algebra, 3rd ed., Edwards and Penney
Section: Chapter 1 review problems. Page 78
Problem number: 28.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {y+y^{\prime } x -2 \,{\mathrm e}^{2 x}=0} \end {gather*}

Solution by Maple

Time used: 0.0 (sec). Leaf size: 14

dsolve(y(x)+x*diff(y(x),x) = 2*exp(2*x),y(x), singsol=all)
 

\[ y \relax (x ) = \frac {{\mathrm e}^{2 x}+c_{1}}{x} \]

Solution by Mathematica

Time used: 0.046 (sec). Leaf size: 17

DSolve[y[x]+x*y'[x] == 2*Exp[2*x],y[x],x,IncludeSingularSolutions -> True]
 

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