5.3 problem Problem 3

Internal problem ID [2206]

Book: Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition, 2015
Section: Chapter 1, First-Order Differential Equations. Section 1.9, Exact Differential Equations. page 91
Problem number: Problem 3.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

Solve \begin {gather*} \boxed {y+3 x^{2}+y^{\prime } x=0} \end {gather*}

Solution by Maple

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

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

\[ y \relax (x ) = \frac {-x^{3}+c_{1}}{x} \]

Solution by Mathematica

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

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

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