Internal
problem
ID
[18425]
Book
:
Elementary
Differential
Equations.
By
R.L.E.
Schwarzenberger.
Chapman
and
Hall.
London.
First
Edition
(1969)
Section
:
Chapter
3.
Solutions
of
first-order
equations.
Exercises
at
page
47
Problem
number
:
2
(iii)
Date
solved
:
Monday, March 31, 2025 at 05:28:01 PM
CAS
classification
:
[_quadrature]
With initial conditions
ode:=diff(x(t),t) = (x(t)-1)^2; ic:=x(0) = 1; dsolve([ode,ic],x(t), singsol=all);
ode=D[x[t],t]==(x[t]-1)^2; ic={x[0]==1}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") ode = Eq(-(x(t) - 1)**2 + Derivative(x(t), t),0) ics = {x(0): 1} dsolve(ode,func=x(t),ics=ics)
ValueError : Couldnt solve for initial conditions