Internal
problem
ID
[13273]
Book
:
Differential
Equations
by
Shepley
L.
Ross.
Third
edition.
John
Willey.
New
Delhi.
2004.
Section
:
Chapter
2,
section
2.3
(Linear
equations).
Exercises
page
56
Problem
number
:
31
Date
solved
:
Monday, March 31, 2025 at 07:44:46 AM
CAS
classification
:
[[_linear, `class A`]]
ode:=a*diff(y(x),x)+b*y(x) = k*exp(-lambda*x); dsolve(ode,y(x), singsol=all);
ode=a*D[y[x],x]+b*y[x]==k*Exp[\[Lambda]*x]; ic={}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") a = symbols("a") b = symbols("b") k = symbols("k") lambda_ = symbols("lambda_") y = Function("y") ode = Eq(a*Derivative(y(x), x) + b*y(x) - k*exp(-lambda_*x),0) ics = {} dsolve(ode,func=y(x),ics=ics)