Internal
problem
ID
[4524]
Book
:
Differential
equations
for
engineers
by
Wei-Chau
XIE,
Cambridge
Press
2010
Section
:
Chapter
6.
The
Laplace
Transform
and
Its
Applications.
Problems
at
page
291
Problem
number
:
6.46
Date
solved
:
Tuesday, March 04, 2025 at 06:51:03 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Using Laplace method With initial conditions
ode:=diff(diff(y(t),t),t)+4*y(t) = 8*sin(2*t)*Heaviside(t-Pi); ic:=y(0) = 0, D(y)(0) = 2; dsolve([ode,ic],y(t),method='laplace');
ode=D[y[t],{t,2}]+4*y[t]==8*Sin[2*t]*UnitStep[t-Pi]; ic={y[0]==0,Derivative[1][y][0] == 2}; DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") y = Function("y") ode = Eq(4*y(t) - 8*sin(2*t)*Heaviside(t - pi) + Derivative(y(t), (t, 2)),0) ics = {y(0): 0, Subs(Derivative(y(t), t), t, 0): 2} dsolve(ode,func=y(t),ics=ics)