Internal
problem
ID
[13372]
Book
:
Differential
Equations
by
Shepley
L.
Ross.
Third
edition.
John
Willey.
New
Delhi.
2004.
Section
:
Chapter
2,
Miscellaneous
Review.
Exercises
page
60
Problem
number
:
22
Date
solved
:
Tuesday, January 28, 2025 at 05:33:19 AM
CAS
classification
:
[[_linear, `class A`]]
With initial conditions
✓ Solution by Maple
Time used: 0.784 (sec). Leaf size: 36
dsolve([diff(y(x),x)+y(x)=piecewise(0<=x and x<2,1,x>0,0),y(0) = 0],y(x), singsol=all)
✓ Solution by Mathematica
Time used: 0.063 (sec). Leaf size: 39
DSolve[{D[y[x],x]+y[x]==Piecewise[{{1,0<=x<2},{0,x>2}}],{y[0]==0}},y[x],x,IncludeSingularSolutions -> True]