Internal
problem
ID
[1603]
Book
:
Elementary
differential
equations
with
boundary
value
problems.
William
F.
Trench.
Brooks/Cole
2001
Section
:
Chapter
2,
First
order
equations.
separable
equations.
Section
2.2
Page
52
Problem
number
:
27
Date
solved
:
Saturday, March 29, 2025 at 11:06:53 PM
CAS
classification
:
[_quadrature]
With initial conditions
ode:=diff(y(x),x) = a*y(x)-b*y(x)^2; ic:=y(0) = y0; dsolve([ode,ic],y(x), singsol=all);
ode=D[y[x],x]==a*y[x]-b*y[x]^2; ic=y[0]==y0; DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
from sympy import * x = symbols("x") a = symbols("a") b = symbols("b") y = Function("y") ode = Eq(-a*y(x) + b*y(x)**2 + Derivative(y(x), x),0) ics = {y(0): y0} dsolve(ode,func=y(x),ics=ics)