Ordinary differential equation explained

In mathematics, an ordinary differential equation (ODE) is a differential equation (DE) dependent on only a single independent variable. As with other DE, its unknown(s) consists of one (or more) function(s) and involves the derivatives of those functions.[1] The term "ordinary" is used in contrast with partial differential equations (PDEs) which may be with respect to one independent variable,[2] and, less commonly, in contrast with stochastic differential equations (SDEs) where the progression is random.[3]

Differential equations

A linear differential equation is a differential equation that is defined by a linear polynomial in the unknown function and its derivatives, that is an equation of the form

a0(x)y+a1(x)y'+a2(x)y''+ …

(n)
+a
n(x)y

+b(x)=0,

where, ..., and are arbitrary differentiable functions that do not need to be linear, and are the successive derivatives of the unknown function of the variable .[4]

Among ordinary differential equations, linear differential equations play a prominent role for several reasons. Most elementary and special functions that are encountered in physics and applied mathematics are solutions of linear differential equations (see Holonomic function). When physical phenomena are modeled with non-linear equations, they are generally approximated by linear differential equations for an easier solution. The few non-linear ODEs that can be solved explicitly are generally solved by transforming the equation into an equivalent linear ODE (see, for example Riccati equation).[5]

Some ODEs can be solved explicitly in terms of known functions and integrals. When that is not possible, the equation for computing the Taylor series of the solutions may be useful. For applied problems, numerical methods for ordinary differential equations can supply an approximation of the solution.

Background

Ordinary differential equations (ODEs) arise in many contexts of mathematics and social and natural sciences. Mathematical descriptions of change use differentials and derivatives. Various differentials, derivatives, and functions become related via equations, such that a differential equation is a result that describes dynamically changing phenomena, evolution, and variation. Often, quantities are defined as the rate of change of other quantities (for example, derivatives of displacement with respect to time), or gradients of quantities, which is how they enter differential equations.[6]

Specific mathematical fields include geometry and analytical mechanics. Scientific fields include much of physics and astronomy (celestial mechanics), meteorology (weather modeling), chemistry (reaction rates),[7] biology (infectious diseases, genetic variation), ecology and population modeling (population competition), economics (stock trends, interest rates and the market equilibrium price changes).

Many mathematicians have studied differential equations and contributed to the field, including Newton, Leibniz, the Bernoulli family, Riccati, Clairaut, d'Alembert, and Euler.

A simple example is Newton's second law of motion - the relationship between the displacement x and the time t of an object under the force F, is given by the differential equation

m

d2x(t)
dt2

=F(x(t))

which constrains the motion of a particle of constant mass m. In general, F is a function of the position x(t) of the particle at time t. The unknown function x(t) appears on both sides of the differential equation, and is indicated in the notation F(x(t)).

Definitions

(y,

\ddoty,\overset{...}{y})

is often used in physics for representing derivatives of low order with respect to time.

General definition

Given F, a function of x, y, and derivatives of y. Then an equation of the form

