Internal
problem
ID
[13799]
Book
:
Differential
equations
and
the
calculus
of
variations
by
L.
ElSGOLTS.
MIR
PUBLISHERS,
MOSCOW,
Third
printing
1977.
Section
:
Chapter
1,
First-Order
Differential
Equations.
Problems
page
88
Problem
number
:
Problem
45
Date
solved
:
Wednesday, March 05, 2025 at 10:17:26 PM
CAS
classification
:
[[_linear, `class A`]]
With initial conditions
ode:=diff(x(t),t)+5*x(t) = 10*t+2; ic:=x(1) = 2; dsolve([ode,ic],x(t), singsol=all);
ode=D[x[t],t]+5*x[t]==10*t+2; ic={x[1]==2}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") ode = Eq(-10*t + 5*x(t) + Derivative(x(t), t) - 2,0) ics = {x(1): 2} dsolve(ode,func=x(t),ics=ics)