29.5.15 problem 131

Internal problem ID [4732]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 5
Problem number : 131
Date solved : Tuesday, March 04, 2025 at 07:12:07 PM
CAS classification : [_separable]

\begin{align*} y^{\prime }&={\mathrm e}^{x} \left (a +b \,{\mathrm e}^{-y}\right ) \end{align*}

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