Internal
problem
ID
[567]
Book
:
Elementary
Differential
Equations.
By
C.
Henry
Edwards,
David
E.
Penney
and
David
Calvis.
6th
edition.
2008
Section
:
Chapter
4.
Laplace
transform
methods.
Section
4.6
(Impulses
and
Delta
functions).
Problems
at
page
324
Problem
number
:
4
Date
solved
:
Saturday, March 29, 2025 at 04:56:51 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Using Laplace method With initial conditions
ode:=diff(diff(x(t),t),t)+2*diff(x(t),t)+x(t) = t+Dirac(t); ic:=x(0) = 0, D(x)(0) = 1; dsolve([ode,ic],x(t),method='laplace');
ode=D[x[t],{t,2}]+2*D[x[t],t]+x[t]==t+DiracDelta[t]; ic={x[0]==0,Derivative[1][x][0] ==1}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") ode = Eq(-t - Dirac(t) + x(t) + 2*Derivative(x(t), t) + Derivative(x(t), (t, 2)),0) ics = {x(0): 0, Subs(Derivative(x(t), t), t, 0): 1} dsolve(ode,func=x(t),ics=ics)