F\left(x,y,y',\ldots,y(n-1)\right)=y(n)

is called an explicit ordinary differential equation of order n.

More generally, an implicit ordinary differential equation of order n takes the form:

F\left(x,y,y',y'',\ldots,y(n)\right)=0

There are further classifications:

System of ODEs

See main article: System of differential equations. A number of coupled differential equations form a system of equations. If y is a vector whose elements are functions; y(x) = [''y''<sub>1</sub>(''x''), ''y''<sub>2</sub>(''x''),..., ''y<sub>m</sub>''(''x'')], and F is a vector-valued function of y and its derivatives, then

y(n)=F\left(x,y,y',y'',\ldots,y(n-1)\right)

is an explicit system of ordinary differential equations of order n and dimension m. In column vector form:

(n)
\begin{pmatrix} y
1
(n)
\\ y
2

\\ \vdots

(n)
\\ y
m

\end{pmatrix}= \begin{pmatrix} f1\left(x,y,y',y'',\ldots,y(n-1)\right)\\ f2\left(x,y,y',y'',\ldots,y(n-1)\right)\\ \vdots\\ fm\left(x,y,y',y'',\ldots,y(n-1)\right) \end{pmatrix}

These are not necessarily linear. The implicit analogue is:

F\left(x,y,y',y'',\ldots,y(n)\right)=\boldsymbol{0}

where 0 = (0, 0, ..., 0) is the zero vector. In matrix form

\begin{pmatrix} f1(x,y,y',y'',\ldots,y(n))\\ f2(x,y,y',y'',\ldots,y(n))\\ \vdots\\ fm(x,y,y',y'',\ldots,y(n)) \end{pmatrix}=\begin{pmatrix} 0\\ 0\\ \vdots\\ 0 \end{pmatrix}

For a system of the form

F\left(x,y,y'\right)=\boldsymbol{0}

, some sources also require that the Jacobian matrix
\partialF(x,u,v)
\partialv
be non-singular in order to call this an implicit ODE [system]; an implicit ODE system satisfying this Jacobian non-singularity condition can be transformed into an explicit ODE system. In the same sources, implicit ODE systems with a singular Jacobian are termed differential algebraic equations (DAEs). This distinction is not merely one of terminology; DAEs have fundamentally different characteristics and are generally more involved to solve than (nonsingular) ODE systems.[8] Presumably for additional derivatives, the Hessian matrix and so forth are also assumed non-singular according to this scheme, although note that any ODE of order greater than one can be (and usually is) rewritten as system of ODEs of first order, which makes the Jacobian singularity criterion sufficient for this taxonomy to be comprehensive at all orders.

The behavior of a system of ODEs can be visualized through the use of a phase portrait.

Solutions

Given a differential equation

F\left(x,y,y',\ldots,y(n)\right)=0

a function, where I is an interval, is called a solution or integral curve for F, if u is n-times differentiable on I, and

F(x,u,u',\ldots,u(n))=0x\inI.

Given two solutions and, u is called an extension of v if and

u(x)=v(x)x\inI.

A solution that has no extension is called a maximal solution. A solution defined on all of R is called a global solution.

A general solution of an nth-order equation is a solution containing n arbitrary independent constants of integration. A particular solution is derived from the general solution by setting the constants to particular values, often chosen to fulfill set 'initial conditions or boundary conditions'. A singular solution is a solution that cannot be obtained by assigning definite values to the arbitrary constants in the general solution.

In the context of linear ODE, the terminology particular solution can also refer to any solution of the ODE (not necessarily satisfying the initial conditions), which is then added to the homogeneous solution (a general solution of the homogeneous ODE), which then forms a general solution of the original ODE. This is the terminology used in the guessing method section in this article, and is frequently used when discussing the method of undetermined coefficients and variation of parameters.

Solutions of finite duration

For non-linear autonomous ODEs it is possible under some conditions to develop solutions of finite duration,[9] meaning here that from its own dynamics, the system will reach the value zero at an ending time and stays there in zero forever after. These finite-duration solutions can't be analytical functions on the whole real line, and because they will be non-Lipschitz functions at their ending time, they are not included in the uniqueness theorem of solutions of Lipschitz differential equations.

As example, the equation:

y'=-sgn(y)\sqrt{|y|},y(0)=1

Admits the finite duration solution:
y(x)=1\left(1-
4
x+\left|1-
2
x
2

\right|\right)2

Theories

Singular solutions

The theory of singular solutions of ordinary and partial differential equations was a subject of research from the time of Leibniz, but only since the middle of the nineteenth century has it received special attention. A valuable but little-known work on the subject is that of Houtain (1854). Darboux (from 1873) was a leader in the theory, and in the geometric interpretation of these solutions he opened a field worked by various writers, notably Casorati and Cayley. To the latter is due (1872) the theory of singular solutions of differential equations of the first order as accepted circa 1900.

Reduction to quadratures

The primitive attempt in dealing with differential equations had in view a reduction to quadratures. As it had been the hope of eighteenth-century algebraists to find a method for solving the general equation of the nth degree, so it was the hope of analysts to find a general method for integrating any differential equation. Gauss (1799) showed, however, that complex differential equations require complex numbers. Hence, analysts began to substitute the study of functions, thus opening a new and fertile field. Cauchy was the first to appreciate the importance of this view. Thereafter, the real question was no longer whether a solution is possible by means of known functions or their integrals, but whether a given differential equation suffices for the definition of a function of the independent variable or variables, and, if so, what are the characteristic properties.

Fuchsian theory

See main article: article and Frobenius method. Two memoirs by Fuchs[10] inspired a novel approach, subsequently elaborated by Thomé and Frobenius. Collet was a prominent contributor beginning in 1869. His method for integrating a non-linear system was communicated to Bertrand in 1868. Clebsch (1873) attacked the theory along lines parallel to those in his theory of Abelian integrals. As the latter can be classified according to the properties of the fundamental curve that remains unchanged under a rational transformation, Clebsch proposed to classify the transcendent functions defined by differential equations according to the invariant properties of the corresponding surfaces f = 0 under rational one-to-one transformations.

Lie's theory

From 1870, Sophus Lie's work put the theory of differential equations on a better foundation. He showed that the integration theories of the older mathematicians can, using Lie groups, be referred to a common source, and that ordinary differential equations that admit the same infinitesimal transformations present comparable integration difficulties. He also emphasized the subject of transformations of contact.

Lie's group theory of differential equations has been certified, namely: (1) that it unifies the many ad hoc methods known for solving differential equations, and (2) that it provides powerful new ways to find solutions. The theory has applications to both ordinary and partial differential equations.

A general solution approach uses the symmetry property of differential equations, the continuous infinitesimal transformations of solutions to solutions (Lie theory). Continuous group theory, Lie algebras, and differential geometry are used to understand the structure of linear and non-linear (partial) differential equations for generating integrable equations, to find its Lax pairs, recursion operators, Bäcklund transform, and finally finding exact analytic solutions to DE.

Symmetry methods have been applied to differential equations that arise in mathematics, physics, engineering, and other disciplines.

Sturm–Liouville theory

See main article: article and Sturm–Liouville theory. Sturm–Liouville theory is a theory of a special type of second-order linear ordinary differential equation. Their solutions are based on eigenvalues and corresponding eigenfunctions of linear operators defined via second-order homogeneous linear equations. The problems are identified as Sturm–Liouville problems (SLP) and are named after J. C. F. Sturm and J. Liouville, who studied them in the mid-1800s. SLPs have an infinite number of eigenvalues, and the corresponding eigenfunctions form a complete, orthogonal set, which makes orthogonal expansions possible. This is a key idea in applied mathematics, physics, and engineering.[11] SLPs are also useful in the analysis of certain partial differential equations.

Existence and uniqueness of solutions

There are several theorems that establish existence and uniqueness of solutions to initial value problems involving ODEs both locally and globally. The two main theorems are

TheoremAssumptionConclusion
Peano existence theoremF continuouslocal existence only
Picard–Lindelöf theoremF Lipschitz continuouslocal existence and uniqueness

In their basic form both of these theorems only guarantee local results, though the latter can be extended to give a global result, for example, if the conditions of Grönwall's inequality are met.

Also, uniqueness theorems like the Lipschitz one above do not apply to DAE systems, which may have multiple solutions stemming from their (non-linear) algebraic part alone.

Local existence and uniqueness theorem simplified

The theorem can be stated simply as follows.[12] For the equation and initial value problem: y' = F(x,y)\,,\quad y_0 = y(x_0)if F and ∂F/∂y are continuous in a closed rectangleR = [x_0-a,x_0+a] \times [y_0-b,y_0+b]in the x-y plane, where a and b are real (symbolically:) and denotes the Cartesian product, square brackets denote closed intervals, then there is an intervalI = [x_0-h,x_0+h] \subset [x_0-a,x_0+a]for some where the solution to the above equation and initial value problem can be found. That is, there is a solution and it is unique. Since there is no restriction on F to be linear, this applies to non-linear equations that take the form F(x, y), and it can also be applied to systems of equations.

Global uniqueness and maximum domain of solution

When the hypotheses of the Picard–Lindelöf theorem are satisfied, then local existence and uniqueness can be extended to a global result. More precisely:[13]

For each initial condition (x0, y0) there exists a unique maximum (possibly infinite) open interval

Imax=(x-,x+),x\pm\in\R\cup\{\pminfty\},x0\inImax

such that any solution that satisfies this initial condition is a restriction of the solution that satisfies this initial condition with domain

Imax

.

In the case that

x\pm\pminfty

, there are exactly two possibilities
\limsup
x\tox\pm

\|y(x)\|\toinfty

\lim
x\tox\pm

y(x)\in\partial\bar{\Omega}

where Ω is the open set in which F is defined, and

\partial\bar{\Omega}

is its boundary.

Note that the maximum domain of the solution

\R

Example.

y'=y2

This means that F(x, y) = y2, which is C1 and therefore locally Lipschitz continuous, satisfying the Picard–Lindelöf theorem.

Even in such a simple setting, the maximum domain of solution cannot be all

\R

since the solution is

y(x)=

y0
(x0-x)y0+1

which has maximum domain:

\begin{cases}\R&y0=0\\[4pt]\left(-infty,

x
0+1
y0

\right)&y0>0\\[4pt]\left

(x
0+1
y0

,+infty\right)&y0<0\end{cases}

This shows clearly that the maximum interval may depend on the initial conditions. The domain of y could be taken as being

\R\setminus(x0+1/y0),

but this would lead to a domain that is not an interval, so that the side opposite to the initial condition would be disconnected from the initial condition, and therefore not uniquely determined by it.

The maximum domain is not

\R

because
\lim
x\tox\pm

\|y(x)\|\toinfty,

which is one of the two possible cases according to the above theorem.

Reduction of order

Differential equations are usually easier to solve if the order of the equation can be reduced.

Reduction to a first-order system

Any explicit differential equation of order n,

F\left(x,y,y',y'',\ldots,y(n-1)\right)=y(n)

can be written as a system of n first-order differential equations by defining a new family of unknown functions

yi=y(i-1).

for i = 1, 2, ..., n. The n-dimensional system of first-order coupled differential equations is then

\begin{array}{rcl} y1'&=&y2\\ y2'&=&y3\\ &\vdots&\\ yn-1'&=&yn\\ yn'&=&F(x,y1,\ldots,yn). \end{array}

more compactly in vector notation:

y'=F(x,y)

where

y=(y1,\ldots,yn),F(x,y1,\ldots,yn)=(y2,\ldots,yn,F(x,y1,\ldots,yn)).

Summary of exact solutions

Some differential equations have solutions that can be written in an exact and closed form. Several important classes are given here.

In the table below,,,,, and, are any integrable functions of, ; and are real given constants; are arbitrary constants (complex in general). The differential equations are in their equivalent and alternative forms that lead to the solution through integration.

In the integral solutions, λ and ε are dummy variables of integration (the continuum analogues of indices in summation), and the notation just means to integrate with respect to, then after the integration substitute, without adding constants (explicitly stated).

Separable equations

Differential equationSolution methodGeneral solution
First-order, separable in x and y (general case, see below for special cases)[14]

\begin{align} P1(x)Q1(y)+P2(x)Q

2(y)dy
dx

&=0\\ P1(x)Q1(y)dx+P2(x)Q2(y)dy&=0 \end{align}

Separation of variables (divide by P2Q1).

\intx

P1(λ)
P2(λ)

dλ+\inty

Q2(λ)
Q1(λ)

dλ=C

First-order, separable in x

\begin{align}

dy
dx

&=F(x)\\ dy&=F(x)dx \end{align}

Direct integration.

y=\intxF(λ)dλ+C

First-order, autonomous, separable in y

\begin{align}

dy
dx

&=F(y)\\ dy&=F(y)dx \end{align}

Separation of variables (divide by F).

x=\inty

dλ
F(λ)

+C

First-order, separable in x and y

\begin{align} P(y)

dy
dx

+Q(x)&=0\\ P(y)dy+Q(x)dx&=0 \end{align}

Integrate throughout.

\intyP(λ)dλ+\intxQ(λ)dλ=C

General first-order equations

Differential equationSolution methodGeneral solution
First-order, homogeneous
dy
dx

=F\left(

y
x

\right)

Set y = ux, then solve by separation of variables in u and x.

ln(Cx)=\inty/x

dλ
F(λ)

First-order, separable

\begin{align} yM(xy)+xN(xy)

dy
dx

&=0\\ yM(xy)dx+xN(xy)dy&=0 \end{align}

Separation of variables (divide by xy).

ln(Cx)=\intxy

N(λ)dλ
λ[N(λ)-M(λ)]

If N = M, the solution is xy = C.

Exact differential, first-order

\begin{align} M(x,y)

dy
dx

+N(x,y)&=0\\ M(x,y)dy+N(x,y)dx&=0 \end{align}

where

\partialM
\partialy

=

\partialN
\partialx

Integrate throughout.

\begin{align} F(x,y)&=\intxM(λ,y)dλ+\intyY(λ)dλ\\ &=\intyN(x,λ)dλ+\intxX(λ)dλ=C \end{align}

whereY(y)= N(x,y)-\frac\int^x M(\lambda,y)\,d\lambda andX(x)= M(x,y)-\frac\int^y N(x,\lambda)\,d\lambda
Inexact differential, first-order

\begin{align} M(x,y)

dy
dx

+N(x,y)&=0\\ M(x,y)dy+N(x,y)dx&=0 \end{align}

where

\partialM
\partialy

\partialN
\partialx

Integration factor satisfying
\partial(\muM)
\partialy

=

\partial(\muN)
\partialx

If can be found in a suitable way, then

\begin{align} F(x,y)=&\intx\mu(λ,y)M(λ,y)dλ+\intyY(λ)dλ\\ =&\inty\mu(x,λ)N(x,λ)dλ+\intxX(λ)dλ=C \end{align}

where Y(y)= N(x,y)-\frac\int^x \mu (\lambda,y)M(\lambda,y)\,d\lambdaand X(x)= M(x,y)-\frac\int^y \mu (x,\lambda)N(x,\lambda)\,d\lambda

Linear to the nth order equations

Differential equationSolution methodGeneral solution
First-order, linear, inhomogeneous, function coefficients
dy
dx

+P(x)y=Q(x)

Integrating factor:
\intxP(λ)dλ
e

.

Armour formula:

y=

-\intxP(λ)dλ
e

\left[\intx

\intλP(\varepsilon)d\varepsilon
e

Q(λ)dλ+C\right]

Second-order, linear, inhomogeneous, function coefficients
d2y+2p(x)
dx2
dy
dx

+\left(p(x)2+p'(x)\right)y=q(x)

Integrating factor:
\intxP(λ)dλ
e

y=

-\intxP(λ)dλ
e

\left[\intx\left(\int\xi

\intλP(\varepsilon)d\varepsilon
e

Q(λ)dλ\right)d\xi+C1x+C2\right]

Second-order, linear, inhomogeneous, constant coefficients[16]
d2y
dx2

+b

dy
dx

+cy=r(x)

Complementary function yc: assume substitute and solve polynomial in α, to find the linearly independent functions
\alphajx
e
.

Particular integral yp: in general the method of variation of parameters, though for very simple r(x) inspection may work.

y=yc+yp

If, then

yc=

-x2\left(b
+
\sqrt{b2-4c
C
1e

\right)}+

-x2\left(b\sqrt{b2-4c
-
C
2e

\right)}

If, then

yc=(C1x+

-bx
2
C
2)e

If, then

yc=

-bx
2
e

\left[C1\sin\left(x

\sqrt{4c-b2
}\right) + C_2\cos\left(x\,\frac\right)\right]
nth-order, linear, inhomogeneous, constant coefficients
n
\sum
j=0

bj

djy
dxj

=r(x)

Complementary function yc: assume substitute and solve polynomial in α, to find the linearly independent functions
\alphajx
e
.

Particular integral yp: in general the method of variation of parameters, though for very simple r(x) inspection may work.

y=yc+yp

Since αj are the solutions of the polynomial of degree n: \prod_^n (\alpha - \alpha_j) = 0 , then:for αj all different, y_c = \sum_^n C_j e^ for each root αj repeated kj times, y_c = \sum_^n \left(\sum_^ C_ x^\right)e^for some αj complex, then setting α = χj + j, and using Euler's formula, allows some terms in the previous results to be written in the form C_j e^ = C_j e^\cos(\gamma_j x + \varphi_j)where ϕj is an arbitrary constant (phase shift).

The guessing method

See main article: Method of undetermined coefficients. When all other methods for solving an ODE fail, or in the cases where we have some intuition about what the solution to a DE might look like, it is sometimes possible to solve a DE simply by guessing the solution and validating it is correct. To use this method, we simply guess a solution to the differential equation, and then plug the solution into the differential equation to validate if it satisfies the equation. If it does then we have a particular solution to the DE, otherwise we start over again and try another guess. For instance we could guess that the solution to a DE has the form:

y=Ae\alpha

since this is a very common solution that physically behaves in a sinusoidal way.

In the case of a first order ODE that is non-homogeneous we need to first find a solution to the homogeneous portion of the DE, otherwise known as the associated homogeneous equation, and then find a solution to the entire non-homogeneous equation by guessing. Finally, we add both of these solutions together to obtain the general solution to the ODE, that is:

generalsolution=generalsolutionoftheassociatedhomogeneousequation+particularsolution

Software for ODE solving

See also

References

Bibliography

External links

Notes and References

  1. Book: Dennis G. Zill. A First Course in Differential Equations with Modeling Applications. 15 March 2012. Cengage Learning. 978-1-285-40110-2. 11 July 2019. https://web.archive.org/web/20200117230630/https://books.google.com/books?id=pasKAAAAQBAJ&printsec=frontcover#v=snippet&q=%22ordinary%20differential%22&f=false. 17 January 2020. live.
  2. Web site: What is the origin of the term "ordinary differential equations"? . 2016-07-28. hsm.stackexchange.com . .
  3. Karras . Tero . Aittala . Miika . Aila . Timo . Laine . Samuli . Elucidating the Design Space of Diffusion-Based Generative Models . 2022 . cs.CV . 2206.00364.
  4. Butcher . J. C. . 2000-12-15 . Numerical methods for ordinary differential equations in the 20th century . Journal of Computational and Applied Mathematics . Numerical Analysis 2000. Vol. VI: Ordinary Differential Equations and Integral Equations . 125 . 1 . 1–29 . 10.1016/S0377-0427(00)00455-6 . 0377-0427. free . 2000JCoAM.125....1B .
  5. Book: Greenberg, Michael D. . Ordinary differential equations . 2012 . Wiley . 978-1-118-23002-2 . Hoboken, N.J.
  6. Denis . Byakatonda . An Overview of Numerical and Analytical Methods for solving Ordinary Differential Equations . 2020-12-10 . math.HO . 2012.07558.
  7. Mathematics for Chemists, D.M. Hirst, Macmillan Press, 1976, (No ISBN) SBN: 333-18172-7
  8. Book: Achim Ilchmann. Timo Reis. Surveys in Differential-Algebraic Equations II. 2014. Springer. 978-3-319-11050-9. 104–105.
  9. Book: Vardia T. Haimo . 1985 24th IEEE Conference on Decision and Control . Finite Time Differential Equations . 1985 . 1729–1733 . 10.1109/CDC.1985.268832 . 45426376 . https://ieeexplore.ieee.org/document/4048613.
  10. Crelle, 1866, 1868
  11. Logan, J. (2013). Applied mathematics (4th ed.).
  12. Elementary Differential Equations and Boundary Value Problems (4th Edition), W.E. Boyce, R.C. Diprima, Wiley International, John Wiley & Sons, 1986,
  13. Boscain; Chitour 2011, p. 21
  14. Mathematical Handbook of Formulas and Tables (3rd edition), S. Lipschutz, M. R. Spiegel, J. Liu, Schaum's Outline Series, 2009, ISC_2N 978-0-07-154855-7
  15. Further Elementary Analysis, R. Porter, G.Bell & Sons (London), 1978,
  16. Mathematical methods for physics and engineering, K.F. Riley, M.P. Hobson, S.J. Bence, Cambridge University Press, 2010, ISC_2N 978-0-521-86153-3