Internal
problem
ID
[16308]
Book
:
Ordinary
Differential
Equations.
An
introduction
to
the
fundamentals.
Kenneth
B.
Howell.
second
edition.
CRC
Press.
FL,
USA.
2020
Section
:
Chapter
2.
Integration
and
differential
equations.
Additional
exercises.
page
32
Problem
number
:
2.9
a
Date
solved
:
Thursday, October 02, 2025 at 10:45:35 AM
CAS
classification
:
[_quadrature]
With initial conditions
ode:=diff(y(x),x) = piecewise(x < 0,0,0 <= x,1); ic:=[y(0) = 0]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],x]==UnitStep[x]; ic={y[0]==0}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-Piecewise((0, x < 0), (1, True)) + Derivative(y(x), x),0) ics = {y(0): 0} dsolve(ode,func=y(x),ics=ics)