Internal
problem
ID
[17590]
Book
:
Differential
equations.
An
introduction
to
modern
methods
and
applications.
James
Brannan,
William
E.
Boyce.
Third
edition.
Wiley
2015
Section
:
Chapter
4.
Second
order
linear
equations.
Section
4.5
(Nonhomogeneous
Equations,
Method
of
Undetermined
Coefficients).
Problems
at
page
260
Problem
number
:
29
Date
solved
:
Thursday, March 13, 2025 at 10:34:00 AM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
ode:=diff(diff(y(t),t),t)+3*diff(y(t),t)+2*y(t) = exp(t)*(t^2+1)*sin(2*t)+3*exp(-t)*cos(t)+4*exp(t); dsolve(ode,y(t), singsol=all);
ode=D[y[t],{t,2}]+3*D[y[t],t]+2*y[t]==Exp[t]*(1+t^2)*Sin[2*t]+3*Exp[-t]*Cos[t]+4*Exp[t]; ic={}; DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") y = Function("y") ode = Eq(-(t**2 + 1)*exp(t)*sin(2*t) + 2*y(t) - 4*exp(t) + 3*Derivative(y(t), t) + Derivative(y(t), (t, 2)) - 3*exp(-t)*cos(t),0) ics = {} dsolve(ode,func=y(t),ics=ics)