Internal
problem
ID
[13830]
Book
:
Differential
equations
and
the
calculus
of
variations
by
L.
ElSGOLTS.
MIR
PUBLISHERS,
MOSCOW,
Third
printing
1977.
Section
:
Chapter
2,
DIFFERENTIAL
EQUATIONS
OF
THE
SECOND
ORDER
AND
HIGHER.
Problems
page
172
Problem
number
:
Problem
2
Date
solved
:
Monday, March 31, 2025 at 08:14:32 AM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
ode:=diff(diff(x(t),t),t)+x(t) = sin(t)-cos(2*t); dsolve(ode,x(t), singsol=all);
ode=D[x[t],{t,2}]+x[t]==Sin[t]-Cos[2*t]; ic={}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") ode = Eq(x(t) - sin(t) + cos(2*t) + Derivative(x(t), (t, 2)),0) ics = {} dsolve(ode,func=x(t),ics=ics)