Internal
problem
ID
[21204]
Book
:
A
Textbook
on
Ordinary
Differential
Equations
by
Shair
Ahmad
and
Antonio
Ambrosetti.
Second
edition.
ISBN
978-3-319-16407-6.
Springer
2015
Section
:
Chapter
3.
First
order
nonlinear
differential
equations.
Excercise
3.7
at
page
67
Problem
number
:
43
Date
solved
:
Thursday, October 02, 2025 at 07:26:34 PM
CAS
classification
:
[[_homogeneous, `class C`], _rational, [_Abel, `2nd type`, `class A`]]
ode:=diff(x(t),t) = (x(t)-t+1)/(x(t)-t+2); dsolve(ode,x(t), singsol=all);
ode=D[x[t],t]==(x[t]-t+1)/(x[t]-t+2); ic={}; DSolve[{ode,ic},x[t],t,IncludeSingularSolutions->True]
from sympy import * t = symbols("t") x = Function("x") ode = Eq(Derivative(x(t), t) + (t - x(t) - 1)/(-t + x(t) + 2),0) ics = {} dsolve(ode,func=x(t),ics=ics)