Internal
problem
ID
[3961]
Book
:
Differential
equations
and
linear
algebra,
Stephen
W.
Goode
and
Scott
A
Annin.
Fourth
edition,
2015
Section
:
Chapter
10,
The
Laplace
Transform
and
Some
Elementary
Applications.
Exercises
for
10.7.
page
704
Problem
number
:
Problem
32
Date
solved
:
Tuesday, September 30, 2025 at 06:59:29 AM
CAS
classification
:
[[_linear, `class A`]]
Using Laplace method With initial conditions
ode:=diff(y(t),t)-3*y(t) = piecewise(0 <= t and t < 1/2*Pi,sin(t),1/2*Pi <= t,1); ic:=[y(0) = 2]; dsolve([ode,op(ic)],y(t),method='laplace');
ode=D[y[t],t]-3*y[t]==Piecewise[{{Sin[t],0<=t<Pi/2},{1,t >= Pi/2}}]; ic={y[0]==2}; DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") y = Function("y") ode = Eq(-Piecewise((sin(t), (t >= 0) & (t < pi/2)), (1, t >= pi/2)) - 3*y(t) + Derivative(y(t), t),0) ics = {y(0): 2} dsolve(ode,func=y(t),ics=ics)