Internal
problem
ID
[18965]
Book
:
Differential
equations.
An
introduction
to
modern
methods
and
applications.
James
Brannan,
William
E.
Boyce.
Third
edition.
Wiley
2015
Section
:
Chapter
4.
Second
order
linear
equations.
Section
4.6
(Forced
vibrations,
Frequency
response,
and
Resonance).
Problems
at
page
272
Problem
number
:
16
Date
solved
:
Thursday, October 02, 2025 at 03:36:25 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
With initial conditions
ode:=diff(diff(y(t),t),t)+1/4*diff(y(t),t)+2*y(t) = 2*cos(w*t); ic:=[y(0) = 0, D(y)(0) = 2]; dsolve([ode,op(ic)],y(t), singsol=all);
ode=D[y[t],{t,2}]+1/4*D[y[t],t]+2*y[t]==2*Cos[w*t]; ic={y[0]==0,Derivative[1][y][0] == 2}; DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") w = symbols("w") y = Function("y") ode = Eq(2*y(t) - 2*cos(t*w) + Derivative(y(t), t)/4 + Derivative(y(t), (t, 2)),0) ics = {y(0): 0, Subs(Derivative(y(t), t), t, 0): 2} dsolve(ode,func=y(t),ics=ics)