Internal
problem
ID
[2587]
Book
:
Differential
equations
and
their
applications,
4th
ed.,
M.
Braun
Section
:
Chapter
2.
Second
order
differential
equations.
Section
2.4.
The
method
of
variation
of
parameters.
Excercises
page
156
Problem
number
:
5
Date
solved
:
Tuesday, September 30, 2025 at 05:47:29 AM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
With initial conditions
ode:=3*diff(diff(y(t),t),t)+4*diff(y(t),t)+y(t) = sin(t)*exp(-t); ic:=[y(0) = 1, D(y)(0) = 0]; dsolve([ode,op(ic)],y(t), singsol=all);
ode=3*D[y[t],{t,2}]+4*D[y[t],t]+y[t]==Sin[t]*Exp[-t]; ic={y[0]==1,Derivative[1][y][0] ==0}; DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") y = Function("y") ode = Eq(y(t) + 4*Derivative(y(t), t) + 3*Derivative(y(t), (t, 2)) - exp(-t)*sin(t),0) ics = {y(0): 1, Subs(Derivative(y(t), t), t, 0): 0} dsolve(ode,func=y(t),ics=ics)