Internal
problem
ID
[13658]
Book
:
AN
INTRODUCTION
TO
ORDINARY
DIFFERENTIAL
EQUATIONS
by
JAMES
C.
ROBINSON.
Cambridge
University
Press
2004
Section
:
Chapter
8,
Separable
equations.
Exercises
page
72
Problem
number
:
8.7
Date
solved
:
Monday, March 31, 2025 at 08:04:19 AM
CAS
classification
:
[_quadrature]
With initial conditions
ode:=diff(x(t),t) = k*x(t)-x(t)^2; ic:=x(0) = x__0; dsolve([ode,ic],x(t), singsol=all);
ode=D[x[t],t]==k*x[t]-x[t]^2; ic={x[0]==x0}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") k = symbols("k") x = Function("x") ode = Eq(-k*x(t) + x(t)**2 + Derivative(x(t), t),0) ics = {x(0): x__0} dsolve(ode,func=x(t),ics=ics)