Internal
problem
ID
[14871]
Book
:
DIFFERENTIAL
EQUATIONS
by
Paul
Blanchard,
Robert
L.
Devaney,
Glen
R.
Hall.
4th
edition.
Brooks/Cole.
Boston,
USA.
2012
Section
:
Chapter
4.
Forcing
and
Resonance.
Section
4.2
page
412
Problem
number
:
14
Date
solved
:
Thursday, March 13, 2025 at 05:16:32 AM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
With initial conditions
ode:=diff(diff(y(t),t),t)+2*diff(y(t),t)+y(t) = 2*cos(2*t); ic:=y(0) = 0, D(y)(0) = 0; dsolve([ode,ic],y(t), singsol=all);
ode=D[y[t],{t,2}]+2*D[y[t],t]+y[t]==2*Cos[2*t]; ic={y[0]==0,Derivative[1][y][0] ==0}; DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") y = Function("y") ode = Eq(y(t) - 2*cos(2*t) + 2*Derivative(y(t), t) + Derivative(y(t), (t, 2)),0) ics = {y(0): 0, Subs(Derivative(y(t), t), t, 0): 0} dsolve(ode,func=y(t),ics=ics)