Internal
problem
ID
[14432]
Book
:
A
First
Course
in
Differential
Equations
by
J.
David
Logan.
Third
Edition.
Springer-Verlag,
NY.
2015.
Section
:
Chapter
2,
Second
order
linear
equations.
Section
2.3.2
Resonance
Exercises
page
114
Problem
number
:
6
Date
solved
:
Thursday, October 02, 2025 at 09:37:07 AM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
With initial conditions
ode:=diff(diff(x(t),t),t)+1/100*diff(x(t),t)+4*x(t) = cos(2*t); ic:=[x(0) = 0, D(x)(0) = 0]; dsolve([ode,op(ic)],x(t), singsol=all);
ode=D[x[t],{t,2}]+1/100*D[x[t],t]+4*x[t]==Cos[2*t]; ic={x[0]==0,Derivative[1][x][0 ]==0}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") ode = Eq(4*x(t) - cos(2*t) + Derivative(x(t), t)/100 + Derivative(x(t), (t, 2)),0) ics = {x(0): 0, Subs(Derivative(x(t), t), t, 0): 0} dsolve(ode,func=x(t),ics=ics)