Internal
problem
ID
[395]
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
:
14
Date
solved
:
Saturday, March 29, 2025 at 04:52:42 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
With initial conditions
ode:=diff(diff(x(t),t),t)+8*diff(x(t),t)+25*x(t) = 200*cos(t)+520*sin(t); ic:=x(0) = -30, D(x)(0) = -10; dsolve([ode,ic],x(t), singsol=all);
ode=D[x[t],{t,2}]+8*D[x[t],t]+25*x[t]==200*Cos[t]+520*Sin[t]; ic={x[0]==-30,Derivative[1][x][0] ==-10}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") ode = Eq(25*x(t) - 520*sin(t) - 200*cos(t) + 8*Derivative(x(t), t) + Derivative(x(t), (t, 2)),0) ics = {x(0): -30, Subs(Derivative(x(t), t), t, 0): -10} dsolve(ode,func=x(t),ics=ics)