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]

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

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.26 (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 (\text {ArcTan}(x)+\frac {\pi }{4}\right ) \\ \end{align*}