10.6.20 problem 20

Internal problem ID [1237]
Book : Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section : Miscellaneous problems, end of chapter 2. Page 133
Problem number : 20
Date solved : Saturday, March 29, 2025 at 10:49:29 PM
CAS classification : [_separable]

\begin{align*} y^{\prime }&={\mathrm e}^{x +y} \end{align*}

Maple. Time used: 0.004 (sec). Leaf size: 13
ode:=diff(y(x),x) = exp(x+y(x)); 
dsolve(ode,y(x), singsol=all);
 
\[ y = \ln \left (-\frac {1}{{\mathrm e}^{x}+c_1}\right ) \]
Mathematica. Time used: 0.761 (sec). Leaf size: 18
ode=D[y[x],x] == Exp[x+y[x]]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to -\log \left (-e^x-c_1\right ) \]
Sympy. Time used: 0.182 (sec). Leaf size: 12
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-exp(x + y(x)) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \log {\left (- \frac {1}{C_{1} + e^{x}} \right )} \]