Internal
problem
ID
[552]
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.3
(Translation
and
partial
fractions).
Problems
at
page
296
Problem
number
:
38
Date
solved
:
Tuesday, March 04, 2025 at 11:26:34 AM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Using Laplace method With initial conditions
ode:=diff(diff(x(t),t),t)+6*diff(x(t),t)+18*x(t) = cos(2*t); ic:=x(0) = 1, D(x)(0) = -1; dsolve([ode,ic],x(t),method='laplace');
ode=D[x[t],{t,2}]+6*D[x[t],t]+18*x[t]==Cos[2*t]; ic={x[0]==1,Derivative[1][x][0] ==-1}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") ode = Eq(18*x(t) - cos(2*t) + 6*Derivative(x(t), t) + Derivative(x(t), (t, 2)),0) ics = {x(0): 1, Subs(Derivative(x(t), t), t, 0): -1} dsolve(ode,func=x(t),ics=ics)