Internal
problem
ID
[20933]
Book
:
A
FIRST
COURSE
IN
DIFFERENTIAL
EQUATIONS
FOR
SCIENTISTS
AND
ENGINEERS.
By
Russell
Herman.
University
of
North
Carolina
Wilmington.
LibreText.
compiled
on
06/09/2025
Section
:
Chapter
1,
First
order
ODEs.
Problems
section
1.5
Problem
number
:
1.g
Date
solved
:
Thursday, October 02, 2025 at 06:49:30 PM
CAS
classification
:
[_separable]
With initial conditions
ode:=diff(s(t),t)+2*s(t) = s(t)*t^2; ic:=[s(0) = 1]; dsolve([ode,op(ic)],s(t), singsol=all);
ode=D[s[t],t]+2*s[t]==s[t]+t^2; ic={s[0]==1}; DSolve[{ode,ic},s[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") s = Function("s") ode = Eq(-t**2*s(t) + 2*s(t) + Derivative(s(t), t),0) ics = {s(0): 1} dsolve(ode,func=s(t),ics=ics)