Internal
problem
ID
[15953]
Book
:
DIFFERENTIAL
EQUATIONS
by
Paul
Blanchard,
Robert
L.
Devaney,
Glen
R.
Hall.
4th
edition.
Brooks/Cole.
Boston,
USA.
2012
Section
:
Chapter
1.
First-Order
Differential
Equations.
Exercises
section
1.4
page
61
Problem
number
:
2
Date
solved
:
Thursday, October 02, 2025 at 10:32:48 AM
CAS
classification
:
[[_Riccati, _special]]
With initial conditions
ode:=diff(y(t),t) = t-y(t)^2; ic:=[y(0) = 1]; dsolve([ode,op(ic)],y(t), singsol=all);
ode=D[y[t],t]==t-y[t]^2; ic={y[0]==1}; DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") y = Function("y") ode = Eq(-t + y(t)**2 + Derivative(y(t), t),0) ics = {y(0): 1} dsolve(ode,func=y(t),ics=ics)
TypeError : bad operand type for unary -: list