5.5 problem Problem 5

Internal problem ID [2208]

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 5.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

Solve \begin {gather*} \boxed {2 y x +\left (x^{2}+1\right ) y^{\prime }=0} \end {gather*}

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.031 (sec). Leaf size: 20

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

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