Internal
problem
ID
[18441]
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
:
Monday, March 31, 2025 at 05:29:23 PM
CAS
classification
:
[_linear]
Time used: 0.040 (sec)
Solve
In canonical form a linear first order is
Comparing the above to the given ode shows that
The integrating factor
Therefore the solution is
Summary of solutions found
ode:=diff(x(t),t)*t+x(t)*g(t) = h(t); dsolve(ode,x(t), singsol=all);
Maple trace
Methods for first order ODEs: --- Trying classification methods --- trying a quadrature trying 1st order linear <- 1st order linear successful
Maple step by step
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)