Differential equation: Difference between revisions

From Wikibase
Jump to navigation Jump to search
AI-assisted (RonzzWikiCowriter): implement HTML-comment advice: add analytic methods for 1st/2nd order ODEs (integrating factor, characteristic equation), an analytic PDE example (heat equation by separation of variables), restructure the harmonic oscillator as an example, update the decision diagram, and rewrite the history section. (via update-page on MediaWiki MCP Server)
No edit summary
 
(9 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''A differential equation''' is an equation in which the unknown is a function, and in which the derivatives (rates of change) of that function also appear. An ordinary equation such as $x^2 = 9$ has numbers as solutions, whereas a differential equation such as $2y+y'=0$ has functions $y(x)$ as solutions.
'''A differential equation''' is an equation whose unknown is a function and which also involves that function's derivatives (rates of change). Where an ordinary equation such as $x^2=9$ is solved by numbers, a differential equation such as $y'+2y=0$ is solved by functions $y(x)$.


Most laws of nature are stated as rules about how quantities change, so differential equations appear throughout science and engineering: the swinging of a pendulum, the cooling of a hot drink, the growth of a population, and the discharge of a capacitor are all described by differential equations. This article explains what a differential equation is and how equations are classified, then works through the most common exact methods of solution, each illustrated by a concrete numerical example that needs no background knowledge beyond school algebra. It treats '''ordinary differential equations''' (ODEs), in which the unknown function depends on a single independent variable, in the most detail, and gives shorter accounts of '''partial differential equations''' (PDEs) and of the numerical, series, and qualitative methods used when no exact formula exists.
A surprising number of laws of nature can be described by differential equations: pendulums, cooling drinks, growing populations, and discharging capacitors.  


== A first example: slopes and a family of solutions ==
== General and specific solution ==


Take the simplest possible differential equation. Suppose the unknown is a function $y(x)$, and all we are told about it is how it changes:
The simplest differential equation prescribes the slope of a function $y(x)$:


$$\frac{dy}{dx}=2x$$
$$\frac{dy}{dx}=2x$$


Here $dy/dx$ is the slope of the graph of $y$. The equation says that whatever the solution is, its slope at the point $x$ must equal $2x$.
Integrating both sides gives
 
To solve the equation is to find every function whose slope behaves this way. Integrating both sides with respect to $x$ undoes the differentiation on the left, so


$$\int\frac{dy}{dx}\,dx=\int 2x\,dx\qquad\Longrightarrow\qquad y(x)=x^{2}+C$$
$$\int\frac{dy}{dx}\,dx=\int 2x\,dx\qquad\Longrightarrow\qquad y(x)=x^{2}+C$$


where $C$ is an arbitrary constant, because differentiating $x^2 + C$ gives $2x$ for every value of $C$:
Where $C$ is an unknown constant. Therefore, the solution is not one single function, but a family of functions, known as the '''general solution'''.
 
$$\frac{d}{dx}\left(x^{2}+C\right)=2x$$
 
The solutions are therefore not one function but a whole family of parabolas $y = x^2 + C$, one for each choice of $C$, each a vertical shift of the others. This family is called the '''general solution'''.
 
How can we arrive at a '''particular solution''', that is, one specific function of the family? An extra piece of information is required.
 
Suppose we know that when $x = 0$, $y = 3$. Substituting those numbers in we have:
 
$$3=0^{2}+C\qquad\Longrightarrow\qquad C=3$$


Therefore
If we know the value of $y$ at a particular $x$, for instance, $y(0)=3$, then a '''particular solution''' function can be identified


$$y = x^{2} + 3$$
$$3=0^2+C\qquad\Longrightarrow\qquad C=3\qquad\Longrightarrow\qquad y=x^2+3$$


Such an extra condition is called an '''initial condition'''.
A prescribed value such as $y(a)=b$ allowing us to pin down a particular solution is called an '''initial condition'''.


== Classifying differential equations ==
== Classifying differential equations ==


A few labels do most of the work in deciding how to attack an equation. Three questions matter: how many derivatives appear (the ''order''), whether the unknown function enters linearly (''linearity''), and how many independent variables are involved (''ordinary or partial''). Equations that fit no convenient label are usually handled numerically or qualitatively, as described in the final section of this article.
A differential equation can be classified by three criteria: its '''order''', its '''linearity''', and how many independent variables it involves.


=== Order ===
=== Order ===


The '''order''' of a differential equation is the order of the highest derivative that appears in it. The equation $dy/dx = 2x$ of the previous section is first order.
The order is the order of the highest derivative present.  


Newton's second law of motion is the standard second-order example: the acceleration of a body, the second derivative of its position, is proportional to the force acting on it:
$\frac{dy}{dx}=2x$ is first order, whereas Newton's second law,


{{#content:Q1583}}
{{#content:Q1583}}


where $x(t)$ is the position of a body of mass $m$ and $F$ is the net force.
is second order ($x(t)$ position of mass $m$, $F$ net force).
 
=== Linearity and homogeneity ===


In general, the general solution of an nth-order equation contains $n$ arbitrary constants, so $n$ extra conditions are needed to single out one particular solution. When the equation has the special form $y^{(n)}=f(x)$, the constants appear naturally, one at each of the $n$ integrations needed to undo the derivatives; the free-fall example below shows the pattern for $n = 2$.
An equation is '''linear''' when the unknown and its derivatives appear only to the first power and never multiplied together. A linear first-order equation can always be written


Take a free-falling object, for example. Ignoring air resistance, the only force is gravity
$$\frac{dy}{dx}+p(x)\,y=q(x)$$


$$F_g = -mg$$
It is said to be '''homogeneous''' when $q(x)=0$.


By Newton's second law
<blockquote>
The equations $dy/dx=y^2$ and $d^2\theta/dt^2+\sin\theta=0$ are nonlinear (square of $y$; sine of $\theta$).
</blockquote>


$$m\frac{d^{2}x}{dt^{2}}=-mg\qquad\Longrightarrow\qquad\frac{d^{2}x}{dt^{2}}=-g$$
An important property of linear homogeneous equation is the '''superposition principle'''. If $y_1,y_2$ solve a homogeneous linear equation, so does $c_1y_1+c_2y_2$.


with $g \approx 9.8\ \mathrm{m\,s^{-2}}$ the acceleration of free fall. Integrating both sides once gives the velocity, and introduces the constant $v_{0}$, the speed at time $t = 0$:
For a nonlinear equation, the same principle usually does not apply: if $y'=y^2$ has two solutions $y_1'=y_1^2$ and $y_2'=y_2^2$


$$\frac{dx}{dt}=-gt+v_{0}$$
$$(y_1+y_2)'=y_1^2+y_2^2\neq (y_1+y_2)^2$$


Integrating again gives the height, and introduces a second constant, $x_{0}$, the height at $t = 0$:
so $y_1+y_2$ does not solve $y'=y^2$.


$$x(t)=-\frac{g}{2}\,t^{2}+v_{0}t+x_{0}$$
=== Ordinary and partial ===


Two conditions, the initial height and the initial velocity, are needed to fix both constants.
An '''ordinary differential equation''' (ODE) has one independent variable. A '''partial differential equation''' (PDE) has several, with partial derivatives. All the examples we have seen above are ordinary differential equations. For an example of a partial differential equation, we can take the heat equation describing the temperature $u$ of an insulated metal bar, according to position $x$ on the metal bar and time $t$


A concrete check: a ball dropped from rest ($v_{0} = 0$) at a height of $19.6\ \mathrm{m}$ hits the ground when $x(t) = 0$:
{{#content:Q1590}}


$$0=19.6-4.9\,t^{2}\qquad\Longrightarrow\qquad t=\sqrt{19.6/4.9}=2\ \text{seconds}$$
where $\alpha$ is the thermal diffusivity.


Notice how a differential equation can predict the future: the two initial conditions fix the whole trajectory.
== Direction field ==


=== Linearity and homogeneity ===
A first-order equation can be written
 
{{#content:Q1581}}


A differential equation is '''linear''' when the unknown function and its derivatives appear only to the first power and are never multiplied together (multiplying by functions of the independent variable is allowed). A linear first-order equation can always be written as
assigning to each point $(x,y)$ the slope $f(x,y)$ a solution must have there. Drawing short segments of that slope gives a '''direction field'''. Solution curves must run tangent to the direction field for every point they pass through.


$$\frac{dy}{dx}+p(x)\,y=q(x)$$
[[File:Slope field of exponential growth.png|thumb|Direction field of $dy/dx=y$. Credit: jjbeard (public domain).]]


Furthermore, a linear equation is called '''homogeneous''' when $q(x)=0$; it then takes the form
== Solving differential equations ==


$$\frac{dy}{dx}+p(x)\,y=0$$
Just like there is no general formula solving all algebraic equations, there is no general method permitting the solution of all differential equations. However, some standard methods exist for solving a restricted class of simple differential equations.


The equations
=== First-order ODEs ===


$$\frac{dy}{dx}=y^{2},\qquad \frac{d^{2}\theta}{dt^{2}}+\sin\theta=0$$
==== Method 1: separable equations ====


are therefore nonlinear: the first contains the square of the unknown function, the second the sine of it.
'''General case.''' A first-order equation is separable when it can be rewritten as the equality of the derivative to the product of two functions, one containing only $x$, one containing only $y$.


Linearity and homogeneity matter because homogeneous linear equations obey the '''superposition principle'''. If $y_{1}$ and $y_{2}$ both solve a homogeneous linear equation, then any combination $c_{1}y_{1} + c_{2}y_{2}$ of those functions solves it too. This is why solutions of linear equations can be added together, a property used repeatedly later in this article (for example, to build the solution of the heat equation from simple building blocks).
{{#content:Q1612}}


Nonlinear equations do not obey the superposition principle. If $y_{1}$ and $y_{2}$ solve $dy/dx = y^{2}$, their sum does not.
after which both integrals can be evaluated directly.


In general, linear equations can be solved systematically, whereas most nonlinear equations cannot; the last section of this article describes what is done with those.
'''Example: exponential growth and decay.''' A quantity whose rate of change is proportional to its own size, such as an unchecked population or a radioactive sample, obeys


=== Ordinary and partial ===
{{#content:Q1584}}


An '''ordinary differential equation''' involves a function of a single independent variable, as in all the examples so far. A '''partial differential equation''' (PDE) involves a function of several independent variables, together with its partial derivatives. For example, the temperature $u(x, t)$ of a metal bar, which depends on the position $x$ along the bar and on the time $t$, satisfies the '''heat equation'''
Separating variables and integrating,


{{#content:Q1590}}
$$\int\frac{dy}{y}=\int k\,dt\;\Longrightarrow\;\ln|y|=kt+C_1\;\Longrightarrow\;y=Ce^{kt}$$


where the constant $\alpha$ measures how quickly heat spreads: a spot that is much warmer than its neighbours (large second derivative $\partial^2 u/\partial x^2$) warms or cools quickly.
The initial condition $y(0)=y_0$ fixes $C=y_0$, giving


== Slope fields: visualising solutions ==
{{#content:Q1585}} (1)


A first-order equation solved for its derivative has the general form
Observing (1) we notice this is very well an exponential growth (k>0)/decay(k<0).


{{#content:Q1581}}
'''Example: Newton's law of cooling.''' A hot object in a cooler room loses heat through its surface, and the larger the temperature gap, the faster it cools: The temperature of the object is modelled by


It assigns to every point $(x, y)$ of the plane the slope that any solution curve passing through that point must have there. Drawing a short line segment with exactly that slope at many points produces a '''direction field''' (or slope field) for the equation.
{{#content:Q1586}}


[[File:Slope field of exponential growth.png|thumb|Direction field of $dy/dx = y$. Each short segment shows the slope that a solution must have there, and the drawn curves follow the field. Credit: jjbeard (public domain).]]
Separating variables and integrating,


A solution curve must be tangent to the field everywhere it passes, like a boat pushed by a current whose direction depends on where the boat is. The field therefore displays the whole solution family at a glance.<ref>{{#cite:Q1576}}</ref> Numerical methods, such as [[Euler's method]], work by following such arrows step by step: from a starting point, read the slope of the arrow there, take a small step in that direction, read the new arrow, and repeat.
$$\int\frac{dT}{T-T_a}=-k\int dt\;\Longrightarrow\;\ln|T-T_a|=-kt+C\;\Longrightarrow\;T-T_a=Ce^{-kt}$$


== Solving differential equations ==
so with $T(0)=T_0$, hence $C=T_0-T_a$,


There is no single recipe that solves every differential equation. The practical approach is to recognise which family an equation belongs to, then apply that family's method. The subsections below work through the families that appear most often, each stated in general and then illustrated with numbers; the last subsection collects the routes taken when none of these formulas applies.
$$T(t)=T_a+(T_0-T_a)e^{-kt}$$


=== Separation of variables ===
==== Method 2: linear first-order equations (integrating factor) ====


A first-order equation is '''separable''' when the right-hand side splits into a factor that depends only on $x$ and a factor that depends only on $y$:
'''General case.''' For the linear equation


{{#content:Q1612}}
$$y'+p(x)\,y=q(x)$$


The arrow shows the whole method: divide both sides by $h(y)$ and integrate, so that all the $y$'s are on one side and all the $x$'s on the other. The two worked examples below carry this out completely, and both lead to the same conclusion: quantities whose rate of change is proportional to their own size change exponentially.
introduce the integrating factor $\mu=e^{\int p\,dx}$, chosen so that $\mu'=p\mu$; multiplying by $\mu$ collapses the left-hand side into a single derivative:


==== Worked example: exponential growth and decay ====
{{#content:Q1613}}


Many quantities change at a rate proportional to their own size. A population with unlimited food grows faster the larger it is, money in a bank earns interest in proportion to the balance, and the number of radioactive atoms left decreases in proportion to how many remain. Writing the constant of proportionality as $k$,
Integrating both sides,


{{#content:Q1584}}
$$\mu y=\int\mu\,q\,dx+C\;\Longrightarrow\;y=\frac{1}{\mu}\int\mu\,q\,dx+\frac{C}{\mu}$$


where $k$ is a constant. To solve it, divide both sides by $y$ and integrate both sides with respect to $t$:
If you notice, the first term $y=\frac{1}{\mu}\int\mu\,q\,dx$$\frac{C}{\mu}$ provides one particular solution to the non-homogeneous equation, and the second term, $C/\mu=Ce^{-\int p\,dx}$, is a solution to the homogeneous counter par of the original equation: $y'+p(x)\,y=0$. It generalises the solution to the entire solution family.


$$\frac{1}{y}\frac{dy}{dt}=k\qquad\Longrightarrow\qquad\int\frac{dy}{y}=\int k\,dt$$
This is in fact a general principle: $y=y_p+y_h$, i.e., the solution family of a non-homogeneous equation is the sum of one particular solution plus the solution to its homogeneous counterpart.


The left-hand integral is $\ln|y|$, so
To see the method in action, consider


$$\ln|y| = kt + C$$
$$ \frac{dy}{dx} + \frac{1}{x}\,y = x^2, \qquad x>0. $$


Exponentiating both sides (raising $e$ to the power of each side) removes the logarithm:
Here $P(x)=1/x$, so


$$|y|=e^{kt+C}=e^{C}e^{kt}$$
$$ \mu(x)=e^{\int \frac{1}{x}\,dx}=e^{\ln x}=x. $$


The sign of $y$ never changes, so the absolute value can be dropped by absorbing the sign into the constant. Writing $y_{0}$ for the value at $t = 0$, we obtain
Multiply the whole equation by $\mu(x)=x$:


{{#content:Q1585}}
$$ x\frac{dy}{dx} + y = x^3. $$


With numbers: suppose €1000 is deposited in an account paying 5% per year with interest added continuously, so $k = 0.05$ per year and $y_{0} = 1000$. The balance is $y(t) = 1000\,e^{0.05t}$, and after 10 years
The left side is exactly the derivative of the product $x\,y$:


$$y(10)=1000\,e^{0.05\times 10}=1000\,e^{0.5}\approx 1648.7$$
$$ \frac{d}{dx}\bigl(xy\bigr) = x^3. $$


so the deposit has grown to about €1649. To find when it doubles, set $y(t) = 2000$ and solve:
Integrate with respect to $x$:


$$1000\,e^{0.05t}=2000\qquad\Longrightarrow\qquad e^{0.05t}=2\qquad\Longrightarrow\qquad t=\frac{\ln 2}{0.05}\approx 13.9\ \text{years}$$
$$ xy = \int x^3\,dx = \frac{x^4}{4} + C. $$


For $k < 0$ the same formula describes decay rather than growth. Radioactive substances are usually described by their '''half-life''', the time in which half the atoms decay; setting $y(t)=y_{0}/2$ gives $t_{1/2}=(\ln 2)/(-k)$.
Finally, divide by $x$ to obtain the general solution:


==== Worked example: Newton's law of cooling ====
$$ y = \frac{x^3}{4} + \frac{C}{x}. $$


A hot object left in a cooler room cools at a rate proportional to how much hotter it is than the room. This is Newton's law of cooling,
A quick substitution verifies that this function family satisfies the original equation. The arbitrary constant $C$ can be determined later if an initial condition $y(x_0)=y_0$ is given.


{{#content:Q1586}}
==== Method 3: constant-coefficient linear equations (trial solutions) ====


where $T(t)$ is the temperature of the object, $T_{a}$ is the constant room temperature, and the positive constant $k$ measures how easily heat escapes.
=== Second-order ODEs ===


Separating variables means bringing everything that involves $T$ to the left:
==== Method 1: direct integration ====


$$\frac{1}{T-T_{a}}\frac{dT}{dt}=-k\qquad\Longrightarrow\qquad\int\frac{dT}{T-T_{a}}=\int -k\,dt$$
'''General case.''' For $y''=f(x)$,


Integrating both sides gives
$$y''=f(x)\;\Longrightarrow\;y'=\int f(x)\,dx+C_1\;\Longrightarrow\;y=\int\!\!\left(\int f(x)\,dx\right)dx+C_1x+C_2$$


$$\ln|T-T_{a}|=-kt+C$$
and likewise $y^{(n)}=f(x)$ by $n$ integrations.


Exponentiating both sides,
'''Example: free fall.''' A ball released above the ground falls under gravity alone, which accelerates it downward at the constant rate $g\approx 9.8\ \mathrm{m\,s^{-2}}$; Newton's second law gives the second-order equation $x''=-g$, of the form above with $f(x)=-g$. Integrating twice,


$$|T-T_{a}|=e^{-kt+C}=e^{C}e^{-kt}$$
$$x''=-9.8\;\Longrightarrow\;\frac{dx}{dt}=-9.8t+v_0\;\Longrightarrow\;x(t)=-4.9t^2+v_0t+x_0$$


The difference $T - T_{a}$ keeps its sign: positive while the object cools, negative while it warms towards a warmer room. Absorbing the sign into the constant and fixing it with the initial temperature $T(0)=T_{0}$, we obtain
Numeric scenario: the ball is dropped from rest, $v_0=0$, at height $x_0=19.6\ \mathrm{m}$. It reaches the ground, $x=0$, when


$$T(t)=T_{a}+\left(T_{0}-T_{a}\right)e^{-kt}$$
$$0=19.6-4.9t^2\;\Longrightarrow\;t=\sqrt{19.6/4.9}=2\ \text{s}$$


So the temperature does not decay exponentially, but the temperature gap $T - T_{a}$ does.
so the two initial conditions have pinned down the whole trajectory.


With numbers: suppose a drink at $80\,^{\circ}\mathrm{C}$ is left in a room at $20\,^{\circ}\mathrm{C}$, and measurement shows $k = 0.1$ per minute. Then
==== Method 2: linear equations with constant coefficients ====


$$T(t)=20+\left(80-20\right)e^{-0.1t}=20+60\,e^{-0.1t}$$
'''General case.'''


The gap starts at $60\,^{\circ}\mathrm{C}$ and shrinks by the factor $e^{-0.1t}$ each minute; it halves every $(\ln 2)/0.1 \approx 6.9$ minutes. To find when the drink reaches $40\,^{\circ}\mathrm{C}$, put $T(t)=40$:
$$y''+a\,y'+b\,y=f(x)$$


$$40=20+60\,e^{-0.1t}\qquad\Longrightarrow\qquad e^{-0.1t}=\frac{1}{3}\qquad\Longrightarrow\qquad t=10\ln 3\approx 11\ \text{minutes}$$
'''Homogeneous case ($f=0$).''' The exponential trial $y=e^{rx}$,


In about 11 minutes the drink is two-thirds of the way from $80\,^{\circ}\mathrm{C}$ down to the room's $20\,^{\circ}\mathrm{C}$, and it approaches the room temperature without ever quite reaching it.<ref>{{#cite:Q1576}}</ref>
{{#content:Q1644}}


=== First-order linear equations: the integrating factor ===
gives the characteristic equation $r^2+ar+b=0$, whose roots determine $y_h$:


The two equations just solved are separable as well as linear. Many first-order equations, however, are linear but not separable, and for those there is a general method based on the '''integrating factor'''.
* $r_1\neq r_2$ real: $y_h=C_1e^{r_1x}+C_2e^{r_2x}$;
* $r_1=r_2=r$: $y_h=(C_1+C_2x)e^{rx}$;
* $r=\alpha\pm i\beta$: $y_h=e^{\alpha x}(C_1\cos\beta x+C_2\sin\beta x)$.


Recall from the classification section that a linear first-order equation has the form
'''Non-homogeneous case ($f\neq 0$).''' $y=y_h+y_p$, with $y_p$ found by undetermined coefficients as in Method 3.


$$\frac{dy}{dx}+p(x)\,y=q(x)$$
'''Worked demonstration (homogeneous).''' $y''-3y'+2y=0$: $r^2-3r+2=(r-1)(r-2)=0$,


The idea is to multiply both sides by a function $\mu(x)$, chosen so that the left-hand side becomes the derivative of a single product $\mu(x)\,y$, which can then be integrated in one stroke. Expanding the product rule,
{{#content:Q1608}}


$$\frac{d}{dx}\bigl(\mu(x)\,y\bigr)=\mu\,\frac{dy}{dx}+\frac{d\mu}{dx}\,y$$
Check: $e^x$ gives $(1-3+2)e^x=0$.


Multiplying the equation by $\mu$ would give $\mu\,\frac{dy}{dx}+\mu p\,y$ on the left. For the two to agree, the coefficient of $y$ must match, so $\mu$ must satisfy $\mu' = p\,\mu$. This is itself a separable equation, solved exactly as in the previous subsection:
'''Worked demonstration (non-homogeneous).''' $y''-3y'+2y=2e^{3x}$: keep $y_h$ above, try $y_p=Ae^{3x}$:


$$\frac{d\mu}{dx}=p(x)\,\mu\qquad\Longrightarrow\qquad\frac{d\mu}{\mu}=p(x)\,dx\qquad\Longrightarrow\qquad\ln\mu=\int p(x)\,dx\qquad\Longrightarrow\qquad\mu(x)=e^{\int p(x)\,dx}$$
$$y_p''-3y_p'+2y_p=(9-9+2)Ae^{3x}=2Ae^{3x}\;\Longrightarrow\;A=1$$


(any constant of integration may be taken as zero, since multiplying $\mu$ by a constant changes nothing). Multiplying the original equation by this $\mu(x)$,
$$y=C_1e^x+C_2e^{2x}+e^{3x}$$


{{#content:Q1613}}
'''Example: the harmonic oscillator (a mass on a spring).''' A mass attached to a spring is pulled back towards its rest position by a force $-kx$ proportional to the displacement (Hooke's law); once released it oscillates. Newton's second law models the motion,


and because the left-hand side is now a single derivative, both sides integrate immediately:
$$m\frac{d^2x}{dt^2}=-kx\;\Longrightarrow\;x''+\omega_0^2x=0,\qquad \omega_0=\sqrt{\frac{k}{m}}$$


$$\mu(x)\,y=\int \mu(x)\,q(x)\,dx + C$$
{{#content:Q1588}}


Worked example. Solve $y' + y = e^{-x}$. Here $p = 1$, so the integrating factor is
The trial $x=e^{rt}$ gives the characteristic equation $r^2+\omega_0^2=0$ with roots $r=\pm i\omega_0$, the complex-pair case with $\alpha=0$, hence


$$\mu=e^{\int 1\,dx}=e^{x}$$
$$x(t)=A\cos\omega_0t+B\sin\omega_0t$$


Multiplying both sides by $e^{x}$,
with $A,B$ fixed by the initial position and velocity.


$$e^{x}y'+e^{x}y=e^{x}e^{-x}=1$$
[[File:Simple harmonic motion animation.gif|thumb|A mass on a spring: the harmonic oscillator solution is a sinusoid of fixed amplitude. Credit: Evil saltine (public domain).]]


The left-hand side is $(e^{x}y)'$, so
Numeric scenario: a mass $m=2\ \mathrm{kg}$ hangs on a spring with $k=8\ \mathrm{N\,m^{-1}}$, so $\omega_0=\sqrt{8/2}=2\ \mathrm{rad\,s^{-1}}$ and the displacement obeys $x''+4x=0$. Pulled $0.10\ \mathrm{m}$ from rest and released, the conditions $x(0)=0.10$, $x'(0)=0$ give $A=0.10$, $B=0$:


$$\left(e^{x}y\right)'=1\qquad\Longrightarrow\qquad e^{x}y=x+C\qquad\Longrightarrow\qquad y=(x+C)e^{-x}$$
$$x(t)=0.10\cos 2t\ \mathrm{m},\qquad P=\frac{2\pi}{\omega_0}=\pi\approx 3.14\ \text{s}$$


{{#content:Q1607}}
After one second $x(1)=0.10\cos 2\approx -0.042\ \mathrm{m}$, and the motion is '''simple harmonic motion'''.<ref>{{#cite:Q1577}}</ref>


An initial condition fixes the constant: if $y(0)=2$, then $2=(0+C)e^{0}$, so $C=2$ and $y=(x+2)e^{-x}$.<ref>{{#cite:Q1576}}</ref><ref>{{#cite:Q1577}}</ref>
=== Partial differential equations ===


=== Constant-coefficient linear equations of order two ===
Two standard techniques give closed-form solutions of linear PDEs: separation of variables, for separable problems on bounded domains, and the method of characteristics, for first-order equations. The wave equation is also solved by the second technique, because its operator factors into two first-order parts. Both methods below are stated in general and then applied to a concrete equation.


The methods so far solve first-order equations. The most important second-order family is the linear equation with constant coefficients,
==== Method 1: separation of variables ====


$$y''+a\,y'+b\,y=0$$
'''General form.''' For a linear homogeneous PDE in two variables on a bounded domain with homogeneous boundary conditions, seek a solution of the separated form


which models systems pulled back towards a resting state: a mass on a spring, a pendulum swinging through small angles, and an electric circuit containing a capacitor and an inductor. The key idea is to try an exponential solution $y=e^{rx}$, because the derivative of an exponential is again a multiple of itself, so substituting turns the differential equation into an ordinary algebraic equation:
$$u(x,t)=X(x)\,T(t)$$


{{#content:Q1644}}
Substituting into the PDE and dividing by $XT$ separates the variables into one ordinary differential equation in $x$ and one in $t$. Since the two sides are functions of different variables, they can be identically equal only if each equals the same constant, the separation constant $-\lambda$. The $x$-equation together with the boundary conditions is an eigenvalue problem: only a discrete sequence of constants $\lambda_n$, with eigenfunctions $X_n(x)$, is admissible. The $t$-equation then has a solution $T_n(t)$ for each $n$, and every product $X_nT_n$ solves the PDE.


To see where the arrow comes from, substitute $y=e^{rx}$ together with $y'=re^{rx}$ and $y''=r^{2}e^{rx}$ into the equation:
'''General algebraic solution.''' The PDE is linear and homogeneous, so the separated modes superimpose:


$$r^{2}e^{rx}+a\,r\,e^{rx}+b\,e^{rx}=\left(r^{2}+a\,r+b\right)e^{rx}=0$$
$$u(x,t)=\sum_n c_n\,X_n(x)\,T_n(t)$$


Since $e^{rx}$ is never zero, divide both sides by it:
with the coefficients $c_n$ chosen so that the series equals the initial profile $u(x,0)$; orthogonality of the eigenfunctions $X_n$ determines them.


$$r^{2}+a\,r+b=0$$
'''Example: the heat equation.''' The temperature of a bar of length $L$ with insulated sides and both ends held at $0$ obeys


This is the '''characteristic equation'''. It is an ordinary quadratic equation, and the form of the solution depends on the kind of roots it has:
$$\frac{\partial u}{\partial t}=\alpha\frac{\partial^2u}{\partial x^2},\qquad u(0,t)=u(L,t)=0$$


* '''Two distinct real roots''', $r_{1} \neq r_{2}$: the general solution is $y=C_{1}e^{r_{1}x}+C_{2}e^{r_{2}x}$, a sum of two exponentials.
Substituting $u=X(x)T(t)$ gives $XT'=\alpha X''T$, and dividing by $\alpha XT$,
* '''One repeated real root''', $r$: the general solution is $y=\left(C_{1}+C_{2}x\right)e^{rx}$; the extra factor $x$ supplies the second arbitrary constant.
* '''A complex conjugate pair''', $r=\alpha \pm i\beta$: the general solution is $y=e^{\alpha x}\left(C_{1}\cos\beta x + C_{2}\sin\beta x\right)$, which oscillates, growing or fading in size according to the sign of $\alpha$.


A quick numerical example of the first case: solve $y''-3y'+2y=0$. Substituting $y=e^{rx}$ gives $r^{2}-3r+2=0=(r-1)(r-2)$, so the roots are $1$ and $2$, and
{{#content:Q1622}}


{{#content:Q1608}}
The $t$-equation $T'=-\alpha\lambda T$ has solution $T=e^{-\alpha\lambda t}$, and the $x$-equation


Each term works, as can be checked directly: for $y=e^{x}$, one has $y''-3y'+2y=(1-3+2)e^{x}=0$, and similarly for $e^{2x}$.
$$X''=-\lambda X\;\Longrightarrow\;X=A\cos(\sqrt\lambda\,x)+B\sin(\sqrt\lambda\,x)$$


==== Example: the harmonic oscillator (a mass on a spring) ====
together with the boundary conditions forces $X(0)=X(L)=0$: hence $A=0$ and $\sin(\sqrt\lambda\,L)=0$, so $\sqrt\lambda\,L=n\pi$, $n=1,2,\dots$. Each $\lambda=(n\pi/L)^2$ gives one mode


Some quantities do not settle towards a level but swing back and forth. The complex-root case above is not an exotic exception: it is exactly what happens for the most common oscillating system of all. Consider a mass $m$ attached to a spring. If the spring is displaced a distance $x$ from its rest position, it pulls back with a force $-kx$ proportional to the displacement (Hooke's law), where the spring constant $k$ measures how stiff the spring is. Newton's second law therefore gives
$$u_n(x,t)=\sin\frac{n\pi x}{L}\,e^{-\alpha(n\pi/L)^2t}$$


$$m\frac{d^{2}x}{dt^{2}}=-kx\qquad\Longrightarrow\qquad\frac{d^{2}x}{dt^{2}}+\frac{k}{m}x=0$$
and the general algebraic solution above becomes


Writing $\omega_{0}^{2} = k/m$, this becomes the '''harmonic oscillator equation''':
{{#content:Q1611}}


{{#content:Q1588}}
with $b_n$ determined by the Fourier sine series of the initial profile $u(x,0)$; the decay rate $\alpha(n\pi/L)^2$ grows as $n^2$.


Its characteristic equation is $r^{2}+\omega_{0}^{2}=0$, with the purely imaginary roots $r=\pm i\omega_{0}$: this is the complex-conjugate case above with $\alpha=0$ and $\beta=\omega_{0}$. The equation asks for a function whose second derivative is a negative constant multiple of itself, and the sine and cosine have exactly this property. Differentiating $\cos(\omega_{0}t)$ twice brings out two factors of $\omega_{0}$ and a minus sign:
Numeric scenario: a $1\ \mathrm{m}$ iron bar, heated so that its centre is at $100\,^{\circ}\mathrm{C}$ while both ends are held at $0\,^{\circ}\mathrm{C}$, cools by conduction with iron's diffusivity $\alpha\approx 2.3\times10^{-5}\ \mathrm{m^2s^{-1}}$. The initial profile $u(x,0)=100\sin(\pi x/L)$ is exactly the first mode, so only $n=1$ contributes and


$$\frac{d}{dt}\cos(\omega_{0}t)=-\omega_{0}\sin(\omega_{0}t),\qquad \frac{d^{2}}{dt^{2}}\cos(\omega_{0}t)=-\omega_{0}^{2}\cos(\omega_{0}t)$$
$$u(x,t)=100\sin\frac{\pi x}{L}\,e^{-\alpha\pi^2t/L^2}$$


so $x = \cos(\omega_{0}t)$ solves the equation, and so does $x = \sin(\omega_{0}t)$. Because the equation is linear and homogeneous, the superposition principle applies and the general solution is
At the centre, with $L=1$ and $\alpha\pi^2\approx 2.3\times10^{-4}\ \text{s}^{-1}$,


$$x(t)=A\cos(\omega_{0}t)+B\sin(\omega_{0}t)$$
$$u\!\left(\tfrac12,t\right)=100\,e^{-2.3\times10^{-4}t}$$


The two constants $A$ and $B$ are fixed by the initial displacement and the initial velocity, exactly as the order of the equation requires.
so after one hour $u\approx 100e^{-0.82}\approx 44\,^{\circ}\mathrm{C}$, and $50\,^{\circ}\mathrm{C}$ is reached at $t=\ln 2/(2.3\times10^{-4})\approx 3050\ \text{s}\approx 51$ min.<ref>{{#cite:Q1579}}</ref>


[[File:Simple harmonic motion animation.gif|thumb|A mass on a spring executes simple harmonic motion: the solution of the harmonic oscillator equation is a sinusoid of fixed amplitude and frequency. Credit: Evil saltine (public domain).]]
==== Method 2: the method of characteristics ====


A concrete example. Take a mass of $2\ \mathrm{kg}$ on a spring with $k = 8\ \mathrm{N/m}$, so that $\omega_{0} = \sqrt{k/m} = \sqrt{4} = 2$ radians per second. Pull the mass $10\ \mathrm{cm}$ out and release it from rest: the initial velocity is zero, so $B = 0$, and $x(t) = 0.10\cos(2t)$ metres. The motion repeats after one period
'''General form.''' The method of characteristics solves first-order PDEs by tracing curves along which the PDE reduces to ordinary differential equations. In two independent variables the general quasilinear first-order equation is


$$P=\frac{2\pi}{\omega_{0}}=\pi\ \text{seconds}\approx 3.14\ \text{s}$$
$$A(x,t,u)\,u_x+B(x,t,u)\,u_t=C(x,t,u)$$


so the mass returns to its starting point roughly every 3.14 seconds. One second after release, measuring angles in radians,
A solution $u=u(x,t)$ is a surface in $(x,t,u)$-space. Its tangent plane at each point is spanned by $(1,0,u_x)$ and $(0,1,u_t)$, so a vector $(A,B,C)$ is tangent to the surface exactly when $C=A u_x+B u_t$, the condition expressed by the PDE itself. The solution surface is therefore swept out by the integral curves of the vector field $(A,B,C)$, the characteristic curves, which solve the characteristic system of ordinary differential equations


$$x(1)=0.10\cos(2)\approx 0.10\times(-0.416)\approx -0.042\ \text{m}$$
$$\frac{dx}{ds}=A(x,t,u),\qquad \frac{dt}{ds}=B(x,t,u),\qquad \frac{du}{ds}=C(x,t,u)$$


about 4 cm on the other side of the rest position. This kind of motion, a sinusoid of fixed amplitude, is called '''simple harmonic motion''', and the oscillator equation governs not only springs but pendulums (for small swings), electric circuits, and the vibrations of molecules.<ref>{{#cite:Q1577}}</ref>
Given data on a curve that is not itself characteristic, such as $u(x,0)=u_0(x)$, one characteristic issues from each point of the curve, and integrating the system carries the data across the region the characteristics cover. For the linear homogeneous case


=== Partial differential equations: separating variables in the heat equation ===
$$a(x,t)\,u_x+b(x,t)\,u_t=0$$


Exact formulas for partial differential equations exist only for a few simple, usually linear, problems, but these are precisely the problems at the heart of physics and engineering. The standard technique is again separation of variables, but now the variables to be separated are the independent variables themselves, here the position $x$ and the time $t$.
the $x$- and $t$-equations do not involve $u$, and the third gives $du/ds=0$: the solution is constant along each characteristic. The characteristics form a one-parameter family; let $\psi(x,t)=\text{const}$ be a first integral, a function constant on each member of the family.


Return to the metal bar of the classification section, this time of length $L$ with its sides insulated, so that heat flows only along the bar, and with both ends held at temperature $0$. Its temperature $u(x,t)$ satisfies the heat equation, reproduced here:
'''General algebraic solution.''' Since $u$ is constant on every characteristic and the characteristics are the level sets of $\psi$, the general solution is an arbitrary function of the first integral,


$$\frac{\partial u}{\partial t}=\alpha\,\frac{\partial^{2}u}{\partial x^{2}}$$
$$u(x,t)=F\bigl(\psi(x,t)\bigr)$$


Separation of variables looks for a solution that splits into a product of a function of $x$ alone and a function of $t$ alone:
with $F$ fixed by the initial data. When the right-hand side of the PDE is nonzero, $u$ changes along a characteristic at the rate $C$ (or of the given source term), so the general solution acquires an integral of that term along the curve.


$$u(x,t)=X(x)\,T(t)$$
'''Example: transport of a pollutant.''' For constant coefficients $c$ the equation $u_t+c\,u_x=0$ has characteristics $dx/dt=c$, the straight lines $x-ct=\text{const}$; hence $\psi=x-ct$, and the general algebraic solution is the travelling wave


Substituting into the heat equation gives $X\,T'=\alpha\,X''\,T$. Divide both sides by $\alpha X T$:
$$u(x,t)=F(x-ct),\qquad u(x,0)=F(x)$$


{{#content:Q1622}}
A river flows steadily at speed $c=2\ \mathrm{m\,s^{-1}}$, and a factory releases a concentrated slug of pollutant at one point; as long as mixing and diffusion are negligible, the current simply carries the whole slug downstream without changing it. The concentration obeys $u_t+2u_x=0$ with the Gaussian initial profile


The left-hand side now depends only on $t$ and the right-hand side only on $x$. Since $x$ and $t$ can vary independently, the only way two functions of different variables can be equal for all $x$ and $t$ is that both sides equal the same constant, written above as $-\lambda$. This splits the partial differential equation into two ordinary ones:
$$u(x,0)=50\,e^{-(x/10)^2}\ \mathrm{mg\,L^{-1}}$$


* $T'=-\alpha\lambda\,T$: exponential decay, the growth equation of this article with $k=-\alpha\lambda<0$, giving $T=e^{-\alpha\lambda t}$;
(peak $50\ \mathrm{mg\,L^{-1}}$ at the release point, falling by $e^{-1}$ ten metres away). The solution above gives
* $X''=-\lambda X$: the function whose second derivative is a negative constant multiple of itself, giving sines and cosines of $\sqrt{\lambda}\,x$.


The ends of the bar are held at temperature $0$, so $u(0,t)=u(L,t)=0$, which forces $X(0)=X(L)=0$. The condition $X(0)=0$ removes the cosine, and $X(L)=0$ forces $\sin(\sqrt{\lambda}\,L)=0$, so $\sqrt{\lambda}\,L=n\pi$ for a positive whole number $n$. Thus only the special values $\lambda=(n\pi/L)^{2}$ are allowed, each giving one mode
$$u(x,t)=50\,e^{-((x-2t)/10)^2}\ \mathrm{mg\,L^{-1}}$$


$$u_{n}(x,t)=\sin\left(\frac{n\pi x}{L}\right)e^{-\alpha(n\pi/L)^{2}t}$$
After one minute the peak has moved from $x=0$ to $x=ct=120\ \mathrm{m}$, still reading $50\ \mathrm{mg\,L^{-1}}$; pure transport does not spread the slug, which would require the second-order term $\alpha u_{xx}$ of the heat equation. With a source $q(x,t)$, the value accumulates along each characteristic:


a half-wave, or several half-waves, of a sine curve that sinks towards zero as heat leaks out of the ends. Because the heat equation is linear and homogeneous, superposition applies: any sum of modes is again a solution, and the general solution is
$$u(x,t)=F(x-ct)+\int_0^t q\bigl(x-c(t-\tau),\tau\bigr)\,d\tau$$


{{#content:Q1611}}
'''Example: the wave equation.''' The wave equation


The numbers $b_{n}$ are fixed by the initial temperature profile $u(x,0)$ at $t=0$; writing an arbitrary initial profile as such a sum of sine waves is exactly what Fourier's sine series does.
$$u_{tt}=c^2u_{xx}$$


Two features are worth noticing. First, every mode decays exponentially, so the bar does not oscillate: heat spreads and the temperature evens out. Second, modes with more wiggles decay faster, because their rate $-\alpha(n\pi/L)^{2}$ is larger in magnitude, so after a short time only the $n=1$ mode, one smooth half-sine across the whole bar, is left.
is second order, yet its operator factors into two first-order transport operators, so the method of characteristics still applies. Introduce the characteristic coordinates


A concrete check with numbers: take a one-metre iron bar (iron's thermal diffusivity is $\alpha \approx 2.3\times10^{-5}\ \mathrm{m^{2}\,s^{-1}}$) whose initial temperature is $u(x,0)=100\sin(\pi x/L)$, that is, $0\,^{\circ}\mathrm{C}$ at the ends and $100\,^{\circ}\mathrm{C}$ in the middle. Only the $n=1$ mode is present, so
$$\xi=x-ct,\qquad \eta=x+ct$$


$$u(x,t)=100\,\sin\left(\frac{\pi x}{L}\right)e^{-\alpha\pi^{2}t/L^{2}}$$
in which the operator becomes $u_{tt}-c^2u_{xx}=-4c^2u_{\xi\eta}$, so the equation reads $u_{\xi\eta}=0$. Hence $u_\xi$ depends on $\xi$ alone, and one further integration gives the general algebraic solution (d'Alembert, 1747):


With $L=1\ \mathrm{m}$, the decay rate is $\alpha\pi^{2}\approx 2.3\times10^{-5}\times9.87\approx 2.3\times10^{-4}$ per second. At the centre of the bar, where the sine equals $1$,
$$u(x,t)=f(x-ct)+g(x+ct)$$


$$u\!\left(\tfrac{1}{2},t\right)=100\,e^{-2.3\times10^{-4}\,t}$$
a superposition of two travelling waves, one in each direction. The functions $f,g$ are fixed by the initial displacement and velocity: for a string released from rest with initial displacement $\phi(x)$, the conditions $u(x,0)=\phi(x)$ and $u_t(x,0)=0$ give $f=g=\phi/2$, so


After one hour ($t=3600\ \mathrm{s}$) the exponent is $2.3\times10^{-4}\times3600\approx0.82$, so the centre has cooled to $100\,e^{-0.82}\approx44\,^{\circ}\mathrm{C}$, and it reaches $50\,^{\circ}\mathrm{C}$ after $t=(\ln 2)/(2.3\times10^{-4})\approx 3050\ \mathrm{s}$, about 51 minutes. The heat has flowed out through the ends, exactly the phenomenon Fourier set out to describe.<ref>{{#cite:Q1579}}</ref>
$$u(x,t)=\frac{\phi(x-ct)+\phi(x+ct)}{2}$$


=== When no formula is possible: numerical, series, and qualitative methods ===
and the initial hump separates into two half-size copies travelling apart at speed $c$.<ref>{{#cite:Q1579}}</ref>


The families above, separable and linear with convenient coefficients, cover a great many practical equations, but they are a small minority of all differential equations. There is no guarantee that a given equation, especially a nonlinear one, has a solution expressible in terms of the familiar functions at all. Such equations are studied in one of three ways:
=== When no formula exists ===


* '''Numerical approximation''', when numbers are what is needed: [[Euler's method]] steps forward along the slope field, replacing the exact solution by a polygonal path, and its refinements underlie most computer simulations;
Most equations, especially nonlinear ones, fit none of the classes above and have no solution in terms of familiar functions. They are studied in one of three ways:<ref>{{#cite:Q1576}}</ref><ref>{{#cite:Q1578}}</ref>
* '''[[Qualitative methods]]''', when behaviour matters more than numbers: the solutions are studied through the slope field, equilibria, stability, and long-term behaviour, without ever writing a formula;
* '''Series and integral transforms''', for special but important cases: when an equation is linear, a solution can sometimes be written as an infinite series ([[Power series]]) or recovered from an algebraic equation by the [[Laplace transform]].


Choosing between these routes is part of the art of applying mathematics, and the diagram below summarises the decision process of this whole article.<ref>{{#cite:Q1576}}</ref><ref>{{#cite:Q1578}}</ref>
* '''Numerically''', when numbers suffice: [[Euler's method]] steps along the slope field;
* '''[[Qualitative methods]]''': equilibria, stability and long-term behaviour, without formulas;
* '''Series and transforms''', for linear cases: [[Power series]] or the [[Laplace transform]].


<uml type="uml">
<uml type="uml">
Line 355: Line 348:
start
start
:You have a differential equation;
:You have a differential equation;
if (Is it first order and separable?\ny' = g(x) h(y)?) then (yes)
if (First order and separable?\ny' = g(x) h(y)?) then (yes)
   :Separate and integrate:\n∫ dy/h(y) = ∫ g(x) dx;
   :Separate and integrate:\n∫ dy/h(y) = ∫ g(x) dx;
else (no)
else (no)
   if (Is it first order and linear?\ny' + p(x) y = q(x)?) then (yes)
   if (First order and linear?\ny' + p(x) y = q(x)?) then (yes)
     :Multiply by the integrating factor\nμ = e^{∫ p dx}, then integrate;
     if (Constant coefficients?\ny' + a y = q(x)?) then (yes)
      :Trial solution:\ny_h = C e^{-ax} + guessed y_p;
    else (no)
      :Integrating factor\nμ = e^{∫ p dx};
    endif
   else (no)
   else (no)
     if (Is it second order, linear, with constant coefficients?\ny'' + a y' + b y = 0?) then (yes)
     if (Second order, of the form\ny'' = f(x)?) then (yes)
       :Solve the characteristic equation\nr² + a r + b = 0;
       :Integrate twice;
     else (no)
     else (no)
       if (Is it a linear PDE on a simple\nshape, e.g. the heat equation?) then (yes)
       if (Second order, linear, constant coefficients?\ny'' + a y' + b y = 0? or = f(x)?) then (yes)
         :Separate the variables:\nu(x,t) = X(x) T(t);
         :Characteristic equation\nr² + a r + b = 0;\nthen add a particular y_p;
       else (no)
       else (no)
         if (Are approximate numbers enough?) then (yes)
         if (Transport equation?\nu_t + c u_x = 0?) then (yes)
           :Step forward numerically\n(article: Euler's method);
           :Travelling wave\nu(x,t) = f(x - ct);
         else (no)
         else (no)
           if (Is the equation linear?) then (yes)
           if (Linear PDE on a simple shape,\ne.g. the heat equation?) then (yes)
             :Power series or Laplace transform\n(articles: Power series, Laplace transform);
             :Separate variables\nu(x,t) = X(x) T(t);
           else (no)
           else (no)
             :Study behaviour without formulas:\nequilibria, stability, chaos\n(article: Qualitative methods);
             if (Are approximate numbers enough?) then (yes)
              :Numerical stepping\n(Euler's method);
            else (no)
              if (Linear?) then (yes)
                :Power series or Laplace transform;
              else (no)
                :Qualitative study:\nequilibria, stability, chaos;
              endif
            endif
           endif
           endif
         endif
         endif
Line 384: Line 389:
</uml>
</uml>


As the diagram shows, the exact methods occupy only the first few branches; most equations encountered in research are handled by the routes at the bottom of the diagram, each of which has its own article.
The exact methods occupy the branches on the left; most equations encountered in research fall through to the routes on the right, each treated in its own article.


== A short history ==
== A short history ==


Differential equations are as old as the calculus itself, because the calculus is the mathematics of change: the laws of physics say how quantities change, and predicting the future means undoing those changes. When Newton published his laws of motion and of gravitation in the ''Principia'' in 1687, the equations he needed were differential equations, and he solved them by geometry and by infinite series. Newton had his own notation for rates of change, but it was Leibniz's $dy/dx$, first written in the 1670s, that survived: it displays the whole equation on the page, and it is the notation used throughout this article.<ref>{{#cite:Q1577}}</ref>
The origins of differential equations coincide with those of the calculus, since the calculus supplies the language in which rates of change are expressed and inverted. Newton's laws of motion and of universal gravitation, published in the ''Philosophiae Naturalis Principia Mathematica'' (1687), are differential equations; Newton treated them by the geometrical and infinite-series methods of his fluxional calculus. Although Newton developed a notation for fluxions, the differential notation $dy/dx$ introduced by Leibniz in the 1670s proved the more enduring: it exhibits the structure of the equation directly and is the notation adopted in this article.<ref>{{#cite:Q1577}}</ref>


[[File:Isaac Newton portrait.jpg|thumb|left|Isaac Newton (portrait after Godfrey Kneller, 1689). The laws of motion and of gravitation published in the ''Principia'' (1687) are differential equations. Credit: James Thronill after Godfrey Kneller (public domain).]]
[[File:Isaac Newton portrait.jpg|thumb|left|Isaac Newton (portrait after Godfrey Kneller, 1689). Newton's laws of motion and of gravitation (''Principia'', 1687) are differential equations. Credit: James Thronill after Godfrey Kneller (public domain).]]


The scattered tricks of the early calculus became a subject when [[Person:Leonhard Euler|Leonhard Euler]] took them up in the middle decades of the 18th century. He recognised that a linear equation with constant coefficients is solved by substituting $y=e^{rx}$, turning calculus into algebra; he developed series solutions; and, for equations that resisted formulas, he invented the step-by-step numerical scheme, described in this article, that still bears his name. Most of the exact methods above descend from his work.<ref>{{#cite:Q1577}}</ref>
The consolidation of these techniques into a systematic theory is due in large measure to [[Person:Leonhard Euler|Leonhard Euler]], whose work in the middle decades of the eighteenth century established the principal exact methods. Euler showed that linear equations with constant coefficients are solved by the substitution $y=e^{rx}$, which reduces the problem to an algebraic equation, and he advanced the theory of series solutions. For equations that admitted no closed-form solution, he introduced the step-by-step numerical procedure, described above as Euler's method, that bears his name. The exact methods presented in this article derive, in large part, from his work.<ref>{{#cite:Q1577}}</ref>


[[File:Leonhard Euler portrait.jpg|thumb|Leonhard Euler (portrait by Jakob Emanuel Handmann, 1753). Credit: Jakob Emanuel Handmann (public domain).]]
[[File:Leonhard Euler portrait.jpg|thumb|Leonhard Euler (portrait by Jakob Emanuel Handmann, 1753). Credit: Jakob Emanuel Handmann (public domain).]]


Meanwhile physics began asking for equations with more than one independent variable. A plucked string takes a shape that depends on position along the string and on time, and in 1747 [[Person:Jean le Rond d'Alembert|Jean le Rond d'Alembert]] wrote down the wave equation for it and solved it, showing that its solutions are two waves travelling in opposite directions. Heat conduction posed a subtler problem, because the initial temperature of a bar can have any shape at all. [[Person:Joseph Fourier|Joseph Fourier]] derived the heat equation from the physics of conduction and, to solve it, had to express an arbitrary initial profile as a sum of sine ripples. His ''Théorie analytique de la chaleur'' of 1822 turned separation of variables into a cornerstone of applied mathematics, and the Fourier series invented for the purpose now appears wherever signals are analysed, from acoustics to image compression.<ref>{{#cite:Q1579}}</ref>
The theory of partial differential equations arose from the demands of eighteenth-century physics. In 1747, [[Person:Jean le Rond d'Alembert|Jean le Rond d'Alembert]] derived the wave equation for the vibrating string and established that its general solution consists of two waves propagating in opposite directions. The problem of heat conduction proved more demanding, because the initial temperature distribution of a conducting body is arbitrary. In his ''Théorie analytique de la chaleur'' (1822), [[Person:Joseph Fourier|Joseph Fourier]] derived the heat equation from the physical principles of conduction and solved it by expanding the initial data into a trigonometric series. This work established separation of variables as a standard technique of mathematical physics, and the Fourier series introduced for the purpose has since become fundamental to the analysis of periodic phenomena, from acoustics to signal processing.<ref>{{#cite:Q1579}}</ref>


The exact formulas, however, have their limits, and the history of the subject since the late 19th century is largely the story of what to do when no formula exists. Studying the three-body problem of celestial mechanics, [[Person:Henri Poincaré|Henri Poincaré]] realised that the shape of the motion can be understood without solving the equations, founding the qualitative theory of dynamical systems. The electronic computer then made the numerical route routine: approximate the solution step by step, as Euler's method does, refining the steps until the error is acceptable. The two strands met in 1963, when the meteorologist [[Person:Edward Lorenz|Edward Lorenz]] found that a simple system of three differential equations, meant to model atmospheric convection, behaved chaotically: the equations were deterministic, yet their solutions were aperiodic and so sensitive to initial conditions that long-term weather prediction is impossible in practice. Each of these later routes, qualitative study, numerical stepping, series, and transforms, is the subject of its own article.<ref>{{#cite:Q1578}}</ref>
The limits of closed-form methods became apparent towards the end of the nineteenth century, and the later history of the subject is concerned principally with equations for which elementary solutions do not exist. In his investigation of the three-body problem of celestial mechanics, [[Person:Henri Poincaré|Henri Poincaré]] demonstrated that qualitative properties of the motion, such as its equilibria, stability, and long-term behaviour, can be characterised without solving the equations, thereby founding the qualitative theory of dynamical systems. The subsequent development of electronic computing made numerical approximation, of which Euler's method is the simplest instance, a routine and general technique. The two strands converged in 1963, when [[Person:Edward Lorenz|Edward Lorenz]], studying a simplified system of three ordinary differential equations that models atmospheric convection, established the phenomenon of deterministic chaos: although the equations are deterministic, their solutions are aperiodic and depend so sensitively on initial conditions that long-term weather prediction is not feasible in practice. These later approaches, qualitative analysis, numerical approximation, and series and transform methods, are treated in dedicated articles.<ref>{{#cite:Q1578}}</ref>


== References ==
== References ==

Latest revision as of 11:56, 7 September 2026

Languages: English · français · Esperanto

A differential equation is an equation whose unknown is a function and which also involves that function's derivatives (rates of change). Where an ordinary equation such as $x^2=9$ is solved by numbers, a differential equation such as $y'+2y=0$ is solved by functions $y(x)$.

A surprising number of laws of nature can be described by differential equations: pendulums, cooling drinks, growing populations, and discharging capacitors.

General and specific solution

The simplest differential equation prescribes the slope of a function $y(x)$:

$$\frac{dy}{dx}=2x$$

Integrating both sides gives

$$\int\frac{dy}{dx}\,dx=\int 2x\,dx\qquad\Longrightarrow\qquad y(x)=x^{2}+C$$

Where $C$ is an unknown constant. Therefore, the solution is not one single function, but a family of functions, known as the general solution.

If we know the value of $y$ at a particular $x$, for instance, $y(0)=3$, then a particular solution function can be identified

$$3=0^2+C\qquad\Longrightarrow\qquad C=3\qquad\Longrightarrow\qquad y=x^2+3$$

A prescribed value such as $y(a)=b$ allowing us to pin down a particular solution is called an initial condition.

Classifying differential equations

A differential equation can be classified by three criteria: its order, its linearity, and how many independent variables it involves.

Order

The order is the order of the highest derivative present.

$\frac{dy}{dx}=2x$ is first order, whereas Newton's second law,

m\frac{d^{2}x}{dt^{2}}=F

is second order ($x(t)$ position of mass $m$, $F$ net force).

Linearity and homogeneity

An equation is linear when the unknown and its derivatives appear only to the first power and never multiplied together. A linear first-order equation can always be written

$$\frac{dy}{dx}+p(x)\,y=q(x)$$

It is said to be homogeneous when $q(x)=0$.

The equations $dy/dx=y^2$ and $d^2\theta/dt^2+\sin\theta=0$ are nonlinear (square of $y$; sine of $\theta$).

An important property of linear homogeneous equation is the superposition principle. If $y_1,y_2$ solve a homogeneous linear equation, so does $c_1y_1+c_2y_2$.

For a nonlinear equation, the same principle usually does not apply: if $y'=y^2$ has two solutions $y_1'=y_1^2$ and $y_2'=y_2^2$

$$(y_1+y_2)'=y_1^2+y_2^2\neq (y_1+y_2)^2$$

so $y_1+y_2$ does not solve $y'=y^2$.

Ordinary and partial

An ordinary differential equation (ODE) has one independent variable. A partial differential equation (PDE) has several, with partial derivatives. All the examples we have seen above are ordinary differential equations. For an example of a partial differential equation, we can take the heat equation describing the temperature $u$ of an insulated metal bar, according to position $x$ on the metal bar and time $t$

\frac{\partial u}{\partial t}=\alpha\frac{\partial^{2}u}{\partial x^{2}}

where $\alpha$ is the thermal diffusivity.

Direction field

A first-order equation can be written

\frac{dy}{dx}=f(x,y)

assigning to each point $(x,y)$ the slope $f(x,y)$ a solution must have there. Drawing short segments of that slope gives a direction field. Solution curves must run tangent to the direction field for every point they pass through.

Direction field of $dy/dx=y$. Credit: jjbeard (public domain).

Solving differential equations

Just like there is no general formula solving all algebraic equations, there is no general method permitting the solution of all differential equations. However, some standard methods exist for solving a restricted class of simple differential equations.

First-order ODEs

Method 1: separable equations

General case. A first-order equation is separable when it can be rewritten as the equality of the derivative to the product of two functions, one containing only $x$, one containing only $y$.

\frac{dy}{dx}=g(x)\,h(y)\qquad\Longrightarrow\qquad\int\frac{dy}{h(y)}=\int g(x)\,dx

after which both integrals can be evaluated directly.

Example: exponential growth and decay. A quantity whose rate of change is proportional to its own size, such as an unchecked population or a radioactive sample, obeys

\frac{dy}{dt}=k\,y

Separating variables and integrating,

$$\int\frac{dy}{y}=\int k\,dt\;\Longrightarrow\;\ln|y|=kt+C_1\;\Longrightarrow\;y=Ce^{kt}$$

The initial condition $y(0)=y_0$ fixes $C=y_0$, giving

y(t)=y_{0}\,e^{kt} (1)

Observing (1) we notice this is very well an exponential growth (k>0)/decay(k<0).

Example: Newton's law of cooling. A hot object in a cooler room loses heat through its surface, and the larger the temperature gap, the faster it cools: The temperature of the object is modelled by

\frac{dT}{dt}=-k\bigl(T-T_{a}\bigr)

Separating variables and integrating,

$$\int\frac{dT}{T-T_a}=-k\int dt\;\Longrightarrow\;\ln|T-T_a|=-kt+C\;\Longrightarrow\;T-T_a=Ce^{-kt}$$

so with $T(0)=T_0$, hence $C=T_0-T_a$,

$$T(t)=T_a+(T_0-T_a)e^{-kt}$$

Method 2: linear first-order equations (integrating factor)

General case. For the linear equation

$$y'+p(x)\,y=q(x)$$

introduce the integrating factor $\mu=e^{\int p\,dx}$, chosen so that $\mu'=p\mu$; multiplying by $\mu$ collapses the left-hand side into a single derivative:

\frac{dy}{dx}+p(x)\,y=q(x),\text{multiply both sides by } \mu(x)=e^{\int p(x)\,dx}\;\Longrightarrow\;\frac{d}{dx}\bigl(\mu(x)\,y\bigr)=\mu(x)\,q(x)

Integrating both sides,

$$\mu y=\int\mu\,q\,dx+C\;\Longrightarrow\;y=\frac{1}{\mu}\int\mu\,q\,dx+\frac{C}{\mu}$$

If you notice, the first term $y=\frac{1}{\mu}\int\mu\,q\,dx$$\frac{C}{\mu}$ provides one particular solution to the non-homogeneous equation, and the second term, $C/\mu=Ce^{-\int p\,dx}$, is a solution to the homogeneous counter par of the original equation: $y'+p(x)\,y=0$. It generalises the solution to the entire solution family.

This is in fact a general principle: $y=y_p+y_h$, i.e., the solution family of a non-homogeneous equation is the sum of one particular solution plus the solution to its homogeneous counterpart.

To see the method in action, consider

$$ \frac{dy}{dx} + \frac{1}{x}\,y = x^2, \qquad x>0. $$

Here $P(x)=1/x$, so

$$ \mu(x)=e^{\int \frac{1}{x}\,dx}=e^{\ln x}=x. $$

Multiply the whole equation by $\mu(x)=x$:

$$ x\frac{dy}{dx} + y = x^3. $$

The left side is exactly the derivative of the product $x\,y$:

$$ \frac{d}{dx}\bigl(xy\bigr) = x^3. $$

Integrate with respect to $x$:

$$ xy = \int x^3\,dx = \frac{x^4}{4} + C. $$

Finally, divide by $x$ to obtain the general solution:

$$ y = \frac{x^3}{4} + \frac{C}{x}. $$

A quick substitution verifies that this function family satisfies the original equation. The arbitrary constant $C$ can be determined later if an initial condition $y(x_0)=y_0$ is given.

Method 3: constant-coefficient linear equations (trial solutions)

Second-order ODEs

Method 1: direct integration

General case. For $y''=f(x)$,

$$y''=f(x)\;\Longrightarrow\;y'=\int f(x)\,dx+C_1\;\Longrightarrow\;y=\int\!\!\left(\int f(x)\,dx\right)dx+C_1x+C_2$$

and likewise $y^{(n)}=f(x)$ by $n$ integrations.

Example: free fall. A ball released above the ground falls under gravity alone, which accelerates it downward at the constant rate $g\approx 9.8\ \mathrm{m\,s^{-2}}$; Newton's second law gives the second-order equation $x''=-g$, of the form above with $f(x)=-g$. Integrating twice,

$$x''=-9.8\;\Longrightarrow\;\frac{dx}{dt}=-9.8t+v_0\;\Longrightarrow\;x(t)=-4.9t^2+v_0t+x_0$$

Numeric scenario: the ball is dropped from rest, $v_0=0$, at height $x_0=19.6\ \mathrm{m}$. It reaches the ground, $x=0$, when

$$0=19.6-4.9t^2\;\Longrightarrow\;t=\sqrt{19.6/4.9}=2\ \text{s}$$

so the two initial conditions have pinned down the whole trajectory.

Method 2: linear equations with constant coefficients

General case.

$$y''+a\,y'+b\,y=f(x)$$

Homogeneous case ($f=0$). The exponential trial $y=e^{rx}$,

y''+a\,y'+b\,y=0,\qquad y=e^{rx}\ \Rightarrow\ r^{2}+a\,r+b=0

gives the characteristic equation $r^2+ar+b=0$, whose roots determine $y_h$:

  • $r_1\neq r_2$ real: $y_h=C_1e^{r_1x}+C_2e^{r_2x}$;
  • $r_1=r_2=r$: $y_h=(C_1+C_2x)e^{rx}$;
  • $r=\alpha\pm i\beta$: $y_h=e^{\alpha x}(C_1\cos\beta x+C_2\sin\beta x)$.

Non-homogeneous case ($f\neq 0$). $y=y_h+y_p$, with $y_p$ found by undetermined coefficients as in Method 3.

Worked demonstration (homogeneous). $y''-3y'+2y=0$: $r^2-3r+2=(r-1)(r-2)=0$,

y''-3y'+2y=0\qquad\Longrightarrow\qquad y=C_{1}e^{x}+C_{2}e^{2x}

Check: $e^x$ gives $(1-3+2)e^x=0$.

Worked demonstration (non-homogeneous). $y''-3y'+2y=2e^{3x}$: keep $y_h$ above, try $y_p=Ae^{3x}$:

$$y_p''-3y_p'+2y_p=(9-9+2)Ae^{3x}=2Ae^{3x}\;\Longrightarrow\;A=1$$

$$y=C_1e^x+C_2e^{2x}+e^{3x}$$

Example: the harmonic oscillator (a mass on a spring). A mass attached to a spring is pulled back towards its rest position by a force $-kx$ proportional to the displacement (Hooke's law); once released it oscillates. Newton's second law models the motion,

$$m\frac{d^2x}{dt^2}=-kx\;\Longrightarrow\;x''+\omega_0^2x=0,\qquad \omega_0=\sqrt{\frac{k}{m}}$$

\frac{d^{2}x}{dt^{2}}+\omega_{0}^{2}x=0

The trial $x=e^{rt}$ gives the characteristic equation $r^2+\omega_0^2=0$ with roots $r=\pm i\omega_0$, the complex-pair case with $\alpha=0$, hence

$$x(t)=A\cos\omega_0t+B\sin\omega_0t$$

with $A,B$ fixed by the initial position and velocity.

A mass on a spring: the harmonic oscillator solution is a sinusoid of fixed amplitude. Credit: Evil saltine (public domain).

Numeric scenario: a mass $m=2\ \mathrm{kg}$ hangs on a spring with $k=8\ \mathrm{N\,m^{-1}}$, so $\omega_0=\sqrt{8/2}=2\ \mathrm{rad\,s^{-1}}$ and the displacement obeys $x''+4x=0$. Pulled $0.10\ \mathrm{m}$ from rest and released, the conditions $x(0)=0.10$, $x'(0)=0$ give $A=0.10$, $B=0$:

$$x(t)=0.10\cos 2t\ \mathrm{m},\qquad P=\frac{2\pi}{\omega_0}=\pi\approx 3.14\ \text{s}$$

After one second $x(1)=0.10\cos 2\approx -0.042\ \mathrm{m}$, and the motion is simple harmonic motion.[1]

Partial differential equations

Two standard techniques give closed-form solutions of linear PDEs: separation of variables, for separable problems on bounded domains, and the method of characteristics, for first-order equations. The wave equation is also solved by the second technique, because its operator factors into two first-order parts. Both methods below are stated in general and then applied to a concrete equation.

Method 1: separation of variables

General form. For a linear homogeneous PDE in two variables on a bounded domain with homogeneous boundary conditions, seek a solution of the separated form

$$u(x,t)=X(x)\,T(t)$$

Substituting into the PDE and dividing by $XT$ separates the variables into one ordinary differential equation in $x$ and one in $t$. Since the two sides are functions of different variables, they can be identically equal only if each equals the same constant, the separation constant $-\lambda$. The $x$-equation together with the boundary conditions is an eigenvalue problem: only a discrete sequence of constants $\lambda_n$, with eigenfunctions $X_n(x)$, is admissible. The $t$-equation then has a solution $T_n(t)$ for each $n$, and every product $X_nT_n$ solves the PDE.

General algebraic solution. The PDE is linear and homogeneous, so the separated modes superimpose:

$$u(x,t)=\sum_n c_n\,X_n(x)\,T_n(t)$$

with the coefficients $c_n$ chosen so that the series equals the initial profile $u(x,0)$; orthogonality of the eigenfunctions $X_n$ determines them.

Example: the heat equation. The temperature of a bar of length $L$ with insulated sides and both ends held at $0$ obeys

$$\frac{\partial u}{\partial t}=\alpha\frac{\partial^2u}{\partial x^2},\qquad u(0,t)=u(L,t)=0$$

Substituting $u=X(x)T(t)$ gives $XT'=\alpha X''T$, and dividing by $\alpha XT$,

u=X(x)\,T(t)\ \Rightarrow\ \frac{X''}{X}=\frac{T'}{\alpha\,T}=-\lambda

The $t$-equation $T'=-\alpha\lambda T$ has solution $T=e^{-\alpha\lambda t}$, and the $x$-equation

$$X''=-\lambda X\;\Longrightarrow\;X=A\cos(\sqrt\lambda\,x)+B\sin(\sqrt\lambda\,x)$$

together with the boundary conditions forces $X(0)=X(L)=0$: hence $A=0$ and $\sin(\sqrt\lambda\,L)=0$, so $\sqrt\lambda\,L=n\pi$, $n=1,2,\dots$. Each $\lambda=(n\pi/L)^2$ gives one mode

$$u_n(x,t)=\sin\frac{n\pi x}{L}\,e^{-\alpha(n\pi/L)^2t}$$

and the general algebraic solution above becomes

u(x,t)=\sum_{n=1}^{\infty}b_{n}\sin\Bigl(\frac{n\pi x}{L}\Bigr)\,e^{-\alpha (n\pi/L)^{2}t}

with $b_n$ determined by the Fourier sine series of the initial profile $u(x,0)$; the decay rate $\alpha(n\pi/L)^2$ grows as $n^2$.

Numeric scenario: a $1\ \mathrm{m}$ iron bar, heated so that its centre is at $100\,^{\circ}\mathrm{C}$ while both ends are held at $0\,^{\circ}\mathrm{C}$, cools by conduction with iron's diffusivity $\alpha\approx 2.3\times10^{-5}\ \mathrm{m^2s^{-1}}$. The initial profile $u(x,0)=100\sin(\pi x/L)$ is exactly the first mode, so only $n=1$ contributes and

$$u(x,t)=100\sin\frac{\pi x}{L}\,e^{-\alpha\pi^2t/L^2}$$

At the centre, with $L=1$ and $\alpha\pi^2\approx 2.3\times10^{-4}\ \text{s}^{-1}$,

$$u\!\left(\tfrac12,t\right)=100\,e^{-2.3\times10^{-4}t}$$

so after one hour $u\approx 100e^{-0.82}\approx 44\,^{\circ}\mathrm{C}$, and $50\,^{\circ}\mathrm{C}$ is reached at $t=\ln 2/(2.3\times10^{-4})\approx 3050\ \text{s}\approx 51$ min.[2]

Method 2: the method of characteristics

General form. The method of characteristics solves first-order PDEs by tracing curves along which the PDE reduces to ordinary differential equations. In two independent variables the general quasilinear first-order equation is

$$A(x,t,u)\,u_x+B(x,t,u)\,u_t=C(x,t,u)$$

A solution $u=u(x,t)$ is a surface in $(x,t,u)$-space. Its tangent plane at each point is spanned by $(1,0,u_x)$ and $(0,1,u_t)$, so a vector $(A,B,C)$ is tangent to the surface exactly when $C=A u_x+B u_t$, the condition expressed by the PDE itself. The solution surface is therefore swept out by the integral curves of the vector field $(A,B,C)$, the characteristic curves, which solve the characteristic system of ordinary differential equations

$$\frac{dx}{ds}=A(x,t,u),\qquad \frac{dt}{ds}=B(x,t,u),\qquad \frac{du}{ds}=C(x,t,u)$$

Given data on a curve that is not itself characteristic, such as $u(x,0)=u_0(x)$, one characteristic issues from each point of the curve, and integrating the system carries the data across the region the characteristics cover. For the linear homogeneous case

$$a(x,t)\,u_x+b(x,t)\,u_t=0$$

the $x$- and $t$-equations do not involve $u$, and the third gives $du/ds=0$: the solution is constant along each characteristic. The characteristics form a one-parameter family; let $\psi(x,t)=\text{const}$ be a first integral, a function constant on each member of the family.

General algebraic solution. Since $u$ is constant on every characteristic and the characteristics are the level sets of $\psi$, the general solution is an arbitrary function of the first integral,

$$u(x,t)=F\bigl(\psi(x,t)\bigr)$$

with $F$ fixed by the initial data. When the right-hand side of the PDE is nonzero, $u$ changes along a characteristic at the rate $C$ (or of the given source term), so the general solution acquires an integral of that term along the curve.

Example: transport of a pollutant. For constant coefficients $c$ the equation $u_t+c\,u_x=0$ has characteristics $dx/dt=c$, the straight lines $x-ct=\text{const}$; hence $\psi=x-ct$, and the general algebraic solution is the travelling wave

$$u(x,t)=F(x-ct),\qquad u(x,0)=F(x)$$

A river flows steadily at speed $c=2\ \mathrm{m\,s^{-1}}$, and a factory releases a concentrated slug of pollutant at one point; as long as mixing and diffusion are negligible, the current simply carries the whole slug downstream without changing it. The concentration obeys $u_t+2u_x=0$ with the Gaussian initial profile

$$u(x,0)=50\,e^{-(x/10)^2}\ \mathrm{mg\,L^{-1}}$$

(peak $50\ \mathrm{mg\,L^{-1}}$ at the release point, falling by $e^{-1}$ ten metres away). The solution above gives

$$u(x,t)=50\,e^{-((x-2t)/10)^2}\ \mathrm{mg\,L^{-1}}$$

After one minute the peak has moved from $x=0$ to $x=ct=120\ \mathrm{m}$, still reading $50\ \mathrm{mg\,L^{-1}}$; pure transport does not spread the slug, which would require the second-order term $\alpha u_{xx}$ of the heat equation. With a source $q(x,t)$, the value accumulates along each characteristic:

$$u(x,t)=F(x-ct)+\int_0^t q\bigl(x-c(t-\tau),\tau\bigr)\,d\tau$$

Example: the wave equation. The wave equation

$$u_{tt}=c^2u_{xx}$$

is second order, yet its operator factors into two first-order transport operators, so the method of characteristics still applies. Introduce the characteristic coordinates

$$\xi=x-ct,\qquad \eta=x+ct$$

in which the operator becomes $u_{tt}-c^2u_{xx}=-4c^2u_{\xi\eta}$, so the equation reads $u_{\xi\eta}=0$. Hence $u_\xi$ depends on $\xi$ alone, and one further integration gives the general algebraic solution (d'Alembert, 1747):

$$u(x,t)=f(x-ct)+g(x+ct)$$

a superposition of two travelling waves, one in each direction. The functions $f,g$ are fixed by the initial displacement and velocity: for a string released from rest with initial displacement $\phi(x)$, the conditions $u(x,0)=\phi(x)$ and $u_t(x,0)=0$ give $f=g=\phi/2$, so

$$u(x,t)=\frac{\phi(x-ct)+\phi(x+ct)}{2}$$

and the initial hump separates into two half-size copies travelling apart at speed $c$.[2]

When no formula exists

Most equations, especially nonlinear ones, fit none of the classes above and have no solution in terms of familiar functions. They are studied in one of three ways:[3][4]

The exact methods occupy the branches on the left; most equations encountered in research fall through to the routes on the right, each treated in its own article.

A short history

The origins of differential equations coincide with those of the calculus, since the calculus supplies the language in which rates of change are expressed and inverted. Newton's laws of motion and of universal gravitation, published in the Philosophiae Naturalis Principia Mathematica (1687), are differential equations; Newton treated them by the geometrical and infinite-series methods of his fluxional calculus. Although Newton developed a notation for fluxions, the differential notation $dy/dx$ introduced by Leibniz in the 1670s proved the more enduring: it exhibits the structure of the equation directly and is the notation adopted in this article.[1]

Isaac Newton (portrait after Godfrey Kneller, 1689). Newton's laws of motion and of gravitation (Principia, 1687) are differential equations. Credit: James Thronill after Godfrey Kneller (public domain).

The consolidation of these techniques into a systematic theory is due in large measure to Leonhard Euler, whose work in the middle decades of the eighteenth century established the principal exact methods. Euler showed that linear equations with constant coefficients are solved by the substitution $y=e^{rx}$, which reduces the problem to an algebraic equation, and he advanced the theory of series solutions. For equations that admitted no closed-form solution, he introduced the step-by-step numerical procedure, described above as Euler's method, that bears his name. The exact methods presented in this article derive, in large part, from his work.[1]

Leonhard Euler (portrait by Jakob Emanuel Handmann, 1753). Credit: Jakob Emanuel Handmann (public domain).

The theory of partial differential equations arose from the demands of eighteenth-century physics. In 1747, Jean le Rond d'Alembert derived the wave equation for the vibrating string and established that its general solution consists of two waves propagating in opposite directions. The problem of heat conduction proved more demanding, because the initial temperature distribution of a conducting body is arbitrary. In his Théorie analytique de la chaleur (1822), Joseph Fourier derived the heat equation from the physical principles of conduction and solved it by expanding the initial data into a trigonometric series. This work established separation of variables as a standard technique of mathematical physics, and the Fourier series introduced for the purpose has since become fundamental to the analysis of periodic phenomena, from acoustics to signal processing.[2]

The limits of closed-form methods became apparent towards the end of the nineteenth century, and the later history of the subject is concerned principally with equations for which elementary solutions do not exist. In his investigation of the three-body problem of celestial mechanics, Henri Poincaré demonstrated that qualitative properties of the motion, such as its equilibria, stability, and long-term behaviour, can be characterised without solving the equations, thereby founding the qualitative theory of dynamical systems. The subsequent development of electronic computing made numerical approximation, of which Euler's method is the simplest instance, a routine and general technique. The two strands converged in 1963, when Edward Lorenz, studying a simplified system of three ordinary differential equations that models atmospheric convection, established the phenomenon of deterministic chaos: although the equations are deterministic, their solutions are aperiodic and depend so sensitively on initial conditions that long-term weather prediction is not feasible in practice. These later approaches, qualitative analysis, numerical approximation, and series and transform methods, are treated in dedicated articles.[4]

References

  1. ↑ ↑ ↑ Tenenbaum, M. (1985). Ordinary Differential Equations (Book). In Ordinary Differential Equations (Book). Dover Publications.
  2. ↑ ↑ ↑ Strauss, W. A. (2008). Partial Differential Equations: An Introduction (Book). In Partial Differential Equations: An Introduction (Book). John Wiley & Sons.
  3. ↑ Boyce, W. E. (2012). Elementary Differential Equations and Boundary Value Problems (Book). In Elementary Differential Equations and Boundary Value Problems (Book). John Wiley & Sons.
  4. ↑ ↑ Strogatz, S. H. (2015). Nonlinear Dynamics and Chaos: With Applications to Physics, Biology, Chemistry, and Engineering (Book). In Nonlinear Dynamics and Chaos: With Applications to Physics, Biology, Chemistry, and Engineering (Book). Westview Press.

Further reading