Internal
problem
ID
[13340]
Book
:
Differential
Equations
by
Shepley
L.
Ross.
Third
edition.
John
Willey.
New
Delhi.
2004.
Section
:
Chapter
2,
section
2.3
(Linear
equations).
Exercises
page
56
Problem
number
:
27
Date
solved
:
Tuesday, January 28, 2025 at 05:31:09 AM
CAS
classification
:
[[_linear, `class A`]]
With initial conditions
✓ Solution by Maple
Time used: 0.787 (sec). Leaf size: 38
dsolve([diff(y(x),x)+y(x)=piecewise(0<=x and x<1,2,x>=1,0),y(0) = 0],y(x), singsol=all)
✓ Solution by Mathematica
Time used: 0.065 (sec). Leaf size: 38
DSolve[{D[y[x],x]+y[x]==Piecewise[{{2,0<=x<1},{0,x>=1}}],{y[0]==0}},y[x],x,IncludeSingularSolutions -> True]