Internal
problem
ID
[19798]
Book
:
Elementary
Differential
Equations.
By
R.L.E.
Schwarzenberger.
Chapman
and
Hall.
London.
First
Edition
(1969)
Section
:
Chapter
3.
Solutions
of
first-order
equations.
Exercises
at
page
47
Problem
number
:
5
Date
solved
:
Thursday, October 02, 2025 at 04:43:53 PM
CAS
classification
:
[_linear]
ode:=t*diff(x(t),t)+x(t)*g(t) = h(t); dsolve(ode,x(t), singsol=all);
ode=t*D[x[t],t]+x[t]*g[t]==h[t]; ic={}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") g = Function("g") h = Function("h") ode = Eq(t*Derivative(x(t), t) + g(t)*x(t) - h(t),0) ics = {} dsolve(ode,func=x(t),ics=ics)