# Autonomous system (mathematics)

(Redirected from Autonomous differential equation)
Stability diagram classifying Poincaré maps of linear autonomous system ${\displaystyle x'=Ax,}$ as stable or unstable according to their features. Stability generally increases to the left of the diagram.[1] Some sink, source or node are equilibrium points.
2-dimensional case refers to Phase plane.

In mathematics, an autonomous system or autonomous differential equation is a system of ordinary differential equations which does not explicitly depend on the independent variable. When the variable is time, they are also called time-invariant systems.

Many laws in physics, where the independent variable is usually assumed to be time, are expressed as autonomous systems because it is assumed the laws of nature which hold now are identical to those for any point in the past or future.

## Definition

An autonomous system is a system of ordinary differential equations of the form

${\displaystyle {\frac {d}{dt}}x(t)=f(x(t))}$
where x takes values in n-dimensional Euclidean space; t is often interpreted as time.

It is distinguished from systems of differential equations of the form

${\displaystyle {\frac {d}{dt}}x(t)=g(x(t),t)}$
in which the law governing the evolution of the system does not depend solely on the system's current state but also the parameter t, again often interpreted as time; such systems are by definition not autonomous.

## Properties

Solutions are invariant under horizontal translations:

Let ${\displaystyle x_{1}(t)}$ be a unique solution of the initial value problem for an autonomous system

${\displaystyle {\frac {d}{dt}}x(t)=f(x(t))\,,\quad x(0)=x_{0}.}$
Then ${\displaystyle x_{2}(t)=x_{1}(t-t_{0})}$ solves
${\displaystyle {\frac {d}{dt}}x(t)=f(x(t))\,,\quad x(t_{0})=x_{0}.}$
Indeed, denoting ${\displaystyle s=t-t_{0}}$ we have ${\displaystyle x_{1}(s)=x_{2}(t)}$ and ${\displaystyle ds=dt}$, thus
${\displaystyle {\frac {d}{dt}}x_{2}(t)={\frac {d}{dt}}x_{1}(t-t_{0})={\frac {d}{ds}}x_{1}(s)=f(x_{1}(s))=f(x_{2}(t)).}$
For the initial condition, the verification is trivial,
${\displaystyle x_{2}(t_{0})=x_{1}(t_{0}-t_{0})=x_{1}(0)=x_{0}.}$

## Example

The equation ${\displaystyle y'=\left(2-y\right)y}$ is autonomous, since the independent variable, let us call it ${\displaystyle x}$, does not explicitly appear in the equation. To plot the slope field and isocline for this equation, one can use the following code in GNU Octave/MATLAB

Ffun = @(X, Y)(2 - Y) .* Y; % function f(x,y)=(2-y)y
[X, Y] = meshgrid(0:.2:6, -1:.2:3); % choose the plot sizes
DY = Ffun(X, Y); DX = ones(size(DY)); % generate the plot values
quiver(X, Y, DX, DY, 'k'); % plot the direction field in black
hold on;
contour(X, Y, DY, [0 1 2], 'g'); % add the isoclines(0 1 2) in green
title('Slope field and isoclines for f(x,y)=(2-y)y')


One can observe from the plot that the function ${\displaystyle \left(2-y\right)y}$ is ${\displaystyle x}$-invariant, and so is the shape of the solution, i.e. ${\displaystyle y(x)=y(x-x_{0})}$ for any shift ${\displaystyle x_{0}}$.

Solving the equation symbolically in MATLAB, by running

syms y(x);
equation = (diff(y) == (2 - y) * y);
% solve the equation for a general solution symbolically
y_general = dsolve(equation);


we obtain two equilibrium solutions, ${\displaystyle y=0}$ and ${\displaystyle y=2}$, and a third solution involving an unknown constant ${\displaystyle C_{3}}$, -2 / (exp(C3 - 2 * x) - 1).

Picking up some specific values for the initial condition, we can add the plot of several solutions

Slope field with isoclines and solutions
% solve the initial value problem symbolically
% for different initial conditions
y1 = dsolve(equation, y(1) == 1); y2 = dsolve(equation, y(2) == 1);
y3 = dsolve(equation, y(3) == 1); y4 = dsolve(equation, y(1) == 3);
y5 = dsolve(equation, y(2) == 3); y6 = dsolve(equation, y(3) == 3);
% plot the solutions
ezplot(y1, [0 6]); ezplot(y2, [0 6]); ezplot(y3, [0 6]);
ezplot(y4, [0 6]); ezplot(y5, [0 6]); ezplot(y6, [0 6]);
title('Slope field, isoclines and solutions for f(x,y)=(2-y)y')
legend('Slope field', 'Isoclines', 'Solutions y_{1..6}');
text([1 2 3], [1 1 1], strcat('\leftarrow', {'y_1', 'y_2', 'y_3'}));
text([1 2 3], [3 3 3], strcat('\leftarrow', {'y_4', 'y_5', 'y_6'}));
grid on;


## Qualitative analysis

Autonomous systems can be analyzed qualitatively using the phase space; in the one-variable case, this is the phase line.

## Solution techniques

The following techniques apply to one-dimensional autonomous differential equations. Any one-dimensional equation of order ${\displaystyle n}$ is equivalent to an ${\displaystyle n}$-dimensional first-order system (as described in reduction to a first-order system), but not necessarily vice versa.

### First order

The first-order autonomous equation

${\displaystyle {\frac {dx}{dt}}=f(x)}$
is separable, so it can easily be solved by rearranging it into the integral form
${\displaystyle t+C=\int {\frac {dx}{f(x)}}}$

### Second order

The second-order autonomous equation

${\displaystyle {\frac {d^{2}x}{dt^{2}}}=f(x,x')}$
is more difficult, but it can be solved[2] by introducing the new variable
${\displaystyle v={\frac {dx}{dt}}}$
and expressing the second derivative of ${\displaystyle x}$ via the chain rule as
${\displaystyle {\frac {d^{2}x}{dt^{2}}}={\frac {dv}{dt}}={\frac {dx}{dt}}{\frac {dv}{dx}}=v{\frac {dv}{dx}}}$
so that the original equation becomes
${\displaystyle v{\frac {dv}{dx}}=f(x,v)}$
which is a first order equation containing no reference to the independent variable ${\displaystyle t}$. Solving provides ${\displaystyle v}$ as a function of ${\displaystyle x}$. Then, recalling the definition of ${\displaystyle v}$:

${\displaystyle {\frac {dx}{dt}}=v(x)\quad \Rightarrow \quad t+C=\int {\frac {dx}{v(x)}}}$

which is an implicit solution.

#### Special case: x″ = f(x)

The special case where ${\displaystyle f}$ is independent of ${\displaystyle x'}$

${\displaystyle {\frac {d^{2}x}{dt^{2}}}=f(x)}$

benefits from separate treatment.[3] These types of equations are very common in classical mechanics because they are always Hamiltonian systems.

The idea is to make use of the identity

${\displaystyle {\frac {dx}{dt}}=\left({\frac {dt}{dx}}\right)^{-1}}$

which follows from the chain rule, barring any issues due to division by zero.

By inverting both sides of a first order autonomous system, one can immediately integrate with respect to ${\displaystyle x}$:

${\displaystyle {\frac {dx}{dt}}=f(x)\quad \Rightarrow \quad {\frac {dt}{dx}}={\frac {1}{f(x)}}\quad \Rightarrow \quad t+C=\int {\frac {dx}{f(x)}}}$

which is another way to view the separation of variables technique. Can we do something like this with higher order equations? The answer is yes for second order equations, but there's more work to do. The second derivative must be expressed as a derivative with respect to ${\displaystyle x}$ instead of ${\displaystyle t}$:

{\displaystyle {\begin{aligned}{\frac {d^{2}x}{dt^{2}}}&={\frac {d}{dt}}\left({\frac {dx}{dt}}\right)={\frac {d}{dx}}\left({\frac {dx}{dt}}\right){\frac {dx}{dt}}\\[4pt]&={\frac {d}{dx}}\left(\left({\frac {dt}{dx}}\right)^{-1}\right)\left({\frac {dt}{dx}}\right)^{-1}\\[4pt]&=-\left({\frac {dt}{dx}}\right)^{-2}{\frac {d^{2}t}{dx^{2}}}\left({\frac {dt}{dx}}\right)^{-1}=-\left({\frac {dt}{dx}}\right)^{-3}{\frac {d^{2}t}{dx^{2}}}\\[4pt]&={\frac {d}{dx}}\left({\frac {1}{2}}\left({\frac {dt}{dx}}\right)^{-2}\right)\end{aligned}}}

To reemphasize: what's been accomplished is that the second derivative with respect to ${\displaystyle t}$ has been expressed as a derivative of ${\displaystyle x}$. The original second order equation can now be integrated:

{\displaystyle {\begin{aligned}{\frac {d^{2}x}{dt^{2}}}&=f(x)\\{\frac {d}{dx}}\left({\frac {1}{2}}\left({\frac {dt}{dx}}\right)^{-2}\right)&=f(x)\\\left({\frac {dt}{dx}}\right)^{-2}&=2\int f(x)dx+C_{1}\\{\frac {dt}{dx}}&=\pm {\frac {1}{\sqrt {2\int f(x)dx+C_{1}}}}\\t+C_{2}&=\pm \int {\frac {dx}{\sqrt {2\int f(x)dx+C_{1}}}}\end{aligned}}}

This is an implicit solution. The greatest potential problem is inability to simplify the integrals, which implies difficulty or impossibility in evaluating the integration constants.

#### Special case: x″ = x′n f(x)

Using the above approach, we can extend the technique to the more general equation

${\displaystyle {\frac {d^{2}x}{dt^{2}}}=\left({\frac {dx}{dt}}\right)^{n}f(x)}$

where ${\displaystyle n}$ is some parameter not equal to two. This will work since the second derivative can be written in a form involving a power of ${\displaystyle x'}$. Rewriting the second derivative, rearranging, and expressing the left side as a derivative:

{\displaystyle {\begin{aligned}&-\left({\frac {dt}{dx}}\right)^{-3}{\frac {d^{2}t}{dx^{2}}}=\left({\frac {dt}{dx}}\right)^{-n}f(x)\\[4pt]&-\left({\frac {dt}{dx}}\right)^{n-3}{\frac {d^{2}t}{dx^{2}}}=f(x)\\[4pt]&{\frac {d}{dx}}\left({\frac {1}{2-n}}\left({\frac {dt}{dx}}\right)^{n-2}\right)=f(x)\\[4pt]&\left({\frac {dt}{dx}}\right)^{n-2}=(2-n)\int f(x)dx+C_{1}\\[2pt]&t+C_{2}=\int \left((2-n)\int f(x)dx+C_{1}\right)^{\frac {1}{n-2}}dx\end{aligned}}}

The right will carry +/− if ${\displaystyle n}$ is even. The treatment must be different if ${\displaystyle n=2}$:

{\displaystyle {\begin{aligned}-\left({\frac {dt}{dx}}\right)^{-1}{\frac {d^{2}t}{dx^{2}}}&=f(x)\\-{\frac {d}{dx}}\left(\ln \left({\frac {dt}{dx}}\right)\right)&=f(x)\\{\frac {dt}{dx}}&=C_{1}e^{-\int f(x)dx}\\t+C_{2}&=C_{1}\int e^{-\int f(x)dx}dx\end{aligned}}}

### Higher orders

There is no analogous method for solving third- or higher-order autonomous equations. Such equations can only be solved exactly if they happen to have some other simplifying property, for instance linearity or dependence of the right side of the equation on the dependent variable only[4][5] (i.e., not its derivatives). This should not be surprising, considering that nonlinear autonomous systems in three dimensions can produce truly chaotic behavior such as the Lorenz attractor and the Rössler attractor.

With this mentality, it also isn't too surprising that general non-autonomous equations of second order can't be solved explicitly, since these can also be chaotic (an example of this is a periodically forced pendulum[6]).

### Multivariate case

Now we have ${\displaystyle \mathbf {x} '(t)=A\mathbf {x} (t)}$, where ${\displaystyle \mathbf {x} (t)}$ is an ${\displaystyle n}$-dimensional column vector dependent on ${\displaystyle t}$.

The solution is ${\displaystyle \mathbf {x} (t)=e^{At}\mathbf {c} }$ where ${\displaystyle \mathbf {c} }$ is an ${\displaystyle n\times 1}$ constant vector.[7]

### Solutions of Finite Duration

For non-linear autonomous ODEs it is possible under some conditions to develop solutions of finite duration,[8] 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. This finite-duration solutions can't be analytical functions on the whole real line, and because they will being non-Lipschitz function at the ending time, they don´t stand uniqueness of solutions of Lipschitz differential equations.

As example, the equation:

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

${\displaystyle y(x)={\frac {1}{4}}\left(1-{\frac {x}{2}}+\left|1-{\frac {x}{2}}\right|\right)^{2}}$

8. ^ Vardia T. Haimo (1985). "Finite Time Differential Equations". doi:10.1109/CDC.1985.268832. {{cite journal}}: Cite journal requires |journal= (help)