Internal
problem
ID
[13691]
Book
:
AN
INTRODUCTION
TO
ORDINARY
DIFFERENTIAL
EQUATIONS
by
JAMES
C.
ROBINSON.
Cambridge
University
Press
2004
Section
:
Chapter
14,
Inhomogeneous
second
order
linear
equations.
Exercises
page
140
Problem
number
:
14.1
(vi)
Date
solved
:
Wednesday, March 05, 2025 at 10:12:12 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
ode:=diff(diff(x(t),t),t)+omega^2*x(t) = sin(alpha*t); dsolve(ode,x(t), singsol=all);
ode=D[x[t],{t,2}]+w^2*x[t]==Sin[a*t]; ic={}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") Alpha = symbols("Alpha") omega = symbols("omega") x = Function("x") ode = Eq(omega**2*x(t) - sin(Alpha*t) + Derivative(x(t), (t, 2)),0) ics = {} dsolve(ode,func=x(t),ics=ics)