Internal
problem
ID
[396]
Book
:
Elementary
Differential
Equations.
By
C.
Henry
Edwards,
David
E.
Penney
and
David
Calvis.
6th
edition.
2008
Section
:
Chapter
2.
Linear
Equations
of
Higher
Order.
Section
2.6
(Forced
oscillations
and
resonance).
Problems
at
page
171
Problem
number
:
15
Date
solved
:
Saturday, March 29, 2025 at 04:52:44 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
ode:=diff(diff(x(t),t),t)+2*diff(x(t),t)+2*x(t) = 2*cos(omega*t); dsolve(ode,x(t), singsol=all);
ode=D[x[t],{t,2}]+2*D[x[t],t]+2*x[t]==2*Cos[w*t]; ic={}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") omega = symbols("omega") x = Function("x") ode = Eq(2*x(t) - 2*cos(omega*t) + 2*Derivative(x(t), t) + Derivative(x(t), (t, 2)),0) ics = {} dsolve(ode,func=x(t),ics=ics)