Internal
problem
ID
[21835]
Book
:
The
Differential
Equations
Problem
Solver.
VOL.
II.
M.
Fogiel
director.
REA,
NY.
1978.
ISBN
78-63609
Section
:
Chapter
28.
Laplace
transforms.
Page
850
Problem
number
:
28-17
Date
solved
:
Thursday, October 02, 2025 at 08:02:41 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Using Laplace method With initial conditions
ode:=diff(diff(y(t),t),t)+4*y(t) = piecewise(0 <= t and t <= 1,4*t,1 < t,4); ic:=[y(0) = 1, D(y)(0) = 0]; dsolve([ode,op(ic)],y(t),method='laplace');
ode=D[y[t],{t,2}]+4*y[t]==Piecewise[{{4*t,0<=t<=1},{4,t>1}}]; ic={y[0]==1,Derivative[1][y][0] ==0}; DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") y = Function("y") ode = Eq(-Piecewise((4*t, (t >= 0) & (t <= 1)), (4, t > 1)) + 4*y(t) + Derivative(y(t), (t, 2)),0) ics = {y(0): 1, Subs(Derivative(y(t), t), t, 0): 0} dsolve(ode,func=y(t),ics=ics)