Internal
problem
ID
[18265]
Book
:
DIFFERENTIAL
EQUATIONS
WITH
APPLICATIONS
AND
HISTORICAL
NOTES
by
George
F.
Simmons.
3rd
edition.
2017.
CRC
press,
Boca
Raton
FL.
Section
:
Chapter
3.
Second
order
linear
equations.
Section
18.
The
Method
of
Undetermined
Coefficients.
Problems
at
page
132
Problem
number
:
3
(b)
Date
solved
:
Monday, March 31, 2025 at 05:24:14 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
ode:=diff(diff(y(x),x),x)+9*y(x) = 2*sin(3*x)+4*sin(x)-26*exp(-2*x)+27*x^3; dsolve(ode,y(x), singsol=all);
ode=D[y[x],{x,2}] +9*y[x]==2*Sin[3*x]+4*Sin[x]-26*Exp[-2*x]+27*x^3; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-27*x**3 + 9*y(x) - 4*sin(x) - 2*sin(3*x) + Derivative(y(x), (x, 2)) + 26*exp(-2*x),0) ics = {} dsolve(ode,func=y(x),ics=ics)