Internal
problem
ID
[21135]
Book
:
A
Textbook
on
Ordinary
Differential
Equations
by
Shair
Ahmad
and
Antonio
Ambrosetti.
Second
edition.
ISBN
978-3-319-16407-6.
Springer
2015
Section
:
Chapter
1.
First
order
linear
differential
equations.
Excercise
1.5
at
page
13
Problem
number
:
15
Date
solved
:
Thursday, October 02, 2025 at 07:09:44 PM
CAS
classification
:
[[_linear, `class A`]]
With initial conditions
ode:=diff(x(t),t)+a*x(t) = b*t; ic:=[x(t__0) = x__0]; dsolve([ode,op(ic)],x(t), singsol=all);
ode=D[x[t],t]+a*x[t]==b*t; ic={x[t0]==x0}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") t0 = symbols("t0") x0 = symbols("x0") x = Function("x") ode = Eq(a*x(t) - b*t + Derivative(x(t), t),0) ics = {x(t0): x0} dsolve(ode,func=x(t),ics=ics)