1.23 problem 23

Internal problem ID [3074]

Book: Advanced Mathematica, Book2, Perkin and Perkin, 1992
Section: Chapter 11.3, page 316
Problem number: 23.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

\[ \boxed {y^{\prime }-{\mathrm e}^{x} \left (y^{2}+1\right )=0} \]

Solution by Maple

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

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

\[ y \left (x \right ) = \tan \left ({\mathrm e}^{x}+c_{1} \right ) \]

Solution by Mathematica

Time used: 0.274 (sec). Leaf size: 26

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

\begin{align*} y(x)\to \tan \left (e^x+c_1\right ) y(x)\to -i y(x)\to i \end{align*}