Internal
problem
ID
[15013]
Book
:
AN
INTRODUCTION
TO
ORDINARY
DIFFERENTIAL
EQUATIONS
by
JAMES
C.
ROBINSON.
Cambridge
University
Press
2004
Section
:
Chapter
9,
First
order
linear
equations
and
the
integrating
factor.
Exercises
page
86
Problem
number
:
9.1
(ii)
Date
solved
:
Thursday, October 02, 2025 at 10:01:05 AM
CAS
classification
:
[_separable]
With initial conditions
ode:=diff(x(t),t)+t*x(t) = 4*t; ic:=[x(0) = 2]; dsolve([ode,op(ic)],x(t), singsol=all);
ode=D[x[t],t]+t*x[t]==4*t; ic={x[0]==2}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") ode = Eq(t*x(t) - 4*t + Derivative(x(t), t),0) ics = {x(0): 2} dsolve(ode,func=x(t),ics=ics)