4.18 problem 18

Internal problem ID [71]

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

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {y^{\prime } x -x^{3} \cos \relax (x )-2 y=0} \end {gather*}

Solution by Maple

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

dsolve(x*diff(y(x),x) = x^3*cos(x)+2*y(x),y(x), singsol=all)
 

\[ y \relax (x ) = \left (\sin \relax (x )+c_{1}\right ) x^{2} \]

Solution by Mathematica

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

DSolve[x*y'[x]== x^3*Cos[x]+2*y[x],y[x],x,IncludeSingularSolutions -> True]
 

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