1.12 problem 12

Internal problem ID [2046]

Book: Differential equations and linear algebra, Stephen W. Goode, second edition, 2000
Section: 1.4, page 36
Problem number: 12.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

\[ \boxed {\left (x^{2}+1\right ) y^{\prime }+y^{2}+1=0} \] With initial conditions \begin {align*} [y \left (0\right ) = 1] \end {align*}

Solution by Maple

Time used: 0.078 (sec). Leaf size: 11

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

\[ y \left (x \right ) = \cot \left (\arctan \left (x \right )+\frac {\pi }{4}\right ) \]

Solution by Mathematica

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

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

\begin{align*} y(x)\to \cot \left (\arctan (x)+\frac {\pi }{4}\right ) \\ \end{align*}