Internal
problem
ID
[23196]
Book
:
An
introduction
to
Differential
Equations.
By
Howard
Frederick
Cleaves.
1969.
Oliver
and
Boyd
publisher.
ISBN
0050015044
Section
:
Chapter
9.
The
operational
method.
Exercise
9c
at
page
137
Problem
number
:
2
Date
solved
:
Thursday, October 02, 2025 at 09:24:14 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
With initial conditions
ode:=diff(diff(x(t),t),t)-3*diff(x(t),t)+2*x(t) = 5*cos(t); ic:=[x(0) = 0, D(x)(0) = 0]; dsolve([ode,op(ic)],x(t), singsol=all);
ode=D[x[t],{t,2}]-3*D[x[t],t]+2*x[t]==5*Cos[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(2*x(t) - 5*cos(t) - 3*Derivative(x(t), t) + 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)