Internal
problem
ID
[2688]
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
:
4
Date
solved
:
Monday, January 27, 2025 at 06:06:34 AM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Using Laplace method With initial conditions
✓ Solution by Maple
Time used: 1.050 (sec). Leaf size: 41
dsolve([diff(y(t),t$2)+y(t)=piecewise(0<=t and t<Pi,sin(t),t>=Pi,cos(t)),y(0) = 1, D(y)(0) = 0],y(t), singsol=all)
✓ Solution by Mathematica
Time used: 0.065 (sec). Leaf size: 54
DSolve[{D[y[t],{t,2}]+y[t]==Piecewise[{{Sin[t],0<=t<Pi},{Cos[t],t>=Pi}}],{y[0]==1,Derivative[1][y][0] ==0}},y[t],t,IncludeSingularSolutions -> True]