Internal
problem
ID
[21648]
Book
:
The
Differential
Equations
Problem
Solver.
VOL.
I.
M.
Fogiel
director.
REA,
NY.
1978.
ISBN
78-63609
Section
:
Chapter
15.
Method
of
undetermined
coefficients.
Page
337.
Problem
number
:
15-23
Date
solved
:
Thursday, October 02, 2025 at 07:59:26 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
With initial conditions
ode:=diff(diff(y(x),x),x)-2*diff(y(x),x)-3*y(x) = 2*exp(x)-10*sin(x); ic:=[y(0) = 2, D(y)(0) = 4]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],{x,2}]-2*D[y[x],x]-3*y[x]==2*Exp[x]-10*Sin[x]; ic={y[0]==2,Derivative[1][y][0] ==4}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-3*y(x) - 2*exp(x) + 10*sin(x) - 2*Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) ics = {y(0): 2, Subs(Derivative(y(x), x), x, 0): 4} dsolve(ode,func=y(x),ics=ics)