Internal
problem
ID
[13342]
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
:
29
Date
solved
:
Tuesday, January 28, 2025 at 05:31:12 AM
CAS
classification
:
[[_linear, `class A`]]
With initial conditions
✓ Solution by Maple
Time used: 0.886 (sec). Leaf size: 35
dsolve([diff(y(x),x)+y(x)=piecewise(0<=x and x<2,exp(-x),x>=2,exp(-2)),y(0) = 1],y(x), singsol=all)
✓ Solution by Mathematica
Time used: 0.110 (sec). Leaf size: 40
DSolve[{D[y[x],x]+y[x]==Piecewise[{{Exp[-x],0<=x<2},{Exp[-2],x>=2}}],{y[0]==1}},y[x],x,IncludeSingularSolutions -> True]