Internal
problem
ID
[21734]
Book
:
The
Differential
Equations
Problem
Solver.
VOL.
I.
M.
Fogiel
director.
REA,
NY.
1978.
ISBN
78-63609
Section
:
Chapter
21.
Applications
of
second
order
differential
equations
Problem
number
:
21-8
Date
solved
:
Thursday, October 02, 2025 at 08:01:32 PM
CAS
classification
:
[[_2nd_order, _missing_x]]
With initial conditions
ode:=diff(diff(y(x),x),x)+2*b*diff(y(x),x)+y(x) = k; ic:=[y(0) = 1, D(y)(0) = 0]; dsolve([ode,op(ic)],y(x), singsol=all);
ode=D[y[x],{x,2}]+2*b*D[y[x],x]+y[x]==k; ic={y[0]==1,Derivative[1][y][0] ==0}; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") k = symbols("k") y = Function("y") ode = Eq(2*b*Derivative(y(x), x) - k + y(x) + Derivative(y(x), (x, 2)),0) ics = {y(0): 1, Subs(Derivative(y(x), x), x, 0): 0} dsolve(ode,func=y(x),ics=ics)