2.5.3 Problem 4

Solved using first_order_ode_quadrature
Maple
Mathematica
Sympy

Internal problem ID [18490]
Book : Elementary Differential Equations. By Thornton C. Fry. D Van Nostrand. NY. First Edition (1929)
Section : Chapter IV. Methods of solution: First order equations. section 32. Problems at page 89
Problem number : 4
Date solved : Monday, March 31, 2025 at 05:37:25 PM
CAS classification : [_quadrature]

Solved using first_order_ode_quadrature

Time used: 0.100 (sec)

Solve

y=ezy

Since the ode has the form y=f(z), then we only need to integrate f(z).

dy=LambertW(ez)dzy=LambertW(ez)+LambertW(ez)22+c1
Figure 2.52: Slope field y=ezy

Summary of solutions found

y=LambertW(ez)+LambertW(ez)22+c1
Maple. Time used: 0.004 (sec). Leaf size: 16
ode:=diff(y(z),z) = exp(z-diff(y(z),z)); 
dsolve(ode,y(z), singsol=all);
 
y=LambertW(ez)+LambertW(ez)22+c1

Maple trace

Methods for first order ODEs: 
-> Solving 1st order ODE of high degree, 1st attempt 
trying 1st order WeierstrassP solution for high degree ODE 
trying 1st order WeierstrassPPrime solution for high degree ODE 
trying 1st order JacobiSN solution for high degree ODE 
trying 1st order ODE linearizable_by_differentiation 
trying differential order: 1; missing variables 
<- differential order: 1; missing  y(x)  successful
 

Maple step by step

Let’s solveddzy(z)=ezddzy(z)Highest derivative means the order of the ODE is1ddzy(z)Solve for the highest derivativeddzy(z)=LambertW(ez)Integrate both sides with respect toz(ddzy(z))dz=LambertW(ez)dz+C1Evaluate integraly(z)=LambertW(ez)+LambertW(ez)22+C1
Mathematica. Time used: 0.023 (sec). Leaf size: 22
ode=D[y[z],z]==Exp[z-D[y[z],z]]; 
ic={}; 
DSolve[{ode,ic},y[z],z,IncludeSingularSolutions->True]
 
y(z)12W(ez)2+W(ez)+c1
Sympy. Time used: 0.253 (sec). Leaf size: 17
from sympy import * 
z = symbols("z") 
y = Function("y") 
ode = Eq(-exp(z - Derivative(y(z), z)) + Derivative(y(z), z),0) 
ics = {} 
dsolve(ode,func=y(z),ics=ics)
 
y(z)=C1+W2(ez)2+W(ez)