Internal
problem
ID
[20202]
Book
:
Introductory
Course
On
Differential
Equations
by
Daniel
A
Murray.
Longmans
Green
and
Co.
NY.
1924
Section
:
Chapter
VI.
Linear
equations
with
constant
coefficients.
Examples
on
chapter
VI,
page
80
Problem
number
:
Ex.
24
Date
solved
:
Friday, October 03, 2025 at 06:36:15 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
ode:=diff(diff(y(x),x),x)-y(x) = x*sin(x)+(x^2+1)*exp(x); dsolve(ode,y(x), singsol=all);
ode=D[y[x],{x,2}]-y[x]==x*Sin[x]+(1+x^2)*Exp[x]; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x*sin(x) - (x**2 + 1)*exp(x) - y(x) + Derivative(y(x), (x, 2)),0) ics = {} dsolve(ode,func=y(x),ics=ics)