Internal
problem
ID
[3627]
Book
:
Differential
equations
and
linear
algebra,
Stephen
W.
Goode
and
Scott
A
Annin.
Fourth
edition,
2015
Section
:
Chapter
1,
First-Order
Differential
Equations.
Section
1.6,
First-Order
Linear
Differential
Equations.
page
59
Problem
number
:
Problem
18
Date
solved
:
Tuesday, September 30, 2025 at 06:48:42 AM
CAS
classification
:
[_linear]
With initial conditions
ode:=diff(x(t),t)+2/(4-t)*x(t) = 5; ic:=[x(0) = 4]; dsolve([ode,op(ic)],x(t), singsol=all);
ode=D[x[t],t]+2/(4-t)*x[t]==5; ic={x[0]==4}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") ode = Eq(Derivative(x(t), t) - 5 + 2*x(t)/(4 - t),0) ics = {x(0): 4} dsolve(ode,func=x(t),ics=ics)