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]
Solve
With initial conditions
This is non linear first order ODE. In canonical form it is written as
The
And the point
The
And the point
Time used: 0.075 (sec)
Solve
With initial conditions
Since the ode has the form
And the solution is immediately written as
Singular solutions are found by solving
for
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 | Slope field |
Summary of solutions found
Time used: 0.085 (sec)
Solve
With initial conditions
To solve an ode of the form
We assume there exists a function
Hence
But since
If the above condition is satisfied, then the original ode is called exact. We still need to determine
Therefore
Comparing (1A) and (2A) shows that
The next step is to determine if the ODE is is exact or not. The ODE is exact when the following condition is satisfied
Using result found above gives
And
Since
Since
Since
The result of integrating gives
And
So now a modified ODE is obtained from the original ODE which will be exact and can be solved using the standard method. The modified ODE is
The following equations are now set up to solve for the function
Integrating (1) w.r.t.
Where
But equation (2) says that
Solving equation (5) for
Integrating the above w.r.t
Where
But since
Solving for the constant of integration from initial conditions, the solution becomes
| |
Solution plot | Slope field |
Summary of solutions found
ode:=diff(x(t),t) = (x(t)-1)^2; ic:=x(0) = 1; dsolve([ode,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
Maple step by step
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