Internal
problem
ID
[19665]
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
(i)
Date
solved
:
Tuesday, March 10, 2026 at 11:54:18 AM
CAS
classification
:
[_quadrature]
This is non linear first order ODE. In canonical form it is written as
The \(x\) domain of \(f(t,x)\) when \(t=0\) is
And the point \(x_0 = 1\) is inside this domain. Now we will look at the continuity of
The \(x\) domain of \(\frac {\partial f}{\partial x}\) when \(t=0\) is
And the point \(x_0 = 1\) is inside this domain. Therefore solution exists and is unique.
0.195 (sec)
Entering first order ode autonomous solver
Since the ode has the form \(x^{\prime }=f(x)\) and initial conditions \(\left (t_0,x_0\right ) \) are given such that they satisfy the ode itself, then we can write
And the solution is immediately written as
Singular solutions are found by solving
for \(x\). This is because of dividing by the above earlier. This gives the following singular solution(s), which also has to satisfy the given ODE.
The following diagram is the phase line diagram. It classifies each of the above equilibrium points as stable or not stable or semi-stable.
| |
|
| Solution plot for \(x^{\prime } = x^{2}-3 x+2\) | Direction fields for \(x^{\prime } = x^{2}-3 x+2\) |
| |
|
| Isoclines for \(x^{\prime } = x^{2}-3 x+2\) |
Summary of solutions found
ode:=diff(x(t),t) = x(t)^2-3*x(t)+2; ic:=[x(0) = 1]; dsolve([ode,op(ic)],x(t), singsol=all);
Maple trace
Methods for first order ODEs: --- Trying classification methods --- trying a quadrature trying 1st order linear trying Bernoulli trying separable <- separable successful
ode=D[x[t],t]==x[t]^2-3*x[t]+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)**2 + 3*x(t) + Derivative(x(t), t) - 2,0) ics = {x(0): 1} dsolve(ode,func=x(t),ics=ics)
ValueError : Couldnt solve for initial conditions
Python version: 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] Sympy version 1.14.0
classify_ode(ode,func=x(t)) ('separable', '1st_exact', '1st_rational_riccati', '1st_power_series', 'lie_group', 'separable_Integral', '1st_exact_Integral')