Internal
problem
ID
[4102]
Book
:
Theory
and
solutions
of
Ordinary
Differential
equations,
Donald
Greenspan,
1960
Section
:
Chapter
2.
First
order
equations.
Exercises
at
page
14
Problem
number
:
2(b)
Date
solved
:
Tuesday, September 30, 2025 at 07:02:50 AM
CAS
classification
:
[_separable]
With initial conditions
ode:=diff(y(x),x) = exp(x-2*y(x)); ic:=[y(0) = 0]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],x]==Exp[x-2*y[x]]; ic=y[0]==0; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-exp(x - 2*y(x)) + Derivative(y(x), x),0) ics = {y(0): 0} dsolve(ode,func=y(x),ics=ics)