Internal
problem
ID
[14544]
Book
:
Differential
Equations
by
Shepley
L.
Ross.
Third
edition.
John
Willey.
New
Delhi.
2004.
Section
:
Chapter
1,
section
1.3.
Exercises
page
22
Problem
number
:
2(b)
Date
solved
:
Thursday, October 02, 2025 at 09:38:29 AM
CAS
classification
:
[[_linear, `class A`]]
With initial conditions
ode:=diff(y(x),x)+y(x) = 2*x*exp(-x); ic:=[y(-1) = exp(1)+3]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],x]+y[x]==2*x*Exp[-x]; ic={y[-1]==Exp[1]+3}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") y = Function("y") ode = Eq(-2*x*exp(-x) + y(x) + Derivative(y(x), x),0) ics = {y(-1): E + 3} dsolve(ode,func=y(x),ics=ics)