Internal
problem
ID
[17394]
Book
:
Differential
equations.
An
introduction
to
modern
methods
and
applications.
James
Brannan,
William
E.
Boyce.
Third
edition.
Wiley
2015
Section
:
Chapter
2.
First
order
differential
equations.
Section
2.4
(Differences
between
linear
and
nonlinear
equations).
Problems
at
page
79
Problem
number
:
28
Date
solved
:
Tuesday, January 28, 2025 at 10:04:23 AM
CAS
classification
:
[_separable]
With initial conditions
✓ Solution by Maple
Time used: 0.811 (sec). Leaf size: 25
dsolve([diff(y(t),t)+piecewise(0<=t and t<=1,2,t>1,1)*y(t)=0,y(0) = 1],y(t), singsol=all)
✓ Solution by Mathematica
Time used: 0.033 (sec). Leaf size: 37
DSolve[{D[y[t],t]+Piecewise[{{2,0<=t<=1},{1,t>1}}]*y[t]==0,{}},y[t],t,IncludeSingularSolutions -> True]