Ordinary differential equation: Difference between revisions

From Rice Wiki
 
(10 intermediate revisions by the same user not shown)
Line 7: Line 7:
''Ordinary'' means that the equation has one variable, as opposed to
''Ordinary'' means that the equation has one variable, as opposed to
partial differential.
partial differential.
There is ''no general method'' to solve ODEs. We separate them by classes
and solve them individually.


== Example ==
== Example ==
Line 28: Line 25:
a solution. This will probably be covered later.
a solution. This will probably be covered later.


= Initial Value Problem =
= Solving ODE =
To get a unique solution, we need to apply additional conditions, such
An ODE is considered ''solve'' if we can express ''y'' in terms of integrals of explicitly known functions (reduce to quadratures). We don't necessarily need to solve the integral; some integrals are very very hard; MATLAB just does it.
as specifying a particular value


<math>
= Classification =
\begin{cases}
There is ''no general method'' to solve ODEs. We separate them by classes
y' = y \\
and solve them individually.
y(0) = y_0
 
\end{cases}
== Linearity ==
</math>
An ODE is '''linear''' if all terms are proportional to <math>y, y',
y''. \ldots</math> or are given functions of <math>t</math>.
 
This
distinction is especially useful since linear combination can be used to
construct solutions. As one see from [[Linear Algebra]], for a linear problem, a general solution can be constructed from ''one specific solution'' and the ''homogeneous solution''.
 
== Order ==
The '''order''' of an ODE is the order of its highest derivative. Higher order ODEs are generally harder to solve.
 
== Scalar/System ==
In a '''scalar''', there is only one unknown function <math>y(t)</math>.
In a '''system''', there are several, and you have to solve them
simultaneously (such as predator-prey functions).


This is called an ''initial value problem'', in which a function is
== Solvable Classes ==
generated from an initial value with another equation.
Here is a list of ODEs we study and solve, from simple to complex:
* [[Linear First Order ODE]]
*[[First Order Scalar ODE|First Order Scalar]]
*[[Autonomous ODE]]
* [[Second order linear ODE]]


== Usage ==
* [[Systems of ODEs]]


= Applications =
Since the derivative can be described as the rate of change, and the
Since the derivative can be described as the rate of change, and the
function itself is the state, ODEs arises as mathematical models of
function itself is the state, ODEs arises as mathematical models of
Line 55: Line 69:
# ''Object falling under gravity'', where the function is the velocity of the object
# ''Object falling under gravity'', where the function is the velocity of the object
#* <math>\frac{dv}{dt} = g - \frac{\gamma v}{m}</math>
#* <math>\frac{dv}{dt} = g - \frac{\gamma v}{m}</math>
Here are some more general questions that are solved by ODEs
* [[Initial Value Problem]]: Use an initial value of a function and an ODE to generate a function.
** [[Equilibrium Solution]]: Find the equilibrium solution of an initial value problem


== Dimensions/Units ==
== Dimensional Analysis ==


The two sides of the equation must match in dimensions (aka. units).
The two sides of the equation must match in dimensions (aka. units). This also applies in ODEs.


Consider radioactive decay.
Consider radioactive decay.
Line 81: Line 99:
\tau = \frac{1}{r}
\tau = \frac{1}{r}
</math>
</math>
== Equilibrium Solution ==
Consider an object falling under gravity
<math>
\begin{cases}
\frac{dv}{dt} = g - \lambda v \\
v(0) = v_0
\end{cases}
</math>
We sometimes want the '''equilibrium solution'''
<math>
v(t) = v_*
</math>
<math>
\frac{dv}{dt} = 0 = g - \lambda v_*
</math>
Doing some math, we can eventually get
<math>
v(t) = v_* + (v_0 - v_*) e^{-\lambda t}
</math>
= Classification =
An ODE is '''linear''' if all terms are proportional to <math>y, y',
y''. \ldots</math> or are given functions of <math>t</math>. This
distinction is especially useful since linear combination can be used to
construct solutions.
The '''order''' of an ODE is the order of its highest derivative.
In a '''scalar''', there is only one unknown function <math>y(t)</math>.
In a '''system''', there are several, and you have to solve them
simultaneously.
Here is a list of ODEs we study, from simple to complex:
* [[Linear First Order ODE]]

Latest revision as of 06:51, 10 June 2024


An ordinary differential equation (ODE) relates a function and its derivatives. We usually use to denote the function and to denote the variable.

Ordinary means that the equation has one variable, as opposed to partial differential.

Example

An example of an ODE is the following

The general solution of the above is

Notably, the solution is homogeneous, meaning that is a solution. This will probably be covered later.

Solving ODE

An ODE is considered solve if we can express y in terms of integrals of explicitly known functions (reduce to quadratures). We don't necessarily need to solve the integral; some integrals are very very hard; MATLAB just does it.

Classification

There is no general method to solve ODEs. We separate them by classes and solve them individually.

Linearity

An ODE is linear if all terms are proportional to or are given functions of .

This distinction is especially useful since linear combination can be used to construct solutions. As one see from Linear Algebra, for a linear problem, a general solution can be constructed from one specific solution and the homogeneous solution.

Order

The order of an ODE is the order of its highest derivative. Higher order ODEs are generally harder to solve.

Scalar/System

In a scalar, there is only one unknown function . In a system, there are several, and you have to solve them simultaneously (such as predator-prey functions).

Solvable Classes

Here is a list of ODEs we study and solve, from simple to complex:

Applications

Since the derivative can be described as the rate of change, and the function itself is the state, ODEs arises as mathematical models of systems whose rate of change depends on the state of the system.

The following are brief descriptions of some applications of ODEs.

  1. Radioactive decay, where the function is the (large) number of atoms.
    • Atoms decay at an average constant rate
  2. Object falling under gravity, where the function is the velocity of the object

Here are some more general questions that are solved by ODEs

Dimensional Analysis

The two sides of the equation must match in dimensions (aka. units). This also applies in ODEs.

Consider radioactive decay.

The solution comes to

We use time constant to get a sense of how fast it is decaying. Its units is time.