Internal
problem
ID
[9656]
Book
:
DIFFERENTIAL
EQUATIONS
with
Boundary
Value
Problems.
DENNIS
G.
ZILL,
WARREN
S.
WRIGHT,
MICHAEL
R.
CULLEN.
Brooks/Cole.
Boston,
MA.
2013.
8th
edition.
Section
:
CHAPTER
7
THE
LAPLACE
TRANSFORM.
EXERCISES
7.5.
Page
315
Problem
number
:
6
Date
solved
:
Tuesday, September 30, 2025 at 06:21:56 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Using Laplace method With initial conditions
ode:=diff(diff(y(t),t),t)+y(t) = Dirac(t-2*Pi)+Dirac(t-4*Pi); ic:=[y(0) = 1, D(y)(0) = 0]; dsolve([ode,op(ic)],y(t),method='laplace');
ode=D[y[t],{t,2}]+y[t]==DiracDelta[t-2*Pi]+DiracDelta[t-4*Pi]; 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(-Dirac(t - 4*pi) - Dirac(t - 2*pi) + 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)