Internal
problem
ID
[2687]
Book
:
Differential
equations
and
their
applications,
4th
ed.,
M.
Braun
Section
:
Chapter
2.
Second
order
differential
equations.
Section
2.11,
Differential
equations
with
discontinuous
right-hand
sides.
Excercises
page
243
Problem
number
:
3
Date
solved
:
Monday, January 27, 2025 at 06:06:32 AM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Using Laplace method With initial conditions
✓ Solution by Maple
Time used: 1.372 (sec). Leaf size: 33
dsolve([diff(y(t),t$2)+4*y(t)=piecewise(0<=t and t<4,1,t>4,0),y(0) = 3, D(y)(0) = -2],y(t), singsol=all)
✓ Solution by Mathematica
Time used: 0.046 (sec). Leaf size: 72
DSolve[{D[y[t],{t,2}]+4*y[t]==Piecewise[{{1,0<=t<4},{0,t>4}}],{y[0]==3,Derivative[1][y][0] ==-2}},y[t],t,IncludeSingularSolutions -> True]