Internal
problem
ID
[18093]
Book
:
DIFFERENTIAL
EQUATIONS
WITH
APPLICATIONS
AND
HISTORICAL
NOTES
by
George
F.
Simmons.
3rd
edition.
2017.
CRC
press,
Boca
Raton
FL.
Section
:
Chapter
2.
First
order
equations.
Section
10
(Linear
equations).
Problems
at
page
82
Problem
number
:
2
(d)
Date
solved
:
Thursday, March 13, 2025 at 11:35:54 AM
CAS
classification
:
[[_linear, `class A`]]
ode:=diff(y(x),x)+y(x) = 2*x*exp(-x)+x^2; dsolve(ode,y(x), singsol=all);
ode=D[y[x],x]+y[x]==2*x*Exp[-x]+x^2; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-x**2 - 2*x*exp(-x) + y(x) + Derivative(y(x), x),0) ics = {} dsolve(ode,func=y(x),ics=ics)