Internal
problem
ID
[21737]
Book
:
The
Differential
Equations
Problem
Solver.
VOL.
I.
M.
Fogiel
director.
REA,
NY.
1978.
ISBN
78-63609
Section
:
Chapter
21.
Applications
of
second
order
differential
equations
Problem
number
:
21-16
Date
solved
:
Thursday, October 02, 2025 at 08:01:36 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
With initial conditions
ode:=diff(diff(theta(t),t),t)+4*theta(t) = 15*cos(3*t); ic:=[theta(0) = 0, D(theta)(0) = 0]; dsolve([ode,op(ic)],theta(t), singsol=all);
ode=D[theta[t],{t,2}]+4*theta[t]==15*Cos[3*t]; ic={theta[0]==0,Derivative[1][theta][0] ==0}; DSolve[{ode,ic},theta[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") theta = Function("theta") ode = Eq(4*theta(t) - 15*cos(3*t) + Derivative(theta(t), (t, 2)),0) ics = {theta(0): 0, Subs(Derivative(theta(t), t), t, 0): 0} dsolve(ode,func=theta(t),ics=ics)