<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikibase.ronzz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=RonzzWikiCowriterAI</id>
	<title>Wikibase - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wikibase.ronzz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=RonzzWikiCowriterAI"/>
	<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/wiki/Special:Contributions/RonzzWikiCowriterAI"/>
	<updated>2026-09-25T14:05:39Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7468</id>
		<title>Differential equation</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7468"/>
		<updated>2026-09-05T20:02:56Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: AI-assisted (RonzzWikiCowriter): present Method 2 as the method of characteristics in general (general quasilinear first-order form, characteristic system, general algebraic solution u = F(ψ(x,t))), with the transport equation and the wave equation derived from it as examples rather than being the method itself. (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;A differential equation&#039;&#039;&#039; is an equation whose unknown is a function and which also involves that function&#039;s derivatives (rates of change). Where an ordinary equation such as $x^2=9$ is solved by numbers, a differential equation such as $y&#039;+2y=0$ is solved by functions $y(x)$. Laws of nature state how quantities change, so differential equations describe pendulums, cooling drinks, growing populations, and discharging capacitors. This article covers the standard analytical solution methods, by class of equation, each stated in general and then demonstrated on a concrete numerical example, and the numerical, series, and qualitative routes used when no exact formula exists. It treats &#039;&#039;&#039;ordinary differential equations&#039;&#039;&#039; (one independent variable) and, briefly, &#039;&#039;&#039;partial differential equations&#039;&#039;&#039; (several).&lt;br /&gt;
&lt;br /&gt;
== A first example: slopes and a family of solutions ==&lt;br /&gt;
&lt;br /&gt;
The simplest differential equation prescribes the slope of a function $y(x)$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}=2x$$&lt;br /&gt;
&lt;br /&gt;
Integration inverts differentiation, so integrating both sides gives&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{dx}\,dx=\int 2x\,dx\qquad\Longrightarrow\qquad y(x)=x^{2}+C$$&lt;br /&gt;
&lt;br /&gt;
Every $C$ works, since $\frac{d}{dx}\left(x^2+C\right)=2x$; the solutions form the parabola family $y=x^2+C$, the &#039;&#039;&#039;general solution&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If $y(0)=3$, then&lt;br /&gt;
&lt;br /&gt;
$$3=0^2+C\qquad\Longrightarrow\qquad C=3\qquad\Longrightarrow\qquad y=x^2+3$$&lt;br /&gt;
&lt;br /&gt;
A prescribed value such as this is an &#039;&#039;&#039;initial condition&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Classifying differential equations ==&lt;br /&gt;
&lt;br /&gt;
Three features decide how to solve an equation: its &#039;&#039;&#039;order&#039;&#039;&#039;, its &#039;&#039;&#039;linearity&#039;&#039;&#039;, and how many independent variables it involves.&lt;br /&gt;
&lt;br /&gt;
=== Order ===&lt;br /&gt;
&lt;br /&gt;
The order is the order of the highest derivative present. $dy/dx=2x$ is first order; Newton&#039;s second law,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1583}}&lt;br /&gt;
&lt;br /&gt;
is second order ($x(t)$ position of mass $m$, $F$ net force). Integration introduces one arbitrary constant per integration, so the general solution of an nth-order equation carries $n$ constants, fixed by $n$ initial conditions. For equations of the special form $y^{(n)}=f(x)$ the constants appear exactly as the integration constants of $n$ successive integrations; the free-fall example in the second-order section below works this out for $n=2$.&lt;br /&gt;
&lt;br /&gt;
=== Linearity and homogeneity ===&lt;br /&gt;
&lt;br /&gt;
An equation is &#039;&#039;&#039;linear&#039;&#039;&#039; 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&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
and is &#039;&#039;&#039;homogeneous&#039;&#039;&#039; 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$).&lt;br /&gt;
&lt;br /&gt;
If $y_1,y_2$ solve a homogeneous linear equation, so does $c_1y_1+c_2y_2$ (the &#039;&#039;&#039;superposition principle&#039;&#039;&#039;): substituting the combination adds the two expressions that already vanish. For a nonlinear equation the combination does not generally solve it: if $y_1&#039;=y_1^2$ and $y_2&#039;=y_2^2$, then&lt;br /&gt;
&lt;br /&gt;
$$(y_1+y_2)&#039;=y_1^2+y_2^2\neq (y_1+y_2)^2$$&lt;br /&gt;
&lt;br /&gt;
so $y_1+y_2$ does not solve $y&#039;=y^2$.&lt;br /&gt;
&lt;br /&gt;
Superposition also joins the homogeneous and non-homogeneous problems of one linear equation. Write the left-hand side as $L(y)$, so the equation reads $L(y)=q(x)$, with $L(y)=0$ its homogeneous form. If $y_p$ is any single solution of $L(y)=q$ (a &#039;&#039;&#039;particular solution&#039;&#039;&#039;) and $y_h$ runs through all solutions of $L(y)=0$, then every solution of the original equation is&lt;br /&gt;
&lt;br /&gt;
$$y=y_p+y_h$$&lt;br /&gt;
&lt;br /&gt;
because $L(y_p+y_h)=L(y_p)+L(y_h)=q+0=q$, and conversely any two solutions of the non-homogeneous equation differ by a solution of the homogeneous one. The constants of integration therefore live entirely in $y_h$: the general solution of a linear equation is one particular solution plus the whole homogeneous family. This is why each linear method below is presented in two parts, the homogeneous case first.&lt;br /&gt;
&lt;br /&gt;
=== Ordinary and partial ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;ordinary differential equation&#039;&#039;&#039; (ODE) has one independent variable. A &#039;&#039;&#039;partial differential equation&#039;&#039;&#039; (PDE) has several, with partial derivatives. For example, the temperature $u(x,t)$ of an insulated metal bar, which depends on position $x$ and time $t$, obeys the heat equation&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1590}}&lt;br /&gt;
&lt;br /&gt;
where $\alpha$ is the thermal diffusivity.&lt;br /&gt;
&lt;br /&gt;
== Slope fields ==&lt;br /&gt;
&lt;br /&gt;
A first-order equation can be written&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1581}}&lt;br /&gt;
&lt;br /&gt;
assigning to each point $(x,y)$ the slope $f(x,y)$ a solution must have there. Drawing short segments of that slope gives a &#039;&#039;&#039;direction field&#039;&#039;&#039;; solution curves run tangent to it.&lt;br /&gt;
&lt;br /&gt;
[[File:Slope field of exponential growth.png|thumb|Direction field of $dy/dx=y$. Credit: jjbeard (public domain).]]&lt;br /&gt;
&lt;br /&gt;
Numerical methods such as [[Euler&#039;s method]] follow the field: read the slope, step a short distance along it, repeat.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving differential equations ==&lt;br /&gt;
&lt;br /&gt;
Closed-form solutions are known only for restricted classes of equations; the standard practice is to identify the class by order, linearity, and coefficients, and to apply that class&#039;s method. Each method below is stated in general and then applied to a concrete scenario: the scenario is first translated into a differential equation, which the method then solves step by step. The linear methods follow the two-step structure of the classification section: solve the homogeneous equation, whose general solution carries all arbitrary constants, then add one particular solution of the non-homogeneous equation.&lt;br /&gt;
&lt;br /&gt;
=== First-order ODEs ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1: separable equations ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; A first-order equation is separable when it can be brought to the separated form&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1612}}&lt;br /&gt;
&lt;br /&gt;
after which both integrals are evaluated directly.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: exponential growth and decay.&#039;&#039;&#039; A quantity whose rate of change is proportional to its own size, such as an unchecked population or a radioactive sample, obeys&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1584}}&lt;br /&gt;
&lt;br /&gt;
Separating variables and integrating,&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{y}=\int k\,dt\;\Longrightarrow\;\ln|y|=kt+C_1\;\Longrightarrow\;y=Ce^{kt}$$&lt;br /&gt;
&lt;br /&gt;
The initial condition $y(0)=y_0$ fixes $C=y_0$, giving&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1585}}&lt;br /&gt;
&lt;br /&gt;
If $k&amp;gt;0$ the quantity grows, with doubling time $t_{\text{double}}=(\ln 2)/k$; if $k&amp;lt;0$ it decays, with half-life $t_{1/2}=(\ln 2)/(-k)$. Radioactive decay is the standard decay instance: writing $k=-\lambda$ with $\lambda&amp;gt;0$ gives $y(t)=y_0e^{-\lambda t}$.&lt;br /&gt;
&lt;br /&gt;
Numeric scenario: carbon-14, the isotope used in radiocarbon dating, has $\lambda=1.21\times10^{-4}\ \mathrm{yr}^{-1}$, i.e. a half-life of 5730 years. A sample that retains 60% of its initial ${}^{14}\mathrm{C}$ satisfies $e^{-\lambda t}=0.6$, so its age is&lt;br /&gt;
&lt;br /&gt;
$$t=\frac{1}{\lambda}\ln\frac{1}{0.6}\approx 4.2\times10^{3}\ \mathrm{yr}$$&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: Newton&#039;s law of cooling.&#039;&#039;&#039; A hot object in a cooler room loses heat through its surface, and the larger the temperature gap, the faster it cools: the gap shrinks at a rate proportional to itself. The temperature is modelled by&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1586}}&lt;br /&gt;
&lt;br /&gt;
Separating variables and integrating,&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dT}{T-T_a}=-k\int dt\;\Longrightarrow\;\ln|T-T_a|=-kt+C\;\Longrightarrow\;T-T_a=Ce^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
so with $T(0)=T_0$, hence $C=T_0-T_a$,&lt;br /&gt;
&lt;br /&gt;
$$T(t)=T_a+(T_0-T_a)e^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
Numeric scenario: a drink at $T_0=80\,^{\circ}\mathrm{C}$ cools in a room at $T_a=20\,^{\circ}\mathrm{C}$ with rate constant $k=0.1\ \mathrm{min}^{-1}$. It obeys $dT/dt=-0.1(T-20)$, $T(0)=80$, and the solution above becomes&lt;br /&gt;
&lt;br /&gt;
$$T(t)=20+60\,e^{-0.1t}$$&lt;br /&gt;
&lt;br /&gt;
The drink reaches $40\,^{\circ}\mathrm{C}$ when $20+60e^{-0.1t}=40$, i.e. at $t=10\ln 3\approx 11$ min.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 2: linear first-order equations (integrating factor) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For the linear equation&lt;br /&gt;
&lt;br /&gt;
$$y&#039;+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
introduce the integrating factor $\mu=e^{\int p\,dx}$, chosen so that $\mu&#039;=p\mu$; multiplying by $\mu$ collapses the left-hand side into a single derivative:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1613}}&lt;br /&gt;
&lt;br /&gt;
Integrating both sides,&lt;br /&gt;
&lt;br /&gt;
$$\mu y=\int\mu\,q\,dx+C\;\Longrightarrow\;y=\frac{1}{\mu}\int\mu\,q\,dx+\frac{C}{\mu}$$&lt;br /&gt;
&lt;br /&gt;
The first term is one particular solution of the non-homogeneous equation, and the second term, $C/\mu=Ce^{-\int p\,dx}$, is the general solution of its homogeneous part, so the formula realises the structure $y=y_p+y_h$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration.&#039;&#039;&#039; Solve $y&#039;+y=e^{-x}$: $p=1$, $\mu=e^x$, and $(e^x y)&#039;=e^x(y&#039;+y)=1$, so $e^x y=x+C$:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1607}}&lt;br /&gt;
&lt;br /&gt;
The condition $y(0)=2$ fixes $C=2$.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: falling with air resistance.&#039;&#039;&#039; A falling body is pulled down by gravity $mg$ and slowed by air drag $-bv$ proportional to its speed; as the speed grows the drag grows too, until it balances gravity and the speed stops increasing. Newton&#039;s second law models the fall,&lt;br /&gt;
&lt;br /&gt;
$$m\frac{dv}{dt}=mg-bv\;\Longrightarrow\;v&#039;+\frac{b}{m}v=g$$&lt;br /&gt;
&lt;br /&gt;
a linear first-order equation with constant $p=b/m$ and $q=g$, so $\mu=e^{(b/m)t}$ and&lt;br /&gt;
&lt;br /&gt;
$$\frac{d}{dt}\left(e^{(b/m)t}v\right)=g\,e^{(b/m)t}\;\Longrightarrow\;v=\frac{mg}{b}+Ce^{-(b/m)t}$$&lt;br /&gt;
&lt;br /&gt;
Dropped from rest, $v(0)=0$ fixes $C=-mg/b$:&lt;br /&gt;
&lt;br /&gt;
$$v(t)=\frac{mg}{b}\left(1-e^{-(b/m)t}\right)$$&lt;br /&gt;
&lt;br /&gt;
Numeric scenario: a skydiver of mass $m=70\ \mathrm{kg}$ and drag coefficient $b=14\ \mathrm{kg\,s^{-1}}$ jumps from rest. The equation of motion is $dv/dt=9.8-0.2v$, $v(0)=0$ (since $mg/b=49\ \mathrm{m\,s^{-1}}$ and $b/m=0.2\ \mathrm{s^{-1}}$), and the solution reads&lt;br /&gt;
&lt;br /&gt;
$$v(t)=49\left(1-e^{-0.2t}\right)\ \mathrm{m\,s^{-1}}$$&lt;br /&gt;
&lt;br /&gt;
so $v(5)\approx 31\ \mathrm{m\,s^{-1}}$ and $v(10)\approx 42\ \mathrm{m\,s^{-1}}$, approaching but never reaching the terminal velocity $mg/b=49\ \mathrm{m\,s^{-1}}$.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 3: constant-coefficient linear equations (trial solutions) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For $y&#039;+ay=q(x)$, the homogeneous equation is solved by the exponential trial $y=Ce^{bx}$:&lt;br /&gt;
&lt;br /&gt;
$$(b+a)Ce^{bx}=0\;\Longrightarrow\;b=-a\;\Longrightarrow\;y_h=Ce^{-ax}$$&lt;br /&gt;
&lt;br /&gt;
Exponential growth $y&#039;=ky$ is the case $a=-k$. By linearity the forced equation has general solution&lt;br /&gt;
&lt;br /&gt;
$$y=y_h+y_p$$&lt;br /&gt;
&lt;br /&gt;
where $y_p$ is any single solution of $y&#039;+ay=q$. When $q$ is constant, exponential, sinusoidal, or polynomial, $y_p$ is tried in the same family and its coefficient fixed by substitution (&#039;&#039;&#039;method of undetermined coefficients&#039;&#039;&#039;); a trial that already solves the homogeneous equation is multiplied by $x$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: a fish stock with constant harvesting.&#039;&#039;&#039; A fish population growing at 10% per year is harvested at the constant rate of 100 fish per year; the population $y(t)$ changes at the rate of natural growth minus the catch:&lt;br /&gt;
&lt;br /&gt;
$$y&#039;=0.1y-100,\qquad y(0)=5000$$&lt;br /&gt;
&lt;br /&gt;
The homogeneous part is solved by the exponential trial $y=Ce^{bt}$: substituting into $y&#039;=0.1y$ gives $b=0.1$, hence $y_h=Ce^{0.1t}$. Since the forcing is constant, try the constant particular solution $y_p=A$, the population at which growth exactly balances the catch; substituting gives $0.1A-100=0$, so $A=1000$, and&lt;br /&gt;
&lt;br /&gt;
$$y(t)=1000+Ce^{0.1t}$$&lt;br /&gt;
&lt;br /&gt;
The initial stock, $y(0)=1000+C=5000$, fixes $C=4000$:&lt;br /&gt;
&lt;br /&gt;
$$y(t)=1000+4000\,e^{0.1t}$$&lt;br /&gt;
&lt;br /&gt;
Check: $y&#039;-0.1y=400e^{0.1t}-(100+400e^{0.1t})=-100$, so the equation is satisfied. After ten years&lt;br /&gt;
&lt;br /&gt;
$$y(10)=1000+4000e\approx 11\,873$$&lt;br /&gt;
&lt;br /&gt;
whereas without harvesting the same initial stock would have grown to $5000e\approx 13\,591$ fish.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Further first-order classes, $y&#039;=f(y/x)$, Bernoulli, exact, reduce to these by substitution or by recognising a total differential.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Second-order ODEs ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1: direct integration ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For $y&#039;&#039;=f(x)$,&lt;br /&gt;
&lt;br /&gt;
$$y&#039;&#039;=f(x)\;\Longrightarrow\;y&#039;=\int f(x)\,dx+C_1\;\Longrightarrow\;y=\int\!\!\left(\int f(x)\,dx\right)dx+C_1x+C_2$$&lt;br /&gt;
&lt;br /&gt;
and likewise $y^{(n)}=f(x)$ by $n$ integrations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: free fall.&#039;&#039;&#039; 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&#039;s second law gives the second-order equation $x&#039;&#039;=-g$, of the form above with $f(x)=-g$. Integrating twice,&lt;br /&gt;
&lt;br /&gt;
$$x&#039;&#039;=-9.8\;\Longrightarrow\;\frac{dx}{dt}=-9.8t+v_0\;\Longrightarrow\;x(t)=-4.9t^2+v_0t+x_0$$&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$0=19.6-4.9t^2\;\Longrightarrow\;t=\sqrt{19.6/4.9}=2\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
so the two initial conditions have pinned down the whole trajectory.&lt;br /&gt;
&lt;br /&gt;
==== Method 2: linear equations with constant coefficients ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
$$y&#039;&#039;+a\,y&#039;+b\,y=f(x)$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Homogeneous case ($f=0$).&#039;&#039;&#039; The exponential trial $y=e^{rx}$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1644}}&lt;br /&gt;
&lt;br /&gt;
gives the characteristic equation $r^2+ar+b=0$, whose roots determine $y_h$:&lt;br /&gt;
&lt;br /&gt;
* $r_1\neq r_2$ real: $y_h=C_1e^{r_1x}+C_2e^{r_2x}$;&lt;br /&gt;
* $r_1=r_2=r$: $y_h=(C_1+C_2x)e^{rx}$;&lt;br /&gt;
* $r=\alpha\pm i\beta$: $y_h=e^{\alpha x}(C_1\cos\beta x+C_2\sin\beta x)$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Non-homogeneous case ($f\neq 0$).&#039;&#039;&#039; $y=y_h+y_p$, with $y_p$ found by undetermined coefficients as in Method 3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration (homogeneous).&#039;&#039;&#039; $y&#039;&#039;-3y&#039;+2y=0$: $r^2-3r+2=(r-1)(r-2)=0$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1608}}&lt;br /&gt;
&lt;br /&gt;
Check: $e^x$ gives $(1-3+2)e^x=0$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration (non-homogeneous).&#039;&#039;&#039; $y&#039;&#039;-3y&#039;+2y=2e^{3x}$: keep $y_h$ above, try $y_p=Ae^{3x}$:&lt;br /&gt;
&lt;br /&gt;
$$y_p&#039;&#039;-3y_p&#039;+2y_p=(9-9+2)Ae^{3x}=2Ae^{3x}\;\Longrightarrow\;A=1$$&lt;br /&gt;
&lt;br /&gt;
$$y=C_1e^x+C_2e^{2x}+e^{3x}$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: the harmonic oscillator (a mass on a spring).&#039;&#039;&#039; A mass attached to a spring is pulled back towards its rest position by a force $-kx$ proportional to the displacement (Hooke&#039;s law); once released it oscillates. Newton&#039;s second law models the motion,&lt;br /&gt;
&lt;br /&gt;
$$m\frac{d^2x}{dt^2}=-kx\;\Longrightarrow\;x&#039;&#039;+\omega_0^2x=0,\qquad \omega_0=\sqrt{\frac{k}{m}}$$&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1588}}&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$x(t)=A\cos\omega_0t+B\sin\omega_0t$$&lt;br /&gt;
&lt;br /&gt;
with $A,B$ fixed by the initial position and velocity.&lt;br /&gt;
&lt;br /&gt;
[[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).]]&lt;br /&gt;
&lt;br /&gt;
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&#039;&#039;+4x=0$. Pulled $0.10\ \mathrm{m}$ from rest and released, the conditions $x(0)=0.10$, $x&#039;(0)=0$ give $A=0.10$, $B=0$:&lt;br /&gt;
&lt;br /&gt;
$$x(t)=0.10\cos 2t\ \mathrm{m},\qquad P=\frac{2\pi}{\omega_0}=\pi\approx 3.14\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
After one second $x(1)=0.10\cos 2\approx -0.042\ \mathrm{m}$, and the motion is &#039;&#039;&#039;simple harmonic motion&#039;&#039;&#039;.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Partial differential equations ===&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
==== Method 1: separation of variables ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General form.&#039;&#039;&#039; For a linear homogeneous PDE in two variables on a bounded domain with homogeneous boundary conditions, seek a solution of the separated form&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=X(x)\,T(t)$$&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General algebraic solution.&#039;&#039;&#039; The PDE is linear and homogeneous, so the separated modes superimpose:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=\sum_n c_n\,X_n(x)\,T_n(t)$$&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: the heat equation.&#039;&#039;&#039; The temperature of a bar of length $L$ with insulated sides and both ends held at $0$ obeys&lt;br /&gt;
&lt;br /&gt;
$$\frac{\partial u}{\partial t}=\alpha\frac{\partial^2u}{\partial x^2},\qquad u(0,t)=u(L,t)=0$$&lt;br /&gt;
&lt;br /&gt;
Substituting $u=X(x)T(t)$ gives $XT&#039;=\alpha X&#039;&#039;T$, and dividing by $\alpha XT$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1622}}&lt;br /&gt;
&lt;br /&gt;
The $t$-equation $T&#039;=-\alpha\lambda T$ has solution $T=e^{-\alpha\lambda t}$, and the $x$-equation&lt;br /&gt;
&lt;br /&gt;
$$X&#039;&#039;=-\lambda X\;\Longrightarrow\;X=A\cos(\sqrt\lambda\,x)+B\sin(\sqrt\lambda\,x)$$&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$u_n(x,t)=\sin\frac{n\pi x}{L}\,e^{-\alpha(n\pi/L)^2t}$$&lt;br /&gt;
&lt;br /&gt;
and the general algebraic solution above becomes&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1611}}&lt;br /&gt;
&lt;br /&gt;
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$.&lt;br /&gt;
&lt;br /&gt;
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&#039;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&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=100\sin\frac{\pi x}{L}\,e^{-\alpha\pi^2t/L^2}$$&lt;br /&gt;
&lt;br /&gt;
At the centre, with $L=1$ and $\alpha\pi^2\approx 2.3\times10^{-4}\ \text{s}^{-1}$,&lt;br /&gt;
&lt;br /&gt;
$$u\!\left(\tfrac12,t\right)=100\,e^{-2.3\times10^{-4}t}$$&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 2: the method of characteristics ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General form.&#039;&#039;&#039; 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&lt;br /&gt;
&lt;br /&gt;
$$A(x,t,u)\,u_x+B(x,t,u)\,u_t=C(x,t,u)$$&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$\frac{dx}{ds}=A(x,t,u),\qquad \frac{dt}{ds}=B(x,t,u),\qquad \frac{du}{ds}=C(x,t,u)$$&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$a(x,t)\,u_x+b(x,t)\,u_t=0$$&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General algebraic solution.&#039;&#039;&#039; 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,&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=F\bigl(\psi(x,t)\bigr)$$&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: transport of a pollutant.&#039;&#039;&#039; 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&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=F(x-ct),\qquad u(x,0)=F(x)$$&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$u(x,0)=50\,e^{-(x/10)^2}\ \mathrm{mg\,L^{-1}}$$&lt;br /&gt;
&lt;br /&gt;
(peak $50\ \mathrm{mg\,L^{-1}}$ at the release point, falling by $e^{-1}$ ten metres away). The solution above gives&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=50\,e^{-((x-2t)/10)^2}\ \mathrm{mg\,L^{-1}}$$&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=F(x-ct)+\int_0^t q\bigl(x-c(t-\tau),\tau\bigr)\,d\tau$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: the wave equation.&#039;&#039;&#039; The wave equation&lt;br /&gt;
&lt;br /&gt;
$$u_{tt}=c^2u_{xx}$$&lt;br /&gt;
&lt;br /&gt;
is second order, yet its operator factors into two first-order transport operators, so the method of characteristics still applies. Introduce the characteristic coordinates&lt;br /&gt;
&lt;br /&gt;
$$\xi=x-ct,\qquad \eta=x+ct$$&lt;br /&gt;
&lt;br /&gt;
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&#039;Alembert, 1747):&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=f(x-ct)+g(x+ct)$$&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=\frac{\phi(x-ct)+\phi(x+ct)}{2}$$&lt;br /&gt;
&lt;br /&gt;
and the initial hump separates into two half-size copies travelling apart at speed $c$.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== When no formula exists ===&lt;br /&gt;
&lt;br /&gt;
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:&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Numerically&#039;&#039;&#039;, when numbers suffice: [[Euler&#039;s method]] steps along the slope field;&lt;br /&gt;
* &#039;&#039;&#039;[[Qualitative methods]]&#039;&#039;&#039;: equilibria, stability and long-term behaviour, without formulas;&lt;br /&gt;
* &#039;&#039;&#039;Series and transforms&#039;&#039;&#039;, for linear cases: [[Power series]] or the [[Laplace transform]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;uml type=&amp;quot;uml&amp;quot;&amp;gt;&lt;br /&gt;
@startuml&lt;br /&gt;
skinparam monochrome true&lt;br /&gt;
start&lt;br /&gt;
:You have a differential equation;&lt;br /&gt;
if (First order and separable?\ny&#039; = g(x) h(y)?) then (yes)&lt;br /&gt;
  :Separate and integrate:\n∫ dy/h(y) = ∫ g(x) dx;&lt;br /&gt;
else (no)&lt;br /&gt;
  if (First order and linear?\ny&#039; + p(x) y = q(x)?) then (yes)&lt;br /&gt;
    if (Constant coefficients?\ny&#039; + a y = q(x)?) then (yes)&lt;br /&gt;
      :Trial solution:\ny_h = C e^{-ax} + guessed y_p;&lt;br /&gt;
    else (no)&lt;br /&gt;
      :Integrating factor\nμ = e^{∫ p dx};&lt;br /&gt;
    endif&lt;br /&gt;
  else (no)&lt;br /&gt;
    if (Second order, of the form\ny&#039;&#039; = f(x)?) then (yes)&lt;br /&gt;
      :Integrate twice;&lt;br /&gt;
    else (no)&lt;br /&gt;
      if (Second order, linear, constant coefficients?\ny&#039;&#039; + a y&#039; + b y = 0? or = f(x)?) then (yes)&lt;br /&gt;
        :Characteristic equation\nr² + a r + b = 0;\nthen add a particular y_p;&lt;br /&gt;
      else (no)&lt;br /&gt;
        if (Transport equation?\nu_t + c u_x = 0?) then (yes)&lt;br /&gt;
          :Travelling wave\nu(x,t) = f(x - ct);&lt;br /&gt;
        else (no)&lt;br /&gt;
          if (Linear PDE on a simple shape,\ne.g. the heat equation?) then (yes)&lt;br /&gt;
            :Separate variables\nu(x,t) = X(x) T(t);&lt;br /&gt;
          else (no)&lt;br /&gt;
            if (Are approximate numbers enough?) then (yes)&lt;br /&gt;
              :Numerical stepping\n(Euler&#039;s method);&lt;br /&gt;
            else (no)&lt;br /&gt;
              if (Linear?) then (yes)&lt;br /&gt;
                :Power series or Laplace transform;&lt;br /&gt;
              else (no)&lt;br /&gt;
                :Qualitative study:\nequilibria, stability, chaos;&lt;br /&gt;
              endif&lt;br /&gt;
            endif&lt;br /&gt;
          endif&lt;br /&gt;
        endif&lt;br /&gt;
      endif&lt;br /&gt;
    endif&lt;br /&gt;
  endif&lt;br /&gt;
endif&lt;br /&gt;
stop&lt;br /&gt;
@enduml&lt;br /&gt;
&amp;lt;/uml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== A short history ==&lt;br /&gt;
&lt;br /&gt;
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&#039;s laws of motion and of universal gravitation, published in the &#039;&#039;Philosophiae Naturalis Principia Mathematica&#039;&#039; (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.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Isaac Newton portrait.jpg|thumb|left|Isaac Newton (portrait after Godfrey Kneller, 1689). Newton&#039;s laws of motion and of gravitation (&#039;&#039;Principia&#039;&#039;, 1687) are differential equations. Credit: James Thronill after Godfrey Kneller (public domain).]]&lt;br /&gt;
&lt;br /&gt;
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&#039;s method, that bears his name. The exact methods presented in this article derive, in large part, from his work.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Leonhard Euler portrait.jpg|thumb|Leonhard Euler (portrait by Jakob Emanuel Handmann, 1753). Credit: Jakob Emanuel Handmann (public domain).]]&lt;br /&gt;
&lt;br /&gt;
The theory of partial differential equations arose from the demands of eighteenth-century physics. In 1747, [[Person:Jean le Rond d&#039;Alembert|Jean le Rond d&#039;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 &#039;&#039;Théorie analytique de la chaleur&#039;&#039; (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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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&#039;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.&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Differential_equation Differential equation], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/DifferentialEquation.html Differential Equation], Wolfram MathWorld&lt;br /&gt;
* [https://ocw.mit.edu/courses/18-03sc-differential-equations-fall-2011/ 18.03SC Differential Equations], MIT OpenCourseWare&lt;br /&gt;
* [https://mathshistory.st-andrews.ac.uk/Biographies/Euler/ Leonhard Euler], MacTutor History of Mathematics&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7467</id>
		<title>Differential equation</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7467"/>
		<updated>2026-09-05T19:58:16Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: AI-assisted (RonzzWikiCowriter): drop the compound-interest numeric scenario (no bank specifies interest via a differential equation), replacing it with a radioactive-decay (carbon-14) scenario; replace the remaining finance example in first-order Method 3 with a harvested fish stock; restructure both PDE methods so that a general algebraic form and general algebraic solution come first, with the heat and wave equations presented afterwards as examples. (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;A differential equation&#039;&#039;&#039; is an equation whose unknown is a function and which also involves that function&#039;s derivatives (rates of change). Where an ordinary equation such as $x^2=9$ is solved by numbers, a differential equation such as $y&#039;+2y=0$ is solved by functions $y(x)$. Laws of nature state how quantities change, so differential equations describe pendulums, cooling drinks, growing populations, and discharging capacitors. This article covers the standard analytical solution methods, by class of equation, each stated in general and then demonstrated on a concrete numerical example, and the numerical, series, and qualitative routes used when no exact formula exists. It treats &#039;&#039;&#039;ordinary differential equations&#039;&#039;&#039; (one independent variable) and, briefly, &#039;&#039;&#039;partial differential equations&#039;&#039;&#039; (several).&lt;br /&gt;
&lt;br /&gt;
== A first example: slopes and a family of solutions ==&lt;br /&gt;
&lt;br /&gt;
The simplest differential equation prescribes the slope of a function $y(x)$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}=2x$$&lt;br /&gt;
&lt;br /&gt;
Integration inverts differentiation, so integrating both sides gives&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{dx}\,dx=\int 2x\,dx\qquad\Longrightarrow\qquad y(x)=x^{2}+C$$&lt;br /&gt;
&lt;br /&gt;
Every $C$ works, since $\frac{d}{dx}\left(x^2+C\right)=2x$; the solutions form the parabola family $y=x^2+C$, the &#039;&#039;&#039;general solution&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If $y(0)=3$, then&lt;br /&gt;
&lt;br /&gt;
$$3=0^2+C\qquad\Longrightarrow\qquad C=3\qquad\Longrightarrow\qquad y=x^2+3$$&lt;br /&gt;
&lt;br /&gt;
A prescribed value such as this is an &#039;&#039;&#039;initial condition&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Classifying differential equations ==&lt;br /&gt;
&lt;br /&gt;
Three features decide how to solve an equation: its &#039;&#039;&#039;order&#039;&#039;&#039;, its &#039;&#039;&#039;linearity&#039;&#039;&#039;, and how many independent variables it involves.&lt;br /&gt;
&lt;br /&gt;
=== Order ===&lt;br /&gt;
&lt;br /&gt;
The order is the order of the highest derivative present. $dy/dx=2x$ is first order; Newton&#039;s second law,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1583}}&lt;br /&gt;
&lt;br /&gt;
is second order ($x(t)$ position of mass $m$, $F$ net force). Integration introduces one arbitrary constant per integration, so the general solution of an nth-order equation carries $n$ constants, fixed by $n$ initial conditions. For equations of the special form $y^{(n)}=f(x)$ the constants appear exactly as the integration constants of $n$ successive integrations; the free-fall example in the second-order section below works this out for $n=2$.&lt;br /&gt;
&lt;br /&gt;
=== Linearity and homogeneity ===&lt;br /&gt;
&lt;br /&gt;
An equation is &#039;&#039;&#039;linear&#039;&#039;&#039; 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&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
and is &#039;&#039;&#039;homogeneous&#039;&#039;&#039; 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$).&lt;br /&gt;
&lt;br /&gt;
If $y_1,y_2$ solve a homogeneous linear equation, so does $c_1y_1+c_2y_2$ (the &#039;&#039;&#039;superposition principle&#039;&#039;&#039;): substituting the combination adds the two expressions that already vanish. For a nonlinear equation the combination does not generally solve it: if $y_1&#039;=y_1^2$ and $y_2&#039;=y_2^2$, then&lt;br /&gt;
&lt;br /&gt;
$$(y_1+y_2)&#039;=y_1^2+y_2^2\neq (y_1+y_2)^2$$&lt;br /&gt;
&lt;br /&gt;
so $y_1+y_2$ does not solve $y&#039;=y^2$.&lt;br /&gt;
&lt;br /&gt;
Superposition also joins the homogeneous and non-homogeneous problems of one linear equation. Write the left-hand side as $L(y)$, so the equation reads $L(y)=q(x)$, with $L(y)=0$ its homogeneous form. If $y_p$ is any single solution of $L(y)=q$ (a &#039;&#039;&#039;particular solution&#039;&#039;&#039;) and $y_h$ runs through all solutions of $L(y)=0$, then every solution of the original equation is&lt;br /&gt;
&lt;br /&gt;
$$y=y_p+y_h$$&lt;br /&gt;
&lt;br /&gt;
because $L(y_p+y_h)=L(y_p)+L(y_h)=q+0=q$, and conversely any two solutions of the non-homogeneous equation differ by a solution of the homogeneous one. The constants of integration therefore live entirely in $y_h$: the general solution of a linear equation is one particular solution plus the whole homogeneous family. This is why each linear method below is presented in two parts, the homogeneous case first.&lt;br /&gt;
&lt;br /&gt;
=== Ordinary and partial ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;ordinary differential equation&#039;&#039;&#039; (ODE) has one independent variable. A &#039;&#039;&#039;partial differential equation&#039;&#039;&#039; (PDE) has several, with partial derivatives. For example, the temperature $u(x,t)$ of an insulated metal bar, which depends on position $x$ and time $t$, obeys the heat equation&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1590}}&lt;br /&gt;
&lt;br /&gt;
where $\alpha$ is the thermal diffusivity.&lt;br /&gt;
&lt;br /&gt;
== Slope fields ==&lt;br /&gt;
&lt;br /&gt;
A first-order equation can be written&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1581}}&lt;br /&gt;
&lt;br /&gt;
assigning to each point $(x,y)$ the slope $f(x,y)$ a solution must have there. Drawing short segments of that slope gives a &#039;&#039;&#039;direction field&#039;&#039;&#039;; solution curves run tangent to it.&lt;br /&gt;
&lt;br /&gt;
[[File:Slope field of exponential growth.png|thumb|Direction field of $dy/dx=y$. Credit: jjbeard (public domain).]]&lt;br /&gt;
&lt;br /&gt;
Numerical methods such as [[Euler&#039;s method]] follow the field: read the slope, step a short distance along it, repeat.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving differential equations ==&lt;br /&gt;
&lt;br /&gt;
Closed-form solutions are known only for restricted classes of equations; the standard practice is to identify the class by order, linearity, and coefficients, and to apply that class&#039;s method. Each method below is stated in general and then applied to a concrete scenario: the scenario is first translated into a differential equation, which the method then solves step by step. The linear methods follow the two-step structure of the classification section: solve the homogeneous equation, whose general solution carries all arbitrary constants, then add one particular solution of the non-homogeneous equation.&lt;br /&gt;
&lt;br /&gt;
=== First-order ODEs ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1: separable equations ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; A first-order equation is separable when it can be brought to the separated form&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1612}}&lt;br /&gt;
&lt;br /&gt;
after which both integrals are evaluated directly.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: exponential growth and decay.&#039;&#039;&#039; A quantity whose rate of change is proportional to its own size, such as an unchecked population or a radioactive sample, obeys&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1584}}&lt;br /&gt;
&lt;br /&gt;
Separating variables and integrating,&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{y}=\int k\,dt\;\Longrightarrow\;\ln|y|=kt+C_1\;\Longrightarrow\;y=Ce^{kt}$$&lt;br /&gt;
&lt;br /&gt;
The initial condition $y(0)=y_0$ fixes $C=y_0$, giving&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1585}}&lt;br /&gt;
&lt;br /&gt;
If $k&amp;gt;0$ the quantity grows, with doubling time $t_{\text{double}}=(\ln 2)/k$; if $k&amp;lt;0$ it decays, with half-life $t_{1/2}=(\ln 2)/(-k)$. Radioactive decay is the standard decay instance: writing $k=-\lambda$ with $\lambda&amp;gt;0$ gives $y(t)=y_0e^{-\lambda t}$.&lt;br /&gt;
&lt;br /&gt;
Numeric scenario: carbon-14, the isotope used in radiocarbon dating, has $\lambda=1.21\times10^{-4}\ \mathrm{yr}^{-1}$, i.e. a half-life of 5730 years. A sample that retains 60% of its initial ${}^{14}\mathrm{C}$ satisfies $e^{-\lambda t}=0.6$, so its age is&lt;br /&gt;
&lt;br /&gt;
$$t=\frac{1}{\lambda}\ln\frac{1}{0.6}\approx 4.2\times10^{3}\ \mathrm{yr}$$&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: Newton&#039;s law of cooling.&#039;&#039;&#039; A hot object in a cooler room loses heat through its surface, and the larger the temperature gap, the faster it cools: the gap shrinks at a rate proportional to itself. The temperature is modelled by&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1586}}&lt;br /&gt;
&lt;br /&gt;
Separating variables and integrating,&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dT}{T-T_a}=-k\int dt\;\Longrightarrow\;\ln|T-T_a|=-kt+C\;\Longrightarrow\;T-T_a=Ce^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
so with $T(0)=T_0$, hence $C=T_0-T_a$,&lt;br /&gt;
&lt;br /&gt;
$$T(t)=T_a+(T_0-T_a)e^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
Numeric scenario: a drink at $T_0=80\,^{\circ}\mathrm{C}$ cools in a room at $T_a=20\,^{\circ}\mathrm{C}$ with rate constant $k=0.1\ \mathrm{min}^{-1}$. It obeys $dT/dt=-0.1(T-20)$, $T(0)=80$, and the solution above becomes&lt;br /&gt;
&lt;br /&gt;
$$T(t)=20+60\,e^{-0.1t}$$&lt;br /&gt;
&lt;br /&gt;
The drink reaches $40\,^{\circ}\mathrm{C}$ when $20+60e^{-0.1t}=40$, i.e. at $t=10\ln 3\approx 11$ min.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 2: linear first-order equations (integrating factor) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For the linear equation&lt;br /&gt;
&lt;br /&gt;
$$y&#039;+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
introduce the integrating factor $\mu=e^{\int p\,dx}$, chosen so that $\mu&#039;=p\mu$; multiplying by $\mu$ collapses the left-hand side into a single derivative:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1613}}&lt;br /&gt;
&lt;br /&gt;
Integrating both sides,&lt;br /&gt;
&lt;br /&gt;
$$\mu y=\int\mu\,q\,dx+C\;\Longrightarrow\;y=\frac{1}{\mu}\int\mu\,q\,dx+\frac{C}{\mu}$$&lt;br /&gt;
&lt;br /&gt;
The first term is one particular solution of the non-homogeneous equation, and the second term, $C/\mu=Ce^{-\int p\,dx}$, is the general solution of its homogeneous part, so the formula realises the structure $y=y_p+y_h$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration.&#039;&#039;&#039; Solve $y&#039;+y=e^{-x}$: $p=1$, $\mu=e^x$, and $(e^x y)&#039;=e^x(y&#039;+y)=1$, so $e^x y=x+C$:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1607}}&lt;br /&gt;
&lt;br /&gt;
The condition $y(0)=2$ fixes $C=2$.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: falling with air resistance.&#039;&#039;&#039; A falling body is pulled down by gravity $mg$ and slowed by air drag $-bv$ proportional to its speed; as the speed grows the drag grows too, until it balances gravity and the speed stops increasing. Newton&#039;s second law models the fall,&lt;br /&gt;
&lt;br /&gt;
$$m\frac{dv}{dt}=mg-bv\;\Longrightarrow\;v&#039;+\frac{b}{m}v=g$$&lt;br /&gt;
&lt;br /&gt;
a linear first-order equation with constant $p=b/m$ and $q=g$, so $\mu=e^{(b/m)t}$ and&lt;br /&gt;
&lt;br /&gt;
$$\frac{d}{dt}\left(e^{(b/m)t}v\right)=g\,e^{(b/m)t}\;\Longrightarrow\;v=\frac{mg}{b}+Ce^{-(b/m)t}$$&lt;br /&gt;
&lt;br /&gt;
Dropped from rest, $v(0)=0$ fixes $C=-mg/b$:&lt;br /&gt;
&lt;br /&gt;
$$v(t)=\frac{mg}{b}\left(1-e^{-(b/m)t}\right)$$&lt;br /&gt;
&lt;br /&gt;
Numeric scenario: a skydiver of mass $m=70\ \mathrm{kg}$ and drag coefficient $b=14\ \mathrm{kg\,s^{-1}}$ jumps from rest. The equation of motion is $dv/dt=9.8-0.2v$, $v(0)=0$ (since $mg/b=49\ \mathrm{m\,s^{-1}}$ and $b/m=0.2\ \mathrm{s^{-1}}$), and the solution reads&lt;br /&gt;
&lt;br /&gt;
$$v(t)=49\left(1-e^{-0.2t}\right)\ \mathrm{m\,s^{-1}}$$&lt;br /&gt;
&lt;br /&gt;
so $v(5)\approx 31\ \mathrm{m\,s^{-1}}$ and $v(10)\approx 42\ \mathrm{m\,s^{-1}}$, approaching but never reaching the terminal velocity $mg/b=49\ \mathrm{m\,s^{-1}}$.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 3: constant-coefficient linear equations (trial solutions) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For $y&#039;+ay=q(x)$, the homogeneous equation is solved by the exponential trial $y=Ce^{bx}$:&lt;br /&gt;
&lt;br /&gt;
$$(b+a)Ce^{bx}=0\;\Longrightarrow\;b=-a\;\Longrightarrow\;y_h=Ce^{-ax}$$&lt;br /&gt;
&lt;br /&gt;
Exponential growth $y&#039;=ky$ is the case $a=-k$. By linearity the forced equation has general solution&lt;br /&gt;
&lt;br /&gt;
$$y=y_h+y_p$$&lt;br /&gt;
&lt;br /&gt;
where $y_p$ is any single solution of $y&#039;+ay=q$. When $q$ is constant, exponential, sinusoidal, or polynomial, $y_p$ is tried in the same family and its coefficient fixed by substitution (&#039;&#039;&#039;method of undetermined coefficients&#039;&#039;&#039;); a trial that already solves the homogeneous equation is multiplied by $x$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: a fish stock with constant harvesting.&#039;&#039;&#039; A fish population growing at 10% per year is harvested at the constant rate of 100 fish per year; the population $y(t)$ changes at the rate of natural growth minus the catch:&lt;br /&gt;
&lt;br /&gt;
$$y&#039;=0.1y-100,\qquad y(0)=5000$$&lt;br /&gt;
&lt;br /&gt;
The homogeneous part is solved by the exponential trial $y=Ce^{bt}$: substituting into $y&#039;=0.1y$ gives $b=0.1$, hence $y_h=Ce^{0.1t}$. Since the forcing is constant, try the constant particular solution $y_p=A$, the population at which growth exactly balances the catch; substituting gives $0.1A-100=0$, so $A=1000$, and&lt;br /&gt;
&lt;br /&gt;
$$y(t)=1000+Ce^{0.1t}$$&lt;br /&gt;
&lt;br /&gt;
The initial stock, $y(0)=1000+C=5000$, fixes $C=4000$:&lt;br /&gt;
&lt;br /&gt;
$$y(t)=1000+4000\,e^{0.1t}$$&lt;br /&gt;
&lt;br /&gt;
Check: $y&#039;-0.1y=400e^{0.1t}-(100+400e^{0.1t})=-100$, so the equation is satisfied. After ten years&lt;br /&gt;
&lt;br /&gt;
$$y(10)=1000+4000e\approx 11\,873$$&lt;br /&gt;
&lt;br /&gt;
whereas without harvesting the same initial stock would have grown to $5000e\approx 13\,591$ fish.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Further first-order classes, $y&#039;=f(y/x)$, Bernoulli, exact, reduce to these by substitution or by recognising a total differential.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Second-order ODEs ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1: direct integration ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For $y&#039;&#039;=f(x)$,&lt;br /&gt;
&lt;br /&gt;
$$y&#039;&#039;=f(x)\;\Longrightarrow\;y&#039;=\int f(x)\,dx+C_1\;\Longrightarrow\;y=\int\!\!\left(\int f(x)\,dx\right)dx+C_1x+C_2$$&lt;br /&gt;
&lt;br /&gt;
and likewise $y^{(n)}=f(x)$ by $n$ integrations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: free fall.&#039;&#039;&#039; 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&#039;s second law gives the second-order equation $x&#039;&#039;=-g$, of the form above with $f(x)=-g$. Integrating twice,&lt;br /&gt;
&lt;br /&gt;
$$x&#039;&#039;=-9.8\;\Longrightarrow\;\frac{dx}{dt}=-9.8t+v_0\;\Longrightarrow\;x(t)=-4.9t^2+v_0t+x_0$$&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$0=19.6-4.9t^2\;\Longrightarrow\;t=\sqrt{19.6/4.9}=2\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
so the two initial conditions have pinned down the whole trajectory.&lt;br /&gt;
&lt;br /&gt;
==== Method 2: linear equations with constant coefficients ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
$$y&#039;&#039;+a\,y&#039;+b\,y=f(x)$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Homogeneous case ($f=0$).&#039;&#039;&#039; The exponential trial $y=e^{rx}$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1644}}&lt;br /&gt;
&lt;br /&gt;
gives the characteristic equation $r^2+ar+b=0$, whose roots determine $y_h$:&lt;br /&gt;
&lt;br /&gt;
* $r_1\neq r_2$ real: $y_h=C_1e^{r_1x}+C_2e^{r_2x}$;&lt;br /&gt;
* $r_1=r_2=r$: $y_h=(C_1+C_2x)e^{rx}$;&lt;br /&gt;
* $r=\alpha\pm i\beta$: $y_h=e^{\alpha x}(C_1\cos\beta x+C_2\sin\beta x)$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Non-homogeneous case ($f\neq 0$).&#039;&#039;&#039; $y=y_h+y_p$, with $y_p$ found by undetermined coefficients as in Method 3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration (homogeneous).&#039;&#039;&#039; $y&#039;&#039;-3y&#039;+2y=0$: $r^2-3r+2=(r-1)(r-2)=0$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1608}}&lt;br /&gt;
&lt;br /&gt;
Check: $e^x$ gives $(1-3+2)e^x=0$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration (non-homogeneous).&#039;&#039;&#039; $y&#039;&#039;-3y&#039;+2y=2e^{3x}$: keep $y_h$ above, try $y_p=Ae^{3x}$:&lt;br /&gt;
&lt;br /&gt;
$$y_p&#039;&#039;-3y_p&#039;+2y_p=(9-9+2)Ae^{3x}=2Ae^{3x}\;\Longrightarrow\;A=1$$&lt;br /&gt;
&lt;br /&gt;
$$y=C_1e^x+C_2e^{2x}+e^{3x}$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: the harmonic oscillator (a mass on a spring).&#039;&#039;&#039; A mass attached to a spring is pulled back towards its rest position by a force $-kx$ proportional to the displacement (Hooke&#039;s law); once released it oscillates. Newton&#039;s second law models the motion,&lt;br /&gt;
&lt;br /&gt;
$$m\frac{d^2x}{dt^2}=-kx\;\Longrightarrow\;x&#039;&#039;+\omega_0^2x=0,\qquad \omega_0=\sqrt{\frac{k}{m}}$$&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1588}}&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$x(t)=A\cos\omega_0t+B\sin\omega_0t$$&lt;br /&gt;
&lt;br /&gt;
with $A,B$ fixed by the initial position and velocity.&lt;br /&gt;
&lt;br /&gt;
[[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).]]&lt;br /&gt;
&lt;br /&gt;
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&#039;&#039;+4x=0$. Pulled $0.10\ \mathrm{m}$ from rest and released, the conditions $x(0)=0.10$, $x&#039;(0)=0$ give $A=0.10$, $B=0$:&lt;br /&gt;
&lt;br /&gt;
$$x(t)=0.10\cos 2t\ \mathrm{m},\qquad P=\frac{2\pi}{\omega_0}=\pi\approx 3.14\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
After one second $x(1)=0.10\cos 2\approx -0.042\ \mathrm{m}$, and the motion is &#039;&#039;&#039;simple harmonic motion&#039;&#039;&#039;.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Partial differential equations ===&lt;br /&gt;
&lt;br /&gt;
Two elementary classes of linear PDE admit closed-form solutions: separable problems on bounded domains, by separation of variables, and transport and wave problems, by travelling waves.&lt;br /&gt;
&lt;br /&gt;
==== Method 1: separation of variables ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General form.&#039;&#039;&#039; For a linear homogeneous PDE in two variables on a bounded domain with homogeneous boundary conditions, seek a solution of the separated form&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=X(x)\,T(t)$$&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General algebraic solution.&#039;&#039;&#039; The PDE is linear and homogeneous, so the separated modes superimpose:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=\sum_n c_n\,X_n(x)\,T_n(t)$$&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: the heat equation.&#039;&#039;&#039; The temperature of a bar of length $L$ with insulated sides and both ends held at $0$ obeys&lt;br /&gt;
&lt;br /&gt;
$$\frac{\partial u}{\partial t}=\alpha\frac{\partial^2u}{\partial x^2},\qquad u(0,t)=u(L,t)=0$$&lt;br /&gt;
&lt;br /&gt;
Substituting $u=X(x)T(t)$ gives $XT&#039;=\alpha X&#039;&#039;T$, and dividing by $\alpha XT$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1622}}&lt;br /&gt;
&lt;br /&gt;
The $t$-equation $T&#039;=-\alpha\lambda T$ has solution $T=e^{-\alpha\lambda t}$, and the $x$-equation&lt;br /&gt;
&lt;br /&gt;
$$X&#039;&#039;=-\lambda X\;\Longrightarrow\;X=A\cos(\sqrt\lambda\,x)+B\sin(\sqrt\lambda\,x)$$&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$u_n(x,t)=\sin\frac{n\pi x}{L}\,e^{-\alpha(n\pi/L)^2t}$$&lt;br /&gt;
&lt;br /&gt;
and the general algebraic solution above becomes&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1611}}&lt;br /&gt;
&lt;br /&gt;
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$.&lt;br /&gt;
&lt;br /&gt;
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&#039;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&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=100\sin\frac{\pi x}{L}\,e^{-\alpha\pi^2t/L^2}$$&lt;br /&gt;
&lt;br /&gt;
At the centre, with $L=1$ and $\alpha\pi^2\approx 2.3\times10^{-4}\ \text{s}^{-1}$,&lt;br /&gt;
&lt;br /&gt;
$$u\!\left(\tfrac12,t\right)=100\,e^{-2.3\times10^{-4}t}$$&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 2: travelling waves (method of characteristics) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General form.&#039;&#039;&#039; The transport equation for a quantity $u(x,t)$ carried by a flow at constant speed $c$ is the first-order linear PDE&lt;br /&gt;
&lt;br /&gt;
$$u_t+c\,u_x=0$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General algebraic solution.&#039;&#039;&#039; For any differentiable profile $f$, the travelling wave $u(x,t)=f(x-ct)$ satisfies the equation identically, since $u_t=-cf&#039;(x-ct)$ and $u_x=f&#039;(x-ct)$; conversely, every solution is of this form, with $f$ fixed by the initial data:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=f(x-ct),\qquad u(x,0)=f(x)$$&lt;br /&gt;
&lt;br /&gt;
so $u$ is constant on each characteristic line $x-ct=\text{const}$, and the initial profile is transported unchanged at speed $c$. For the forced equation $u_t+cu_x=s(x,t)$, the source is accumulated along the characteristic:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=f(x-ct)+\int_0^t s\bigl(x-c(t-\tau),\tau\bigr)\,d\tau$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: transport of a pollutant.&#039;&#039;&#039; 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 the transport equation $u_t+2u_x=0$ with the Gaussian initial profile&lt;br /&gt;
&lt;br /&gt;
$$u(x,0)=50\,e^{-(x/10)^2}\ \mathrm{mg\,L^{-1}}$$&lt;br /&gt;
&lt;br /&gt;
(peak $50\ \mathrm{mg\,L^{-1}}$ at the release point, falling by $e^{-1}$ ten metres away). The solution above gives&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=50\,e^{-((x-2t)/10)^2}\ \mathrm{mg\,L^{-1}}$$&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: the wave equation.&#039;&#039;&#039; The second-order wave equation is the two-directional version of the same idea, and its general algebraic solution is a pair of waves travelling left and right (d&#039;Alembert, 1747):&lt;br /&gt;
&lt;br /&gt;
$$u_{tt}=c^2u_{xx}\;\Longrightarrow\;u(x,t)=f(x-ct)+g(x+ct)$$&lt;br /&gt;
&lt;br /&gt;
The term $f(x-ct)$ obeys the transport equation with speed $c$ and $g(x+ct)$ with speed $-c$; each therefore satisfies the wave equation, and linearity superposes them into the general solution. The functions $f$ and $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&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=\frac{\phi(x-ct)+\phi(x+ct)}{2}$$&lt;br /&gt;
&lt;br /&gt;
and the initial hump separates into two half-size copies travelling apart at speed $c$.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== When no formula exists ===&lt;br /&gt;
&lt;br /&gt;
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:&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Numerically&#039;&#039;&#039;, when numbers suffice: [[Euler&#039;s method]] steps along the slope field;&lt;br /&gt;
* &#039;&#039;&#039;[[Qualitative methods]]&#039;&#039;&#039;: equilibria, stability and long-term behaviour, without formulas;&lt;br /&gt;
* &#039;&#039;&#039;Series and transforms&#039;&#039;&#039;, for linear cases: [[Power series]] or the [[Laplace transform]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;uml type=&amp;quot;uml&amp;quot;&amp;gt;&lt;br /&gt;
@startuml&lt;br /&gt;
skinparam monochrome true&lt;br /&gt;
start&lt;br /&gt;
:You have a differential equation;&lt;br /&gt;
if (First order and separable?\ny&#039; = g(x) h(y)?) then (yes)&lt;br /&gt;
  :Separate and integrate:\n∫ dy/h(y) = ∫ g(x) dx;&lt;br /&gt;
else (no)&lt;br /&gt;
  if (First order and linear?\ny&#039; + p(x) y = q(x)?) then (yes)&lt;br /&gt;
    if (Constant coefficients?\ny&#039; + a y = q(x)?) then (yes)&lt;br /&gt;
      :Trial solution:\ny_h = C e^{-ax} + guessed y_p;&lt;br /&gt;
    else (no)&lt;br /&gt;
      :Integrating factor\nμ = e^{∫ p dx};&lt;br /&gt;
    endif&lt;br /&gt;
  else (no)&lt;br /&gt;
    if (Second order, of the form\ny&#039;&#039; = f(x)?) then (yes)&lt;br /&gt;
      :Integrate twice;&lt;br /&gt;
    else (no)&lt;br /&gt;
      if (Second order, linear, constant coefficients?\ny&#039;&#039; + a y&#039; + b y = 0? or = f(x)?) then (yes)&lt;br /&gt;
        :Characteristic equation\nr² + a r + b = 0;\nthen add a particular y_p;&lt;br /&gt;
      else (no)&lt;br /&gt;
        if (Transport equation?\nu_t + c u_x = 0?) then (yes)&lt;br /&gt;
          :Travelling wave\nu(x,t) = f(x - ct);&lt;br /&gt;
        else (no)&lt;br /&gt;
          if (Linear PDE on a simple shape,\ne.g. the heat equation?) then (yes)&lt;br /&gt;
            :Separate variables\nu(x,t) = X(x) T(t);&lt;br /&gt;
          else (no)&lt;br /&gt;
            if (Are approximate numbers enough?) then (yes)&lt;br /&gt;
              :Numerical stepping\n(Euler&#039;s method);&lt;br /&gt;
            else (no)&lt;br /&gt;
              if (Linear?) then (yes)&lt;br /&gt;
                :Power series or Laplace transform;&lt;br /&gt;
              else (no)&lt;br /&gt;
                :Qualitative study:\nequilibria, stability, chaos;&lt;br /&gt;
              endif&lt;br /&gt;
            endif&lt;br /&gt;
          endif&lt;br /&gt;
        endif&lt;br /&gt;
      endif&lt;br /&gt;
    endif&lt;br /&gt;
  endif&lt;br /&gt;
endif&lt;br /&gt;
stop&lt;br /&gt;
@enduml&lt;br /&gt;
&amp;lt;/uml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== A short history ==&lt;br /&gt;
&lt;br /&gt;
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&#039;s laws of motion and of universal gravitation, published in the &#039;&#039;Philosophiae Naturalis Principia Mathematica&#039;&#039; (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.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Isaac Newton portrait.jpg|thumb|left|Isaac Newton (portrait after Godfrey Kneller, 1689). Newton&#039;s laws of motion and of gravitation (&#039;&#039;Principia&#039;&#039;, 1687) are differential equations. Credit: James Thronill after Godfrey Kneller (public domain).]]&lt;br /&gt;
&lt;br /&gt;
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&#039;s method, that bears his name. The exact methods presented in this article derive, in large part, from his work.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Leonhard Euler portrait.jpg|thumb|Leonhard Euler (portrait by Jakob Emanuel Handmann, 1753). Credit: Jakob Emanuel Handmann (public domain).]]&lt;br /&gt;
&lt;br /&gt;
The theory of partial differential equations arose from the demands of eighteenth-century physics. In 1747, [[Person:Jean le Rond d&#039;Alembert|Jean le Rond d&#039;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 &#039;&#039;Théorie analytique de la chaleur&#039;&#039; (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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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&#039;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.&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Differential_equation Differential equation], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/DifferentialEquation.html Differential Equation], Wolfram MathWorld&lt;br /&gt;
* [https://ocw.mit.edu/courses/18-03sc-differential-equations-fall-2011/ 18.03SC Differential Equations], MIT OpenCourseWare&lt;br /&gt;
* [https://mathshistory.st-andrews.ac.uk/Biographies/Euler/ Leonhard Euler], MacTutor History of Mathematics&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7466</id>
		<title>Differential equation</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7466"/>
		<updated>2026-09-05T19:46:43Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: AI-assisted (RonzzWikiCowriter): restore scenario introductions to the numerical examples and make each example illustrate the solving process — the scenario is first modelled by a differential equation with concrete numbers, which the method then solves step by step (e.g. the compound-interest scenario now explicitly solves dy/dt = 0.05y, y(0) = 1000). (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;A differential equation&#039;&#039;&#039; is an equation whose unknown is a function and which also involves that function&#039;s derivatives (rates of change). Where an ordinary equation such as $x^2=9$ is solved by numbers, a differential equation such as $y&#039;+2y=0$ is solved by functions $y(x)$. Laws of nature state how quantities change, so differential equations describe pendulums, cooling drinks, growing populations, and discharging capacitors. This article covers the standard analytical solution methods, by class of equation, each stated in general and then demonstrated on a concrete numerical example, and the numerical, series, and qualitative routes used when no exact formula exists. It treats &#039;&#039;&#039;ordinary differential equations&#039;&#039;&#039; (one independent variable) and, briefly, &#039;&#039;&#039;partial differential equations&#039;&#039;&#039; (several).&lt;br /&gt;
&lt;br /&gt;
== A first example: slopes and a family of solutions ==&lt;br /&gt;
&lt;br /&gt;
The simplest differential equation prescribes the slope of a function $y(x)$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}=2x$$&lt;br /&gt;
&lt;br /&gt;
Integration inverts differentiation, so integrating both sides gives&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{dx}\,dx=\int 2x\,dx\qquad\Longrightarrow\qquad y(x)=x^{2}+C$$&lt;br /&gt;
&lt;br /&gt;
Every $C$ works, since $\frac{d}{dx}\left(x^2+C\right)=2x$; the solutions form the parabola family $y=x^2+C$, the &#039;&#039;&#039;general solution&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If $y(0)=3$, then&lt;br /&gt;
&lt;br /&gt;
$$3=0^2+C\qquad\Longrightarrow\qquad C=3\qquad\Longrightarrow\qquad y=x^2+3$$&lt;br /&gt;
&lt;br /&gt;
A prescribed value such as this is an &#039;&#039;&#039;initial condition&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Classifying differential equations ==&lt;br /&gt;
&lt;br /&gt;
Three features decide how to solve an equation: its &#039;&#039;&#039;order&#039;&#039;&#039;, its &#039;&#039;&#039;linearity&#039;&#039;&#039;, and how many independent variables it involves.&lt;br /&gt;
&lt;br /&gt;
=== Order ===&lt;br /&gt;
&lt;br /&gt;
The order is the order of the highest derivative present. $dy/dx=2x$ is first order; Newton&#039;s second law,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1583}}&lt;br /&gt;
&lt;br /&gt;
is second order ($x(t)$ position of mass $m$, $F$ net force). Integration introduces one arbitrary constant per integration, so the general solution of an nth-order equation carries $n$ constants, fixed by $n$ initial conditions. For equations of the special form $y^{(n)}=f(x)$ the constants appear exactly as the integration constants of $n$ successive integrations; the free-fall example in the second-order section below works this out for $n=2$.&lt;br /&gt;
&lt;br /&gt;
=== Linearity and homogeneity ===&lt;br /&gt;
&lt;br /&gt;
An equation is &#039;&#039;&#039;linear&#039;&#039;&#039; 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&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
and is &#039;&#039;&#039;homogeneous&#039;&#039;&#039; 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$).&lt;br /&gt;
&lt;br /&gt;
If $y_1,y_2$ solve a homogeneous linear equation, so does $c_1y_1+c_2y_2$ (the &#039;&#039;&#039;superposition principle&#039;&#039;&#039;): substituting the combination adds the two expressions that already vanish. For a nonlinear equation the combination does not generally solve it: if $y_1&#039;=y_1^2$ and $y_2&#039;=y_2^2$, then&lt;br /&gt;
&lt;br /&gt;
$$(y_1+y_2)&#039;=y_1^2+y_2^2\neq (y_1+y_2)^2$$&lt;br /&gt;
&lt;br /&gt;
so $y_1+y_2$ does not solve $y&#039;=y^2$.&lt;br /&gt;
&lt;br /&gt;
Superposition also joins the homogeneous and non-homogeneous problems of one linear equation. Write the left-hand side as $L(y)$, so the equation reads $L(y)=q(x)$, with $L(y)=0$ its homogeneous form. If $y_p$ is any single solution of $L(y)=q$ (a &#039;&#039;&#039;particular solution&#039;&#039;&#039;) and $y_h$ runs through all solutions of $L(y)=0$, then every solution of the original equation is&lt;br /&gt;
&lt;br /&gt;
$$y=y_p+y_h$$&lt;br /&gt;
&lt;br /&gt;
because $L(y_p+y_h)=L(y_p)+L(y_h)=q+0=q$, and conversely any two solutions of the non-homogeneous equation differ by a solution of the homogeneous one. The constants of integration therefore live entirely in $y_h$: the general solution of a linear equation is one particular solution plus the whole homogeneous family. This is why each linear method below is presented in two parts, the homogeneous case first.&lt;br /&gt;
&lt;br /&gt;
=== Ordinary and partial ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;ordinary differential equation&#039;&#039;&#039; (ODE) has one independent variable. A &#039;&#039;&#039;partial differential equation&#039;&#039;&#039; (PDE) has several, with partial derivatives. For example, the temperature $u(x,t)$ of an insulated metal bar, which depends on position $x$ and time $t$, obeys the heat equation&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1590}}&lt;br /&gt;
&lt;br /&gt;
where $\alpha$ is the thermal diffusivity.&lt;br /&gt;
&lt;br /&gt;
== Slope fields ==&lt;br /&gt;
&lt;br /&gt;
A first-order equation can be written&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1581}}&lt;br /&gt;
&lt;br /&gt;
assigning to each point $(x,y)$ the slope $f(x,y)$ a solution must have there. Drawing short segments of that slope gives a &#039;&#039;&#039;direction field&#039;&#039;&#039;; solution curves run tangent to it.&lt;br /&gt;
&lt;br /&gt;
[[File:Slope field of exponential growth.png|thumb|Direction field of $dy/dx=y$. Credit: jjbeard (public domain).]]&lt;br /&gt;
&lt;br /&gt;
Numerical methods such as [[Euler&#039;s method]] follow the field: read the slope, step a short distance along it, repeat.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving differential equations ==&lt;br /&gt;
&lt;br /&gt;
Closed-form solutions are known only for restricted classes of equations; the standard practice is to identify the class by order, linearity, and coefficients, and to apply that class&#039;s method. Each method below is stated in general and then applied to a concrete scenario: the scenario is first translated into a differential equation, which the method then solves step by step. The linear methods follow the two-step structure of the classification section: solve the homogeneous equation, whose general solution carries all arbitrary constants, then add one particular solution of the non-homogeneous equation.&lt;br /&gt;
&lt;br /&gt;
=== First-order ODEs ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1: separable equations ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; A first-order equation is separable when it can be brought to the separated form&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1612}}&lt;br /&gt;
&lt;br /&gt;
after which both integrals are evaluated directly.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: exponential growth and decay.&#039;&#039;&#039; Growth and decay describe quantities whose rate of change is proportional to their own size: a bank balance earning interest, an unchecked population, a radioactive sample. Each such quantity is modelled by&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1584}}&lt;br /&gt;
&lt;br /&gt;
Separating variables and integrating,&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{y}=\int k\,dt\;\Longrightarrow\;\ln|y|=kt+C_1\;\Longrightarrow\;y=Ce^{kt}$$&lt;br /&gt;
&lt;br /&gt;
The initial condition $y(0)=y_0$ fixes $C=y_0$, giving&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1585}}&lt;br /&gt;
&lt;br /&gt;
Numeric scenario: €1000 is deposited at 5% interest compounded continuously. The balance $y(t)$ changes at the rate $dy/dt=0.05y$, with $y(0)=1000$; substituting $k=0.05$ and $y_0=1000$ into the solved form gives&lt;br /&gt;
&lt;br /&gt;
$$y(t)=1000\,e^{0.05t}$$&lt;br /&gt;
&lt;br /&gt;
so after ten years $y(10)=1000\,e^{0.5}\approx 1648.7$. The balance doubles when $1000e^{0.05t}=2000$, i.e. at $t_{\text{double}}=\ln 2/0.05\approx 13.9\ \text{yr}$. With $k&amp;lt;0$ the same solution describes decay, as for a radioactive sample, whose half-life $y=y_0/2$ is reached at $t_{1/2}=(\ln 2)/(-k)$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: Newton&#039;s law of cooling.&#039;&#039;&#039; A hot object in a cooler room loses heat through its surface, and the larger the temperature gap, the faster it cools: the gap shrinks at a rate proportional to itself. The temperature is modelled by&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1586}}&lt;br /&gt;
&lt;br /&gt;
Separating variables and integrating,&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dT}{T-T_a}=-k\int dt\;\Longrightarrow\;\ln|T-T_a|=-kt+C\;\Longrightarrow\;T-T_a=Ce^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
so with $T(0)=T_0$, hence $C=T_0-T_a$,&lt;br /&gt;
&lt;br /&gt;
$$T(t)=T_a+(T_0-T_a)e^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
Numeric scenario: a drink at $T_0=80\,^{\circ}\mathrm{C}$ cools in a room at $T_a=20\,^{\circ}\mathrm{C}$ with rate constant $k=0.1\ \mathrm{min}^{-1}$. It obeys $dT/dt=-0.1(T-20)$, $T(0)=80$, and the solution above becomes&lt;br /&gt;
&lt;br /&gt;
$$T(t)=20+60\,e^{-0.1t}$$&lt;br /&gt;
&lt;br /&gt;
The drink reaches $40\,^{\circ}\mathrm{C}$ when $20+60e^{-0.1t}=40$, i.e. at $t=10\ln 3\approx 11$ min.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 2: linear first-order equations (integrating factor) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For the linear equation&lt;br /&gt;
&lt;br /&gt;
$$y&#039;+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
introduce the integrating factor $\mu=e^{\int p\,dx}$, chosen so that $\mu&#039;=p\mu$; multiplying by $\mu$ collapses the left-hand side into a single derivative:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1613}}&lt;br /&gt;
&lt;br /&gt;
Integrating both sides,&lt;br /&gt;
&lt;br /&gt;
$$\mu y=\int\mu\,q\,dx+C\;\Longrightarrow\;y=\frac{1}{\mu}\int\mu\,q\,dx+\frac{C}{\mu}$$&lt;br /&gt;
&lt;br /&gt;
The first term is one particular solution of the non-homogeneous equation, and the second term, $C/\mu=Ce^{-\int p\,dx}$, is the general solution of its homogeneous part, so the formula realises the structure $y=y_p+y_h$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration.&#039;&#039;&#039; Solve $y&#039;+y=e^{-x}$: $p=1$, $\mu=e^x$, and $(e^x y)&#039;=e^x(y&#039;+y)=1$, so $e^x y=x+C$:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1607}}&lt;br /&gt;
&lt;br /&gt;
The condition $y(0)=2$ fixes $C=2$.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: falling with air resistance.&#039;&#039;&#039; A falling body is pulled down by gravity $mg$ and slowed by air drag $-bv$ proportional to its speed; as the speed grows the drag grows too, until it balances gravity and the speed stops increasing. Newton&#039;s second law models the fall,&lt;br /&gt;
&lt;br /&gt;
$$m\frac{dv}{dt}=mg-bv\;\Longrightarrow\;v&#039;+\frac{b}{m}v=g$$&lt;br /&gt;
&lt;br /&gt;
a linear first-order equation with constant $p=b/m$ and $q=g$, so $\mu=e^{(b/m)t}$ and&lt;br /&gt;
&lt;br /&gt;
$$\frac{d}{dt}\left(e^{(b/m)t}v\right)=g\,e^{(b/m)t}\;\Longrightarrow\;v=\frac{mg}{b}+Ce^{-(b/m)t}$$&lt;br /&gt;
&lt;br /&gt;
Dropped from rest, $v(0)=0$ fixes $C=-mg/b$:&lt;br /&gt;
&lt;br /&gt;
$$v(t)=\frac{mg}{b}\left(1-e^{-(b/m)t}\right)$$&lt;br /&gt;
&lt;br /&gt;
Numeric scenario: a skydiver of mass $m=70\ \mathrm{kg}$ and drag coefficient $b=14\ \mathrm{kg\,s^{-1}}$ jumps from rest. The equation of motion is $dv/dt=9.8-0.2v$, $v(0)=0$ (since $mg/b=49\ \mathrm{m\,s^{-1}}$ and $b/m=0.2\ \mathrm{s^{-1}}$), and the solution reads&lt;br /&gt;
&lt;br /&gt;
$$v(t)=49\left(1-e^{-0.2t}\right)\ \mathrm{m\,s^{-1}}$$&lt;br /&gt;
&lt;br /&gt;
so $v(5)\approx 31\ \mathrm{m\,s^{-1}}$ and $v(10)\approx 42\ \mathrm{m\,s^{-1}}$, approaching but never reaching the terminal velocity $mg/b=49\ \mathrm{m\,s^{-1}}$.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 3: constant-coefficient linear equations (trial solutions) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For $y&#039;+ay=q(x)$, the homogeneous equation is solved by the exponential trial $y=Ce^{bx}$:&lt;br /&gt;
&lt;br /&gt;
$$(b+a)Ce^{bx}=0\;\Longrightarrow\;b=-a\;\Longrightarrow\;y_h=Ce^{-ax}$$&lt;br /&gt;
&lt;br /&gt;
Exponential growth $y&#039;=ky$ is the case $a=-k$. By linearity the forced equation has general solution&lt;br /&gt;
&lt;br /&gt;
$$y=y_h+y_p$$&lt;br /&gt;
&lt;br /&gt;
where $y_p$ is any single solution of $y&#039;+ay=q$. When $q$ is constant, exponential, sinusoidal, or polynomial, $y_p$ is tried in the same family and its coefficient fixed by substitution (&#039;&#039;&#039;method of undetermined coefficients&#039;&#039;&#039;); a trial that already solves the homogeneous equation is multiplied by $x$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: an account with steady withdrawals.&#039;&#039;&#039; A savings account earns 10% interest compounded continuously, and €100 is withdrawn each year; the balance changes at the rate of interest earned minus withdrawals:&lt;br /&gt;
&lt;br /&gt;
$$y&#039;=0.1y-100,\qquad y(0)=5000$$&lt;br /&gt;
&lt;br /&gt;
This is $y&#039;+ay=q$ with constant forcing $q=-100$. The homogeneous part is solved by the trial $y=Ce^{bt}$: substituting into $y&#039;=0.1y$ gives $b=0.1$, hence $y_h=Ce^{0.1t}$. Since the forcing is constant, try the constant particular solution $y_p=A$; substituting gives $0.1A-100=0$, so $A=1000$, and&lt;br /&gt;
&lt;br /&gt;
$$y(t)=1000+Ce^{0.1t}$$&lt;br /&gt;
&lt;br /&gt;
The initial balance, $y(0)=1000+C=5000$, fixes $C=4000$:&lt;br /&gt;
&lt;br /&gt;
$$y(t)=1000+4000\,e^{0.1t}$$&lt;br /&gt;
&lt;br /&gt;
Check: $y&#039;-0.1y=400e^{0.1t}-(100+400e^{0.1t})=-100$, so the equation is satisfied. After ten years&lt;br /&gt;
&lt;br /&gt;
$$y(10)=1000+4000e\approx 11\,873$$&lt;br /&gt;
&lt;br /&gt;
whereas without the withdrawals the same €5000 would have grown to $5000e\approx 13\,591$.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Further first-order classes, $y&#039;=f(y/x)$, Bernoulli, exact, reduce to these by substitution or by recognising a total differential.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Second-order ODEs ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1: direct integration ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For $y&#039;&#039;=f(x)$,&lt;br /&gt;
&lt;br /&gt;
$$y&#039;&#039;=f(x)\;\Longrightarrow\;y&#039;=\int f(x)\,dx+C_1\;\Longrightarrow\;y=\int\!\!\left(\int f(x)\,dx\right)dx+C_1x+C_2$$&lt;br /&gt;
&lt;br /&gt;
and likewise $y^{(n)}=f(x)$ by $n$ integrations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: free fall.&#039;&#039;&#039; 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&#039;s second law gives the second-order equation $x&#039;&#039;=-g$, of the form above with $f(x)=-g$. Integrating twice,&lt;br /&gt;
&lt;br /&gt;
$$x&#039;&#039;=-9.8\;\Longrightarrow\;\frac{dx}{dt}=-9.8t+v_0\;\Longrightarrow\;x(t)=-4.9t^2+v_0t+x_0$$&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$0=19.6-4.9t^2\;\Longrightarrow\;t=\sqrt{19.6/4.9}=2\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
so the two initial conditions have pinned down the whole trajectory.&lt;br /&gt;
&lt;br /&gt;
==== Method 2: linear equations with constant coefficients ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
$$y&#039;&#039;+a\,y&#039;+b\,y=f(x)$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Homogeneous case ($f=0$).&#039;&#039;&#039; The exponential trial $y=e^{rx}$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1644}}&lt;br /&gt;
&lt;br /&gt;
gives the characteristic equation $r^2+ar+b=0$, whose roots determine $y_h$:&lt;br /&gt;
&lt;br /&gt;
* $r_1\neq r_2$ real: $y_h=C_1e^{r_1x}+C_2e^{r_2x}$;&lt;br /&gt;
* $r_1=r_2=r$: $y_h=(C_1+C_2x)e^{rx}$;&lt;br /&gt;
* $r=\alpha\pm i\beta$: $y_h=e^{\alpha x}(C_1\cos\beta x+C_2\sin\beta x)$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Non-homogeneous case ($f\neq 0$).&#039;&#039;&#039; $y=y_h+y_p$, with $y_p$ found by undetermined coefficients as in Method 3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration (homogeneous).&#039;&#039;&#039; $y&#039;&#039;-3y&#039;+2y=0$: $r^2-3r+2=(r-1)(r-2)=0$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1608}}&lt;br /&gt;
&lt;br /&gt;
Check: $e^x$ gives $(1-3+2)e^x=0$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration (non-homogeneous).&#039;&#039;&#039; $y&#039;&#039;-3y&#039;+2y=2e^{3x}$: keep $y_h$ above, try $y_p=Ae^{3x}$:&lt;br /&gt;
&lt;br /&gt;
$$y_p&#039;&#039;-3y_p&#039;+2y_p=(9-9+2)Ae^{3x}=2Ae^{3x}\;\Longrightarrow\;A=1$$&lt;br /&gt;
&lt;br /&gt;
$$y=C_1e^x+C_2e^{2x}+e^{3x}$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: the harmonic oscillator (a mass on a spring).&#039;&#039;&#039; A mass attached to a spring is pulled back towards its rest position by a force $-kx$ proportional to the displacement (Hooke&#039;s law); once released it oscillates. Newton&#039;s second law models the motion,&lt;br /&gt;
&lt;br /&gt;
$$m\frac{d^2x}{dt^2}=-kx\;\Longrightarrow\;x&#039;&#039;+\omega_0^2x=0,\qquad \omega_0=\sqrt{\frac{k}{m}}$$&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1588}}&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$x(t)=A\cos\omega_0t+B\sin\omega_0t$$&lt;br /&gt;
&lt;br /&gt;
with $A,B$ fixed by the initial position and velocity.&lt;br /&gt;
&lt;br /&gt;
[[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).]]&lt;br /&gt;
&lt;br /&gt;
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&#039;&#039;+4x=0$. Pulled $0.10\ \mathrm{m}$ from rest and released, the conditions $x(0)=0.10$, $x&#039;(0)=0$ give $A=0.10$, $B=0$:&lt;br /&gt;
&lt;br /&gt;
$$x(t)=0.10\cos 2t\ \mathrm{m},\qquad P=\frac{2\pi}{\omega_0}=\pi\approx 3.14\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
After one second $x(1)=0.10\cos 2\approx -0.042\ \mathrm{m}$, and the motion is &#039;&#039;&#039;simple harmonic motion&#039;&#039;&#039;.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Partial differential equations ===&lt;br /&gt;
&lt;br /&gt;
Two elementary classes of linear PDE admit closed-form solutions: diffusion on finite domains, by separation of variables, and first-order transport, by travelling waves.&lt;br /&gt;
&lt;br /&gt;
==== Method 1: separation of variables (the heat equation) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For a linear, homogeneous PDE on a simple domain, assume $u(x,t)=X(x)T(t)$; substitution splits the PDE into ordinary equations for $X$ and $T$, boundary conditions select the admissible solutions, and their superposition matches the initial profile.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Application.&#039;&#039;&#039; The heat equation on a bar of length $L$ with insulated sides and both ends held at $0$,&lt;br /&gt;
&lt;br /&gt;
$$\frac{\partial u}{\partial t}=\alpha\frac{\partial^2u}{\partial x^2},\qquad u(0,t)=u(L,t)=0$$&lt;br /&gt;
&lt;br /&gt;
Substituting $u=X(x)T(t)$ gives $XT&#039;=\alpha X&#039;&#039;T$, and dividing by $\alpha XT$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1622}}&lt;br /&gt;
&lt;br /&gt;
The left side depends on $t$ alone and the right on $x$ alone, so both equal one constant, $-\lambda$:&lt;br /&gt;
&lt;br /&gt;
$$T&#039;=-\alpha\lambda T\;\Longrightarrow\;T=e^{-\alpha\lambda t}$$&lt;br /&gt;
&lt;br /&gt;
$$X&#039;&#039;=-\lambda X\;\Longrightarrow\;X=A\cos(\sqrt\lambda\,x)+B\sin(\sqrt\lambda\,x)$$&lt;br /&gt;
&lt;br /&gt;
The boundary conditions force $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&lt;br /&gt;
&lt;br /&gt;
$$u_n(x,t)=\sin\frac{n\pi x}{L}\,e^{-\alpha(n\pi/L)^2t}$$&lt;br /&gt;
&lt;br /&gt;
and superposition gives the general solution&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1611}}&lt;br /&gt;
&lt;br /&gt;
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$.&lt;br /&gt;
&lt;br /&gt;
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&#039;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&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=100\sin\frac{\pi x}{L}\,e^{-\alpha\pi^2t/L^2}$$&lt;br /&gt;
&lt;br /&gt;
At the centre, with $L=1$ and $\alpha\pi^2\approx 2.3\times10^{-4}\ \text{s}^{-1}$,&lt;br /&gt;
&lt;br /&gt;
$$u\!\left(\tfrac12,t\right)=100\,e^{-2.3\times10^{-4}t}$$&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 2: travelling waves (method of characteristics) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; The transport equation&lt;br /&gt;
&lt;br /&gt;
$$u_t+c\,u_x=0$$&lt;br /&gt;
&lt;br /&gt;
states that the quantity $u$ is carried along unchanged at speed $c$. The travelling-wave trial $u=f(x-ct)$ gives $u_t=-cf&#039;$ and $u_x=f&#039;$, hence $u_t+cu_x=0$ identically:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=f(x-ct),\qquad u(x,0)=f(x)$$&lt;br /&gt;
&lt;br /&gt;
so $u$ is constant on the characteristic lines $x-ct=\text{const}$. The non-homogeneous equation $u_t+cu_x=s(x,t)$ accumulates the source along each characteristic:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=f(x-ct)+\int_0^t s\bigl(x-c(t-\tau),\tau\bigr)\,d\tau$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: a slug of pollutant in a river.&#039;&#039;&#039; 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 the transport equation $u_t+2u_x=0$ with the Gaussian initial profile&lt;br /&gt;
&lt;br /&gt;
$$u(x,0)=50\,e^{-(x/10)^2}\ \mathrm{mg\,L^{-1}}$$&lt;br /&gt;
&lt;br /&gt;
(peak $50\ \mathrm{mg\,L^{-1}}$ at the release point, falling by $e^{-1}$ ten metres away). The solution above gives&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=50\,e^{-((x-2t)/10)^2}\ \mathrm{mg\,L^{-1}}$$&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Wave equation.&#039;&#039;&#039; The second-order wave equation is the two-directional travelling-wave problem:&lt;br /&gt;
&lt;br /&gt;
$$u_{tt}=c^2u_{xx}\;\Longrightarrow\;u(x,t)=f(x-ct)+g(x+ct)$$&lt;br /&gt;
&lt;br /&gt;
(d&#039;Alembert, 1747; see the history section).&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== When no formula exists ===&lt;br /&gt;
&lt;br /&gt;
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:&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Numerically&#039;&#039;&#039;, when numbers suffice: [[Euler&#039;s method]] steps along the slope field;&lt;br /&gt;
* &#039;&#039;&#039;[[Qualitative methods]]&#039;&#039;&#039;: equilibria, stability and long-term behaviour, without formulas;&lt;br /&gt;
* &#039;&#039;&#039;Series and transforms&#039;&#039;&#039;, for linear cases: [[Power series]] or the [[Laplace transform]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;uml type=&amp;quot;uml&amp;quot;&amp;gt;&lt;br /&gt;
@startuml&lt;br /&gt;
skinparam monochrome true&lt;br /&gt;
start&lt;br /&gt;
:You have a differential equation;&lt;br /&gt;
if (First order and separable?\ny&#039; = g(x) h(y)?) then (yes)&lt;br /&gt;
  :Separate and integrate:\n∫ dy/h(y) = ∫ g(x) dx;&lt;br /&gt;
else (no)&lt;br /&gt;
  if (First order and linear?\ny&#039; + p(x) y = q(x)?) then (yes)&lt;br /&gt;
    if (Constant coefficients?\ny&#039; + a y = q(x)?) then (yes)&lt;br /&gt;
      :Trial solution:\ny_h = C e^{-ax} + guessed y_p;&lt;br /&gt;
    else (no)&lt;br /&gt;
      :Integrating factor\nμ = e^{∫ p dx};&lt;br /&gt;
    endif&lt;br /&gt;
  else (no)&lt;br /&gt;
    if (Second order, of the form\ny&#039;&#039; = f(x)?) then (yes)&lt;br /&gt;
      :Integrate twice;&lt;br /&gt;
    else (no)&lt;br /&gt;
      if (Second order, linear, constant coefficients?\ny&#039;&#039; + a y&#039; + b y = 0? or = f(x)?) then (yes)&lt;br /&gt;
        :Characteristic equation\nr² + a r + b = 0;\nthen add a particular y_p;&lt;br /&gt;
      else (no)&lt;br /&gt;
        if (Transport equation?\nu_t + c u_x = 0?) then (yes)&lt;br /&gt;
          :Travelling wave\nu(x,t) = f(x - ct);&lt;br /&gt;
        else (no)&lt;br /&gt;
          if (Linear PDE on a simple shape,\ne.g. the heat equation?) then (yes)&lt;br /&gt;
            :Separate variables\nu(x,t) = X(x) T(t);&lt;br /&gt;
          else (no)&lt;br /&gt;
            if (Are approximate numbers enough?) then (yes)&lt;br /&gt;
              :Numerical stepping\n(Euler&#039;s method);&lt;br /&gt;
            else (no)&lt;br /&gt;
              if (Linear?) then (yes)&lt;br /&gt;
                :Power series or Laplace transform;&lt;br /&gt;
              else (no)&lt;br /&gt;
                :Qualitative study:\nequilibria, stability, chaos;&lt;br /&gt;
              endif&lt;br /&gt;
            endif&lt;br /&gt;
          endif&lt;br /&gt;
        endif&lt;br /&gt;
      endif&lt;br /&gt;
    endif&lt;br /&gt;
  endif&lt;br /&gt;
endif&lt;br /&gt;
stop&lt;br /&gt;
@enduml&lt;br /&gt;
&amp;lt;/uml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== A short history ==&lt;br /&gt;
&lt;br /&gt;
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&#039;s laws of motion and of universal gravitation, published in the &#039;&#039;Philosophiae Naturalis Principia Mathematica&#039;&#039; (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.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Isaac Newton portrait.jpg|thumb|left|Isaac Newton (portrait after Godfrey Kneller, 1689). Newton&#039;s laws of motion and of gravitation (&#039;&#039;Principia&#039;&#039;, 1687) are differential equations. Credit: James Thronill after Godfrey Kneller (public domain).]]&lt;br /&gt;
&lt;br /&gt;
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&#039;s method, that bears his name. The exact methods presented in this article derive, in large part, from his work.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Leonhard Euler portrait.jpg|thumb|Leonhard Euler (portrait by Jakob Emanuel Handmann, 1753). Credit: Jakob Emanuel Handmann (public domain).]]&lt;br /&gt;
&lt;br /&gt;
The theory of partial differential equations arose from the demands of eighteenth-century physics. In 1747, [[Person:Jean le Rond d&#039;Alembert|Jean le Rond d&#039;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 &#039;&#039;Théorie analytique de la chaleur&#039;&#039; (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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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&#039;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.&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Differential_equation Differential equation], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/DifferentialEquation.html Differential Equation], Wolfram MathWorld&lt;br /&gt;
* [https://ocw.mit.edu/courses/18-03sc-differential-equations-fall-2011/ 18.03SC Differential Equations], MIT OpenCourseWare&lt;br /&gt;
* [https://mathshistory.st-andrews.ac.uk/Biographies/Euler/ Leonhard Euler], MacTutor History of Mathematics&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7465</id>
		<title>Differential equation</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7465"/>
		<updated>2026-09-05T19:37:54Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: AI-assisted (RonzzWikiCowriter): compress the solution-methods section to derivations in display math with minimal prose; rewrite the history section in a formal academic register, restoring semantic person links. (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;A differential equation&#039;&#039;&#039; is an equation whose unknown is a function and which also involves that function&#039;s derivatives (rates of change). Where an ordinary equation such as $x^2=9$ is solved by numbers, a differential equation such as $y&#039;+2y=0$ is solved by functions $y(x)$. Laws of nature state how quantities change, so differential equations describe pendulums, cooling drinks, growing populations, and discharging capacitors. This article covers the standard analytical solution methods, by class of equation, each stated in general and then demonstrated on a concrete numerical example, and the numerical, series, and qualitative routes used when no exact formula exists. It treats &#039;&#039;&#039;ordinary differential equations&#039;&#039;&#039; (one independent variable) and, briefly, &#039;&#039;&#039;partial differential equations&#039;&#039;&#039; (several).&lt;br /&gt;
&lt;br /&gt;
== A first example: slopes and a family of solutions ==&lt;br /&gt;
&lt;br /&gt;
The simplest differential equation prescribes the slope of a function $y(x)$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}=2x$$&lt;br /&gt;
&lt;br /&gt;
Integration inverts differentiation, so integrating both sides gives&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{dx}\,dx=\int 2x\,dx\qquad\Longrightarrow\qquad y(x)=x^{2}+C$$&lt;br /&gt;
&lt;br /&gt;
Every $C$ works, since $\frac{d}{dx}\left(x^2+C\right)=2x$; the solutions form the parabola family $y=x^2+C$, the &#039;&#039;&#039;general solution&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If $y(0)=3$, then&lt;br /&gt;
&lt;br /&gt;
$$3=0^2+C\qquad\Longrightarrow\qquad C=3\qquad\Longrightarrow\qquad y=x^2+3$$&lt;br /&gt;
&lt;br /&gt;
A prescribed value such as this is an &#039;&#039;&#039;initial condition&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Classifying differential equations ==&lt;br /&gt;
&lt;br /&gt;
Three features decide how to solve an equation: its &#039;&#039;&#039;order&#039;&#039;&#039;, its &#039;&#039;&#039;linearity&#039;&#039;&#039;, and how many independent variables it involves.&lt;br /&gt;
&lt;br /&gt;
=== Order ===&lt;br /&gt;
&lt;br /&gt;
The order is the order of the highest derivative present. $dy/dx=2x$ is first order; Newton&#039;s second law,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1583}}&lt;br /&gt;
&lt;br /&gt;
is second order ($x(t)$ position of mass $m$, $F$ net force). Integration introduces one arbitrary constant per integration, so the general solution of an nth-order equation carries $n$ constants, fixed by $n$ initial conditions. For equations of the special form $y^{(n)}=f(x)$ the constants appear exactly as the integration constants of $n$ successive integrations; the free-fall example in the second-order section below works this out for $n=2$.&lt;br /&gt;
&lt;br /&gt;
=== Linearity and homogeneity ===&lt;br /&gt;
&lt;br /&gt;
An equation is &#039;&#039;&#039;linear&#039;&#039;&#039; 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&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
and is &#039;&#039;&#039;homogeneous&#039;&#039;&#039; 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$).&lt;br /&gt;
&lt;br /&gt;
If $y_1,y_2$ solve a homogeneous linear equation, so does $c_1y_1+c_2y_2$ (the &#039;&#039;&#039;superposition principle&#039;&#039;&#039;): substituting the combination adds the two expressions that already vanish. For a nonlinear equation the combination does not generally solve it: if $y_1&#039;=y_1^2$ and $y_2&#039;=y_2^2$, then&lt;br /&gt;
&lt;br /&gt;
$$(y_1+y_2)&#039;=y_1^2+y_2^2\neq (y_1+y_2)^2$$&lt;br /&gt;
&lt;br /&gt;
so $y_1+y_2$ does not solve $y&#039;=y^2$.&lt;br /&gt;
&lt;br /&gt;
Superposition also joins the homogeneous and non-homogeneous problems of one linear equation. Write the left-hand side as $L(y)$, so the equation reads $L(y)=q(x)$, with $L(y)=0$ its homogeneous form. If $y_p$ is any single solution of $L(y)=q$ (a &#039;&#039;&#039;particular solution&#039;&#039;&#039;) and $y_h$ runs through all solutions of $L(y)=0$, then every solution of the original equation is&lt;br /&gt;
&lt;br /&gt;
$$y=y_p+y_h$$&lt;br /&gt;
&lt;br /&gt;
because $L(y_p+y_h)=L(y_p)+L(y_h)=q+0=q$, and conversely any two solutions of the non-homogeneous equation differ by a solution of the homogeneous one. The constants of integration therefore live entirely in $y_h$: the general solution of a linear equation is one particular solution plus the whole homogeneous family. This is why each linear method below is presented in two parts, the homogeneous case first.&lt;br /&gt;
&lt;br /&gt;
=== Ordinary and partial ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;ordinary differential equation&#039;&#039;&#039; (ODE) has one independent variable. A &#039;&#039;&#039;partial differential equation&#039;&#039;&#039; (PDE) has several, with partial derivatives. For example, the temperature $u(x,t)$ of an insulated metal bar, which depends on position $x$ and time $t$, obeys the heat equation&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1590}}&lt;br /&gt;
&lt;br /&gt;
where $\alpha$ is the thermal diffusivity.&lt;br /&gt;
&lt;br /&gt;
== Slope fields ==&lt;br /&gt;
&lt;br /&gt;
A first-order equation can be written&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1581}}&lt;br /&gt;
&lt;br /&gt;
assigning to each point $(x,y)$ the slope $f(x,y)$ a solution must have there. Drawing short segments of that slope gives a &#039;&#039;&#039;direction field&#039;&#039;&#039;; solution curves run tangent to it.&lt;br /&gt;
&lt;br /&gt;
[[File:Slope field of exponential growth.png|thumb|Direction field of $dy/dx=y$. Credit: jjbeard (public domain).]]&lt;br /&gt;
&lt;br /&gt;
Numerical methods such as [[Euler&#039;s method]] follow the field: read the slope, step a short distance along it, repeat.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving differential equations ==&lt;br /&gt;
&lt;br /&gt;
Closed-form solutions are known only for restricted classes of equations; the standard practice is to identify the class by order, linearity, and coefficients, and to apply that class&#039;s method. The linear methods below follow the two-step structure of the classification section: solve the homogeneous equation, whose general solution carries all arbitrary constants, then add one particular solution of the non-homogeneous equation.&lt;br /&gt;
&lt;br /&gt;
=== First-order ODEs ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1: separable equations ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; A first-order equation is separable when it can be brought to the separated form&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1612}}&lt;br /&gt;
&lt;br /&gt;
after which both integrals are evaluated directly.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: exponential growth and decay.&#039;&#039;&#039; For $\dfrac{dy}{dt}=ky$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1584}}&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{y}=\int k\,dt\;\Longrightarrow\;\ln|y|=kt+C_1\;\Longrightarrow\;y=Ce^{kt}$$&lt;br /&gt;
&lt;br /&gt;
The initial condition $y(0)=y_0$ fixes $C=y_0$:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1585}}&lt;br /&gt;
&lt;br /&gt;
Numerical case: €1000 at 5% interest compounded continuously, $k=0.05\ \text{yr}^{-1}$:&lt;br /&gt;
&lt;br /&gt;
$$y(t)=1000\,e^{0.05t},\qquad y(10)=1000\,e^{0.5}\approx 1648.7$$&lt;br /&gt;
&lt;br /&gt;
$$t_{\text{double}}=\frac{\ln 2}{k}\approx 13.9\ \text{yr},\qquad t_{1/2}=\frac{\ln 2}{-k}\ (k&amp;lt;0)$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: Newton&#039;s law of cooling.&#039;&#039;&#039; For $\dfrac{dT}{dt}=-k(T-T_a)$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1586}}&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dT}{T-T_a}=-\int k\,dt\;\Longrightarrow\;\ln|T-T_a|=-kt+C\;\Longrightarrow\;T-T_a=Ce^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
with $C=T_0-T_a$ from $T(0)=T_0$:&lt;br /&gt;
&lt;br /&gt;
$$T(t)=T_a+(T_0-T_a)e^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
Numerical case: a drink at $T_0=80\,^{\circ}\mathrm{C}$ in a room at $T_a=20\,^{\circ}\mathrm{C}$, $k=0.1\ \text{min}^{-1}$:&lt;br /&gt;
&lt;br /&gt;
$$T(t)=20+60e^{-0.1t},\qquad T=40\,^{\circ}\mathrm{C}\text{ at }t=10\ln 3\approx 11\ \text{min}.$$&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 2: linear first-order equations (integrating factor) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For the linear equation&lt;br /&gt;
&lt;br /&gt;
$$y&#039;+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
introduce the integrating factor $\mu=e^{\int p\,dx}$, for which $\mu&#039;=p\mu$. The product rule then collapses the left-hand side:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1613}}&lt;br /&gt;
&lt;br /&gt;
Integrating both sides,&lt;br /&gt;
&lt;br /&gt;
$$\mu\,y=\int\mu\,q\,dx+C\;\Longrightarrow\;y=\frac{1}{\mu}\int\mu\,q\,dx+\frac{C}{\mu}$$&lt;br /&gt;
&lt;br /&gt;
The first term is a particular solution of the non-homogeneous equation; the second, $C/\mu=Ce^{-\int p\,dx}$, is the general solution of the homogeneous equation $y&#039;+py=0$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration.&#039;&#039;&#039; $y&#039;+y=e^{-x}$: $p=1$, $\mu=e^x$, and $(e^x y)&#039;=e^x(y&#039;+y)=1$, so $e^x y=x+C$:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1607}}&lt;br /&gt;
&lt;br /&gt;
$y(0)=2$ gives $C=2$.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: falling with air resistance.&#039;&#039;&#039; Newton&#039;s second law with drag $-bv$ gives&lt;br /&gt;
&lt;br /&gt;
$$m\frac{dv}{dt}=mg-bv\;\Longrightarrow\;v&#039;+\frac{b}{m}v=g$$&lt;br /&gt;
&lt;br /&gt;
With $\mu=e^{(b/m)t}$,&lt;br /&gt;
&lt;br /&gt;
$$\frac{d}{dt}\left(e^{(b/m)t}v\right)=g\,e^{(b/m)t}\;\Longrightarrow\;v=\frac{mg}{b}+Ce^{-(b/m)t}$$&lt;br /&gt;
&lt;br /&gt;
$v(0)=0$ fixes $C=-mg/b$:&lt;br /&gt;
&lt;br /&gt;
$$v(t)=\frac{mg}{b}\left(1-e^{-(b/m)t}\right)$$&lt;br /&gt;
&lt;br /&gt;
Numerical case: $m=70\ \mathrm{kg}$, $b=14\ \mathrm{kg\,s^{-1}}$, so $mg/b=49\ \mathrm{m\,s^{-1}}$ (terminal velocity) and $b/m=0.2\ \mathrm{s^{-1}}$:&lt;br /&gt;
&lt;br /&gt;
$$v(t)=49\left(1-e^{-0.2t}\right),\qquad v(5)\approx 31,\quad v(10)\approx 42\ \mathrm{m\,s^{-1}}$$&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 3: constant-coefficient linear equations (trial solutions) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For $y&#039;+ay=q(x)$, the homogeneous equation is solved by the exponential trial $y=Ce^{bx}$:&lt;br /&gt;
&lt;br /&gt;
$$(b+a)Ce^{bx}=0\;\Longrightarrow\;b=-a\;\Longrightarrow\;y_h=Ce^{-ax}$$&lt;br /&gt;
&lt;br /&gt;
Growth $y&#039;=ky$ is the case $a=-k$. The forced equation then has, by linearity,&lt;br /&gt;
&lt;br /&gt;
$$y=y_h+y_p,\qquad y_p\ \text{any solution of }y&#039;+ay=q$$&lt;br /&gt;
&lt;br /&gt;
When $q$ is constant, exponential, sinusoidal, or polynomial, $y_p$ is guessed in the same family and its coefficient fixed by substitution (&#039;&#039;&#039;method of undetermined coefficients&#039;&#039;&#039;); a guess satisfying the homogeneous equation is multiplied by $x$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: an account with steady withdrawals.&#039;&#039;&#039; $y&#039;=0.1y-100$, $y(0)=5000$:&lt;br /&gt;
&lt;br /&gt;
$$y_h=Ce^{0.1t},\qquad y_p=A:\ 0.1A-100=0\;\Longrightarrow\;A=1000$$&lt;br /&gt;
&lt;br /&gt;
$$y(0)=1000+C=5000\;\Longrightarrow\;C=4000\;\Longrightarrow\;y(t)=1000+4000e^{0.1t}$$&lt;br /&gt;
&lt;br /&gt;
Check: $y&#039;-0.1y=400e^{0.1t}-(100+400e^{0.1t})=-100$. Evaluation:&lt;br /&gt;
&lt;br /&gt;
$$y(10)=1000+4000e\approx 11\,873;\qquad \text{without withdrawals: }5000e\approx 13\,591$$&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Further first-order classes, $y&#039;=f(y/x)$, Bernoulli, exact, reduce to these by substitution or by recognising a total differential.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Second-order ODEs ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1: direct integration ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For $y&#039;&#039;=f(x)$,&lt;br /&gt;
&lt;br /&gt;
$$y&#039;&#039;=f(x)\;\Longrightarrow\;y&#039;=\int f(x)\,dx+C_1\;\Longrightarrow\;y=\int\!\!\left(\int f(x)\,dx\right)dx+C_1x+C_2$$&lt;br /&gt;
&lt;br /&gt;
and likewise $y^{(n)}=f(x)$ by $n$ integrations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: free fall.&#039;&#039;&#039; $x&#039;&#039;=-g$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{dx}{dt}=-gt+v_0\;\Longrightarrow\;x(t)=-\tfrac{g}{2}t^2+v_0t+x_0$$&lt;br /&gt;
&lt;br /&gt;
Dropped from rest at $19.6\ \mathrm{m}$ ($v_0=0$, $x_0=19.6$):&lt;br /&gt;
&lt;br /&gt;
$$0=19.6-4.9t^2\;\Longrightarrow\;t=\sqrt{19.6/4.9}=2\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
==== Method 2: linear equations with constant coefficients ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
$$y&#039;&#039;+a\,y&#039;+b\,y=f(x)$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Homogeneous case ($f=0$).&#039;&#039;&#039; The exponential trial $y=e^{rx}$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1644}}&lt;br /&gt;
&lt;br /&gt;
gives the characteristic equation $r^2+ar+b=0$, whose roots determine $y_h$:&lt;br /&gt;
&lt;br /&gt;
* $r_1\neq r_2$ real: $y_h=C_1e^{r_1x}+C_2e^{r_2x}$;&lt;br /&gt;
* $r_1=r_2=r$: $y_h=(C_1+C_2x)e^{rx}$;&lt;br /&gt;
* $r=\alpha\pm i\beta$: $y_h=e^{\alpha x}(C_1\cos\beta x+C_2\sin\beta x)$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Non-homogeneous case ($f\neq 0$).&#039;&#039;&#039; $y=y_h+y_p$, with $y_p$ found by undetermined coefficients as in Method 3.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration (homogeneous).&#039;&#039;&#039; $y&#039;&#039;-3y&#039;+2y=0$: $r^2-3r+2=(r-1)(r-2)=0$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1608}}&lt;br /&gt;
&lt;br /&gt;
Check: $e^x$ gives $(1-3+2)e^x=0$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration (non-homogeneous).&#039;&#039;&#039; $y&#039;&#039;-3y&#039;+2y=2e^{3x}$: keep $y_h$ above, try $y_p=Ae^{3x}$:&lt;br /&gt;
&lt;br /&gt;
$$y_p&#039;&#039;-3y_p&#039;+2y_p=(9-9+2)Ae^{3x}=2Ae^{3x}\;\Longrightarrow\;A=1$$&lt;br /&gt;
&lt;br /&gt;
$$y=C_1e^x+C_2e^{2x}+e^{3x}$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: the harmonic oscillator (a mass on a spring).&#039;&#039;&#039; Hooke&#039;s law $F=-kx$ in Newton&#039;s second law,&lt;br /&gt;
&lt;br /&gt;
$$m\frac{d^2x}{dt^2}=-kx\;\Longrightarrow\;x&#039;&#039;+\omega_0^2x=0,\qquad \omega_0^2=\frac{k}{m}$$&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1588}}&lt;br /&gt;
&lt;br /&gt;
$r^2+\omega_0^2=0$ gives $r=\pm i\omega_0$, hence&lt;br /&gt;
&lt;br /&gt;
$$x(t)=A\cos\omega_0t+B\sin\omega_0t$$&lt;br /&gt;
&lt;br /&gt;
with $A,B$ fixed by initial position and velocity.&lt;br /&gt;
&lt;br /&gt;
[[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).]]&lt;br /&gt;
&lt;br /&gt;
Numerical case: $m=2\ \mathrm{kg}$, $k=8\ \mathrm{N\,m^{-1}}$: $\omega_0=2\ \text{rad\,s}^{-1}$; released from rest at $10\ \mathrm{cm}$,&lt;br /&gt;
&lt;br /&gt;
$$x(t)=0.10\cos 2t\ \mathrm{m},\qquad P=\frac{2\pi}{\omega_0}=\pi\approx 3.14\ \text{s},\qquad x(1)\approx -0.042\ \mathrm{m}$$&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Partial differential equations ===&lt;br /&gt;
&lt;br /&gt;
Two elementary classes of linear PDE admit closed-form solutions: diffusion on finite domains, by separation of variables, and first-order transport, by travelling waves.&lt;br /&gt;
&lt;br /&gt;
==== Method 1: separation of variables (the heat equation) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For a linear, homogeneous PDE on a simple domain, assume $u(x,t)=X(x)T(t)$; substitution splits the PDE into ordinary equations for $X$ and $T$, boundary conditions select the admissible solutions, and their superposition matches the initial profile.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Application.&#039;&#039;&#039; The heat equation on a bar of length $L$ with ends held at $0$,&lt;br /&gt;
&lt;br /&gt;
$$\frac{\partial u}{\partial t}=\alpha\frac{\partial^2u}{\partial x^2},\qquad u(0,t)=u(L,t)=0$$&lt;br /&gt;
&lt;br /&gt;
$$u=X(x)T(t):\qquad XT&#039;=\alpha X&#039;&#039;T\;\Longrightarrow\;\frac{X&#039;&#039;}{X}=\frac{T&#039;}{\alpha T}$$&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1622}}&lt;br /&gt;
&lt;br /&gt;
Both sides depend on different variables, hence equal a constant $-\lambda$:&lt;br /&gt;
&lt;br /&gt;
$$T&#039;=-\alpha\lambda T\;\Longrightarrow\;T=e^{-\alpha\lambda t}$$&lt;br /&gt;
&lt;br /&gt;
$$X&#039;&#039;=-\lambda X\;\Longrightarrow\;X=A\cos(\sqrt\lambda\,x)+B\sin(\sqrt\lambda\,x)$$&lt;br /&gt;
&lt;br /&gt;
The boundary conditions force $X(0)=X(L)=0$: $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&lt;br /&gt;
&lt;br /&gt;
$$u_n(x,t)=\sin\frac{n\pi x}{L}\,e^{-\alpha(n\pi/L)^2t}$$&lt;br /&gt;
&lt;br /&gt;
and superposition gives the general solution&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1611}}&lt;br /&gt;
&lt;br /&gt;
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$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Numerical case.&#039;&#039;&#039; A $1\ \mathrm{m}$ iron bar, $\alpha\approx 2.3\times10^{-5}\ \mathrm{m^2s^{-1}}$, initial profile $u(x,0)=100\sin(\pi x/L)$:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=100\sin\frac{\pi x}{L}\,e^{-\alpha\pi^2t/L^2},\qquad u\!\left(\tfrac12,t\right)=100\,e^{-2.3\times10^{-4}t}$$&lt;br /&gt;
&lt;br /&gt;
$$u(\tfrac12,1\ \text{h})\approx 44\,^{\circ}\mathrm{C},\qquad 50\,^{\circ}\mathrm{C}\text{ at }t=\frac{\ln 2}{2.3\times10^{-4}}\approx 51\ \text{min}$$&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 2: travelling waves (method of characteristics) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; The transport equation&lt;br /&gt;
&lt;br /&gt;
$$u_t+c\,u_x=0$$&lt;br /&gt;
&lt;br /&gt;
states that $u$ is carried unchanged. The travelling-wave trial $u=f(x-ct)$ gives $u_t=-cf&#039;$, $u_x=f&#039;$, hence $u_t+cu_x=0$ identically:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=f(x-ct),\qquad u(x,0)=f(x)$$&lt;br /&gt;
&lt;br /&gt;
so $u$ is constant on the characteristic lines $x-ct=\text{const}$. The non-homogeneous equation $u_t+cu_x=s(x,t)$ accumulates the source along each characteristic:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=f(x-ct)+\int_0^t s\bigl(x-c(t-\tau),\tau\bigr)\,d\tau$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: a slug of pollutant in a river.&#039;&#039;&#039; A river at $c=2\ \mathrm{m\,s^{-1}}$ carries a Gaussian release of peak $50\ \mathrm{mg\,L^{-1}}$ and width such that $u$ falls by $e^{-1}$ at $\pm10\ \mathrm{m}$:&lt;br /&gt;
&lt;br /&gt;
$$u(x,0)=50\,e^{-(x/10)^2}\;\Longrightarrow\;u(x,t)=50\,e^{-((x-2t)/10)^2}\ \mathrm{mg\,L^{-1}}$$&lt;br /&gt;
&lt;br /&gt;
After $t=60\ \mathrm{s}$ the peak is at $x=ct=120\ \mathrm{m}$ with the original value $50\ \mathrm{mg\,L^{-1}}$; pure transport does not spread the pulse, which requires the second-order term $\alpha u_{xx}$ of the heat equation.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Wave equation.&#039;&#039;&#039; The second-order wave equation is the two-directional travelling-wave problem:&lt;br /&gt;
&lt;br /&gt;
$$u_{tt}=c^2u_{xx}\;\Longrightarrow\;u(x,t)=f(x-ct)+g(x+ct)$$&lt;br /&gt;
&lt;br /&gt;
(d&#039;Alembert, 1747; see the history section).&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== When no formula exists ===&lt;br /&gt;
&lt;br /&gt;
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:&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Numerically&#039;&#039;&#039;, when numbers suffice: [[Euler&#039;s method]] steps along the slope field;&lt;br /&gt;
* &#039;&#039;&#039;[[Qualitative methods]]&#039;&#039;&#039;: equilibria, stability and long-term behaviour, without formulas;&lt;br /&gt;
* &#039;&#039;&#039;Series and transforms&#039;&#039;&#039;, for linear cases: [[Power series]] or the [[Laplace transform]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;uml type=&amp;quot;uml&amp;quot;&amp;gt;&lt;br /&gt;
@startuml&lt;br /&gt;
skinparam monochrome true&lt;br /&gt;
start&lt;br /&gt;
:You have a differential equation;&lt;br /&gt;
if (First order and separable?\ny&#039; = g(x) h(y)?) then (yes)&lt;br /&gt;
  :Separate and integrate:\n∫ dy/h(y) = ∫ g(x) dx;&lt;br /&gt;
else (no)&lt;br /&gt;
  if (First order and linear?\ny&#039; + p(x) y = q(x)?) then (yes)&lt;br /&gt;
    if (Constant coefficients?\ny&#039; + a y = q(x)?) then (yes)&lt;br /&gt;
      :Trial solution:\ny_h = C e^{-ax} + guessed y_p;&lt;br /&gt;
    else (no)&lt;br /&gt;
      :Integrating factor\nμ = e^{∫ p dx};&lt;br /&gt;
    endif&lt;br /&gt;
  else (no)&lt;br /&gt;
    if (Second order, of the form\ny&#039;&#039; = f(x)?) then (yes)&lt;br /&gt;
      :Integrate twice;&lt;br /&gt;
    else (no)&lt;br /&gt;
      if (Second order, linear, constant coefficients?\ny&#039;&#039; + a y&#039; + b y = 0? or = f(x)?) then (yes)&lt;br /&gt;
        :Characteristic equation\nr² + a r + b = 0;\nthen add a particular y_p;&lt;br /&gt;
      else (no)&lt;br /&gt;
        if (Transport equation?\nu_t + c u_x = 0?) then (yes)&lt;br /&gt;
          :Travelling wave\nu(x,t) = f(x - ct);&lt;br /&gt;
        else (no)&lt;br /&gt;
          if (Linear PDE on a simple shape,\ne.g. the heat equation?) then (yes)&lt;br /&gt;
            :Separate variables\nu(x,t) = X(x) T(t);&lt;br /&gt;
          else (no)&lt;br /&gt;
            if (Are approximate numbers enough?) then (yes)&lt;br /&gt;
              :Numerical stepping\n(Euler&#039;s method);&lt;br /&gt;
            else (no)&lt;br /&gt;
              if (Linear?) then (yes)&lt;br /&gt;
                :Power series or Laplace transform;&lt;br /&gt;
              else (no)&lt;br /&gt;
                :Qualitative study:\nequilibria, stability, chaos;&lt;br /&gt;
              endif&lt;br /&gt;
            endif&lt;br /&gt;
          endif&lt;br /&gt;
        endif&lt;br /&gt;
      endif&lt;br /&gt;
    endif&lt;br /&gt;
  endif&lt;br /&gt;
endif&lt;br /&gt;
stop&lt;br /&gt;
@enduml&lt;br /&gt;
&amp;lt;/uml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== A short history ==&lt;br /&gt;
&lt;br /&gt;
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&#039;s laws of motion and of universal gravitation, published in the &#039;&#039;Philosophiae Naturalis Principia Mathematica&#039;&#039; (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.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Isaac Newton portrait.jpg|thumb|left|Isaac Newton (portrait after Godfrey Kneller, 1689). Newton&#039;s laws of motion and of gravitation (&#039;&#039;Principia&#039;&#039;, 1687) are differential equations. Credit: James Thronill after Godfrey Kneller (public domain).]]&lt;br /&gt;
&lt;br /&gt;
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&#039;s method, that bears his name. The exact methods presented in this article derive, in large part, from his work.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Leonhard Euler portrait.jpg|thumb|Leonhard Euler (portrait by Jakob Emanuel Handmann, 1753). Credit: Jakob Emanuel Handmann (public domain).]]&lt;br /&gt;
&lt;br /&gt;
The theory of partial differential equations arose from the demands of eighteenth-century physics. In 1747, [[Person:Jean le Rond d&#039;Alembert|Jean le Rond d&#039;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 &#039;&#039;Théorie analytique de la chaleur&#039;&#039; (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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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&#039;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.&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Differential_equation Differential equation], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/DifferentialEquation.html Differential Equation], Wolfram MathWorld&lt;br /&gt;
* [https://ocw.mit.edu/courses/18-03sc-differential-equations-fall-2011/ 18.03SC Differential Equations], MIT OpenCourseWare&lt;br /&gt;
* [https://mathshistory.st-andrews.ac.uk/Biographies/Euler/ Leonhard Euler], MacTutor History of Mathematics&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7464</id>
		<title>Differential equation</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7464"/>
		<updated>2026-09-05T19:29:38Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: AI-assisted (RonzzWikiCowriter): make the homogeneous/particular structure explicit — state the y = y_p + y_h result in the classification section and label homogeneous and non-homogeneous cases inside Methods 2 and 3 (first order) and Method 2 (second order), adding a forced-equation demonstration on the same operator; add PDE Method 2, travelling waves via the method of characteristics (transport equation), with a river-pollutant numeric example and the wave-equation remark. (via update-pag...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;A differential equation&#039;&#039;&#039; is an equation whose unknown is a function and which also involves that function&#039;s derivatives (rates of change). Where an ordinary equation such as $x^2=9$ is solved by numbers, a differential equation such as $y&#039;+2y=0$ is solved by functions $y(x)$. Laws of nature state how quantities change, so differential equations describe pendulums, cooling drinks, growing populations, and discharging capacitors. This article covers the standard analytical solution methods, by class of equation, each stated in general and then demonstrated on a concrete numerical example, and the numerical, series, and qualitative routes used when no exact formula exists. It treats &#039;&#039;&#039;ordinary differential equations&#039;&#039;&#039; (one independent variable) and, briefly, &#039;&#039;&#039;partial differential equations&#039;&#039;&#039; (several).&lt;br /&gt;
&lt;br /&gt;
== A first example: slopes and a family of solutions ==&lt;br /&gt;
&lt;br /&gt;
The simplest differential equation prescribes the slope of a function $y(x)$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}=2x$$&lt;br /&gt;
&lt;br /&gt;
Integration inverts differentiation, so integrating both sides gives&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{dx}\,dx=\int 2x\,dx\qquad\Longrightarrow\qquad y(x)=x^{2}+C$$&lt;br /&gt;
&lt;br /&gt;
Every $C$ works, since $\frac{d}{dx}\left(x^2+C\right)=2x$; the solutions form the parabola family $y=x^2+C$, the &#039;&#039;&#039;general solution&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If $y(0)=3$, then&lt;br /&gt;
&lt;br /&gt;
$$3=0^2+C\qquad\Longrightarrow\qquad C=3\qquad\Longrightarrow\qquad y=x^2+3$$&lt;br /&gt;
&lt;br /&gt;
A prescribed value such as this is an &#039;&#039;&#039;initial condition&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Classifying differential equations ==&lt;br /&gt;
&lt;br /&gt;
Three features decide how to solve an equation: its &#039;&#039;&#039;order&#039;&#039;&#039;, its &#039;&#039;&#039;linearity&#039;&#039;&#039;, and how many independent variables it involves.&lt;br /&gt;
&lt;br /&gt;
=== Order ===&lt;br /&gt;
&lt;br /&gt;
The order is the order of the highest derivative present. $dy/dx=2x$ is first order; Newton&#039;s second law,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1583}}&lt;br /&gt;
&lt;br /&gt;
is second order ($x(t)$ position of mass $m$, $F$ net force). Integration introduces one arbitrary constant per integration, so the general solution of an nth-order equation carries $n$ constants, fixed by $n$ initial conditions. For equations of the special form $y^{(n)}=f(x)$ the constants appear exactly as the integration constants of $n$ successive integrations; the free-fall example in the second-order section below works this out for $n=2$.&lt;br /&gt;
&lt;br /&gt;
=== Linearity and homogeneity ===&lt;br /&gt;
&lt;br /&gt;
An equation is &#039;&#039;&#039;linear&#039;&#039;&#039; 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&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
and is &#039;&#039;&#039;homogeneous&#039;&#039;&#039; 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$).&lt;br /&gt;
&lt;br /&gt;
If $y_1,y_2$ solve a homogeneous linear equation, so does $c_1y_1+c_2y_2$ (the &#039;&#039;&#039;superposition principle&#039;&#039;&#039;): substituting the combination adds the two expressions that already vanish. For a nonlinear equation the combination does not generally solve it: if $y_1&#039;=y_1^2$ and $y_2&#039;=y_2^2$, then&lt;br /&gt;
&lt;br /&gt;
$$(y_1+y_2)&#039;=y_1^2+y_2^2\neq (y_1+y_2)^2$$&lt;br /&gt;
&lt;br /&gt;
so $y_1+y_2$ does not solve $y&#039;=y^2$.&lt;br /&gt;
&lt;br /&gt;
Superposition also joins the homogeneous and non-homogeneous problems of one linear equation. Write the left-hand side as $L(y)$, so the equation reads $L(y)=q(x)$, with $L(y)=0$ its homogeneous form. If $y_p$ is any single solution of $L(y)=q$ (a &#039;&#039;&#039;particular solution&#039;&#039;&#039;) and $y_h$ runs through all solutions of $L(y)=0$, then every solution of the original equation is&lt;br /&gt;
&lt;br /&gt;
$$y=y_p+y_h$$&lt;br /&gt;
&lt;br /&gt;
because $L(y_p+y_h)=L(y_p)+L(y_h)=q+0=q$, and conversely any two solutions of the non-homogeneous equation differ by a solution of the homogeneous one. The constants of integration therefore live entirely in $y_h$: the general solution of a linear equation is one particular solution plus the whole homogeneous family. This is why each linear method below is presented in two parts, the homogeneous case first.&lt;br /&gt;
&lt;br /&gt;
=== Ordinary and partial ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;ordinary differential equation&#039;&#039;&#039; (ODE) has one independent variable. A &#039;&#039;&#039;partial differential equation&#039;&#039;&#039; (PDE) has several, with partial derivatives. For example, the temperature $u(x,t)$ of an insulated metal bar, which depends on position $x$ and time $t$, obeys the heat equation&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1590}}&lt;br /&gt;
&lt;br /&gt;
where $\alpha$ is the thermal diffusivity.&lt;br /&gt;
&lt;br /&gt;
== Slope fields ==&lt;br /&gt;
&lt;br /&gt;
A first-order equation can be written&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1581}}&lt;br /&gt;
&lt;br /&gt;
assigning to each point $(x,y)$ the slope $f(x,y)$ a solution must have there. Drawing short segments of that slope gives a &#039;&#039;&#039;direction field&#039;&#039;&#039;; solution curves run tangent to it.&lt;br /&gt;
&lt;br /&gt;
[[File:Slope field of exponential growth.png|thumb|Direction field of $dy/dx=y$. Credit: jjbeard (public domain).]]&lt;br /&gt;
&lt;br /&gt;
Numerical methods such as [[Euler&#039;s method]] follow the field: read the slope, step a short distance along it, repeat.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving differential equations ==&lt;br /&gt;
&lt;br /&gt;
There is no formula that solves every differential equation. The practical route is to recognise the class of the equation and apply that class&#039;s method. For first-order ODEs there are two standard classes, separable and linear, with the constant-coefficient case of the latter solved fastest by an exponential trial (Method 3), the same idea that grows into the characteristic equation of order two; for second-order ODEs there are direct integration and constant-coefficient linear equations; for linear PDEs there are separation of variables and the method of characteristics (travelling waves). Each linear method below follows the structure derived above: solve the homogeneous equation (its solutions carry the constants), then add one particular solution of the non-homogeneous one. Each method is stated for its general case and then applied to a concrete numerical example. When an equation fits none of these classes, it is treated by the numerical, series, or qualitative methods summarised at the end of this section.&lt;br /&gt;
&lt;br /&gt;
=== First-order ODEs ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1: separable equations ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; A first-order equation is &#039;&#039;&#039;separable&#039;&#039;&#039; when the right-hand side factors into a function of $x$ alone times a function of $y$ alone:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1612}}&lt;br /&gt;
&lt;br /&gt;
Divide both sides by $h(y)$ and integrate: all the $y$&#039;s land on one side and all the $x$&#039;s on the other, and if the two integrals can be evaluated the resulting relation between $y$ and $x$ is the general solution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: exponential growth and decay.&#039;&#039;&#039; When a quantity changes at a rate proportional to its own size — a bank balance earning interest, a population with unlimited food, a radioactive sample — the equation is separable with $g(t)=k$, $h(y)=y$:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1584}}&lt;br /&gt;
&lt;br /&gt;
Divide by $y$ and integrate:&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{y}=\int k\,dt\qquad\Longrightarrow\qquad \ln|y|=kt+C$$&lt;br /&gt;
&lt;br /&gt;
Exponentiating, $|y|=e^C e^{kt}$. The sign of $y$ never changes, so absorbing it into the constant and writing $y(0)=y_0$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1585}}&lt;br /&gt;
&lt;br /&gt;
Numbers: €1000 at 5% interest compounded continuously ($k=0.05\ \text{yr}^{-1}$) gives $y(t)=1000\,e^{0.05t}$, and&lt;br /&gt;
&lt;br /&gt;
$$y(10)=1000\,e^{0.5}\approx 1648.7$$&lt;br /&gt;
&lt;br /&gt;
Doubling time: $1000\,e^{0.05t}=2000\Rightarrow t=\ln 2/0.05\approx 13.9$ years. For $k&amp;lt;0$ the same solution describes decay; the &#039;&#039;&#039;half-life&#039;&#039;&#039; $y=y_0/2$ is $t_{1/2}=(\ln 2)/(-k)$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: Newton&#039;s law of cooling.&#039;&#039;&#039; A body hotter than its surroundings cools at a rate proportional to the temperature gap, which makes the equation separable:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1586}}&lt;br /&gt;
&lt;br /&gt;
Separate and integrate:&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dT}{T-T_a}=\int-k\,dt\qquad\Longrightarrow\qquad \ln|T-T_a|=-kt+C$$&lt;br /&gt;
&lt;br /&gt;
Exponentiating and folding the (constant-sign) factor $T-T_a$ into the constant, with $T(0)=T_0$:&lt;br /&gt;
&lt;br /&gt;
$$T(t)=T_a+(T_0-T_a)e^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
The gap $T-T_a$ decays exponentially; $T$ itself does not. Example: a drink at $80\,^{\circ}\mathrm{C}$ in a $20\,^{\circ}\mathrm{C}$ room, $k=0.1\ \text{min}^{-1}$:&lt;br /&gt;
&lt;br /&gt;
$$T(t)=20+60\,e^{-0.1t}$$&lt;br /&gt;
&lt;br /&gt;
Reaches $40\,^{\circ}\mathrm{C}$ when $20+60e^{-0.1t}=40$, i.e. $t=10\ln 3\approx 11$ min.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 2: linear first-order equations (integrating factor) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; Many first-order equations are linear but not separable. A linear first-order equation has the form&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
with $q(x)$ the forcing. The homogeneous case $q=0$ is the separable equation of Method 1 with $h(y)=y$, and its solutions are&lt;br /&gt;
&lt;br /&gt;
$$y_h=C\,e^{-\int p(x)\,dx}$$&lt;br /&gt;
&lt;br /&gt;
For the non-homogeneous case multiply both sides by the &#039;&#039;&#039;integrating factor&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
$$\mu(x)=e^{\int p(x)\,dx}$$&lt;br /&gt;
&lt;br /&gt;
so that the left-hand side collapses into a single derivative:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1613}}&lt;br /&gt;
&lt;br /&gt;
Both sides then integrate directly, giving the general solution&lt;br /&gt;
&lt;br /&gt;
$$y(x)=\frac{1}{\mu(x)}\left(\int \mu(x)\,q(x)\,dx + C\right)$$&lt;br /&gt;
&lt;br /&gt;
which is the homogeneous solution $y_h=C/\mu$ plus the particular solution $y_p=(1/\mu)\int\mu q\,dx$, the structure $y=y_p+y_h$ of the classification section.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration:&#039;&#039;&#039; solve $y&#039;+y=e^{-x}$. Here $p=1$, $\mu=e^x$, and&lt;br /&gt;
&lt;br /&gt;
$$e^x y&#039;+e^x y=1\qquad\Longrightarrow\qquad (e^x y)&#039;=1\qquad\Longrightarrow\qquad e^x y=x+C\qquad\Longrightarrow\qquad y=(x+C)e^{-x}$$&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1607}}&lt;br /&gt;
&lt;br /&gt;
The condition $y(0)=2$ gives $C=2$.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: falling with air resistance.&#039;&#039;&#039; A falling body of mass $m$ is pulled down by gravity $mg$ and slowed by air drag proportional to its speed, $-bv$. Newton&#039;s second law gives the linear first-order equation&lt;br /&gt;
&lt;br /&gt;
$$m\frac{dv}{dt}=mg-bv\qquad\Longrightarrow\qquad \frac{dv}{dt}+\frac{b}{m}\,v=g$$&lt;br /&gt;
&lt;br /&gt;
Here $p=b/m$ and $q=g$, both constant, so $\mu=e^{(b/m)t}$ and&lt;br /&gt;
&lt;br /&gt;
$$\frac{d}{dt}\left(e^{(b/m)t}v\right)=g\,e^{(b/m)t}\qquad\Longrightarrow\qquad e^{(b/m)t}v=\frac{mg}{b}e^{(b/m)t}+C$$&lt;br /&gt;
&lt;br /&gt;
hence, with $v(0)=0$,&lt;br /&gt;
&lt;br /&gt;
$$v(t)=\frac{mg}{b}\left(1-e^{-(b/m)t}\right)$$&lt;br /&gt;
&lt;br /&gt;
As $t$ grows the exponential fades and the speed approaches the constant terminal velocity $mg/b$; in the language of the classification section the terminal velocity is the particular solution and the fading exponential the homogeneous part. Numbers: a skydiver of $m=70\ \mathrm{kg}$ with $b=14\ \mathrm{kg\,s^{-1}}$ has $mg/b = 70\times9.8/14 = 49\ \mathrm{m\,s^{-1}}$ and $b/m = 0.2\ \mathrm{s^{-1}}$, so&lt;br /&gt;
&lt;br /&gt;
$$v(t)=49\left(1-e^{-0.2t}\right)\ \mathrm{m\,s^{-1}}$$&lt;br /&gt;
&lt;br /&gt;
After 5 seconds $v=49(1-e^{-1})\approx 31\ \mathrm{m\,s^{-1}}$; after 10 seconds $v=49(1-e^{-2})\approx 42\ \mathrm{m\,s^{-1}}$; the terminal $49\ \mathrm{m\,s^{-1}}$ is approached but never quite reached.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 3: constant-coefficient linear equations (trial solutions) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; When the coefficient $p(x)$ is the constant $a$, the linear first-order equation has constant coefficients, and the homogeneous and non-homogeneous cases are solved separately and then added, as in the classification section.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Homogeneous case.&#039;&#039;&#039; The equation $y&#039;+a\,y=0$ is solved by an exponential trial. Try $y=C e^{bx}$: substituting gives $(b+a)\,C e^{bx}=0$, and since the exponential never vanishes the only possible exponent is $b=-a$, so the homogeneous solution is&lt;br /&gt;
&lt;br /&gt;
$$y_h=C e^{-ax}$$&lt;br /&gt;
&lt;br /&gt;
Exponential growth $y&#039;=k\,y$ is the special case $a=-k$, giving $y_h=C e^{kt}$ with no integration at all.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Non-homogeneous case.&#039;&#039;&#039; For the forced equation $y&#039;+a\,y=q(x)$, the general solution is the particular-plus-homogeneous sum&lt;br /&gt;
&lt;br /&gt;
$$y=y_p+y_h=C e^{-ax}+y_p$$&lt;br /&gt;
&lt;br /&gt;
because substituting $y_p+y_h$ leaves $q(x)+0=q(x)$: the homogeneous part already vanishes on its own, so it can be added to any particular solution without spoiling it. When $q(x)$ is a constant, an exponential, a sine or cosine, or a polynomial, a particular solution of the same form can be guessed and its coefficient fixed by substitution — this is the &#039;&#039;&#039;method of undetermined coefficients&#039;&#039;&#039;. A trial that duplicates the homogeneous solution is multiplied by $x$ instead. The same exponential trial reappears, as the characteristic equation, for the constant-coefficient equations of order two below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: an account with steady withdrawals.&#039;&#039;&#039; An account earning 10% interest compounded continuously, from which €100 is withdrawn each year, is forced exponential growth:&lt;br /&gt;
&lt;br /&gt;
$$y&#039;=0.1\,y-100$$&lt;br /&gt;
&lt;br /&gt;
The homogeneous part, found by the trial $y=C e^{bt}$, is $y_h=C e^{0.1t}$. The withdrawal term is constant, so guess the constant particular solution $y_p=A$; substituting gives $0.1A-100=0$, hence $A=1000$. Starting with €5000, the condition $y(0)=1000+C=5000$ gives $C=4000$ (the constant lives, as always, in the homogeneous part), and&lt;br /&gt;
&lt;br /&gt;
$$y(t)=1000+4000\,e^{0.1t}$$&lt;br /&gt;
&lt;br /&gt;
Check: $y&#039;-0.1y=400e^{0.1t}-(100+400e^{0.1t})=-100$, as required. The €1000 is the balance whose annual interest (10% of €1000) exactly offsets the withdrawals: a balance above €1000 grows, and one below it shrinks. After ten years&lt;br /&gt;
&lt;br /&gt;
$$y(10)=1000+4000\,e\approx 11\,873$$&lt;br /&gt;
&lt;br /&gt;
whereas without the withdrawals the €5000 would have grown to $5000e\approx 13\,591$.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Textbooks add further first-order classes — equations homogeneous in the sense $y&#039;=f(y/x)$, Bernoulli equations, and exact equations — each solvable by an extra change of variables or, for exact equations, by recognising a total differential.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Second-order ODEs ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1: direct integration ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; When the equation has the form $y&#039;&#039;=f(x)$, with the right-hand side depending only on the independent variable, each derivative is undone by one integration:&lt;br /&gt;
&lt;br /&gt;
$$y&#039;&#039;=f(x)\qquad\Longrightarrow\qquad y&#039;=\int f(x)\,dx+C_1\qquad\Longrightarrow\qquad y=\int\!\!\left(\int f(x)\,dx\right)dx+C_1 x+C_2$$&lt;br /&gt;
&lt;br /&gt;
The two constants are fixed by two conditions, typically the initial value and the initial derivative (see the discussion of order above). The same pattern applies to $y^{(n)}=f(x)$ with $n$ integrations and $n$ constants.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: free fall.&#039;&#039;&#039; With only gravity acting, the height $x(t)$ of a falling object obeys $x&#039;&#039;=-g$. Integrating twice,&lt;br /&gt;
&lt;br /&gt;
$$\frac{dx}{dt}=-gt+v_0\qquad\Longrightarrow\qquad x(t)=-\frac{g}{2}t^2+v_0 t+x_0$$&lt;br /&gt;
&lt;br /&gt;
where $v_0$ and $x_0$ are the speed and height at $t=0$. A ball dropped from rest ($v_0=0$) at height $19.6\ \mathrm{m}$ reaches the ground, $x=0$, when&lt;br /&gt;
&lt;br /&gt;
$$0=19.6-4.9\,t^{2}\qquad\Longrightarrow\qquad t=\sqrt{19.6/4.9}=2\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
The two initial conditions have fixed the whole trajectory.&lt;br /&gt;
&lt;br /&gt;
==== Method 2: linear equations with constant coefficients ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; Linear equations with constant coefficients,&lt;br /&gt;
&lt;br /&gt;
$$y&#039;&#039;+a\,y&#039;+b\,y=f(x)$$&lt;br /&gt;
&lt;br /&gt;
model a mass on a spring, a small-angle pendulum, and an RLC circuit. As with every linear equation, the homogeneous and non-homogeneous cases are solved separately and joined by superposition.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Homogeneous case ($f=0$).&#039;&#039;&#039; Try the exponential $y=e^{rx}$ (the trial of Method 3), since $y&#039;=re^{rx}$ and $y&#039;&#039;=r^2e^{rx}$, giving&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1644}}&lt;br /&gt;
&lt;br /&gt;
The factor $e^{rx}$ is never zero, so the exponential solves the equation exactly when $r$ solves the algebraic &#039;&#039;&#039;characteristic equation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
$$r^2+ar+b=0$$&lt;br /&gt;
&lt;br /&gt;
whose roots determine the homogeneous solution:&lt;br /&gt;
&lt;br /&gt;
* distinct real roots $r_1\neq r_2$: $y_h=C_1e^{r_1x}+C_2e^{r_2x}$;&lt;br /&gt;
* one repeated root $r$: $y_h=(C_1+C_2x)e^{rx}$;&lt;br /&gt;
* complex pair $r=\alpha\pm i\beta$: $y_h=e^{\alpha x}(C_1\cos\beta x+C_2\sin\beta x)$.&lt;br /&gt;
&lt;br /&gt;
The two arbitrary constants, fixed by the initial conditions, live here and only here.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Non-homogeneous case ($f\neq 0$).&#039;&#039;&#039; By the classification result, the general solution is&lt;br /&gt;
&lt;br /&gt;
$$y=y_p+y_h$$&lt;br /&gt;
&lt;br /&gt;
with $y_h$ from above and $y_p$ any single solution of the full equation: substituting $y_p+y_h$ gives $f(x)+0$, since the homogeneous part vanishes on its own. When $f(x)$ is a constant, an exponential, a sine or cosine, or a polynomial, $y_p$ is found by undetermined coefficients, exactly as in Method 3, and a trial duplicating $y_h$ is multiplied by $x$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration (homogeneous):&#039;&#039;&#039; solve $y&#039;&#039;-3y&#039;+2y=0$. The characteristic equation $r^2-3r+2=(r-1)(r-2)=0$ has the two distinct real roots $1$ and $2$, so&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1608}}&lt;br /&gt;
&lt;br /&gt;
Check: for $y=e^x$, $y&#039;&#039;-3y&#039;+2y=(1-3+2)e^x=0$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration (non-homogeneous):&#039;&#039;&#039; the same operator forced by $2e^{3x}$, i.e. $y&#039;&#039;-3y&#039;+2y=2e^{3x}$, keeps the homogeneous solution found above, $y_h=C_1e^x+C_2e^{2x}$, and adds a trial $y_p=Ae^{3x}$. Substituting,&lt;br /&gt;
&lt;br /&gt;
$$y_p&#039;&#039;-3y_p&#039;+2y_p=(9-9+2)Ae^{3x}=2Ae^{3x}=2e^{3x}$$&lt;br /&gt;
&lt;br /&gt;
so $A=1$ and&lt;br /&gt;
&lt;br /&gt;
$$y=C_1e^x+C_2e^{2x}+e^{3x}$$&lt;br /&gt;
&lt;br /&gt;
Check: substituting $y=e^{3x}$ gives $(9-9+2)e^{3x}=2e^{3x}$; the homogeneous terms $e^x,e^{2x}$ vanish by the earlier check, so the sum solves the forced equation for any $C_1,C_2$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: the harmonic oscillator (a mass on a spring).&#039;&#039;&#039; A mass displaced $x$ from rest is pulled back by $-kx$ (Hooke&#039;s law), so Newton&#039;s second law gives&lt;br /&gt;
&lt;br /&gt;
$$m\frac{d^2x}{dt^2}=-kx\qquad\Longrightarrow\qquad x&#039;&#039;+\frac{k}{m}x=0$$&lt;br /&gt;
&lt;br /&gt;
Writing $\omega_0^2=k/m$ gives the &#039;&#039;&#039;harmonic oscillator equation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1588}}&lt;br /&gt;
&lt;br /&gt;
whose characteristic equation $r^2+\omega_0^2=0$ has the purely imaginary roots $r=\pm i\omega_0$, the complex-pair case with $\alpha=0$. Since $\frac{d^2}{dt^2}\cos\omega_0 t=-\omega_0^2\cos\omega_0 t$, and likewise for sine, superposition gives&lt;br /&gt;
&lt;br /&gt;
$$x(t)=A\cos\omega_0 t+B\sin\omega_0 t$$&lt;br /&gt;
&lt;br /&gt;
with $A,B$ fixed by the initial position and velocity.&lt;br /&gt;
&lt;br /&gt;
[[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).]]&lt;br /&gt;
&lt;br /&gt;
Numbers: $m=2\ \mathrm{kg}$, $k=8\ \mathrm{N/m}$, so $\omega_0=\sqrt{8/2}=2\ \text{rad/s}$. Pulled $10\ \mathrm{cm}$ out and released from rest, $B=0$ and $x(t)=0.10\cos 2t$ metres. The period is&lt;br /&gt;
&lt;br /&gt;
$$P=\frac{2\pi}{\omega_0}=\pi\approx 3.14\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
and after one second&lt;br /&gt;
&lt;br /&gt;
$$x(1)=0.10\cos 2\approx 0.10(-0.416)\approx -0.042\ \text{m}$$&lt;br /&gt;
&lt;br /&gt;
Such fixed-amplitude sinusoidal motion is &#039;&#039;&#039;simple harmonic motion&#039;&#039;&#039;.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Partial differential equations ===&lt;br /&gt;
&lt;br /&gt;
Two elementary exact methods cover the standard introductory cases: separation of variables, for diffusion problems on finite domains, and travelling waves (the method of characteristics), for transport. Each is stated in general and then applied to a concrete numerical example.&lt;br /&gt;
&lt;br /&gt;
==== Method 1: separation of variables (the heat equation) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For a linear, homogeneous PDE on a simple domain, look for a solution that is a product of functions of the separate independent variables, $u(x,t)=X(x)T(t)$. Substituting splits the PDE into two linked ordinary equations; boundary conditions pick out which solutions survive; and superposition of those basic solutions then gives the general solution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Application.&#039;&#039;&#039; Solve the heat equation on a bar of length $L$ with insulated sides and both ends held at $0$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{\partial u}{\partial t}=\alpha\frac{\partial^2u}{\partial x^2}$$&lt;br /&gt;
&lt;br /&gt;
Seek $u(x,t)=X(x)T(t)$. Substituting gives $XT&#039;=\alpha X&#039;&#039;T$; dividing by $\alpha XT$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1622}}&lt;br /&gt;
&lt;br /&gt;
The left side depends only on $t$ and the right only on $x$, so both must equal one and the same constant, written $-\lambda$. Each side is now an ODE:&lt;br /&gt;
&lt;br /&gt;
$$T&#039;=-\alpha\lambda T\qquad\Longrightarrow\qquad T=e^{-\alpha\lambda t}$$&lt;br /&gt;
&lt;br /&gt;
$$X&#039;&#039;=-\lambda X\qquad\Longrightarrow\qquad X=A\cos(\sqrt{\lambda}\,x)+B\sin(\sqrt{\lambda}\,x)$$&lt;br /&gt;
&lt;br /&gt;
The end conditions $u(0,t)=u(L,t)=0$ force $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 allowed value $\lambda=(n\pi/L)^2$ gives one basic solution, a mode&lt;br /&gt;
&lt;br /&gt;
$$u_n(x,t)=\sin\frac{n\pi x}{L}\,e^{-\alpha(n\pi/L)^2t}$$&lt;br /&gt;
&lt;br /&gt;
The equation is linear and homogeneous, so superposition applies and the general solution is&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1611}}&lt;br /&gt;
&lt;br /&gt;
with the $b_n$ fixed by the initial profile $u(x,0)$ (a Fourier sine series). The decay rate $\alpha(n\pi/L)^2$ grows as $n^2$, so higher modes die out first.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Numbers:&#039;&#039;&#039; a $1\ \mathrm{m}$ iron bar, $\alpha\approx 2.3\times10^{-5}\ \mathrm{m^2s^{-1}}$, heated so $u(x,0)=100\sin(\pi x/L)$ (ends at $0\,^{\circ}\mathrm{C}$, centre $100\,^{\circ}\mathrm{C}$). Only the $n=1$ mode is present:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=100\sin\frac{\pi x}{L}\,e^{-\alpha\pi^2t/L^2}$$&lt;br /&gt;
&lt;br /&gt;
At the centre, with $L=1$ and $\alpha\pi^2\approx 2.3\times10^{-4}\ \text{s}^{-1}$,&lt;br /&gt;
&lt;br /&gt;
$$u\!\left(\tfrac12,t\right)=100\,e^{-2.3\times10^{-4}t}$$&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 2: travelling waves (the method of characteristics) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; Some first-order PDEs are solved not by separating variables but by noticing that their solutions travel. The transport equation with constant speed $c$,&lt;br /&gt;
&lt;br /&gt;
$$u_t+c\,u_x=0$$&lt;br /&gt;
&lt;br /&gt;
states that $u$ is carried along unchanged. Trying a travelling wave $u(x,t)=f(x-ct)$, with $f$ arbitrary, the chain rule gives $u_t=-c\,f&#039;$ and $u_x=f&#039;$, so&lt;br /&gt;
&lt;br /&gt;
$$u_t+c\,u_x=-c\,f&#039;+c\,f&#039;=0$$&lt;br /&gt;
&lt;br /&gt;
whatever $f$ is. Hence the general solution is any profile sliding rigidly to the right at speed $c$ (to the left if $c&amp;lt;0$):&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=f(x-ct)$$&lt;br /&gt;
&lt;br /&gt;
with $f$ fixed by the initial profile, $u(x,0)=f(x)$. Equivalently, $u$ is constant on each of the straight &#039;&#039;&#039;characteristic&#039;&#039;&#039; lines $x-ct=\text{constant}$. The equation is linear and homogeneous, so sums of travelling waves are again solutions. A source term makes it non-homogeneous, $u_t+cu_x=s(x,t)$, and adds, along each characteristic, the accumulated contribution of $s$, the same particular-plus-homogeneous structure as for ODEs:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=f(x-ct)+\int_0^t s\bigl(x-c(t-\tau),\tau\bigr)\,d\tau$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: a slug of pollutant in a river.&#039;&#039;&#039; A river flows at $2\ \mathrm{m\,s^{-1}}$, and at $t=0$ a release at $x=0$ gives the Gaussian concentration profile $u(x,0)=50\,e^{-(x/10)^2}\ \mathrm{mg\,L^{-1}}$: $50\ \mathrm{mg\,L^{-1}}$ at the release point, falling by a factor $e^{-1}\approx 0.37$ ten metres away. The solution slides the whole profile downstream without changing it:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=50\,e^{-((x-2t)/10)^2}\ \mathrm{mg\,L^{-1}}$$&lt;br /&gt;
&lt;br /&gt;
After one minute the peak, which started at $x=0$, has reached $x=2\times 60=120$ m downstream and still reads $50\ \mathrm{mg\,L^{-1}}$; a monitor $120$ m downstream sees the peak arrive after $60$ s. The transport equation describes pure advection, with no spreading: that is why the heat example above needed the extra second-order term $\alpha u_{xx}$ to spread its pulse out.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remark: the wave equation.&#039;&#039;&#039; The second-order wave equation $u_{tt}=c^2u_{xx}$ (a plucked string) is solved by the same travelling-wave idea applied in both directions at once; its general solution is&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=f(x-ct)+g(x+ct)$$&lt;br /&gt;
&lt;br /&gt;
two arbitrary shapes moving left and right ([[Person:Jean le Rond d&#039;Alembert|d&#039;Alembert]], 1747, described in the history section).&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== When no formula exists ===&lt;br /&gt;
&lt;br /&gt;
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:&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Numerically&#039;&#039;&#039;, when numbers suffice: [[Euler&#039;s method]] steps along the slope field;&lt;br /&gt;
* &#039;&#039;&#039;[[Qualitative methods]]&#039;&#039;&#039;: equilibria, stability and long-term behaviour, without formulas;&lt;br /&gt;
* &#039;&#039;&#039;Series and transforms&#039;&#039;&#039;, for linear cases: [[Power series]] or the [[Laplace transform]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;uml type=&amp;quot;uml&amp;quot;&amp;gt;&lt;br /&gt;
@startuml&lt;br /&gt;
skinparam monochrome true&lt;br /&gt;
start&lt;br /&gt;
:You have a differential equation;&lt;br /&gt;
if (First order and separable?\ny&#039; = g(x) h(y)?) then (yes)&lt;br /&gt;
  :Separate and integrate:\n∫ dy/h(y) = ∫ g(x) dx;&lt;br /&gt;
else (no)&lt;br /&gt;
  if (First order and linear?\ny&#039; + p(x) y = q(x)?) then (yes)&lt;br /&gt;
    if (Constant coefficients?\ny&#039; + a y = q(x)?) then (yes)&lt;br /&gt;
      :Trial solution:\ny_h = C e^{-ax} + guessed y_p;&lt;br /&gt;
    else (no)&lt;br /&gt;
      :Integrating factor\nμ = e^{∫ p dx};&lt;br /&gt;
    endif&lt;br /&gt;
  else (no)&lt;br /&gt;
    if (Second order, of the form\ny&#039;&#039; = f(x)?) then (yes)&lt;br /&gt;
      :Integrate twice;&lt;br /&gt;
    else (no)&lt;br /&gt;
      if (Second order, linear, constant coefficients?\ny&#039;&#039; + a y&#039; + b y = 0? or = f(x)?) then (yes)&lt;br /&gt;
        :Characteristic equation\nr² + a r + b = 0;\nthen add a particular y_p;&lt;br /&gt;
      else (no)&lt;br /&gt;
        if (Transport equation?\nu_t + c u_x = 0?) then (yes)&lt;br /&gt;
          :Travelling wave\nu(x,t) = f(x - ct);&lt;br /&gt;
        else (no)&lt;br /&gt;
          if (Linear PDE on a simple shape,\ne.g. the heat equation?) then (yes)&lt;br /&gt;
            :Separate variables\nu(x,t) = X(x) T(t);&lt;br /&gt;
          else (no)&lt;br /&gt;
            if (Are approximate numbers enough?) then (yes)&lt;br /&gt;
              :Numerical stepping\n(Euler&#039;s method);&lt;br /&gt;
            else (no)&lt;br /&gt;
              if (Linear?) then (yes)&lt;br /&gt;
                :Power series or Laplace transform;&lt;br /&gt;
              else (no)&lt;br /&gt;
                :Qualitative study:\nequilibria, stability, chaos;&lt;br /&gt;
              endif&lt;br /&gt;
            endif&lt;br /&gt;
          endif&lt;br /&gt;
        endif&lt;br /&gt;
      endif&lt;br /&gt;
    endif&lt;br /&gt;
  endif&lt;br /&gt;
endif&lt;br /&gt;
stop&lt;br /&gt;
@enduml&lt;br /&gt;
&amp;lt;/uml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== A short history ==&lt;br /&gt;
&lt;br /&gt;
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 &#039;&#039;Principia&#039;&#039; 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&#039;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.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Isaac Newton portrait.jpg|thumb|left|Isaac Newton (portrait after Godfrey Kneller, 1689). The laws of motion and of gravitation published in the &#039;&#039;Principia&#039;&#039; (1687) are differential equations. Credit: James Thronill after Godfrey Kneller (public domain).]]&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Leonhard Euler portrait.jpg|thumb|Leonhard Euler (portrait by Jakob Emanuel Handmann, 1753). Credit: Jakob Emanuel Handmann (public domain).]]&lt;br /&gt;
&lt;br /&gt;
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&#039;Alembert|Jean le Rond d&#039;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 &#039;&#039;Théorie analytique de la chaleur&#039;&#039; 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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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&#039;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.&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Differential_equation Differential equation], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/DifferentialEquation.html Differential Equation], Wolfram MathWorld&lt;br /&gt;
* [https://ocw.mit.edu/courses/18-03sc-differential-equations-fall-2011/ 18.03SC Differential Equations], MIT OpenCourseWare&lt;br /&gt;
* [https://mathshistory.st-andrews.ac.uk/Biographies/Euler/ Leonhard Euler], MacTutor History of Mathematics&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7463</id>
		<title>Differential equation</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7463"/>
		<updated>2026-09-05T19:21:10Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: AI-assisted (RonzzWikiCowriter): add first-order Method 3 — constant-coefficient linear equations solved by exponential trial and undetermined coefficients (y = C e^{bx} guess, particular-solution guess), with a worked account-with-withdrawals numeric example; note the remaining first-order specialisations; thread the trial through the second-order section and the decision diagram. (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;A differential equation&#039;&#039;&#039; is an equation whose unknown is a function and which also involves that function&#039;s derivatives (rates of change). Where an ordinary equation such as $x^2=9$ is solved by numbers, a differential equation such as $y&#039;+2y=0$ is solved by functions $y(x)$. Laws of nature state how quantities change, so differential equations describe pendulums, cooling drinks, growing populations, and discharging capacitors. This article covers the standard analytical solution methods, by class of equation, each stated in general and then demonstrated on a concrete numerical example, and the numerical, series, and qualitative routes used when no exact formula exists. It treats &#039;&#039;&#039;ordinary differential equations&#039;&#039;&#039; (one independent variable) and, briefly, &#039;&#039;&#039;partial differential equations&#039;&#039;&#039; (several).&lt;br /&gt;
&lt;br /&gt;
== A first example: slopes and a family of solutions ==&lt;br /&gt;
&lt;br /&gt;
The simplest differential equation prescribes the slope of a function $y(x)$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}=2x$$&lt;br /&gt;
&lt;br /&gt;
Integration inverts differentiation, so integrating both sides gives&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{dx}\,dx=\int 2x\,dx\qquad\Longrightarrow\qquad y(x)=x^{2}+C$$&lt;br /&gt;
&lt;br /&gt;
Every $C$ works, since $\frac{d}{dx}\left(x^2+C\right)=2x$; the solutions form the parabola family $y=x^2+C$, the &#039;&#039;&#039;general solution&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If $y(0)=3$, then&lt;br /&gt;
&lt;br /&gt;
$$3=0^2+C\qquad\Longrightarrow\qquad C=3\qquad\Longrightarrow\qquad y=x^2+3$$&lt;br /&gt;
&lt;br /&gt;
A prescribed value such as this is an &#039;&#039;&#039;initial condition&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Classifying differential equations ==&lt;br /&gt;
&lt;br /&gt;
Three features decide how to solve an equation: its &#039;&#039;&#039;order&#039;&#039;&#039;, its &#039;&#039;&#039;linearity&#039;&#039;&#039;, and how many independent variables it involves.&lt;br /&gt;
&lt;br /&gt;
=== Order ===&lt;br /&gt;
&lt;br /&gt;
The order is the order of the highest derivative present. $dy/dx=2x$ is first order; Newton&#039;s second law,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1583}}&lt;br /&gt;
&lt;br /&gt;
is second order ($x(t)$ position of mass $m$, $F$ net force). Integration introduces one arbitrary constant per integration, so the general solution of an nth-order equation carries $n$ constants, fixed by $n$ initial conditions. For equations of the special form $y^{(n)}=f(x)$ the constants appear exactly as the integration constants of $n$ successive integrations; the free-fall example in the second-order section below works this out for $n=2$.&lt;br /&gt;
&lt;br /&gt;
=== Linearity and homogeneity ===&lt;br /&gt;
&lt;br /&gt;
An equation is &#039;&#039;&#039;linear&#039;&#039;&#039; 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&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
and is &#039;&#039;&#039;homogeneous&#039;&#039;&#039; 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$).&lt;br /&gt;
&lt;br /&gt;
If $y_1,y_2$ solve a homogeneous linear equation, so does $c_1y_1+c_2y_2$ (the &#039;&#039;&#039;superposition principle&#039;&#039;&#039;): substituting the combination adds the two expressions that already vanish. For a nonlinear equation the combination does not generally solve it: if $y_1&#039;=y_1^2$ and $y_2&#039;=y_2^2$, then&lt;br /&gt;
&lt;br /&gt;
$$(y_1+y_2)&#039;=y_1^2+y_2^2\neq (y_1+y_2)^2$$&lt;br /&gt;
&lt;br /&gt;
so $y_1+y_2$ does not solve $y&#039;=y^2$.&lt;br /&gt;
&lt;br /&gt;
=== Ordinary and partial ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;ordinary differential equation&#039;&#039;&#039; (ODE) has one independent variable. A &#039;&#039;&#039;partial differential equation&#039;&#039;&#039; (PDE) has several, with partial derivatives. For example, the temperature $u(x,t)$ of an insulated metal bar, which depends on position $x$ and time $t$, obeys the heat equation&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1590}}&lt;br /&gt;
&lt;br /&gt;
where $\alpha$ is the thermal diffusivity.&lt;br /&gt;
&lt;br /&gt;
== Slope fields ==&lt;br /&gt;
&lt;br /&gt;
A first-order equation can be written&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1581}}&lt;br /&gt;
&lt;br /&gt;
assigning to each point $(x,y)$ the slope $f(x,y)$ a solution must have there. Drawing short segments of that slope gives a &#039;&#039;&#039;direction field&#039;&#039;&#039;; solution curves run tangent to it.&lt;br /&gt;
&lt;br /&gt;
[[File:Slope field of exponential growth.png|thumb|Direction field of $dy/dx=y$. Credit: jjbeard (public domain).]]&lt;br /&gt;
&lt;br /&gt;
Numerical methods such as [[Euler&#039;s method]] follow the field: read the slope, step a short distance along it, repeat.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving differential equations ==&lt;br /&gt;
&lt;br /&gt;
There is no formula that solves every differential equation. The practical route is to recognise the class of the equation and apply that class&#039;s method. For first-order ODEs there are two standard classes, separable and linear; when the coefficients of a linear equation are constant, the solution is found even faster by an exponential trial solution (Method 3 below), the same idea that solves the constant-coefficient equations of order two. For second-order ODEs there are two further classes, equations reducible to direct integration and linear equations with constant coefficients; for linear PDEs on simple domains the standard tool is separation of variables. Each method below is stated for its general case and then applied to a concrete numerical example. When an equation fits none of these classes, it is treated by the numerical, series, or qualitative methods summarised at the end of this section.&lt;br /&gt;
&lt;br /&gt;
=== First-order ODEs ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1: separable equations ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; A first-order equation is &#039;&#039;&#039;separable&#039;&#039;&#039; when the right-hand side factors into a function of $x$ alone times a function of $y$ alone:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1612}}&lt;br /&gt;
&lt;br /&gt;
Divide both sides by $h(y)$ and integrate: all the $y$&#039;s land on one side and all the $x$&#039;s on the other, and if the two integrals can be evaluated the resulting relation between $y$ and $x$ is the general solution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: exponential growth and decay.&#039;&#039;&#039; When a quantity changes at a rate proportional to its own size — a bank balance earning interest, a population with unlimited food, a radioactive sample — the equation is separable with $g(t)=k$, $h(y)=y$:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1584}}&lt;br /&gt;
&lt;br /&gt;
Divide by $y$ and integrate:&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{y}=\int k\,dt\qquad\Longrightarrow\qquad \ln|y|=kt+C$$&lt;br /&gt;
&lt;br /&gt;
Exponentiating, $|y|=e^C e^{kt}$. The sign of $y$ never changes, so absorbing it into the constant and writing $y(0)=y_0$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1585}}&lt;br /&gt;
&lt;br /&gt;
Numbers: €1000 at 5% interest compounded continuously ($k=0.05\ \text{yr}^{-1}$) gives $y(t)=1000\,e^{0.05t}$, and&lt;br /&gt;
&lt;br /&gt;
$$y(10)=1000\,e^{0.5}\approx 1648.7$$&lt;br /&gt;
&lt;br /&gt;
Doubling time: $1000\,e^{0.05t}=2000\Rightarrow t=\ln 2/0.05\approx 13.9$ years. For $k&amp;lt;0$ the same solution describes decay; the &#039;&#039;&#039;half-life&#039;&#039;&#039; $y=y_0/2$ is $t_{1/2}=(\ln 2)/(-k)$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: Newton&#039;s law of cooling.&#039;&#039;&#039; A body hotter than its surroundings cools at a rate proportional to the temperature gap, which makes the equation separable:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1586}}&lt;br /&gt;
&lt;br /&gt;
Separate and integrate:&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dT}{T-T_a}=\int-k\,dt\qquad\Longrightarrow\qquad \ln|T-T_a|=-kt+C$$&lt;br /&gt;
&lt;br /&gt;
Exponentiating and folding the (constant-sign) factor $T-T_a$ into the constant, with $T(0)=T_0$:&lt;br /&gt;
&lt;br /&gt;
$$T(t)=T_a+(T_0-T_a)e^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
The gap $T-T_a$ decays exponentially; $T$ itself does not. Example: a drink at $80\,^{\circ}\mathrm{C}$ in a $20\,^{\circ}\mathrm{C}$ room, $k=0.1\ \text{min}^{-1}$:&lt;br /&gt;
&lt;br /&gt;
$$T(t)=20+60\,e^{-0.1t}$$&lt;br /&gt;
&lt;br /&gt;
Reaches $40\,^{\circ}\mathrm{C}$ when $20+60e^{-0.1t}=40$, i.e. $t=10\ln 3\approx 11$ min.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 2: linear first-order equations (integrating factor) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; Many first-order equations are linear but not separable. A linear first-order equation has the form&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
and is solved by multiplying both sides by the &#039;&#039;&#039;integrating factor&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
$$\mu(x)=e^{\int p(x)\,dx}$$&lt;br /&gt;
&lt;br /&gt;
so that the left-hand side collapses into a single derivative:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1613}}&lt;br /&gt;
&lt;br /&gt;
Both sides then integrate directly, giving the general solution&lt;br /&gt;
&lt;br /&gt;
$$y(x)=\frac{1}{\mu(x)}\left(\int \mu(x)\,q(x)\,dx + C\right)$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration:&#039;&#039;&#039; solve $y&#039;+y=e^{-x}$. Here $p=1$, $\mu=e^x$, and&lt;br /&gt;
&lt;br /&gt;
$$e^x y&#039;+e^x y=1\qquad\Longrightarrow\qquad (e^x y)&#039;=1\qquad\Longrightarrow\qquad e^x y=x+C\qquad\Longrightarrow\qquad y=(x+C)e^{-x}$$&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1607}}&lt;br /&gt;
&lt;br /&gt;
The condition $y(0)=2$ gives $C=2$.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: falling with air resistance.&#039;&#039;&#039; A falling body of mass $m$ is pulled down by gravity $mg$ and slowed by air drag proportional to its speed, $-bv$. Newton&#039;s second law gives the linear first-order equation&lt;br /&gt;
&lt;br /&gt;
$$m\frac{dv}{dt}=mg-bv\qquad\Longrightarrow\qquad \frac{dv}{dt}+\frac{b}{m}\,v=g$$&lt;br /&gt;
&lt;br /&gt;
Here $p=b/m$ and $q=g$, both constant, so $\mu=e^{(b/m)t}$ and&lt;br /&gt;
&lt;br /&gt;
$$\frac{d}{dt}\left(e^{(b/m)t}v\right)=g\,e^{(b/m)t}\qquad\Longrightarrow\qquad e^{(b/m)t}v=\frac{mg}{b}e^{(b/m)t}+C$$&lt;br /&gt;
&lt;br /&gt;
hence, with $v(0)=0$,&lt;br /&gt;
&lt;br /&gt;
$$v(t)=\frac{mg}{b}\left(1-e^{-(b/m)t}\right)$$&lt;br /&gt;
&lt;br /&gt;
As $t$ grows the exponential fades and the speed approaches the constant terminal velocity $mg/b$. Numbers: a skydiver of $m=70\ \mathrm{kg}$ with $b=14\ \mathrm{kg\,s^{-1}}$ has $mg/b = 70\times9.8/14 = 49\ \mathrm{m\,s^{-1}}$ and $b/m = 0.2\ \mathrm{s^{-1}}$, so&lt;br /&gt;
&lt;br /&gt;
$$v(t)=49\left(1-e^{-0.2t}\right)\ \mathrm{m\,s^{-1}}$$&lt;br /&gt;
&lt;br /&gt;
After 5 seconds $v=49(1-e^{-1})\approx 31\ \mathrm{m\,s^{-1}}$; after 10 seconds $v=49(1-e^{-2})\approx 42\ \mathrm{m\,s^{-1}}$; the terminal $49\ \mathrm{m\,s^{-1}}$ is approached but never quite reached.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 3: constant-coefficient linear equations (trial solutions) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; When the coefficient $p(x)$ is a constant $a$, the linear first-order equation has constant coefficients, and its homogeneous part $y&#039;+a\,y=0$ is solved by an exponential trial. Try $y=C e^{bx}$: substituting gives $(b+a)\,C e^{bx}=0$, and since the exponential never vanishes the only possible exponent is $b=-a$, so&lt;br /&gt;
&lt;br /&gt;
$$y=C e^{-ax}$$&lt;br /&gt;
&lt;br /&gt;
Exponential growth $y&#039;=k\,y$ is the special case $a=-k$, giving $y=C e^{kt}$ with no integration at all. If the equation is forced, $y&#039;+a\,y=q(x)$, and $q(x)$ is itself a constant, an exponential, a sine or cosine, or a polynomial, then a particular solution $y_p$ of the same form can be guessed and its coefficient fixed by substitution. This is the &#039;&#039;&#039;method of undetermined coefficients&#039;&#039;&#039;; the general solution is the sum&lt;br /&gt;
&lt;br /&gt;
$$y=C e^{-ax}+y_p$$&lt;br /&gt;
&lt;br /&gt;
A trial that duplicates the homogeneous solution is multiplied by $x$ instead. The same exponential trial reappears, as the characteristic equation, for the constant-coefficient equations of order two below.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: an account with steady withdrawals.&#039;&#039;&#039; An account earning 10% interest compounded continuously, from which €100 is withdrawn each year, is forced exponential growth:&lt;br /&gt;
&lt;br /&gt;
$$y&#039;=0.1\,y-100$$&lt;br /&gt;
&lt;br /&gt;
The homogeneous part, found by the trial $y=C e^{bt}$, is $y_h=C e^{0.1t}$. The withdrawal term is constant, so guess the constant particular solution $y_p=A$; substituting gives $0.1A-100=0$, hence $A=1000$. Starting with €5000, the condition $y(0)=1000+C=5000$ gives $C=4000$, and&lt;br /&gt;
&lt;br /&gt;
$$y(t)=1000+4000\,e^{0.1t}$$&lt;br /&gt;
&lt;br /&gt;
Check: $y&#039;-0.1y=400e^{0.1t}-(100+400e^{0.1t})=-100$, as required. The €1000 is the balance whose annual interest (10% of €1000) exactly offsets the withdrawals: a balance above €1000 grows, and one below it shrinks. After ten years&lt;br /&gt;
&lt;br /&gt;
$$y(10)=1000+4000\,e\approx 11\,873$$&lt;br /&gt;
&lt;br /&gt;
whereas without the withdrawals the €5000 would have grown to $5000e\approx 13\,591$.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Textbooks add further first-order classes — equations homogeneous in the sense $y&#039;=f(y/x)$, Bernoulli equations, and exact equations — each solvable by an extra change of variables or, for exact equations, by recognising a total differential.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Second-order ODEs ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1: direct integration ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; When the equation has the form $y&#039;&#039;=f(x)$, with the right-hand side depending only on the independent variable, each derivative is undone by one integration:&lt;br /&gt;
&lt;br /&gt;
$$y&#039;&#039;=f(x)\qquad\Longrightarrow\qquad y&#039;=\int f(x)\,dx+C_1\qquad\Longrightarrow\qquad y=\int\!\!\left(\int f(x)\,dx\right)dx+C_1 x+C_2$$&lt;br /&gt;
&lt;br /&gt;
The two constants are fixed by two conditions, typically the initial value and the initial derivative (see the discussion of order above). The same pattern applies to $y^{(n)}=f(x)$ with $n$ integrations and $n$ constants.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: free fall.&#039;&#039;&#039; With only gravity acting, the height $x(t)$ of a falling object obeys $x&#039;&#039;=-g$. Integrating twice,&lt;br /&gt;
&lt;br /&gt;
$$\frac{dx}{dt}=-gt+v_0\qquad\Longrightarrow\qquad x(t)=-\frac{g}{2}t^2+v_0 t+x_0$$&lt;br /&gt;
&lt;br /&gt;
where $v_0$ and $x_0$ are the speed and height at $t=0$. A ball dropped from rest ($v_0=0$) at height $19.6\ \mathrm{m}$ reaches the ground, $x=0$, when&lt;br /&gt;
&lt;br /&gt;
$$0=19.6-4.9\,t^{2}\qquad\Longrightarrow\qquad t=\sqrt{19.6/4.9}=2\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
The two initial conditions have fixed the whole trajectory.&lt;br /&gt;
&lt;br /&gt;
==== Method 2: linear equations with constant coefficients ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; The equation&lt;br /&gt;
&lt;br /&gt;
$$y&#039;&#039;+a\,y&#039;+b\,y=0$$&lt;br /&gt;
&lt;br /&gt;
models a mass on a spring, a small-angle pendulum, and an RLC circuit. Its solutions are exponentials (the exponential trial already used in Method 3): try $y=e^{rx}$, since $y&#039;=re^{rx}$ and $y&#039;&#039;=r^2e^{rx}$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1644}}&lt;br /&gt;
&lt;br /&gt;
The factor $e^{rx}$ is never zero, so the exponential solves the equation exactly when $r$ solves the algebraic &#039;&#039;&#039;characteristic equation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
$$r^2+ar+b=0$$&lt;br /&gt;
&lt;br /&gt;
whose roots determine the general solution:&lt;br /&gt;
&lt;br /&gt;
* distinct real roots $r_1\neq r_2$: $y=C_1e^{r_1x}+C_2e^{r_2x}$;&lt;br /&gt;
* one repeated root $r$: $y=(C_1+C_2x)e^{rx}$;&lt;br /&gt;
* complex pair $r=\alpha\pm i\beta$: $y=e^{\alpha x}(C_1\cos\beta x+C_2\sin\beta x)$.&lt;br /&gt;
&lt;br /&gt;
If the equation has a nonzero right-hand side, $y&#039;&#039;+ay&#039;+by=f(x)$, the superposition principle gives $y=y_p+y_h$, where $y_h$ is the general homogeneous solution above and $y_p$ is any single solution of the full equation.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration:&#039;&#039;&#039; solve $y&#039;&#039;-3y&#039;+2y=0$. The characteristic equation $r^2-3r+2=(r-1)(r-2)=0$ has the two distinct real roots $1$ and $2$, so&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1608}}&lt;br /&gt;
&lt;br /&gt;
Check: for $y=e^x$, $y&#039;&#039;-3y&#039;+2y=(1-3+2)e^x=0$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: the harmonic oscillator (a mass on a spring).&#039;&#039;&#039; A mass displaced $x$ from rest is pulled back by $-kx$ (Hooke&#039;s law), so Newton&#039;s second law gives&lt;br /&gt;
&lt;br /&gt;
$$m\frac{d^2x}{dt^2}=-kx\qquad\Longrightarrow\qquad x&#039;&#039;+\frac{k}{m}x=0$$&lt;br /&gt;
&lt;br /&gt;
Writing $\omega_0^2=k/m$ gives the &#039;&#039;&#039;harmonic oscillator equation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1588}}&lt;br /&gt;
&lt;br /&gt;
whose characteristic equation $r^2+\omega_0^2=0$ has the purely imaginary roots $r=\pm i\omega_0$, the complex-pair case with $\alpha=0$. Since $\frac{d^2}{dt^2}\cos\omega_0 t=-\omega_0^2\cos\omega_0 t$, and likewise for sine, superposition gives&lt;br /&gt;
&lt;br /&gt;
$$x(t)=A\cos\omega_0 t+B\sin\omega_0 t$$&lt;br /&gt;
&lt;br /&gt;
with $A,B$ fixed by the initial position and velocity.&lt;br /&gt;
&lt;br /&gt;
[[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).]]&lt;br /&gt;
&lt;br /&gt;
Numbers: $m=2\ \mathrm{kg}$, $k=8\ \mathrm{N/m}$, so $\omega_0=\sqrt{8/2}=2\ \text{rad/s}$. Pulled $10\ \mathrm{cm}$ out and released from rest, $B=0$ and $x(t)=0.10\cos 2t$ metres. The period is&lt;br /&gt;
&lt;br /&gt;
$$P=\frac{2\pi}{\omega_0}=\pi\approx 3.14\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
and after one second&lt;br /&gt;
&lt;br /&gt;
$$x(1)=0.10\cos 2\approx 0.10(-0.416)\approx -0.042\ \text{m}$$&lt;br /&gt;
&lt;br /&gt;
Such fixed-amplitude sinusoidal motion is &#039;&#039;&#039;simple harmonic motion&#039;&#039;&#039;.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Partial differential equations ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1: separation of variables (the heat equation) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For a linear PDE on a simple domain, look for a solution that is a product of functions of the separate independent variables, $u(x,t)=X(x)T(t)$. Substituting splits the PDE into two linked ordinary equations; boundary conditions pick out which solutions survive; and superposition of those basic solutions then gives the general solution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Application.&#039;&#039;&#039; Solve the heat equation on a bar of length $L$ with insulated sides and both ends held at $0$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{\partial u}{\partial t}=\alpha\frac{\partial^2u}{\partial x^2}$$&lt;br /&gt;
&lt;br /&gt;
Seek $u(x,t)=X(x)T(t)$. Substituting gives $XT&#039;=\alpha X&#039;&#039;T$; dividing by $\alpha XT$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1622}}&lt;br /&gt;
&lt;br /&gt;
The left side depends only on $t$ and the right only on $x$, so both must equal one and the same constant, written $-\lambda$. Each side is now an ODE:&lt;br /&gt;
&lt;br /&gt;
$$T&#039;=-\alpha\lambda T\qquad\Longrightarrow\qquad T=e^{-\alpha\lambda t}$$&lt;br /&gt;
&lt;br /&gt;
$$X&#039;&#039;=-\lambda X\qquad\Longrightarrow\qquad X=A\cos(\sqrt{\lambda}\,x)+B\sin(\sqrt{\lambda}\,x)$$&lt;br /&gt;
&lt;br /&gt;
The end conditions $u(0,t)=u(L,t)=0$ force $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 allowed value $\lambda=(n\pi/L)^2$ gives one basic solution, a mode&lt;br /&gt;
&lt;br /&gt;
$$u_n(x,t)=\sin\frac{n\pi x}{L}\,e^{-\alpha(n\pi/L)^2t}$$&lt;br /&gt;
&lt;br /&gt;
The equation is linear and homogeneous, so superposition applies and the general solution is&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1611}}&lt;br /&gt;
&lt;br /&gt;
with the $b_n$ fixed by the initial profile $u(x,0)$ (a Fourier sine series). The decay rate $\alpha(n\pi/L)^2$ grows as $n^2$, so higher modes die out first.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Numbers:&#039;&#039;&#039; a $1\ \mathrm{m}$ iron bar, $\alpha\approx 2.3\times10^{-5}\ \mathrm{m^2s^{-1}}$, heated so $u(x,0)=100\sin(\pi x/L)$ (ends at $0\,^{\circ}\mathrm{C}$, centre $100\,^{\circ}\mathrm{C}$). Only the $n=1$ mode is present:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=100\sin\frac{\pi x}{L}\,e^{-\alpha\pi^2t/L^2}$$&lt;br /&gt;
&lt;br /&gt;
At the centre, with $L=1$ and $\alpha\pi^2\approx 2.3\times10^{-4}\ \text{s}^{-1}$,&lt;br /&gt;
&lt;br /&gt;
$$u\!\left(\tfrac12,t\right)=100\,e^{-2.3\times10^{-4}t}$$&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== When no formula exists ===&lt;br /&gt;
&lt;br /&gt;
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:&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Numerically&#039;&#039;&#039;, when numbers suffice: [[Euler&#039;s method]] steps along the slope field;&lt;br /&gt;
* &#039;&#039;&#039;[[Qualitative methods]]&#039;&#039;&#039;: equilibria, stability and long-term behaviour, without formulas;&lt;br /&gt;
* &#039;&#039;&#039;Series and transforms&#039;&#039;&#039;, for linear cases: [[Power series]] or the [[Laplace transform]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;uml type=&amp;quot;uml&amp;quot;&amp;gt;&lt;br /&gt;
@startuml&lt;br /&gt;
skinparam monochrome true&lt;br /&gt;
start&lt;br /&gt;
:You have a differential equation;&lt;br /&gt;
if (First order and separable?\ny&#039; = g(x) h(y)?) then (yes)&lt;br /&gt;
  :Separate and integrate:\n∫ dy/h(y) = ∫ g(x) dx;&lt;br /&gt;
else (no)&lt;br /&gt;
  if (First order and linear?\ny&#039; + p(x) y = q(x)?) then (yes)&lt;br /&gt;
    if (Constant coefficients?\ny&#039; + a y = q(x)?) then (yes)&lt;br /&gt;
      :Trial solution:\ny_h = C e^{-ax} + guessed y_p;&lt;br /&gt;
    else (no)&lt;br /&gt;
      :Integrating factor\nμ = e^{∫ p dx};&lt;br /&gt;
    endif&lt;br /&gt;
  else (no)&lt;br /&gt;
    if (Second order, of the form\ny&#039;&#039; = f(x)?) then (yes)&lt;br /&gt;
      :Integrate twice;&lt;br /&gt;
    else (no)&lt;br /&gt;
      if (Second order, linear, constant coefficients?\ny&#039;&#039; + a y&#039; + b y = 0?) then (yes)&lt;br /&gt;
        :Characteristic equation\nr² + a r + b = 0;&lt;br /&gt;
      else (no)&lt;br /&gt;
        if (Linear PDE on a simple shape,\ne.g. the heat equation?) then (yes)&lt;br /&gt;
          :Separate variables\nu(x,t) = X(x) T(t);&lt;br /&gt;
        else (no)&lt;br /&gt;
          if (Are approximate numbers enough?) then (yes)&lt;br /&gt;
            :Numerical stepping\n(Euler&#039;s method);&lt;br /&gt;
          else (no)&lt;br /&gt;
            if (Linear?) then (yes)&lt;br /&gt;
              :Power series or Laplace transform;&lt;br /&gt;
            else (no)&lt;br /&gt;
              :Qualitative study:\nequilibria, stability, chaos;&lt;br /&gt;
            endif&lt;br /&gt;
          endif&lt;br /&gt;
        endif&lt;br /&gt;
      endif&lt;br /&gt;
    endif&lt;br /&gt;
  endif&lt;br /&gt;
endif&lt;br /&gt;
stop&lt;br /&gt;
@enduml&lt;br /&gt;
&amp;lt;/uml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== A short history ==&lt;br /&gt;
&lt;br /&gt;
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 &#039;&#039;Principia&#039;&#039; 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&#039;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.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Isaac Newton portrait.jpg|thumb|left|Isaac Newton (portrait after Godfrey Kneller, 1689). The laws of motion and of gravitation published in the &#039;&#039;Principia&#039;&#039; (1687) are differential equations. Credit: James Thronill after Godfrey Kneller (public domain).]]&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Leonhard Euler portrait.jpg|thumb|Leonhard Euler (portrait by Jakob Emanuel Handmann, 1753). Credit: Jakob Emanuel Handmann (public domain).]]&lt;br /&gt;
&lt;br /&gt;
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&#039;Alembert|Jean le Rond d&#039;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 &#039;&#039;Théorie analytique de la chaleur&#039;&#039; 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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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&#039;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.&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Differential_equation Differential equation], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/DifferentialEquation.html Differential Equation], Wolfram MathWorld&lt;br /&gt;
* [https://ocw.mit.edu/courses/18-03sc-differential-equations-fall-2011/ 18.03SC Differential Equations], MIT OpenCourseWare&lt;br /&gt;
* [https://mathshistory.st-andrews.ac.uk/Biographies/Euler/ Leonhard Euler], MacTutor History of Mathematics&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7462</id>
		<title>Differential equation</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7462"/>
		<updated>2026-09-05T19:13:23Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: AI-assisted (RonzzWikiCowriter): reorganise the analytical-methods section by class — first-order ODE methods (separable, integrating factor), second-order ODE methods (direct integration, constant coefficients), PDE methods (separation of variables) — each with general case then concrete numeric example; add a falling-with-air-resistance example under the integrating factor. (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;A differential equation&#039;&#039;&#039; is an equation whose unknown is a function and which also involves that function&#039;s derivatives (rates of change). Where an ordinary equation such as $x^2=9$ is solved by numbers, a differential equation such as $y&#039;+2y=0$ is solved by functions $y(x)$. Laws of nature state how quantities change, so differential equations describe pendulums, cooling drinks, growing populations, and discharging capacitors. This article covers the standard analytical solution methods, by class of equation, each stated in general and then demonstrated on a concrete numerical example, and the numerical, series, and qualitative routes used when no exact formula exists. It treats &#039;&#039;&#039;ordinary differential equations&#039;&#039;&#039; (one independent variable) and, briefly, &#039;&#039;&#039;partial differential equations&#039;&#039;&#039; (several).&lt;br /&gt;
&lt;br /&gt;
== A first example: slopes and a family of solutions ==&lt;br /&gt;
&lt;br /&gt;
The simplest differential equation prescribes the slope of a function $y(x)$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}=2x$$&lt;br /&gt;
&lt;br /&gt;
Integration inverts differentiation, so integrating both sides gives&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{dx}\,dx=\int 2x\,dx\qquad\Longrightarrow\qquad y(x)=x^{2}+C$$&lt;br /&gt;
&lt;br /&gt;
Every $C$ works, since $\frac{d}{dx}\left(x^2+C\right)=2x$; the solutions form the parabola family $y=x^2+C$, the &#039;&#039;&#039;general solution&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If $y(0)=3$, then&lt;br /&gt;
&lt;br /&gt;
$$3=0^2+C\qquad\Longrightarrow\qquad C=3\qquad\Longrightarrow\qquad y=x^2+3$$&lt;br /&gt;
&lt;br /&gt;
A prescribed value such as this is an &#039;&#039;&#039;initial condition&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Classifying differential equations ==&lt;br /&gt;
&lt;br /&gt;
Three features decide how to solve an equation: its &#039;&#039;&#039;order&#039;&#039;&#039;, its &#039;&#039;&#039;linearity&#039;&#039;&#039;, and how many independent variables it involves.&lt;br /&gt;
&lt;br /&gt;
=== Order ===&lt;br /&gt;
&lt;br /&gt;
The order is the order of the highest derivative present. $dy/dx=2x$ is first order; Newton&#039;s second law,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1583}}&lt;br /&gt;
&lt;br /&gt;
is second order ($x(t)$ position of mass $m$, $F$ net force). Integration introduces one arbitrary constant per integration, so the general solution of an nth-order equation carries $n$ constants, fixed by $n$ initial conditions. For equations of the special form $y^{(n)}=f(x)$ the constants appear exactly as the integration constants of $n$ successive integrations; the free-fall example in the second-order section below works this out for $n=2$.&lt;br /&gt;
&lt;br /&gt;
=== Linearity and homogeneity ===&lt;br /&gt;
&lt;br /&gt;
An equation is &#039;&#039;&#039;linear&#039;&#039;&#039; 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&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
and is &#039;&#039;&#039;homogeneous&#039;&#039;&#039; 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$).&lt;br /&gt;
&lt;br /&gt;
If $y_1,y_2$ solve a homogeneous linear equation, so does $c_1y_1+c_2y_2$ (the &#039;&#039;&#039;superposition principle&#039;&#039;&#039;): substituting the combination adds the two expressions that already vanish. For a nonlinear equation the combination does not generally solve it: if $y_1&#039;=y_1^2$ and $y_2&#039;=y_2^2$, then&lt;br /&gt;
&lt;br /&gt;
$$(y_1+y_2)&#039;=y_1^2+y_2^2\neq (y_1+y_2)^2$$&lt;br /&gt;
&lt;br /&gt;
so $y_1+y_2$ does not solve $y&#039;=y^2$.&lt;br /&gt;
&lt;br /&gt;
=== Ordinary and partial ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;ordinary differential equation&#039;&#039;&#039; (ODE) has one independent variable. A &#039;&#039;&#039;partial differential equation&#039;&#039;&#039; (PDE) has several, with partial derivatives. For example, the temperature $u(x,t)$ of an insulated metal bar, which depends on position $x$ and time $t$, obeys the heat equation&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1590}}&lt;br /&gt;
&lt;br /&gt;
where $\alpha$ is the thermal diffusivity.&lt;br /&gt;
&lt;br /&gt;
== Slope fields ==&lt;br /&gt;
&lt;br /&gt;
A first-order equation can be written&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1581}}&lt;br /&gt;
&lt;br /&gt;
assigning to each point $(x,y)$ the slope $f(x,y)$ a solution must have there. Drawing short segments of that slope gives a &#039;&#039;&#039;direction field&#039;&#039;&#039;; solution curves run tangent to it.&lt;br /&gt;
&lt;br /&gt;
[[File:Slope field of exponential growth.png|thumb|Direction field of $dy/dx=y$. Credit: jjbeard (public domain).]]&lt;br /&gt;
&lt;br /&gt;
Numerical methods such as [[Euler&#039;s method]] follow the field: read the slope, step a short distance along it, repeat.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving differential equations ==&lt;br /&gt;
&lt;br /&gt;
There is no formula that solves every differential equation. The practical route is to recognise the class of the equation and apply that class&#039;s method. For first-order ODEs there are two standard classes, separable and linear; for second-order ODEs there are two more, equations reducible to direct integration and linear equations with constant coefficients; for linear PDEs on simple domains the standard tool is separation of variables. Each method below is stated for its general case and then applied to a concrete numerical example. When an equation fits none of these classes, it is treated by the numerical, series, or qualitative methods summarised at the end of this section.&lt;br /&gt;
&lt;br /&gt;
=== First-order ODEs ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1: separable equations ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; A first-order equation is &#039;&#039;&#039;separable&#039;&#039;&#039; when the right-hand side factors into a function of $x$ alone times a function of $y$ alone:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1612}}&lt;br /&gt;
&lt;br /&gt;
Divide both sides by $h(y)$ and integrate: all the $y$&#039;s land on one side and all the $x$&#039;s on the other, and if the two integrals can be evaluated the resulting relation between $y$ and $x$ is the general solution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: exponential growth and decay.&#039;&#039;&#039; When a quantity changes at a rate proportional to its own size — a bank balance earning interest, a population with unlimited food, a radioactive sample — the equation is separable with $g(t)=k$, $h(y)=y$:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1584}}&lt;br /&gt;
&lt;br /&gt;
Divide by $y$ and integrate:&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{y}=\int k\,dt\qquad\Longrightarrow\qquad \ln|y|=kt+C$$&lt;br /&gt;
&lt;br /&gt;
Exponentiating, $|y|=e^C e^{kt}$. The sign of $y$ never changes, so absorbing it into the constant and writing $y(0)=y_0$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1585}}&lt;br /&gt;
&lt;br /&gt;
Numbers: €1000 at 5% interest compounded continuously ($k=0.05\ \text{yr}^{-1}$) gives $y(t)=1000\,e^{0.05t}$, and&lt;br /&gt;
&lt;br /&gt;
$$y(10)=1000\,e^{0.5}\approx 1648.7$$&lt;br /&gt;
&lt;br /&gt;
Doubling time: $1000\,e^{0.05t}=2000\Rightarrow t=\ln 2/0.05\approx 13.9$ years. For $k&amp;lt;0$ the same solution describes decay; the &#039;&#039;&#039;half-life&#039;&#039;&#039; $y=y_0/2$ is $t_{1/2}=(\ln 2)/(-k)$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: Newton&#039;s law of cooling.&#039;&#039;&#039; A body hotter than its surroundings cools at a rate proportional to the temperature gap, which makes the equation separable:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1586}}&lt;br /&gt;
&lt;br /&gt;
Separate and integrate:&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dT}{T-T_a}=\int-k\,dt\qquad\Longrightarrow\qquad \ln|T-T_a|=-kt+C$$&lt;br /&gt;
&lt;br /&gt;
Exponentiating and folding the (constant-sign) factor $T-T_a$ into the constant, with $T(0)=T_0$:&lt;br /&gt;
&lt;br /&gt;
$$T(t)=T_a+(T_0-T_a)e^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
The gap $T-T_a$ decays exponentially; $T$ itself does not. Example: a drink at $80\,^{\circ}\mathrm{C}$ in a $20\,^{\circ}\mathrm{C}$ room, $k=0.1\ \text{min}^{-1}$:&lt;br /&gt;
&lt;br /&gt;
$$T(t)=20+60\,e^{-0.1t}$$&lt;br /&gt;
&lt;br /&gt;
Reaches $40\,^{\circ}\mathrm{C}$ when $20+60e^{-0.1t}=40$, i.e. $t=10\ln 3\approx 11$ min.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Method 2: linear first-order equations (integrating factor) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; Many first-order equations are linear but not separable. A linear first-order equation has the form&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
and is solved by multiplying both sides by the &#039;&#039;&#039;integrating factor&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
$$\mu(x)=e^{\int p(x)\,dx}$$&lt;br /&gt;
&lt;br /&gt;
so that the left-hand side collapses into a single derivative:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1613}}&lt;br /&gt;
&lt;br /&gt;
Both sides then integrate directly, giving the general solution&lt;br /&gt;
&lt;br /&gt;
$$y(x)=\frac{1}{\mu(x)}\left(\int \mu(x)\,q(x)\,dx + C\right)$$&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration:&#039;&#039;&#039; solve $y&#039;+y=e^{-x}$. Here $p=1$, $\mu=e^x$, and&lt;br /&gt;
&lt;br /&gt;
$$e^x y&#039;+e^x y=1\qquad\Longrightarrow\qquad (e^x y)&#039;=1\qquad\Longrightarrow\qquad e^x y=x+C\qquad\Longrightarrow\qquad y=(x+C)e^{-x}$$&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1607}}&lt;br /&gt;
&lt;br /&gt;
The condition $y(0)=2$ gives $C=2$.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: falling with air resistance.&#039;&#039;&#039; A falling body of mass $m$ is pulled down by gravity $mg$ and slowed by air drag proportional to its speed, $-bv$. Newton&#039;s second law gives the linear first-order equation&lt;br /&gt;
&lt;br /&gt;
$$m\frac{dv}{dt}=mg-bv\qquad\Longrightarrow\qquad \frac{dv}{dt}+\frac{b}{m}\,v=g$$&lt;br /&gt;
&lt;br /&gt;
Here $p=b/m$ and $q=g$, both constant, so $\mu=e^{(b/m)t}$ and&lt;br /&gt;
&lt;br /&gt;
$$\frac{d}{dt}\left(e^{(b/m)t}v\right)=g\,e^{(b/m)t}\qquad\Longrightarrow\qquad e^{(b/m)t}v=\frac{mg}{b}e^{(b/m)t}+C$$&lt;br /&gt;
&lt;br /&gt;
hence, with $v(0)=0$,&lt;br /&gt;
&lt;br /&gt;
$$v(t)=\frac{mg}{b}\left(1-e^{-(b/m)t}\right)$$&lt;br /&gt;
&lt;br /&gt;
As $t$ grows the exponential fades and the speed approaches the constant terminal velocity $mg/b$. Numbers: a skydiver of $m=70\ \mathrm{kg}$ with $b=14\ \mathrm{kg\,s^{-1}}$ has $mg/b = 70\times9.8/14 = 49\ \mathrm{m\,s^{-1}}$ and $b/m = 0.2\ \mathrm{s^{-1}}$, so&lt;br /&gt;
&lt;br /&gt;
$$v(t)=49\left(1-e^{-0.2t}\right)\ \mathrm{m\,s^{-1}}$$&lt;br /&gt;
&lt;br /&gt;
After 5 seconds $v=49(1-e^{-1})\approx 31\ \mathrm{m\,s^{-1}}$; after 10 seconds $v=49(1-e^{-2})\approx 42\ \mathrm{m\,s^{-1}}$; the terminal $49\ \mathrm{m\,s^{-1}}$ is approached but never quite reached.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Second-order ODEs ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1: direct integration ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; When the equation has the form $y&#039;&#039;=f(x)$, with the right-hand side depending only on the independent variable, each derivative is undone by one integration:&lt;br /&gt;
&lt;br /&gt;
$$y&#039;&#039;=f(x)\qquad\Longrightarrow\qquad y&#039;=\int f(x)\,dx+C_1\qquad\Longrightarrow\qquad y=\int\!\!\left(\int f(x)\,dx\right)dx+C_1 x+C_2$$&lt;br /&gt;
&lt;br /&gt;
The two constants are fixed by two conditions, typically the initial value and the initial derivative (see the discussion of order above). The same pattern applies to $y^{(n)}=f(x)$ with $n$ integrations and $n$ constants.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: free fall.&#039;&#039;&#039; With only gravity acting, the height $x(t)$ of a falling object obeys $x&#039;&#039;=-g$. Integrating twice,&lt;br /&gt;
&lt;br /&gt;
$$\frac{dx}{dt}=-gt+v_0\qquad\Longrightarrow\qquad x(t)=-\frac{g}{2}t^2+v_0 t+x_0$$&lt;br /&gt;
&lt;br /&gt;
where $v_0$ and $x_0$ are the speed and height at $t=0$. A ball dropped from rest ($v_0=0$) at height $19.6\ \mathrm{m}$ reaches the ground, $x=0$, when&lt;br /&gt;
&lt;br /&gt;
$$0=19.6-4.9\,t^{2}\qquad\Longrightarrow\qquad t=\sqrt{19.6/4.9}=2\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
The two initial conditions have fixed the whole trajectory.&lt;br /&gt;
&lt;br /&gt;
==== Method 2: linear equations with constant coefficients ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; The equation&lt;br /&gt;
&lt;br /&gt;
$$y&#039;&#039;+a\,y&#039;+b\,y=0$$&lt;br /&gt;
&lt;br /&gt;
models a mass on a spring, a small-angle pendulum, and an RLC circuit. Its solutions are exponentials: try $y=e^{rx}$. Since $y&#039;=re^{rx}$ and $y&#039;&#039;=r^2e^{rx}$, substitution gives&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1644}}&lt;br /&gt;
&lt;br /&gt;
The factor $e^{rx}$ is never zero, so the exponential solves the equation exactly when $r$ solves the algebraic &#039;&#039;&#039;characteristic equation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
$$r^2+ar+b=0$$&lt;br /&gt;
&lt;br /&gt;
whose roots determine the general solution:&lt;br /&gt;
&lt;br /&gt;
* distinct real roots $r_1\neq r_2$: $y=C_1e^{r_1x}+C_2e^{r_2x}$;&lt;br /&gt;
* one repeated root $r$: $y=(C_1+C_2x)e^{rx}$;&lt;br /&gt;
* complex pair $r=\alpha\pm i\beta$: $y=e^{\alpha x}(C_1\cos\beta x+C_2\sin\beta x)$.&lt;br /&gt;
&lt;br /&gt;
If the equation has a nonzero right-hand side, $y&#039;&#039;+ay&#039;+by=f(x)$, the superposition principle gives $y=y_p+y_h$, where $y_h$ is the general homogeneous solution above and $y_p$ is any single solution of the full equation.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Worked demonstration:&#039;&#039;&#039; solve $y&#039;&#039;-3y&#039;+2y=0$. The characteristic equation $r^2-3r+2=(r-1)(r-2)=0$ has the two distinct real roots $1$ and $2$, so&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1608}}&lt;br /&gt;
&lt;br /&gt;
Check: for $y=e^x$, $y&#039;&#039;-3y&#039;+2y=(1-3+2)e^x=0$.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example: the harmonic oscillator (a mass on a spring).&#039;&#039;&#039; A mass displaced $x$ from rest is pulled back by $-kx$ (Hooke&#039;s law), so Newton&#039;s second law gives&lt;br /&gt;
&lt;br /&gt;
$$m\frac{d^2x}{dt^2}=-kx\qquad\Longrightarrow\qquad x&#039;&#039;+\frac{k}{m}x=0$$&lt;br /&gt;
&lt;br /&gt;
Writing $\omega_0^2=k/m$ gives the &#039;&#039;&#039;harmonic oscillator equation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1588}}&lt;br /&gt;
&lt;br /&gt;
whose characteristic equation $r^2+\omega_0^2=0$ has the purely imaginary roots $r=\pm i\omega_0$, the complex-pair case with $\alpha=0$. Since $\frac{d^2}{dt^2}\cos\omega_0 t=-\omega_0^2\cos\omega_0 t$, and likewise for sine, superposition gives&lt;br /&gt;
&lt;br /&gt;
$$x(t)=A\cos\omega_0 t+B\sin\omega_0 t$$&lt;br /&gt;
&lt;br /&gt;
with $A,B$ fixed by the initial position and velocity.&lt;br /&gt;
&lt;br /&gt;
[[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).]]&lt;br /&gt;
&lt;br /&gt;
Numbers: $m=2\ \mathrm{kg}$, $k=8\ \mathrm{N/m}$, so $\omega_0=\sqrt{8/2}=2\ \text{rad/s}$. Pulled $10\ \mathrm{cm}$ out and released from rest, $B=0$ and $x(t)=0.10\cos 2t$ metres. The period is&lt;br /&gt;
&lt;br /&gt;
$$P=\frac{2\pi}{\omega_0}=\pi\approx 3.14\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
and after one second&lt;br /&gt;
&lt;br /&gt;
$$x(1)=0.10\cos 2\approx 0.10(-0.416)\approx -0.042\ \text{m}$$&lt;br /&gt;
&lt;br /&gt;
Such fixed-amplitude sinusoidal motion is &#039;&#039;&#039;simple harmonic motion&#039;&#039;&#039;.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Partial differential equations ===&lt;br /&gt;
&lt;br /&gt;
==== Method 1: separation of variables (the heat equation) ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;General case.&#039;&#039;&#039; For a linear PDE on a simple domain, look for a solution that is a product of functions of the separate independent variables, $u(x,t)=X(x)T(t)$. Substituting splits the PDE into two linked ordinary equations; boundary conditions pick out which solutions survive; and superposition of those basic solutions then gives the general solution.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Application.&#039;&#039;&#039; Solve the heat equation on a bar of length $L$ with insulated sides and both ends held at $0$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{\partial u}{\partial t}=\alpha\frac{\partial^2u}{\partial x^2}$$&lt;br /&gt;
&lt;br /&gt;
Seek $u(x,t)=X(x)T(t)$. Substituting gives $XT&#039;=\alpha X&#039;&#039;T$; dividing by $\alpha XT$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1622}}&lt;br /&gt;
&lt;br /&gt;
The left side depends only on $t$ and the right only on $x$, so both must equal one and the same constant, written $-\lambda$. Each side is now an ODE:&lt;br /&gt;
&lt;br /&gt;
$$T&#039;=-\alpha\lambda T\qquad\Longrightarrow\qquad T=e^{-\alpha\lambda t}$$&lt;br /&gt;
&lt;br /&gt;
$$X&#039;&#039;=-\lambda X\qquad\Longrightarrow\qquad X=A\cos(\sqrt{\lambda}\,x)+B\sin(\sqrt{\lambda}\,x)$$&lt;br /&gt;
&lt;br /&gt;
The end conditions $u(0,t)=u(L,t)=0$ force $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 allowed value $\lambda=(n\pi/L)^2$ gives one basic solution, a mode&lt;br /&gt;
&lt;br /&gt;
$$u_n(x,t)=\sin\frac{n\pi x}{L}\,e^{-\alpha(n\pi/L)^2t}$$&lt;br /&gt;
&lt;br /&gt;
The equation is linear and homogeneous, so superposition applies and the general solution is&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1611}}&lt;br /&gt;
&lt;br /&gt;
with the $b_n$ fixed by the initial profile $u(x,0)$ (a Fourier sine series). The decay rate $\alpha(n\pi/L)^2$ grows as $n^2$, so higher modes die out first.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Numbers:&#039;&#039;&#039; a $1\ \mathrm{m}$ iron bar, $\alpha\approx 2.3\times10^{-5}\ \mathrm{m^2s^{-1}}$, heated so $u(x,0)=100\sin(\pi x/L)$ (ends at $0\,^{\circ}\mathrm{C}$, centre $100\,^{\circ}\mathrm{C}$). Only the $n=1$ mode is present:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=100\sin\frac{\pi x}{L}\,e^{-\alpha\pi^2t/L^2}$$&lt;br /&gt;
&lt;br /&gt;
At the centre, with $L=1$ and $\alpha\pi^2\approx 2.3\times10^{-4}\ \text{s}^{-1}$,&lt;br /&gt;
&lt;br /&gt;
$$u\!\left(\tfrac12,t\right)=100\,e^{-2.3\times10^{-4}t}$$&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== When no formula exists ===&lt;br /&gt;
&lt;br /&gt;
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:&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Numerically&#039;&#039;&#039;, when numbers suffice: [[Euler&#039;s method]] steps along the slope field;&lt;br /&gt;
* &#039;&#039;&#039;[[Qualitative methods]]&#039;&#039;&#039;: equilibria, stability and long-term behaviour, without formulas;&lt;br /&gt;
* &#039;&#039;&#039;Series and transforms&#039;&#039;&#039;, for linear cases: [[Power series]] or the [[Laplace transform]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;uml type=&amp;quot;uml&amp;quot;&amp;gt;&lt;br /&gt;
@startuml&lt;br /&gt;
skinparam monochrome true&lt;br /&gt;
start&lt;br /&gt;
:You have a differential equation;&lt;br /&gt;
if (First order and separable?\ny&#039; = g(x) h(y)?) then (yes)&lt;br /&gt;
  :Separate and integrate:\n∫ dy/h(y) = ∫ g(x) dx;&lt;br /&gt;
else (no)&lt;br /&gt;
  if (First order and linear?\ny&#039; + p(x) y = q(x)?) then (yes)&lt;br /&gt;
    :Integrating factor\nμ = e^{∫ p dx};&lt;br /&gt;
  else (no)&lt;br /&gt;
    if (Second order, of the form\ny&#039;&#039; = f(x)?) then (yes)&lt;br /&gt;
      :Integrate twice;&lt;br /&gt;
    else (no)&lt;br /&gt;
      if (Second order, linear, constant coefficients?\ny&#039;&#039; + a y&#039; + b y = 0?) then (yes)&lt;br /&gt;
        :Characteristic equation\nr² + a r + b = 0;&lt;br /&gt;
      else (no)&lt;br /&gt;
        if (Linear PDE on a simple shape,\ne.g. the heat equation?) then (yes)&lt;br /&gt;
          :Separate variables\nu(x,t) = X(x) T(t);&lt;br /&gt;
        else (no)&lt;br /&gt;
          if (Are approximate numbers enough?) then (yes)&lt;br /&gt;
            :Numerical stepping\n(Euler&#039;s method);&lt;br /&gt;
          else (no)&lt;br /&gt;
            if (Linear?) then (yes)&lt;br /&gt;
              :Power series or Laplace transform;&lt;br /&gt;
            else (no)&lt;br /&gt;
              :Qualitative study:\nequilibria, stability, chaos;&lt;br /&gt;
            endif&lt;br /&gt;
          endif&lt;br /&gt;
        endif&lt;br /&gt;
      endif&lt;br /&gt;
    endif&lt;br /&gt;
  endif&lt;br /&gt;
endif&lt;br /&gt;
stop&lt;br /&gt;
@enduml&lt;br /&gt;
&amp;lt;/uml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== A short history ==&lt;br /&gt;
&lt;br /&gt;
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 &#039;&#039;Principia&#039;&#039; 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&#039;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.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Isaac Newton portrait.jpg|thumb|left|Isaac Newton (portrait after Godfrey Kneller, 1689). The laws of motion and of gravitation published in the &#039;&#039;Principia&#039;&#039; (1687) are differential equations. Credit: James Thronill after Godfrey Kneller (public domain).]]&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Leonhard Euler portrait.jpg|thumb|Leonhard Euler (portrait by Jakob Emanuel Handmann, 1753). Credit: Jakob Emanuel Handmann (public domain).]]&lt;br /&gt;
&lt;br /&gt;
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&#039;Alembert|Jean le Rond d&#039;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 &#039;&#039;Théorie analytique de la chaleur&#039;&#039; 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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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&#039;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.&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Differential_equation Differential equation], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/DifferentialEquation.html Differential Equation], Wolfram MathWorld&lt;br /&gt;
* [https://ocw.mit.edu/courses/18-03sc-differential-equations-fall-2011/ 18.03SC Differential Equations], MIT OpenCourseWare&lt;br /&gt;
* [https://mathshistory.st-andrews.ac.uk/Biographies/Euler/ Leonhard Euler], MacTutor History of Mathematics&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7461</id>
		<title>Differential equation</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7461"/>
		<updated>2026-09-05T19:01:59Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: AI-assisted (RonzzWikiCowriter): restore the full history section and strip the narrator prose that restates what the demonstrations show; derivations and worked examples carry the explanation. (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;A differential equation&#039;&#039;&#039; is an equation whose unknown is a function and which also involves that function&#039;s derivatives (rates of change). Where an ordinary equation such as $x^2=9$ is solved by numbers, a differential equation such as $y&#039;+2y=0$ is solved by functions $y(x)$. Laws of nature state how quantities change, so differential equations describe pendulums, cooling drinks, growing populations, and discharging capacitors. This article covers the standard exact solution methods, each with a worked numerical example, and the numerical, series, and qualitative routes used when no exact formula exists. It treats &#039;&#039;&#039;ordinary differential equations&#039;&#039;&#039; (one independent variable) and, briefly, &#039;&#039;&#039;partial differential equations&#039;&#039;&#039; (several).&lt;br /&gt;
&lt;br /&gt;
== A first example: slopes and a family of solutions ==&lt;br /&gt;
&lt;br /&gt;
The simplest differential equation prescribes the slope of a function $y(x)$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}=2x$$&lt;br /&gt;
&lt;br /&gt;
Integration inverts differentiation, so integrating both sides gives&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{dx}\,dx=\int 2x\,dx\qquad\Longrightarrow\qquad y(x)=x^{2}+C$$&lt;br /&gt;
&lt;br /&gt;
Every $C$ works, since $\frac{d}{dx}\left(x^2+C\right)=2x$; the solutions form the parabola family $y=x^2+C$, the &#039;&#039;&#039;general solution&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If $y(0)=3$, then&lt;br /&gt;
&lt;br /&gt;
$$3=0^2+C\qquad\Longrightarrow\qquad C=3\qquad\Longrightarrow\qquad y=x^2+3$$&lt;br /&gt;
&lt;br /&gt;
A prescribed value such as this is an &#039;&#039;&#039;initial condition&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Classifying differential equations ==&lt;br /&gt;
&lt;br /&gt;
Three features decide how to solve an equation: its &#039;&#039;&#039;order&#039;&#039;&#039;, its &#039;&#039;&#039;linearity&#039;&#039;&#039;, and how many independent variables it involves.&lt;br /&gt;
&lt;br /&gt;
=== Order ===&lt;br /&gt;
&lt;br /&gt;
The order is the order of the highest derivative present. $dy/dx=2x$ is first order; Newton&#039;s second law,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1583}}&lt;br /&gt;
&lt;br /&gt;
is second order ($x(t)$ position of mass $m$, $F$ net force). Each integration introduces one arbitrary constant, so the general solution of an nth-order equation carries $n$ of them, fixed by $n$ initial conditions. For $n=2$, free fall with only gravity $F_g=-mg$ gives, by Newton&#039;s second law,&lt;br /&gt;
&lt;br /&gt;
$$m\frac{d^{2}x}{dt^{2}}=-mg\qquad\Longrightarrow\qquad\frac{d^{2}x}{dt^{2}}=-g\qquad(g\approx 9.8\ \mathrm{m\,s^{-2}})$$&lt;br /&gt;
&lt;br /&gt;
Integrating once introduces $v_0$, the speed at $t=0$; a second integration introduces $x_0$, the height at $t=0$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{dx}{dt}=-gt+v_{0}\qquad\Longrightarrow\qquad x(t)=-\frac{g}{2}t^{2}+v_{0}t+x_{0}$$&lt;br /&gt;
&lt;br /&gt;
A ball dropped from rest ($v_0=0$) at height $19.6\ \mathrm{m}$ reaches the ground, $x=0$, when&lt;br /&gt;
&lt;br /&gt;
$$0=19.6-4.9\,t^{2}\qquad\Longrightarrow\qquad t=\sqrt{19.6/4.9}=2\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
=== Linearity and homogeneity ===&lt;br /&gt;
&lt;br /&gt;
An equation is &#039;&#039;&#039;linear&#039;&#039;&#039; 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&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
and is &#039;&#039;&#039;homogeneous&#039;&#039;&#039; 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$).&lt;br /&gt;
&lt;br /&gt;
If $y_1,y_2$ solve a homogeneous linear equation, so does $c_1y_1+c_2y_2$ (the &#039;&#039;&#039;superposition principle&#039;&#039;&#039;): substituting the combination adds the two expressions that already vanish. For a nonlinear equation the combination does not generally solve it: if $y_1&#039;=y_1^2$ and $y_2&#039;=y_2^2$, then&lt;br /&gt;
&lt;br /&gt;
$$(y_1+y_2)&#039;=y_1^2+y_2^2\neq (y_1+y_2)^2$$&lt;br /&gt;
&lt;br /&gt;
so $y_1+y_2$ does not solve $y&#039;=y^2$.&lt;br /&gt;
&lt;br /&gt;
=== Ordinary and partial ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;ordinary differential equation&#039;&#039;&#039; (ODE) has one independent variable. A &#039;&#039;&#039;partial differential equation&#039;&#039;&#039; (PDE) has several, with partial derivatives. For example, the temperature $u(x,t)$ of an insulated metal bar, which depends on position $x$ and time $t$, obeys the heat equation&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1590}}&lt;br /&gt;
&lt;br /&gt;
where $\alpha$ is the thermal diffusivity.&lt;br /&gt;
&lt;br /&gt;
== Slope fields ==&lt;br /&gt;
&lt;br /&gt;
A first-order equation can be written&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1581}}&lt;br /&gt;
&lt;br /&gt;
assigning to each point $(x,y)$ the slope $f(x,y)$ a solution must have there. Drawing short segments of that slope gives a &#039;&#039;&#039;direction field&#039;&#039;&#039;; solution curves run tangent to it.&lt;br /&gt;
&lt;br /&gt;
[[File:Slope field of exponential growth.png|thumb|Direction field of $dy/dx=y$. Credit: jjbeard (public domain).]]&lt;br /&gt;
&lt;br /&gt;
Numerical methods such as [[Euler&#039;s method]] follow the field: read the slope, step a short distance along it, repeat.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving differential equations ==&lt;br /&gt;
&lt;br /&gt;
=== Separation of variables ===&lt;br /&gt;
&lt;br /&gt;
A first-order equation is &#039;&#039;&#039;separable&#039;&#039;&#039; when the right-hand side factors into a function of $x$ times a function of $y$:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1612}}&lt;br /&gt;
&lt;br /&gt;
Divide by $h(y)$ and integrate; all $y$&#039;s land on one side, all $x$&#039;s on the other.&lt;br /&gt;
&lt;br /&gt;
==== Exponential growth and decay ====&lt;br /&gt;
&lt;br /&gt;
When a quantity changes at a rate proportional to its own size,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1584}}&lt;br /&gt;
&lt;br /&gt;
divide by $y$ and integrate:&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{y}=\int k\,dt\qquad\Longrightarrow\qquad \ln|y|=kt+C$$&lt;br /&gt;
&lt;br /&gt;
Exponentiating, $|y|=e^C e^{kt}$. The sign of $y$ never changes, so absorbing it into the constant and writing $y(0)=y_0$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1585}}&lt;br /&gt;
&lt;br /&gt;
With numbers: €1000 at 5% interest compounded continuously ($k=0.05\ \text{yr}^{-1}$) gives $y(t)=1000\,e^{0.05t}$, and&lt;br /&gt;
&lt;br /&gt;
$$y(10)=1000\,e^{0.5}\approx 1648.7$$&lt;br /&gt;
&lt;br /&gt;
Doubling time: $1000\,e^{0.05t}=2000\Rightarrow t=\ln 2/0.05\approx 13.9$ years. For $k&amp;lt;0$ the same solution describes decay; the &#039;&#039;&#039;half-life&#039;&#039;&#039; $y=y_0/2$ is $t_{1/2}=(\ln 2)/(-k)$.&lt;br /&gt;
&lt;br /&gt;
==== Newton&#039;s law of cooling ====&lt;br /&gt;
&lt;br /&gt;
A body hotter than its surroundings cools at a rate proportional to the temperature gap:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1586}}&lt;br /&gt;
&lt;br /&gt;
Separate and integrate:&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dT}{T-T_a}=\int-k\,dt\qquad\Longrightarrow\qquad \ln|T-T_a|=-kt+C$$&lt;br /&gt;
&lt;br /&gt;
Exponentiating and folding the (constant-sign) factor $T-T_a$ into the constant, with $T(0)=T_0$:&lt;br /&gt;
&lt;br /&gt;
$$T(t)=T_a+(T_0-T_a)e^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
The gap $T-T_a$ decays exponentially; $T$ itself does not. Example: a drink at $80\,^{\circ}\mathrm{C}$ in a $20\,^{\circ}\mathrm{C}$ room, $k=0.1\ \text{min}^{-1}$:&lt;br /&gt;
&lt;br /&gt;
$$T(t)=20+60\,e^{-0.1t}$$&lt;br /&gt;
&lt;br /&gt;
Reaches $40\,^{\circ}\mathrm{C}$ when $20+60e^{-0.1t}=40$, i.e. $t=10\ln 3\approx 11$ min.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== First-order linear equations: the integrating factor ===&lt;br /&gt;
&lt;br /&gt;
If $y&#039;+p(x)y=q(x)$ is not separable, multiply by $\mu(x)$ chosen so the left side is a single product derivative $(\mu y)&#039;$. The product rule gives $(\mu y)&#039;=\mu y&#039;+\mu&#039; y$, while multiplying the equation by $\mu$ gives $\mu y&#039;+\mu p\,y$; matching coefficients requires $\mu&#039;=p\mu$, whose solution is&lt;br /&gt;
&lt;br /&gt;
$$\mu(x)=e^{\int p(x)\,dx}$$&lt;br /&gt;
&lt;br /&gt;
Multiplying the equation by $\mu$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1613}}&lt;br /&gt;
&lt;br /&gt;
both sides integrate directly:&lt;br /&gt;
&lt;br /&gt;
$$\mu(x)\,y=\int\mu(x)\,q(x)\,dx+C$$&lt;br /&gt;
&lt;br /&gt;
Example: $y&#039;+y=e^{-x}$. Here $p=1$, $\mu=e^x$, and&lt;br /&gt;
&lt;br /&gt;
$$e^x y&#039;+e^x y=1\qquad\Longrightarrow\qquad (e^x y)&#039;=1\qquad\Longrightarrow\qquad e^x y=x+C\qquad\Longrightarrow\qquad y=(x+C)e^{-x}$$&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1607}}&lt;br /&gt;
&lt;br /&gt;
The condition $y(0)=2$ gives $C=2$.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Constant-coefficient linear equations of order two ===&lt;br /&gt;
&lt;br /&gt;
The equation $y&#039;&#039;+a\,y&#039;+b\,y=0$ (constant coefficients) models a mass on a spring, a small-angle pendulum, and an RLC circuit. It is solved by trying an exponential $y=e^{rx}$, since $y&#039;=re^{rx}$ and $y&#039;&#039;=r^2e^{rx}$:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1644}}&lt;br /&gt;
&lt;br /&gt;
Substituting gives $(r^2+ar+b)e^{rx}=0$, and $e^{rx}\neq 0$, so&lt;br /&gt;
&lt;br /&gt;
$$r^2+ar+b=0$$&lt;br /&gt;
&lt;br /&gt;
This is the &#039;&#039;&#039;characteristic equation&#039;&#039;&#039;; its roots determine the solution:&lt;br /&gt;
&lt;br /&gt;
* distinct real roots $r_1\neq r_2$: $y=C_1e^{r_1x}+C_2e^{r_2x}$;&lt;br /&gt;
* one repeated root $r$: $y=(C_1+C_2x)e^{rx}$;&lt;br /&gt;
* complex pair $r=\alpha\pm i\beta$: $y=e^{\alpha x}(C_1\cos\beta x+C_2\sin\beta x)$.&lt;br /&gt;
&lt;br /&gt;
Example ($y&#039;&#039;-3y&#039;+2y=0$): $r^2-3r+2=(r-1)(r-2)$, so&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1608}}&lt;br /&gt;
&lt;br /&gt;
Check: for $y=e^x$, $y&#039;&#039;-3y&#039;+2y=(1-3+2)e^x=0$.&lt;br /&gt;
&lt;br /&gt;
==== The harmonic oscillator (a mass on a spring) ====&lt;br /&gt;
&lt;br /&gt;
A mass displaced $x$ from rest is pulled back by $-kx$ (Hooke&#039;s law), so Newton&#039;s second law gives&lt;br /&gt;
&lt;br /&gt;
$$m\frac{d^2x}{dt^2}=-kx\qquad\Longrightarrow\qquad x&#039;&#039;+\frac{k}{m}x=0$$&lt;br /&gt;
&lt;br /&gt;
With $\omega_0^2=k/m$ this is the &#039;&#039;&#039;harmonic oscillator equation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1588}}&lt;br /&gt;
&lt;br /&gt;
Its characteristic equation $r^2+\omega_0^2=0$ has roots $\pm i\omega_0$, the complex case above with $\alpha=0$. Since $\frac{d^2}{dt^2}\cos\omega_0 t=-\omega_0^2\cos\omega_0 t$, and likewise for sine, superposition gives&lt;br /&gt;
&lt;br /&gt;
$$x(t)=A\cos\omega_0 t+B\sin\omega_0 t$$&lt;br /&gt;
&lt;br /&gt;
with $A,B$ fixed by the initial position and velocity.&lt;br /&gt;
&lt;br /&gt;
[[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).]]&lt;br /&gt;
&lt;br /&gt;
Example: $m=2\ \mathrm{kg}$, $k=8\ \mathrm{N/m}$, so $\omega_0=\sqrt{8/2}=2\ \text{rad/s}$. Pulled $10\ \mathrm{cm}$ out and released from rest, $B=0$ and $x(t)=0.10\cos 2t$ metres. The period is&lt;br /&gt;
&lt;br /&gt;
$$P=\frac{2\pi}{\omega_0}=\pi\approx 3.14\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
and after one second&lt;br /&gt;
&lt;br /&gt;
$$x(1)=0.10\cos 2\approx 0.10(-0.416)\approx -0.042\ \text{m}$$&lt;br /&gt;
&lt;br /&gt;
Such fixed-amplitude sinusoidal motion is &#039;&#039;&#039;simple harmonic motion&#039;&#039;&#039;.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Partial differential equations: separating variables in the heat equation ===&lt;br /&gt;
&lt;br /&gt;
Solve the heat equation on a bar of length $L$, insulated sides, ends held at $0$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{\partial u}{\partial t}=\alpha\frac{\partial^2u}{\partial x^2}$$&lt;br /&gt;
&lt;br /&gt;
Seek a product solution $u(x,t)=X(x)T(t)$. Substitution gives $XT&#039;=\alpha X&#039;&#039;T$; dividing by $\alpha XT$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1622}}&lt;br /&gt;
&lt;br /&gt;
The left side depends only on $t$, the right only on $x$, so both equal one constant, $-\lambda$:&lt;br /&gt;
&lt;br /&gt;
$$T&#039;=-\alpha\lambda T\qquad\Longrightarrow\qquad T=e^{-\alpha\lambda t}$$&lt;br /&gt;
&lt;br /&gt;
$$X&#039;&#039;=-\lambda X\qquad\Longrightarrow\qquad X=A\cos(\sqrt{\lambda}\,x)+B\sin(\sqrt{\lambda}\,x)$$&lt;br /&gt;
&lt;br /&gt;
The end conditions $u(0,t)=u(L,t)=0$ force $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 allowed $\lambda=(n\pi/L)^2$ gives one mode&lt;br /&gt;
&lt;br /&gt;
$$u_n(x,t)=\sin\frac{n\pi x}{L}\,e^{-\alpha(n\pi/L)^2t}$$&lt;br /&gt;
&lt;br /&gt;
The equation is linear and homogeneous, so superposition applies, and the general solution is&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1611}}&lt;br /&gt;
&lt;br /&gt;
with the $b_n$ fixed by the initial profile $u(x,0)$ (a Fourier sine series). The decay rate $\alpha(n\pi/L)^2$ grows as $n^2$, so higher modes die out first.&lt;br /&gt;
&lt;br /&gt;
Numbers: a $1\ \mathrm{m}$ iron bar, $\alpha\approx 2.3\times10^{-5}\ \mathrm{m^2s^{-1}}$, heated so $u(x,0)=100\sin(\pi x/L)$ (ends at $0\,^{\circ}\mathrm{C}$, centre $100\,^{\circ}\mathrm{C}$). Only $n=1$ is present:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=100\sin\frac{\pi x}{L}\,e^{-\alpha\pi^2t/L^2}$$&lt;br /&gt;
&lt;br /&gt;
At the centre, with $L=1$ and $\alpha\pi^2\approx 2.3\times10^{-4}\ \text{s}^{-1}$,&lt;br /&gt;
&lt;br /&gt;
$$u\!\left(\tfrac12,t\right)=100\,e^{-2.3\times10^{-4}t}$$&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== When no formula exists ===&lt;br /&gt;
&lt;br /&gt;
Most equations, especially nonlinear ones, have no solution in terms of familiar functions. They are studied in one of three ways:&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Numerically&#039;&#039;&#039;, when numbers suffice: [[Euler&#039;s method]] steps along the slope field;&lt;br /&gt;
* &#039;&#039;&#039;[[Qualitative methods]]&#039;&#039;&#039;: equilibria, stability and long-term behaviour, without formulas;&lt;br /&gt;
* &#039;&#039;&#039;Series and transforms&#039;&#039;&#039;, for linear cases: [[Power series]] or the [[Laplace transform]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;uml type=&amp;quot;uml&amp;quot;&amp;gt;&lt;br /&gt;
@startuml&lt;br /&gt;
skinparam monochrome true&lt;br /&gt;
start&lt;br /&gt;
:You have a differential equation;&lt;br /&gt;
if (First order and separable?\ny&#039; = g(x) h(y)?) then (yes)&lt;br /&gt;
  :Separate and integrate:\n∫ dy/h(y) = ∫ g(x) dx;&lt;br /&gt;
else (no)&lt;br /&gt;
  if (First order and linear?\ny&#039; + p(x) y = q(x)?) then (yes)&lt;br /&gt;
    :Integrating factor\nμ = e^{∫ p dx};&lt;br /&gt;
  else (no)&lt;br /&gt;
    if (Second order, linear, constant coefficients?\ny&#039;&#039; + a y&#039; + b y = 0?) then (yes)&lt;br /&gt;
      :Characteristic equation\nr² + a r + b = 0;&lt;br /&gt;
    else (no)&lt;br /&gt;
      if (Linear PDE on a simple shape,\ne.g. the heat equation?) then (yes)&lt;br /&gt;
        :Separate variables\nu(x,t) = X(x) T(t);&lt;br /&gt;
      else (no)&lt;br /&gt;
        if (Are approximate numbers enough?) then (yes)&lt;br /&gt;
          :Numerical stepping\n(Euler&#039;s method);&lt;br /&gt;
        else (no)&lt;br /&gt;
          if (Linear?) then (yes)&lt;br /&gt;
            :Power series or Laplace transform;&lt;br /&gt;
          else (no)&lt;br /&gt;
            :Qualitative study:\nequilibria, stability, chaos;&lt;br /&gt;
          endif&lt;br /&gt;
        endif&lt;br /&gt;
      endif&lt;br /&gt;
    endif&lt;br /&gt;
  endif&lt;br /&gt;
endif&lt;br /&gt;
stop&lt;br /&gt;
@enduml&lt;br /&gt;
&amp;lt;/uml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== A short history ==&lt;br /&gt;
&lt;br /&gt;
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 &#039;&#039;Principia&#039;&#039; 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&#039;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.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Isaac Newton portrait.jpg|thumb|left|Isaac Newton (portrait after Godfrey Kneller, 1689). The laws of motion and of gravitation published in the &#039;&#039;Principia&#039;&#039; (1687) are differential equations. Credit: James Thronill after Godfrey Kneller (public domain).]]&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Leonhard Euler portrait.jpg|thumb|Leonhard Euler (portrait by Jakob Emanuel Handmann, 1753). Credit: Jakob Emanuel Handmann (public domain).]]&lt;br /&gt;
&lt;br /&gt;
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&#039;Alembert|Jean le Rond d&#039;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 &#039;&#039;Théorie analytique de la chaleur&#039;&#039; 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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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&#039;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.&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Differential_equation Differential equation], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/DifferentialEquation.html Differential Equation], Wolfram MathWorld&lt;br /&gt;
* [https://ocw.mit.edu/courses/18-03sc-differential-equations-fall-2011/ 18.03SC Differential Equations], MIT OpenCourseWare&lt;br /&gt;
* [https://mathshistory.st-andrews.ac.uk/Biographies/Euler/ Leonhard Euler], MacTutor History of Mathematics&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7460</id>
		<title>Differential equation</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7460"/>
		<updated>2026-09-05T18:55:48Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: AI-assisted (RonzzWikiCowriter): condense the article — cut prose commentary, let the derivations and worked examples carry the explanation; keep all semantic embeds, images, diagram and citations. (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;A differential equation&#039;&#039;&#039; is an equation whose unknown is a function and which also involves that function&#039;s derivatives (rates of change). Where an ordinary equation such as $x^2=9$ is solved by numbers, a differential equation such as $y&#039;+2y=0$ is solved by functions $y(x)$. Laws of nature state how quantities change, so differential equations describe pendulums, cooling drinks, growing populations, and discharging capacitors. This article covers the standard exact solution methods, each with a worked numerical example, and the numerical, series, and qualitative routes used when no exact formula exists. It treats &#039;&#039;&#039;ordinary differential equations&#039;&#039;&#039; (one independent variable) and, briefly, &#039;&#039;&#039;partial differential equations&#039;&#039;&#039; (several).&lt;br /&gt;
&lt;br /&gt;
== A first example: slopes and a family of solutions ==&lt;br /&gt;
&lt;br /&gt;
The simplest differential equation prescribes the slope of a function $y(x)$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}=2x$$&lt;br /&gt;
&lt;br /&gt;
Integration inverts differentiation, so integrating both sides gives&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{dx}\,dx=\int 2x\,dx\qquad\Longrightarrow\qquad y(x)=x^{2}+C$$&lt;br /&gt;
&lt;br /&gt;
Every $C$ works, since $\frac{d}{dx}\left(x^2+C\right)=2x$; the solutions form the parabola family $y=x^2+C$, the &#039;&#039;&#039;general solution&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
An extra condition picks out one member. If $y(0)=3$, then&lt;br /&gt;
&lt;br /&gt;
$$3=0^2+C\qquad\Longrightarrow\qquad C=3\qquad\Longrightarrow\qquad y=x^2+3$$&lt;br /&gt;
&lt;br /&gt;
Such a prescribed value is an &#039;&#039;&#039;initial condition&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Classifying differential equations ==&lt;br /&gt;
&lt;br /&gt;
Three features decide how to solve an equation: its &#039;&#039;&#039;order&#039;&#039;&#039;, its &#039;&#039;&#039;linearity&#039;&#039;&#039;, and how many independent variables it involves.&lt;br /&gt;
&lt;br /&gt;
=== Order ===&lt;br /&gt;
&lt;br /&gt;
The order is the order of the highest derivative present. $dy/dx=2x$ is first order; Newton&#039;s second law,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1583}}&lt;br /&gt;
&lt;br /&gt;
is second order ($x(t)$ position of mass $m$, $F$ net force). An nth-order equation has $n$ arbitrary constants in its general solution, fixed by $n$ conditions, one constant appearing at each integration. Free fall shows the pattern: with only gravity $F_g=-mg$, Newton&#039;s law gives&lt;br /&gt;
&lt;br /&gt;
$$m\frac{d^{2}x}{dt^{2}}=-mg\qquad\Longrightarrow\qquad\frac{d^{2}x}{dt^{2}}=-g\qquad(g\approx 9.8\ \mathrm{m\,s^{-2}})$$&lt;br /&gt;
&lt;br /&gt;
Integrate once (constant $v_0$, the speed at $t=0$), then again (constant $x_0$, the height at $t=0$):&lt;br /&gt;
&lt;br /&gt;
$$\frac{dx}{dt}=-gt+v_{0}\qquad\Longrightarrow\qquad x(t)=-\frac{g}{2}t^{2}+v_{0}t+x_{0}$$&lt;br /&gt;
&lt;br /&gt;
Two initial conditions are needed. A ball dropped from rest at height $19.6\ \mathrm{m}$ hits the ground ($x=0$) when&lt;br /&gt;
&lt;br /&gt;
$$0=19.6-4.9\,t^{2}\qquad\Longrightarrow\qquad t=\sqrt{19.6/4.9}=2\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
=== Linearity and homogeneity ===&lt;br /&gt;
&lt;br /&gt;
An equation is &#039;&#039;&#039;linear&#039;&#039;&#039; 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&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
and is &#039;&#039;&#039;homogeneous&#039;&#039;&#039; 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$).&lt;br /&gt;
&lt;br /&gt;
If $y_1,y_2$ solve a homogeneous linear equation, so does $c_1y_1+c_2y_2$ (the &#039;&#039;&#039;superposition principle&#039;&#039;&#039;). Nonlinear equations lack this property. Superposition underlies every linear method below.&lt;br /&gt;
&lt;br /&gt;
=== Ordinary and partial ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;ordinary differential equation&#039;&#039;&#039; (ODE) has one independent variable. A &#039;&#039;&#039;partial differential equation&#039;&#039;&#039; (PDE) has several, with partial derivatives; for example the temperature $u(x,t)$ of an insulated metal bar obeys the heat equation&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1590}}&lt;br /&gt;
&lt;br /&gt;
where $\alpha$ is the thermal diffusivity. The equation says a spot cools fastest where the temperature profile is most curved ($\partial^2u/\partial x^2$ large).&lt;br /&gt;
&lt;br /&gt;
== Slope fields ==&lt;br /&gt;
&lt;br /&gt;
A first-order equation can be written&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1581}}&lt;br /&gt;
&lt;br /&gt;
assigning to each point $(x,y)$ the slope $f(x,y)$ a solution must have there. Drawing short segments of that slope gives a &#039;&#039;&#039;direction field&#039;&#039;&#039;; solution curves run tangent to it.&lt;br /&gt;
&lt;br /&gt;
[[File:Slope field of exponential growth.png|thumb|Direction field of $dy/dx=y$. Credit: jjbeard (public domain).]]&lt;br /&gt;
&lt;br /&gt;
Numerical methods such as [[Euler&#039;s method]] follow the field: read the slope, step a short distance along it, repeat.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving differential equations ==&lt;br /&gt;
&lt;br /&gt;
=== Separation of variables ===&lt;br /&gt;
&lt;br /&gt;
A first-order equation is &#039;&#039;&#039;separable&#039;&#039;&#039; when the right-hand side factors into a function of $x$ times a function of $y$:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1612}}&lt;br /&gt;
&lt;br /&gt;
Divide by $h(y)$ and integrate; all $y$&#039;s land on one side, all $x$&#039;s on the other.&lt;br /&gt;
&lt;br /&gt;
==== Exponential growth and decay ====&lt;br /&gt;
&lt;br /&gt;
When a quantity changes at a rate proportional to its own size,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1584}}&lt;br /&gt;
&lt;br /&gt;
divide by $y$ and integrate:&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{y}=\int k\,dt\qquad\Longrightarrow\qquad \ln|y|=kt+C$$&lt;br /&gt;
&lt;br /&gt;
Exponentiating, $|y|=e^C e^{kt}$; the sign of $y$ never changes, so absorbing it into the constant and writing $y(0)=y_0$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1585}}&lt;br /&gt;
&lt;br /&gt;
With numbers: €1000 at 5% interest compounded continuously ($k=0.05\ \text{yr}^{-1}$) gives $y(t)=1000\,e^{0.05t}$, and&lt;br /&gt;
&lt;br /&gt;
$$y(10)=1000\,e^{0.5}\approx 1648.7$$&lt;br /&gt;
&lt;br /&gt;
Doubling time: $1000\,e^{0.05t}=2000\Rightarrow t=\ln 2/0.05\approx 13.9$ years. For $k&amp;lt;0$ the same solution describes decay; the &#039;&#039;&#039;half-life&#039;&#039;&#039; $y=y_0/2$ is $t_{1/2}=(\ln 2)/(-k)$.&lt;br /&gt;
&lt;br /&gt;
==== Newton&#039;s law of cooling ====&lt;br /&gt;
&lt;br /&gt;
A body hotter than its surroundings cools at a rate proportional to the temperature gap:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1586}}&lt;br /&gt;
&lt;br /&gt;
Separate and integrate:&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dT}{T-T_a}=\int-k\,dt\qquad\Longrightarrow\qquad \ln|T-T_a|=-kt+C$$&lt;br /&gt;
&lt;br /&gt;
Exponentiating and folding the (constant-sign) factor $T-T_a$ into the constant, with $T(0)=T_0$:&lt;br /&gt;
&lt;br /&gt;
$$T(t)=T_a+(T_0-T_a)e^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
The gap $T-T_a$ decays exponentially, not $T$ itself. Example: a drink at $80\,^{\circ}\mathrm{C}$ in a $20\,^{\circ}\mathrm{C}$ room, $k=0.1\ \text{min}^{-1}$:&lt;br /&gt;
&lt;br /&gt;
$$T(t)=20+60\,e^{-0.1t}$$&lt;br /&gt;
&lt;br /&gt;
Reaches $40\,^{\circ}\mathrm{C}$ when $20+60e^{-0.1t}=40$, i.e. $t=10\ln 3\approx 11$ min.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== First-order linear equations: the integrating factor ===&lt;br /&gt;
&lt;br /&gt;
For $y&#039;+p(x)y=q(x)$ that is not separable, multiply by $\mu(x)$ chosen so the left side is a single derivative $(\mu y)&#039;$. The product rule gives $(\mu y)&#039;=\mu y&#039;+\mu&#039; y$, while multiplying the equation by $\mu$ gives $\mu y&#039;+\mu p\,y$; matching coefficients requires $\mu&#039;=p\mu$, whose solution is&lt;br /&gt;
&lt;br /&gt;
$$\mu(x)=e^{\int p(x)\,dx}$$&lt;br /&gt;
&lt;br /&gt;
Multiplying the equation by $\mu$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1613}}&lt;br /&gt;
&lt;br /&gt;
so both sides integrate directly:&lt;br /&gt;
&lt;br /&gt;
$$\mu(x)\,y=\int\mu(x)\,q(x)\,dx+C$$&lt;br /&gt;
&lt;br /&gt;
Example: $y&#039;+y=e^{-x}$. Here $p=1$, $\mu=e^x$, and&lt;br /&gt;
&lt;br /&gt;
$$e^x y&#039;+e^x y=1\qquad\Longrightarrow\qquad (e^x y)&#039;=1\qquad\Longrightarrow\qquad e^x y=x+C\qquad\Longrightarrow\qquad y=(x+C)e^{-x}$$&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1607}}&lt;br /&gt;
&lt;br /&gt;
The condition $y(0)=2$ gives $C=2$.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Constant-coefficient linear equations of order two ===&lt;br /&gt;
&lt;br /&gt;
The equation $y&#039;&#039;+a\,y&#039;+b\,y=0$ (constant coefficients) models a mass on a spring, a small-angle pendulum, and an RLC circuit. It is solved by trying an exponential $y=e^{rx}$, since $y&#039;=re^{rx}$ and $y&#039;&#039;=r^2e^{rx}$:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1644}}&lt;br /&gt;
&lt;br /&gt;
Substitution turns the equation into algebra: $(r^2+ar+b)e^{rx}=0$, and $e^{rx}\neq 0$, so&lt;br /&gt;
&lt;br /&gt;
$$r^2+ar+b=0$$&lt;br /&gt;
&lt;br /&gt;
This is the &#039;&#039;&#039;characteristic equation&#039;&#039;&#039;; its roots determine the solution:&lt;br /&gt;
&lt;br /&gt;
* distinct real roots $r_1\neq r_2$: $y=C_1e^{r_1x}+C_2e^{r_2x}$;&lt;br /&gt;
* one repeated root $r$: $y=(C_1+C_2x)e^{rx}$;&lt;br /&gt;
* complex pair $r=\alpha\pm i\beta$: $y=e^{\alpha x}(C_1\cos\beta x+C_2\sin\beta x)$.&lt;br /&gt;
&lt;br /&gt;
Example ($y&#039;&#039;-3y&#039;+2y=0$): $r^2-3r+2=(r-1)(r-2)$, so&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1608}}&lt;br /&gt;
&lt;br /&gt;
Each term checks: for $y=e^x$, $y&#039;&#039;-3y&#039;+2y=(1-3+2)e^x=0$.&lt;br /&gt;
&lt;br /&gt;
==== The harmonic oscillator (a mass on a spring) ====&lt;br /&gt;
&lt;br /&gt;
A mass displaced $x$ from rest is pulled back by $-kx$ (Hooke&#039;s law), so Newton&#039;s second law gives&lt;br /&gt;
&lt;br /&gt;
$$m\frac{d^2x}{dt^2}=-kx\qquad\Longrightarrow\qquad x&#039;&#039;+\frac{k}{m}x=0$$&lt;br /&gt;
&lt;br /&gt;
With $\omega_0^2=k/m$ this is the &#039;&#039;&#039;harmonic oscillator equation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1588}}&lt;br /&gt;
&lt;br /&gt;
Its characteristic equation $r^2+\omega_0^2=0$ has roots $\pm i\omega_0$, the complex case above ($\alpha=0$). Since $\frac{d^2}{dt^2}\cos\omega_0 t=-\omega_0^2\cos\omega_0 t$, and likewise for sine, superposition gives&lt;br /&gt;
&lt;br /&gt;
$$x(t)=A\cos\omega_0 t+B\sin\omega_0 t$$&lt;br /&gt;
&lt;br /&gt;
with $A,B$ fixed by the initial position and velocity.&lt;br /&gt;
&lt;br /&gt;
[[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).]]&lt;br /&gt;
&lt;br /&gt;
Example: $m=2\ \mathrm{kg}$, $k=8\ \mathrm{N/m}$, so $\omega_0=\sqrt{8/2}=2\ \text{rad/s}$. Pulled $10\ \mathrm{cm}$ out and released from rest, $B=0$ and $x(t)=0.10\cos 2t$ metres. The period is&lt;br /&gt;
&lt;br /&gt;
$$P=\frac{2\pi}{\omega_0}=\pi\approx 3.14\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
and after one second&lt;br /&gt;
&lt;br /&gt;
$$x(1)=0.10\cos 2\approx 0.10(-0.416)\approx -0.042\ \text{m}$$&lt;br /&gt;
&lt;br /&gt;
Such fixed-amplitude sinusoidal motion is &#039;&#039;&#039;simple harmonic motion&#039;&#039;&#039;.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Partial differential equations: separating variables in the heat equation ===&lt;br /&gt;
&lt;br /&gt;
Solve the heat equation on a bar of length $L$, insulated sides, ends held at $0$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{\partial u}{\partial t}=\alpha\frac{\partial^2u}{\partial x^2}$$&lt;br /&gt;
&lt;br /&gt;
Seek a product solution $u(x,t)=X(x)T(t)$. Substitution gives $XT&#039;=\alpha X&#039;&#039;T$; dividing by $\alpha XT$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1622}}&lt;br /&gt;
&lt;br /&gt;
The left side depends only on $t$, the right only on $x$, so both equal one constant, $-\lambda$. This yields two ODEs,&lt;br /&gt;
&lt;br /&gt;
$$T&#039;=-\alpha\lambda T\qquad\Longrightarrow\qquad T=e^{-\alpha\lambda t}$$&lt;br /&gt;
&lt;br /&gt;
$$X&#039;&#039;=-\lambda X\qquad\Longrightarrow\qquad X=A\cos(\sqrt{\lambda}\,x)+B\sin(\sqrt{\lambda}\,x)$$&lt;br /&gt;
&lt;br /&gt;
The end conditions $u(0,t)=u(L,t)=0$ force $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 allowed $\lambda=(n\pi/L)^2$ gives one mode&lt;br /&gt;
&lt;br /&gt;
$$u_n(x,t)=\sin\frac{n\pi x}{L}\,e^{-\alpha(n\pi/L)^2t}$$&lt;br /&gt;
&lt;br /&gt;
The equation is linear and homogeneous, so superposition applies, and the general solution is&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1611}}&lt;br /&gt;
&lt;br /&gt;
with the $b_n$ fixed by the initial profile $u(x,0)$ (a Fourier sine series). Modes with many wiggles (large $n$) decay fastest, since the decay rate $\alpha(n\pi/L)^2$ grows like $n^2$; soon only the $n=1$ mode remains.&lt;br /&gt;
&lt;br /&gt;
Numbers: a $1\ \mathrm{m}$ iron bar, $\alpha\approx 2.3\times10^{-5}\ \mathrm{m^2s^{-1}}$, heated so $u(x,0)=100\sin(\pi x/L)$ (ends at $0\,^{\circ}\mathrm{C}$, centre $100\,^{\circ}\mathrm{C}$). Only $n=1$ is present:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=100\sin\frac{\pi x}{L}\,e^{-\alpha\pi^2t/L^2}$$&lt;br /&gt;
&lt;br /&gt;
At the centre, with $L=1$ and $\alpha\pi^2\approx 2.3\times10^{-4}\ \text{s}^{-1}$,&lt;br /&gt;
&lt;br /&gt;
$$u\!\left(\tfrac12,t\right)=100\,e^{-2.3\times10^{-4}t}$$&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== When no formula exists ===&lt;br /&gt;
&lt;br /&gt;
Most equations, especially nonlinear ones, have no solution in terms of familiar functions. They are studied in one of three ways:&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Numerically&#039;&#039;&#039;, when numbers suffice: [[Euler&#039;s method]] steps along the slope field;&lt;br /&gt;
* &#039;&#039;&#039;[[Qualitative methods]]&#039;&#039;&#039;: equilibria, stability and long-term behaviour, without formulas;&lt;br /&gt;
* &#039;&#039;&#039;Series and transforms&#039;&#039;&#039;, for linear cases: [[Power series]] or the [[Laplace transform]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;uml type=&amp;quot;uml&amp;quot;&amp;gt;&lt;br /&gt;
@startuml&lt;br /&gt;
skinparam monochrome true&lt;br /&gt;
start&lt;br /&gt;
:You have a differential equation;&lt;br /&gt;
if (First order and separable?\ny&#039; = g(x) h(y)?) then (yes)&lt;br /&gt;
  :Separate and integrate:\n∫ dy/h(y) = ∫ g(x) dx;&lt;br /&gt;
else (no)&lt;br /&gt;
  if (First order and linear?\ny&#039; + p(x) y = q(x)?) then (yes)&lt;br /&gt;
    :Integrating factor\nμ = e^{∫ p dx};&lt;br /&gt;
  else (no)&lt;br /&gt;
    if (Second order, linear, constant coefficients?\ny&#039;&#039; + a y&#039; + b y = 0?) then (yes)&lt;br /&gt;
      :Characteristic equation\nr² + a r + b = 0;&lt;br /&gt;
    else (no)&lt;br /&gt;
      if (Linear PDE on a simple shape,\ne.g. the heat equation?) then (yes)&lt;br /&gt;
        :Separate variables\nu(x,t) = X(x) T(t);&lt;br /&gt;
      else (no)&lt;br /&gt;
        if (Are approximate numbers enough?) then (yes)&lt;br /&gt;
          :Numerical stepping\n(Euler&#039;s method);&lt;br /&gt;
        else (no)&lt;br /&gt;
          if (Linear?) then (yes)&lt;br /&gt;
            :Power series or Laplace transform;&lt;br /&gt;
          else (no)&lt;br /&gt;
            :Qualitative study:\nequilibria, stability, chaos;&lt;br /&gt;
          endif&lt;br /&gt;
        endif&lt;br /&gt;
      endif&lt;br /&gt;
    endif&lt;br /&gt;
  endif&lt;br /&gt;
endif&lt;br /&gt;
stop&lt;br /&gt;
@enduml&lt;br /&gt;
&amp;lt;/uml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== A short history ==&lt;br /&gt;
&lt;br /&gt;
Differential equations came with the calculus. Newton&#039;s laws in the &#039;&#039;Principia&#039;&#039; (1687) are differential equations; Leibniz&#039;s notation $dy/dx$ (1670s) is the one still used. In the mid-18th century [[Person:Leonhard Euler|Leonhard Euler]] made the subject systematic, contributing the exponential trial solution, series methods, and the first numerical scheme, Euler&#039;s method.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt; Physics supplied the PDEs: [[Person:Jean le Rond d&#039;Alembert|Jean le Rond d&#039;Alembert]] solved the vibrating-string (wave) equation in 1747, and [[Person:Joseph Fourier|Joseph Fourier]] derived and solved the heat equation in 1822 by expanding initial data in sine series, founding Fourier analysis.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt; When no formula exists, behaviour can still be studied: [[Person:Henri Poincaré|Henri Poincaré]] pioneered this qualitative view on the three-body problem, and in 1963 [[Person:Edward Lorenz|Edward Lorenz]] found chaos in a three-equation model of convection, ending hopes of long-term weather prediction.&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Isaac Newton portrait.jpg|thumb|left|Isaac Newton (after Godfrey Kneller, 1689). Credit: James Thronill (public domain).]]&lt;br /&gt;
[[File:Leonhard Euler portrait.jpg|thumb|Leonhard Euler (by Jakob Emanuel Handmann, 1753). Credit: Jakob Emanuel Handmann (public domain).]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Differential_equation Differential equation], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/DifferentialEquation.html Differential Equation], Wolfram MathWorld&lt;br /&gt;
* [https://ocw.mit.edu/courses/18-03sc-differential-equations-fall-2011/ 18.03SC Differential Equations], MIT OpenCourseWare&lt;br /&gt;
* [https://mathshistory.st-andrews.ac.uk/Biographies/Euler/ Leonhard Euler], MacTutor History of Mathematics&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7455</id>
		<title>Differential equation</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7455"/>
		<updated>2026-09-05T18:40:51Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: 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)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;A differential equation&#039;&#039;&#039; 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&#039;=0$ has functions $y(x)$ as solutions.&lt;br /&gt;
&lt;br /&gt;
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 &#039;&#039;&#039;ordinary differential equations&#039;&#039;&#039; (ODEs), in which the unknown function depends on a single independent variable, in the most detail, and gives shorter accounts of &#039;&#039;&#039;partial differential equations&#039;&#039;&#039; (PDEs) and of the numerical, series, and qualitative methods used when no exact formula exists.&lt;br /&gt;
&lt;br /&gt;
== A first example: slopes and a family of solutions ==&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}=2x$$&lt;br /&gt;
&lt;br /&gt;
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$.&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{dx}\,dx=\int 2x\,dx\qquad\Longrightarrow\qquad y(x)=x^{2}+C$$&lt;br /&gt;
&lt;br /&gt;
where $C$ is an arbitrary constant, because differentiating $x^2 + C$ gives $2x$ for every value of $C$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{d}{dx}\left(x^{2}+C\right)=2x$$&lt;br /&gt;
&lt;br /&gt;
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 &#039;&#039;&#039;general solution&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
How can we arrive at a &#039;&#039;&#039;particular solution&#039;&#039;&#039;, that is, one specific function of the family? An extra piece of information is required.&lt;br /&gt;
&lt;br /&gt;
Suppose we know that when $x = 0$, $y = 3$. Substituting those numbers in we have:&lt;br /&gt;
&lt;br /&gt;
$$3=0^{2}+C\qquad\Longrightarrow\qquad C=3$$&lt;br /&gt;
&lt;br /&gt;
Therefore&lt;br /&gt;
&lt;br /&gt;
$$y = x^{2} + 3$$&lt;br /&gt;
&lt;br /&gt;
Such an extra condition is called an &#039;&#039;&#039;initial condition&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Classifying differential equations ==&lt;br /&gt;
&lt;br /&gt;
A few labels do most of the work in deciding how to attack an equation. Three questions matter: how many derivatives appear (the &#039;&#039;order&#039;&#039;), whether the unknown function enters linearly (&#039;&#039;linearity&#039;&#039;), and how many independent variables are involved (&#039;&#039;ordinary or partial&#039;&#039;). Equations that fit no convenient label are usually handled numerically or qualitatively, as described in the final section of this article.&lt;br /&gt;
&lt;br /&gt;
=== Order ===&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;order&#039;&#039;&#039; 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.&lt;br /&gt;
&lt;br /&gt;
Newton&#039;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:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1583}}&lt;br /&gt;
&lt;br /&gt;
where $x(t)$ is the position of a body of mass $m$ and $F$ is the net force.&lt;br /&gt;
&lt;br /&gt;
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$.&lt;br /&gt;
&lt;br /&gt;
Take a free-falling object, for example. Ignoring air resistance, the only force is gravity&lt;br /&gt;
&lt;br /&gt;
$$F_g = -mg$$&lt;br /&gt;
&lt;br /&gt;
By Newton&#039;s second law&lt;br /&gt;
&lt;br /&gt;
$$m\frac{d^{2}x}{dt^{2}}=-mg\qquad\Longrightarrow\qquad\frac{d^{2}x}{dt^{2}}=-g$$&lt;br /&gt;
&lt;br /&gt;
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$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{dx}{dt}=-gt+v_{0}$$&lt;br /&gt;
&lt;br /&gt;
Integrating again gives the height, and introduces a second constant, $x_{0}$, the height at $t = 0$:&lt;br /&gt;
&lt;br /&gt;
$$x(t)=-\frac{g}{2}\,t^{2}+v_{0}t+x_{0}$$&lt;br /&gt;
&lt;br /&gt;
Two conditions, the initial height and the initial velocity, are needed to fix both constants.&lt;br /&gt;
&lt;br /&gt;
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$:&lt;br /&gt;
&lt;br /&gt;
$$0=19.6-4.9\,t^{2}\qquad\Longrightarrow\qquad t=\sqrt{19.6/4.9}=2\ \text{seconds}$$&lt;br /&gt;
&lt;br /&gt;
Notice how a differential equation can predict the future: the two initial conditions fix the whole trajectory.&lt;br /&gt;
&lt;br /&gt;
=== Linearity and homogeneity ===&lt;br /&gt;
&lt;br /&gt;
A differential equation is &#039;&#039;&#039;linear&#039;&#039;&#039; 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&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
Furthermore, a linear equation is called &#039;&#039;&#039;homogeneous&#039;&#039;&#039; when $q(x)=0$; it then takes the form&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}+p(x)\,y=0$$&lt;br /&gt;
&lt;br /&gt;
The equations&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}=y^{2},\qquad \frac{d^{2}\theta}{dt^{2}}+\sin\theta=0$$&lt;br /&gt;
&lt;br /&gt;
are therefore nonlinear: the first contains the square of the unknown function, the second the sine of it.&lt;br /&gt;
&lt;br /&gt;
Linearity and homogeneity matter because homogeneous linear equations obey the &#039;&#039;&#039;superposition principle&#039;&#039;&#039;. 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).&lt;br /&gt;
&lt;br /&gt;
Nonlinear equations do not obey the superposition principle. If $y_{1}$ and $y_{2}$ solve $dy/dx = y^{2}$, their sum does not.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
=== Ordinary and partial ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;ordinary differential equation&#039;&#039;&#039; involves a function of a single independent variable, as in all the examples so far. A &#039;&#039;&#039;partial differential equation&#039;&#039;&#039; (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 &#039;&#039;&#039;heat equation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1590}}&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== Slope fields: visualising solutions ==&lt;br /&gt;
&lt;br /&gt;
A first-order equation solved for its derivative has the general form&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1581}}&lt;br /&gt;
&lt;br /&gt;
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 &#039;&#039;&#039;direction field&#039;&#039;&#039; (or slope field) for the equation.&lt;br /&gt;
&lt;br /&gt;
[[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).]]&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt; Numerical methods, such as [[Euler&#039;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.&lt;br /&gt;
&lt;br /&gt;
== Solving differential equations ==&lt;br /&gt;
&lt;br /&gt;
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&#039;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.&lt;br /&gt;
&lt;br /&gt;
=== Separation of variables ===&lt;br /&gt;
&lt;br /&gt;
A first-order equation is &#039;&#039;&#039;separable&#039;&#039;&#039; when the right-hand side splits into a factor that depends only on $x$ and a factor that depends only on $y$:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1612}}&lt;br /&gt;
&lt;br /&gt;
The arrow shows the whole method: divide both sides by $h(y)$ and integrate, so that all the $y$&#039;s are on one side and all the $x$&#039;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.&lt;br /&gt;
&lt;br /&gt;
==== Worked example: exponential growth and decay ====&lt;br /&gt;
&lt;br /&gt;
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$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1584}}&lt;br /&gt;
&lt;br /&gt;
where $k$ is a constant. To solve it, divide both sides by $y$ and integrate both sides with respect to $t$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{1}{y}\frac{dy}{dt}=k\qquad\Longrightarrow\qquad\int\frac{dy}{y}=\int k\,dt$$&lt;br /&gt;
&lt;br /&gt;
The left-hand integral is $\ln|y|$, so&lt;br /&gt;
&lt;br /&gt;
$$\ln|y| = kt + C$$&lt;br /&gt;
&lt;br /&gt;
Exponentiating both sides (raising $e$ to the power of each side) removes the logarithm:&lt;br /&gt;
&lt;br /&gt;
$$|y|=e^{kt+C}=e^{C}e^{kt}$$&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1585}}&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$y(10)=1000\,e^{0.05\times 10}=1000\,e^{0.5}\approx 1648.7$$&lt;br /&gt;
&lt;br /&gt;
so the deposit has grown to about €1649. To find when it doubles, set $y(t) = 2000$ and solve:&lt;br /&gt;
&lt;br /&gt;
$$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}$$&lt;br /&gt;
&lt;br /&gt;
For $k &amp;lt; 0$ the same formula describes decay rather than growth. Radioactive substances are usually described by their &#039;&#039;&#039;half-life&#039;&#039;&#039;, the time in which half the atoms decay; setting $y(t)=y_{0}/2$ gives $t_{1/2}=(\ln 2)/(-k)$.&lt;br /&gt;
&lt;br /&gt;
==== Worked example: Newton&#039;s law of cooling ====&lt;br /&gt;
&lt;br /&gt;
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&#039;s law of cooling,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1586}}&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
Separating variables means bringing everything that involves $T$ to the left:&lt;br /&gt;
&lt;br /&gt;
$$\frac{1}{T-T_{a}}\frac{dT}{dt}=-k\qquad\Longrightarrow\qquad\int\frac{dT}{T-T_{a}}=\int -k\,dt$$&lt;br /&gt;
&lt;br /&gt;
Integrating both sides gives&lt;br /&gt;
&lt;br /&gt;
$$\ln|T-T_{a}|=-kt+C$$&lt;br /&gt;
&lt;br /&gt;
Exponentiating both sides,&lt;br /&gt;
&lt;br /&gt;
$$|T-T_{a}|=e^{-kt+C}=e^{C}e^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$T(t)=T_{a}+\left(T_{0}-T_{a}\right)e^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
So the temperature does not decay exponentially, but the temperature gap $T - T_{a}$ does.&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$T(t)=20+\left(80-20\right)e^{-0.1t}=20+60\,e^{-0.1t}$$&lt;br /&gt;
&lt;br /&gt;
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$:&lt;br /&gt;
&lt;br /&gt;
$$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}$$&lt;br /&gt;
&lt;br /&gt;
In about 11 minutes the drink is two-thirds of the way from $80\,^{\circ}\mathrm{C}$ down to the room&#039;s $20\,^{\circ}\mathrm{C}$, and it approaches the room temperature without ever quite reaching it.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== First-order linear equations: the integrating factor ===&lt;br /&gt;
&lt;br /&gt;
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 &#039;&#039;&#039;integrating factor&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Recall from the classification section that a linear first-order equation has the form&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
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,&lt;br /&gt;
&lt;br /&gt;
$$\frac{d}{dx}\bigl(\mu(x)\,y\bigr)=\mu\,\frac{dy}{dx}+\frac{d\mu}{dx}\,y$$&lt;br /&gt;
&lt;br /&gt;
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&#039; = p\,\mu$. This is itself a separable equation, solved exactly as in the previous subsection:&lt;br /&gt;
&lt;br /&gt;
$$\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}$$&lt;br /&gt;
&lt;br /&gt;
(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)$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1613}}&lt;br /&gt;
&lt;br /&gt;
and because the left-hand side is now a single derivative, both sides integrate immediately:&lt;br /&gt;
&lt;br /&gt;
$$\mu(x)\,y=\int \mu(x)\,q(x)\,dx + C$$&lt;br /&gt;
&lt;br /&gt;
Worked example. Solve $y&#039; + y = e^{-x}$. Here $p = 1$, so the integrating factor is&lt;br /&gt;
&lt;br /&gt;
$$\mu=e^{\int 1\,dx}=e^{x}$$&lt;br /&gt;
&lt;br /&gt;
Multiplying both sides by $e^{x}$,&lt;br /&gt;
&lt;br /&gt;
$$e^{x}y&#039;+e^{x}y=e^{x}e^{-x}=1$$&lt;br /&gt;
&lt;br /&gt;
The left-hand side is $(e^{x}y)&#039;$, so&lt;br /&gt;
&lt;br /&gt;
$$\left(e^{x}y\right)&#039;=1\qquad\Longrightarrow\qquad e^{x}y=x+C\qquad\Longrightarrow\qquad y=(x+C)e^{-x}$$&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1607}}&lt;br /&gt;
&lt;br /&gt;
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}$.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Constant-coefficient linear equations of order two ===&lt;br /&gt;
&lt;br /&gt;
The methods so far solve first-order equations. The most important second-order family is the linear equation with constant coefficients,&lt;br /&gt;
&lt;br /&gt;
$$y&#039;&#039;+a\,y&#039;+b\,y=0$$&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1644}}&lt;br /&gt;
&lt;br /&gt;
To see where the arrow comes from, substitute $y=e^{rx}$ together with $y&#039;=re^{rx}$ and $y&#039;&#039;=r^{2}e^{rx}$ into the equation:&lt;br /&gt;
&lt;br /&gt;
$$r^{2}e^{rx}+a\,r\,e^{rx}+b\,e^{rx}=\left(r^{2}+a\,r+b\right)e^{rx}=0$$&lt;br /&gt;
&lt;br /&gt;
Since $e^{rx}$ is never zero, divide both sides by it:&lt;br /&gt;
&lt;br /&gt;
$$r^{2}+a\,r+b=0$$&lt;br /&gt;
&lt;br /&gt;
This is the &#039;&#039;&#039;characteristic equation&#039;&#039;&#039;. It is an ordinary quadratic equation, and the form of the solution depends on the kind of roots it has:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Two distinct real roots&#039;&#039;&#039;, $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.&lt;br /&gt;
* &#039;&#039;&#039;One repeated real root&#039;&#039;&#039;, $r$: the general solution is $y=\left(C_{1}+C_{2}x\right)e^{rx}$; the extra factor $x$ supplies the second arbitrary constant.&lt;br /&gt;
* &#039;&#039;&#039;A complex conjugate pair&#039;&#039;&#039;, $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$.&lt;br /&gt;
&lt;br /&gt;
A quick numerical example of the first case: solve $y&#039;&#039;-3y&#039;+2y=0$. Substituting $y=e^{rx}$ gives $r^{2}-3r+2=0=(r-1)(r-2)$, so the roots are $1$ and $2$, and&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1608}}&lt;br /&gt;
&lt;br /&gt;
Each term works, as can be checked directly: for $y=e^{x}$, one has $y&#039;&#039;-3y&#039;+2y=(1-3+2)e^{x}=0$, and similarly for $e^{2x}$.&lt;br /&gt;
&lt;br /&gt;
==== Example: the harmonic oscillator (a mass on a spring) ====&lt;br /&gt;
&lt;br /&gt;
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&#039;s law), where the spring constant $k$ measures how stiff the spring is. Newton&#039;s second law therefore gives&lt;br /&gt;
&lt;br /&gt;
$$m\frac{d^{2}x}{dt^{2}}=-kx\qquad\Longrightarrow\qquad\frac{d^{2}x}{dt^{2}}+\frac{k}{m}x=0$$&lt;br /&gt;
&lt;br /&gt;
Writing $\omega_{0}^{2} = k/m$, this becomes the &#039;&#039;&#039;harmonic oscillator equation&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1588}}&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&lt;br /&gt;
$$\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)$$&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$x(t)=A\cos(\omega_{0}t)+B\sin(\omega_{0}t)$$&lt;br /&gt;
&lt;br /&gt;
The two constants $A$ and $B$ are fixed by the initial displacement and the initial velocity, exactly as the order of the equation requires.&lt;br /&gt;
&lt;br /&gt;
[[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).]]&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$P=\frac{2\pi}{\omega_{0}}=\pi\ \text{seconds}\approx 3.14\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
so the mass returns to its starting point roughly every 3.14 seconds. One second after release, measuring angles in radians,&lt;br /&gt;
&lt;br /&gt;
$$x(1)=0.10\cos(2)\approx 0.10\times(-0.416)\approx -0.042\ \text{m}$$&lt;br /&gt;
&lt;br /&gt;
about 4 cm on the other side of the rest position. This kind of motion, a sinusoid of fixed amplitude, is called &#039;&#039;&#039;simple harmonic motion&#039;&#039;&#039;, and the oscillator equation governs not only springs but pendulums (for small swings), electric circuits, and the vibrations of molecules.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Partial differential equations: separating variables in the heat equation ===&lt;br /&gt;
&lt;br /&gt;
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$.&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&lt;br /&gt;
$$\frac{\partial u}{\partial t}=\alpha\,\frac{\partial^{2}u}{\partial x^{2}}$$&lt;br /&gt;
&lt;br /&gt;
Separation of variables looks for a solution that splits into a product of a function of $x$ alone and a function of $t$ alone:&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=X(x)\,T(t)$$&lt;br /&gt;
&lt;br /&gt;
Substituting into the heat equation gives $X\,T&#039;=\alpha\,X&#039;&#039;\,T$. Divide both sides by $\alpha X T$:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1622}}&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&lt;br /&gt;
* $T&#039;=-\alpha\lambda\,T$: exponential decay, the growth equation of this article with $k=-\alpha\lambda&amp;lt;0$, giving $T=e^{-\alpha\lambda t}$;&lt;br /&gt;
* $X&#039;&#039;=-\lambda X$: the function whose second derivative is a negative constant multiple of itself, giving sines and cosines of $\sqrt{\lambda}\,x$.&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$u_{n}(x,t)=\sin\left(\frac{n\pi x}{L}\right)e^{-\alpha(n\pi/L)^{2}t}$$&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1611}}&lt;br /&gt;
&lt;br /&gt;
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&#039;s sine series does.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
A concrete check with numbers: take a one-metre iron bar (iron&#039;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&lt;br /&gt;
&lt;br /&gt;
$$u(x,t)=100\,\sin\left(\frac{\pi x}{L}\right)e^{-\alpha\pi^{2}t/L^{2}}$$&lt;br /&gt;
&lt;br /&gt;
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$,&lt;br /&gt;
&lt;br /&gt;
$$u\!\left(\tfrac{1}{2},t\right)=100\,e^{-2.3\times10^{-4}\,t}$$&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== When no formula is possible: numerical, series, and qualitative methods ===&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Numerical approximation&#039;&#039;&#039;, when numbers are what is needed: [[Euler&#039;s method]] steps forward along the slope field, replacing the exact solution by a polygonal path, and its refinements underlie most computer simulations;&lt;br /&gt;
* &#039;&#039;&#039;[[Qualitative methods]]&#039;&#039;&#039;, 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;&lt;br /&gt;
* &#039;&#039;&#039;Series and integral transforms&#039;&#039;&#039;, 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]].&lt;br /&gt;
&lt;br /&gt;
Choosing between these routes is part of the art of applying mathematics, and the diagram below summarises the decision process of this whole article.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;uml type=&amp;quot;uml&amp;quot;&amp;gt;&lt;br /&gt;
@startuml&lt;br /&gt;
skinparam monochrome true&lt;br /&gt;
start&lt;br /&gt;
:You have a differential equation;&lt;br /&gt;
if (Is it first order and separable?\ny&#039; = g(x) h(y)?) then (yes)&lt;br /&gt;
  :Separate and integrate:\n∫ dy/h(y) = ∫ g(x) dx;&lt;br /&gt;
else (no)&lt;br /&gt;
  if (Is it first order and linear?\ny&#039; + p(x) y = q(x)?) then (yes)&lt;br /&gt;
    :Multiply by the integrating factor\nμ = e^{∫ p dx}, then integrate;&lt;br /&gt;
  else (no)&lt;br /&gt;
    if (Is it second order, linear, with constant coefficients?\ny&#039;&#039; + a y&#039; + b y = 0?) then (yes)&lt;br /&gt;
      :Solve the characteristic equation\nr² + a r + b = 0;&lt;br /&gt;
    else (no)&lt;br /&gt;
      if (Is it a linear PDE on a simple\nshape, e.g. the heat equation?) then (yes)&lt;br /&gt;
        :Separate the variables:\nu(x,t) = X(x) T(t);&lt;br /&gt;
      else (no)&lt;br /&gt;
        if (Are approximate numbers enough?) then (yes)&lt;br /&gt;
          :Step forward numerically\n(article: Euler&#039;s method);&lt;br /&gt;
        else (no)&lt;br /&gt;
          if (Is the equation linear?) then (yes)&lt;br /&gt;
            :Power series or Laplace transform\n(articles: Power series, Laplace transform);&lt;br /&gt;
          else (no)&lt;br /&gt;
            :Study behaviour without formulas:\nequilibria, stability, chaos\n(article: Qualitative methods);&lt;br /&gt;
          endif&lt;br /&gt;
        endif&lt;br /&gt;
      endif&lt;br /&gt;
    endif&lt;br /&gt;
  endif&lt;br /&gt;
endif&lt;br /&gt;
stop&lt;br /&gt;
@enduml&lt;br /&gt;
&amp;lt;/uml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
== A short history ==&lt;br /&gt;
&lt;br /&gt;
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 &#039;&#039;Principia&#039;&#039; 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&#039;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.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Isaac Newton portrait.jpg|thumb|left|Isaac Newton (portrait after Godfrey Kneller, 1689). The laws of motion and of gravitation published in the &#039;&#039;Principia&#039;&#039; (1687) are differential equations. Credit: James Thronill after Godfrey Kneller (public domain).]]&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Leonhard Euler portrait.jpg|thumb|Leonhard Euler (portrait by Jakob Emanuel Handmann, 1753). Credit: Jakob Emanuel Handmann (public domain).]]&lt;br /&gt;
&lt;br /&gt;
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&#039;Alembert|Jean le Rond d&#039;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 &#039;&#039;Théorie analytique de la chaleur&#039;&#039; 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.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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&#039;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.&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Differential_equation Differential equation], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/DifferentialEquation.html Differential Equation], Wolfram MathWorld&lt;br /&gt;
* [https://ocw.mit.edu/courses/18-03sc-differential-equations-fall-2011/ 18.03SC Differential Equations], MIT OpenCourseWare&lt;br /&gt;
* [https://mathshistory.st-andrews.ac.uk/Biographies/Euler/ Leonhard Euler], MacTutor History of Mathematics&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Person:Joseph_Fourier&amp;diff=7454</id>
		<title>Person:Joseph Fourier</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Person:Joseph_Fourier&amp;diff=7454"/>
		<updated>2026-09-05T18:38:07Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Created the wiki page for Joseph Fourier&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Person}}&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
French mathematician and physicist; derived the heat equation and solved it with trigonometric series, founding Fourier analysis.&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1693&amp;diff=7453</id>
		<title>Item:Q1693</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1693&amp;diff=7453"/>
		<updated>2026-09-05T18:38:07Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Linked Joseph Fourier to its wiki page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1693&amp;diff=7452</id>
		<title>Item:Q1693</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1693&amp;diff=7452"/>
		<updated>2026-09-05T18:38:07Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add semantic entity&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1693&amp;diff=7451</id>
		<title>Item:Q1693</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1693&amp;diff=7451"/>
		<updated>2026-09-05T18:38:07Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add semantic entity&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Person:Jean_le_Rond_d%27Alembert&amp;diff=7450</id>
		<title>Person:Jean le Rond d&#039;Alembert</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Person:Jean_le_Rond_d%27Alembert&amp;diff=7450"/>
		<updated>2026-09-05T18:38:06Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Created the wiki page for Jean le Rond d&amp;#039;Alembert&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Person}}&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
French mathematician, physicist and philosopher; wrote down and solved the wave equation of the vibrating string in the 1740s.&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1692&amp;diff=7449</id>
		<title>Item:Q1692</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1692&amp;diff=7449"/>
		<updated>2026-09-05T18:38:06Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Linked Jean le Rond d&amp;#039;Alembert to its wiki page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1692&amp;diff=7448</id>
		<title>Item:Q1692</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1692&amp;diff=7448"/>
		<updated>2026-09-05T18:38:06Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add semantic entity&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1692&amp;diff=7447</id>
		<title>Item:Q1692</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1692&amp;diff=7447"/>
		<updated>2026-09-05T18:38:06Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add semantic entity&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=File:Heat_equation_numerical_solution.gif&amp;diff=7439</id>
		<title>File:Heat equation numerical solution.gif</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=File:Heat_equation_numerical_solution.gif&amp;diff=7439"/>
		<updated>2026-09-05T15:26:25Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Adding image for heat equation section (AI-assisted) (via upload-file-from-url on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Numerical solution of the one-dimensional heat equation showing how an initial temperature profile spreads and flattens over time. Credit: Kondensat (CC BY-SA 3.0), Wikimedia Commons.&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=File:Mplwp_damped_oscillations.svg&amp;diff=7438</id>
		<title>File:Mplwp damped oscillations.svg</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=File:Mplwp_damped_oscillations.svg&amp;diff=7438"/>
		<updated>2026-09-05T15:26:24Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Adding image for damped oscillator section (AI-assisted) (via upload-file-from-url on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Plot of the displacement of a damped harmonic oscillator for the three cases: underdamped, critically damped and overdamped (initial displacement 1, released from rest). Credit: Geek3 (CC BY 3.0), Wikimedia Commons.&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7436</id>
		<title>Differential equation</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7436"/>
		<updated>2026-09-05T13:53:54Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Rewrite in canonical style for non-specialist readers: full worked derivations, concrete numeric examples, slope fields, and links (not duplication) to the separate articles on series, Laplace, numerical, and qualitative methods. AI-assisted (RonzzWikiCowriter) (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;A differential equation&#039;&#039;&#039; 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$ asks for a number; a differential equation asks for a function whose rate of change obeys a stated rule.&lt;br /&gt;
&lt;br /&gt;
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 covers &#039;&#039;&#039;ordinary differential equations&#039;&#039;&#039; (ODEs), in which the unknown function depends on a single independent variable, and points to the articles that treat the more advanced solution techniques.&lt;br /&gt;
&lt;br /&gt;
== A first example: slopes and a family of solutions ==&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}=2x$$&lt;br /&gt;
&lt;br /&gt;
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$.&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dy}{dx}\,dx=\int 2x\,dx\qquad\Longrightarrow\qquad y(x)=x^{2}+C$$&lt;br /&gt;
&lt;br /&gt;
where $C$ is an arbitrary constant, because differentiating $x^2 + C$ gives $2x$ for every value of $C$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{d}{dx}\left(x^{2}+C\right)=2x$$&lt;br /&gt;
&lt;br /&gt;
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 &#039;&#039;&#039;general solution&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Two features are common to all differential equations, and both are visible in this tiny example:&lt;br /&gt;
&lt;br /&gt;
* the unknown is a function, not a number;&lt;br /&gt;
* the solutions come in a family, indexed here by the arbitrary constant $C$.&lt;br /&gt;
&lt;br /&gt;
An extra piece of information selects one member of the family. Suppose we want the solution whose graph passes through the point $(0, 3)$. Substituting $x = 0$ and $y = 3$ into the family fixes the constant:&lt;br /&gt;
&lt;br /&gt;
$$3=0^{2}+C\qquad\Longrightarrow\qquad C=3$$&lt;br /&gt;
&lt;br /&gt;
and the chosen solution is $y = x^{2} + 3$. Such an extra condition is called an &#039;&#039;&#039;initial condition&#039;&#039;&#039; (for historical reasons: for many equations the independent variable is time and the condition fixes the state at time zero), and a differential equation together with initial conditions is an &#039;&#039;&#039;initial value problem&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== Types of differential equations ==&lt;br /&gt;
&lt;br /&gt;
=== Order ===&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;order&#039;&#039;&#039; 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.&lt;br /&gt;
&lt;br /&gt;
Newton&#039;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:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1583}}&lt;br /&gt;
&lt;br /&gt;
where $x(t)$ is the position of a body of mass $m$ and $F$ is the net force.&lt;br /&gt;
&lt;br /&gt;
Each integration introduces one arbitrary constant, so the general solution of an equation of order $n$ typically contains $n$ constants, and $n$ extra conditions are needed to fix them. For a falling body this is easy to see. If only gravity acts, the force is constant, $F = -mg$ (taking the height $x$ positive upwards), so the equation of motion is&lt;br /&gt;
&lt;br /&gt;
$$m\frac{d^{2}x}{dt^{2}}=-mg\qquad\Longrightarrow\qquad\frac{d^{2}x}{dt^{2}}=-g$$&lt;br /&gt;
&lt;br /&gt;
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$:&lt;br /&gt;
&lt;br /&gt;
$$\frac{dx}{dt}=-gt+v_{0}$$&lt;br /&gt;
&lt;br /&gt;
Integrating again gives the height, and introduces a second constant, $x_{0}$, the height at $t = 0$:&lt;br /&gt;
&lt;br /&gt;
$$x(t)=-\frac{g}{2}\,t^{2}+v_{0}t+x_{0}$$&lt;br /&gt;
&lt;br /&gt;
Two conditions, the initial height and the initial velocity, are needed to fix both constants.&lt;br /&gt;
&lt;br /&gt;
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$:&lt;br /&gt;
&lt;br /&gt;
$$0=19.6-4.9\,t^{2}\qquad\Longrightarrow\qquad t=\sqrt{19.6/4.9}=2\ \text{seconds}$$&lt;br /&gt;
&lt;br /&gt;
since $\tfrac12 g = 4.9$. The example also shows how a differential equation can predict the future: the two initial conditions fix the whole trajectory.&lt;br /&gt;
&lt;br /&gt;
=== Linear and nonlinear ===&lt;br /&gt;
&lt;br /&gt;
A differential equation is &#039;&#039;&#039;linear&#039;&#039;&#039; 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 first-order linear equation can always be written as&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}+p(x)\,y=q(x)$$&lt;br /&gt;
&lt;br /&gt;
The equations&lt;br /&gt;
&lt;br /&gt;
$$\frac{dy}{dx}=y^{2},\qquad \frac{d^{2}\theta}{dt^{2}}+\sin\theta=0$$&lt;br /&gt;
&lt;br /&gt;
are nonlinear: the first contains the square of the unknown, the second the sine of it.&lt;br /&gt;
&lt;br /&gt;
Linearity matters because linear equations have a simple structure. If $y_{1}$ and $y_{2}$ both solve a linear equation whose right-hand side is zero (a &#039;&#039;&#039;homogeneous&#039;&#039;&#039; equation), then any combination $c_{1}y_{1} + c_{2}y_{2}$ solves it too. This is the superposition principle, and it fails for nonlinear equations. For instance, the growth equation $dy/dx = ky$ is solved by $e^{kx}$, and so is any multiple of it; but if $y_{1}$ and $y_{2}$ solve $dy/dx = y^{2}$, their sum does not, because $(y_{1}+y_{2})^{2}$ contains the extra cross term $2y_{1}y_{2}$. The practical upshot is that linear equations can usually be solved by systematic methods, whereas most nonlinear equations cannot (see below).&lt;br /&gt;
&lt;br /&gt;
=== Ordinary and partial ===&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;ordinary differential equation&#039;&#039;&#039; involves a function of a single independent variable, as in all the examples so far. A &#039;&#039;&#039;partial differential equation&#039;&#039;&#039; (PDE) involves a function of several independent variables, together with its partial derivatives. For example, the temperature $u(x, t)$ of a metal bar satisfies the heat equation&lt;br /&gt;
&lt;br /&gt;
$$\frac{\partial u}{\partial t}=\alpha\,\frac{\partial^{2}u}{\partial x^{2}}$$&lt;br /&gt;
&lt;br /&gt;
where the constant $\alpha$ measures how quickly heat spreads: a spot that is much warmer than its neighbours (large second derivative) warms or cools quickly. PDEs such as the heat, wave and Laplace equations form a whole branch of their own; the rest of this article concerns ordinary differential equations.&lt;br /&gt;
&lt;br /&gt;
== Slope fields: seeing the solutions without formulas ==&lt;br /&gt;
&lt;br /&gt;
A first-order equation solved for its derivative reads&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1581}}&lt;br /&gt;
&lt;br /&gt;
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 &#039;&#039;&#039;direction field&#039;&#039;&#039; (or slope field) for the equation.&lt;br /&gt;
&lt;br /&gt;
[[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. The field already shows the solutions climbing ever more steeply. Credit: jjbeard (public domain).]]&lt;br /&gt;
&lt;br /&gt;
A solution curve must be tangent to the field everywhere it passes, rather like a boat that is pushed by a current whose direction depends on where the boat is. The field therefore displays the whole solution family at a glance, without a single integration. For the equation $dy/dx = y$ pictured above, the field shows solutions rising ever more steeply in the upper half-plane (fast growth), diving down in the lower half-plane, and the horizontal line $y = 0$ is itself a solution. Reading behaviour directly from the field is often the only practical approach for equations that resist formulas.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Separable equations: growth and decay ==&lt;br /&gt;
&lt;br /&gt;
The first family of equations that can always be solved are the &#039;&#039;&#039;separable&#039;&#039;&#039; ones, those of the form&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1612}}&lt;br /&gt;
&lt;br /&gt;
in which the right-hand side is a product of a function of $x$ alone and a function of $y$ alone. Dividing both sides by $h(y)$ moves every $y$ to the left and every $x$ to the right, so the two sides can be integrated separately, and solving the result for $y$ gives the general solution.&lt;br /&gt;
&lt;br /&gt;
The single most important separable equation is the one describing a quantity that changes at a rate proportional to its own size:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1584}}&lt;br /&gt;
&lt;br /&gt;
with $k$ a constant. For $k &amp;gt; 0$ the quantity grows (a population with unlimited food, money earning interest); for $k &amp;lt; 0$ it decays (a radioactive substance). Dividing by $y$ and integrating,&lt;br /&gt;
&lt;br /&gt;
$$\frac{1}{y}\frac{dy}{dt}=k\qquad\Longrightarrow\qquad\int\frac{dy}{y}=\int k\,dt$$&lt;br /&gt;
&lt;br /&gt;
gives $\ln|y| = kt + C$. Exponentiating both sides,&lt;br /&gt;
&lt;br /&gt;
$$|y|=e^{kt+C}=e^{C}e^{kt}$$&lt;br /&gt;
&lt;br /&gt;
and absorbing the constant into the initial amount $y_{0} = y(0)$ gives the general solution:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1585}}&lt;br /&gt;
&lt;br /&gt;
Each fixed interval of time multiplies the quantity by the same factor $e^{k\Delta t}$, so growth ($k&amp;gt;0$) and decay ($k&amp;lt;0$) are both exponential. The time needed to double (for growth) or halve (for decay) is $\ln 2/|k|$, obtained from $e^{kt} = 2$ or $e^{kt} = \tfrac12$.&lt;br /&gt;
&lt;br /&gt;
A concrete example of growth: suppose a bank account pays interest at 5% per year, added continuously. If the balance is $A(t)$, it changes at the rate $dA/dt = 0.05\,A$. An initial deposit of €1000 therefore grows as $A(t) = 1000\,e^{0.05t}$, with $t$ in years. The money doubles when&lt;br /&gt;
&lt;br /&gt;
$$1000\,e^{0.05t}=2000\qquad\Longrightarrow\qquad 0.05\,t=\ln 2\qquad\Longrightarrow\qquad t=\frac{\ln 2}{0.05}\approx 13.9\ \text{years}$$&lt;br /&gt;
&lt;br /&gt;
and after 30 years the balance is $1000\,e^{1.5} \approx$ €4482, roughly four and a half times the deposit.&lt;br /&gt;
&lt;br /&gt;
The same equation with $k &amp;lt; 0$ describes decay: a substance whose half-life is 2 hours leaves an eighth of its original amount after 6 hours, because three half-lives have passed. Radioactive dating, drug elimination, and the discharge of a capacitor are all the same model.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Newton&#039;s law of cooling: decay towards a fixed level ==&lt;br /&gt;
&lt;br /&gt;
Growth and decay need not head towards zero; many quantities move towards a fixed level instead. A hot object cools at a rate proportional to the gap between its temperature and that of the room, not to its own temperature. This is Newton&#039;s law of cooling:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1586}}&lt;br /&gt;
&lt;br /&gt;
where $T(t)$ is the temperature of the object, $T_{a}$ the (constant) room temperature and $k &amp;gt; 0$. If $T &amp;gt; T_{a}$ the right-hand side is negative, so the object cools; if $T &amp;lt; T_{a}$ it warms. The equation is separable: moving the $T$-dependent factor to the left and integrating,&lt;br /&gt;
&lt;br /&gt;
$$\int\frac{dT}{T-T_{a}}=\int -k\,dt\qquad\Longrightarrow\qquad \ln|T-T_{a}|=-kt+C$$&lt;br /&gt;
&lt;br /&gt;
Exponentiating both sides,&lt;br /&gt;
&lt;br /&gt;
$$|T-T_{a}|=e^{-kt+C}=e^{C}e^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
For an object hotter than the room, $T - T_{a} &amp;gt; 0$ throughout, so the absolute value can be dropped, and absorbing $e^{C}$ into the initial temperature difference $T_{0} - T_{a}$ gives&lt;br /&gt;
&lt;br /&gt;
$$T(t)=T_{a}+\left(T_{0}-T_{a}\right)e^{-kt}$$&lt;br /&gt;
&lt;br /&gt;
So it is the temperature gap, not the temperature, that decays exponentially. As $t$ grows the gap shrinks towards zero: the formula predicts that the object approaches room temperature but never quite reaches it.&lt;br /&gt;
&lt;br /&gt;
A concrete example. A cup of coffee is at $80\,^{\circ}\mathrm{C}$ in a room at $20\,^{\circ}\mathrm{C}$, and after 10 minutes it has cooled to $50\,^{\circ}\mathrm{C}$. The initial gap $T_{0} - T_{a} = 60$ has halved to 30 in those 10 minutes, so the gap halves every 10 minutes and&lt;br /&gt;
&lt;br /&gt;
$$T(t)=20+60\cdot 2^{-t/10}$$&lt;br /&gt;
&lt;br /&gt;
with $t$ in minutes. After 20 minutes the gap is a quarter of its original value, so the coffee is at $20 + 15 = 35\,^{\circ}\mathrm{C}$. After an hour the temperature is $20 + 60/64 \approx 20.9\,^{\circ}\mathrm{C}$, barely above room temperature; the formula says it will cool more and more slowly, approaching $20\,^{\circ}\mathrm{C}$ without ever quite arriving.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The harmonic oscillator: equations whose solutions oscillate ==&lt;br /&gt;
&lt;br /&gt;
Some quantities do not settle towards a level but swing back and forth. 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&#039;s law), where the spring constant $k$ measures how stiff the spring is. Newton&#039;s second law therefore gives&lt;br /&gt;
&lt;br /&gt;
$$m\frac{d^{2}x}{dt^{2}}=-kx\qquad\Longrightarrow\qquad\frac{d^{2}x}{dt^{2}}+\frac{k}{m}x=0$$&lt;br /&gt;
&lt;br /&gt;
Writing $\omega_{0}^{2} = k/m$, this becomes the &#039;&#039;&#039;harmonic oscillator equation&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1588}}&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&lt;br /&gt;
$$\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)$$&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$x(t)=A\cos(\omega_{0}t)+B\sin(\omega_{0}t)$$&lt;br /&gt;
&lt;br /&gt;
The two constants $A$ and $B$ are fixed by the initial displacement and the initial velocity, exactly as the order of the equation requires.&lt;br /&gt;
&lt;br /&gt;
[[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).]]&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
&lt;br /&gt;
$$P=\frac{2\pi}{\omega_{0}}=\pi\ \text{seconds}\approx 3.14\ \text{s}$$&lt;br /&gt;
&lt;br /&gt;
so the mass returns to its starting point roughly every 3.14 seconds. One second after release, measuring angles in radians,&lt;br /&gt;
&lt;br /&gt;
$$x(1)=0.10\cos(2)\approx 0.10\times(-0.416)\approx -0.042\ \text{m}$$&lt;br /&gt;
&lt;br /&gt;
about 4 cm on the other side of the rest position. This kind of motion, a sinusoid of fixed amplitude, is called &#039;&#039;&#039;simple harmonic motion&#039;&#039;&#039;, and the oscillator equation governs not only springs but pendulums (for small swings), electric circuits, and the vibrations of molecules.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== When no formula can be found ==&lt;br /&gt;
&lt;br /&gt;
The equations solved above are the standard cases taught in a first course, and they are the exception rather than the rule. Most differential equations, and almost all nonlinear ones, cannot be solved by any combination of familiar functions, however cleverly combined. Realistic models are therefore studied in one of three ways:&lt;br /&gt;
&lt;br /&gt;
* if approximate numbers are wanted, the solution is stepped forward numerically, one small interval at a time (see the article [[Euler&#039;s method]]);&lt;br /&gt;
* if the behaviour matters more than the numbers, the equation is studied geometrically, through its slope fields, equilibria, stability, and long-term behaviour (see the article [[Qualitative methods]]);&lt;br /&gt;
* for special linear equations, solutions can be expressed as infinite series or recovered by integral transforms (see the articles [[Power series]] and [[Laplace transform]]).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;uml type=&amp;quot;uml&amp;quot;&amp;gt;&lt;br /&gt;
@startuml&lt;br /&gt;
skinparam monochrome true&lt;br /&gt;
start&lt;br /&gt;
:Given a differential equation;&lt;br /&gt;
if (Can you separate the variables, or recognise\nexponential or sinusoidal solutions?) then (yes)&lt;br /&gt;
  :Elementary solution:\na formula (a whole family of solutions);&lt;br /&gt;
else (no)&lt;br /&gt;
  if (Approximate numbers are enough?) then (yes)&lt;br /&gt;
    :Numerical stepping\n(article: Euler&#039;s method);&lt;br /&gt;
  else (no)&lt;br /&gt;
    if (The equation is linear and a series or\nintegral-transform formula may exist?) then (yes)&lt;br /&gt;
      :Series and transform methods\n(articles: Power series, Laplace transform);&lt;br /&gt;
    else (no)&lt;br /&gt;
      :Study the behaviour instead:\nequilibria, stability, chaos\n(article: Qualitative methods);&lt;br /&gt;
    endif&lt;br /&gt;
  endif&lt;br /&gt;
endif&lt;br /&gt;
stop&lt;br /&gt;
@enduml&lt;br /&gt;
&amp;lt;/uml&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The choice between these routes is part of the art of applying mathematics, and is treated in full in the standard textbooks.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== A short history ==&lt;br /&gt;
&lt;br /&gt;
[[File:Isaac Newton portrait.jpg|thumb|left|Isaac Newton (portrait after Godfrey Kneller, 1689). The laws of motion and of gravitation published in the &#039;&#039;Principia&#039;&#039; (1687) are differential equations. Credit: James Thronill after Godfrey Kneller (public domain).]]&lt;br /&gt;
&lt;br /&gt;
Differential equations arose together with the calculus developed by [[Person:Isaac Newton|Isaac Newton]] and [[Person:Gottfried Wilhelm Leibniz|Gottfried Wilhelm Leibniz]] in the second half of the 17th century. Newton&#039;s laws of motion, published in his &#039;&#039;Principia&#039;&#039; of 1687, are differential equations, and it is Leibniz&#039;s notation $dy/dx$, introduced in the same period, that is still used today. In the 18th century [[Person:Leonhard Euler|Leonhard Euler]] turned a collection of ad hoc tricks into a systematic theory, developing the solution of linear equations with constant coefficients, series methods, and the first numerical integration scheme, which still bears his name.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Leonhard Euler portrait.jpg|thumb|Leonhard Euler (portrait by Jakob Emanuel Handmann, 1753). Euler created much of the systematic theory of differential equations in the 18th century. Credit: Jakob Emanuel Handmann (public domain).]]&lt;br /&gt;
&lt;br /&gt;
Alongside the theory of ordinary equations, the physics of the 18th and 19th centuries produced the partial differential equations: Jean le Rond d&#039;Alembert wrote down and solved the wave equation of the vibrating string in the 1740s, and Joseph Fourier derived the heat equation from the physics of conduction and solved it with trigonometric series in his &#039;&#039;Théorie analytique de la chaleur&#039;&#039; of 1822, founding Fourier analysis.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Two developments of the 20th century completed the modern picture. On the one hand, numerical computing made it possible to approximate the solutions of equations that cannot be solved in formulas. On the other, the geometric ideas of [[Person:Henri Poincaré|Henri Poincaré]], who studied the three-body problem of celestial mechanics at the end of the 19th century, grew into the qualitative theory of dynamical systems, in which equilibria, stability, and long-term behaviour are studied without solving the equations. In 1963 the meteorologist [[Person:Edward Lorenz|Edward Lorenz]] found chaotic behaviour in a simple system of three differential equations modelling atmospheric convection: although the equations were deterministic, their solutions were aperiodic and so sensitive to initial conditions that long-term weather prediction is impossible in practice.&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Differential_equation Differential equation], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/DifferentialEquation.html Differential Equation], Wolfram MathWorld&lt;br /&gt;
* [https://ocw.mit.edu/courses/18-03sc-differential-equations-fall-2011/ 18.03SC Differential Equations], MIT OpenCourseWare&lt;br /&gt;
* [https://mathshistory.st-andrews.ac.uk/Biographies/Euler/ Leonhard Euler], MacTutor History of Mathematics&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Power_series&amp;diff=7431</id>
		<title>Power series</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Power_series&amp;diff=7431"/>
		<updated>2026-09-05T13:31:13Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Annuity example: the first payment is made immediately, so it is worth €100 today and the present-value sum runs from n = 0 and equals €2100. AI-assisted (RonzzWikiCowriter). (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;A power series&#039;&#039;&#039; is an infinite sum with the general form&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1667}}&lt;br /&gt;
&lt;br /&gt;
The numbers $a_0$, $a_1$, $a_2$, … are constants, known as the &#039;&#039;&#039;coefficients&#039;&#039;&#039;, and $c$, also a constant, is known as the &#039;&#039;&#039;centre&#039;&#039;&#039; of the series.&lt;br /&gt;
&lt;br /&gt;
== The simplest form: The geometric series ==&lt;br /&gt;
&lt;br /&gt;
The simplest power series to study is the one in which every coefficient is 1 and the centre is 0:&lt;br /&gt;
&lt;br /&gt;
$$1 + x + x^2 + x^3 + \cdots$$&lt;br /&gt;
&lt;br /&gt;
As seen, each term multiplies the previous one by $x$. This is known as a &#039;&#039;&#039;geometric series&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
For a geometric series, we can calculate the partial sum of the first $N + 1$ terms, $S_N = 1 + x + x^2 + \cdots + x^N$:&lt;br /&gt;
&lt;br /&gt;
Multiply both sides of this equation by $(1 - x)$ and eliminate the brackets:&lt;br /&gt;
&lt;br /&gt;
$$(1-x)S_{N}=(1-x)(1+x+x^{2}+\cdots+x^{N})=(1+x+x^{2}+\cdots+x^{N})-(x+x^{2}+\cdots+x^{N+1})=1-x^{N+1}$$&lt;br /&gt;
&lt;br /&gt;
Dividing both sides again by $(1 - x)$, we therefore have&lt;br /&gt;
&lt;br /&gt;
$$S_{N}=\frac{1-x^{N+1}}{1-x}\qquad(x\neq 1)$$ (1)&lt;br /&gt;
&lt;br /&gt;
When $N \to \infty$, we have&lt;br /&gt;
&lt;br /&gt;
$$\sum_{n=0}^{\infty}x^{n}=\lim_{N \to \infty}S_N=\lim_{N \to \infty}\frac{1-x^{N+1}}{1-x}\qquad(x\neq 1) $$&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;When $-1 &amp;lt; x &amp;lt; 1$: the series converges.&#039;&#039;&#039; As $N$ grows, the number $x^{N+1}$ shrinks towards 0, so the partial sums approach a definite number:&lt;br /&gt;
&lt;br /&gt;
$$\sum_{n=0}^{\infty}x^{n}=\frac{1}{1-x}\qquad\text{whenever }-1&amp;lt;x&amp;lt;1$$&lt;br /&gt;
&lt;br /&gt;
With $x = 0.1$, for instance, the partial sums run 1; 1.1; 1.11; 1.111; …, settling on 1.111…, and indeed $1/(1 - 0.1) = 1/0.9 = 10/9 = 1.111\ldots$&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;When $x = 1$: the series diverges.&#039;&#039;&#039; Notice (1) breaks down here, because $1 - x = 0$ and we cannot divide by 0. The sum is, however, easy to calculate: every term equals 1, so $\lim_{N \to \infty} S_N = \lim_{N \to \infty} (N + 1) = \infty$&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Case $x = -1$: the series diverges by oscillation.&#039;&#039;&#039; The partial sums run 1, 0, 1, 0, 1, … and never settle on a single number. The formula $1/(1 - x)$ would give $1/2$ at $x = -1$, but notice that is the average of 1 and 0. The formula (1) does not guarantee convergence.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Case $|x| &amp;gt; 1$: the series diverges, as expected.&#039;&#039;&#039; When $x &amp;gt; 1$, the infinite sum is the sum of an infinite number of increasingly large positive numbers, which goes to infinity. When $x &amp;lt; -1$, the infinite sum oscillates between positive and negative infinity, as it is dominated by the last term, which may be positive or negative.&lt;br /&gt;
&lt;br /&gt;
=== Real-world application of geometric series ===&lt;br /&gt;
&lt;br /&gt;
If someone promises to pay you €100 each year until the end of your life on earth, with the first payment made today, how much is that promise worth?&lt;br /&gt;
&lt;br /&gt;
On first thought, this promise is worth quite a lot of money, especially if you count on living for decades more. However, you must take into account inflation, which in Europe averages out to about 5% per year. The €100 paid today is worth its full €100, a payment of €100 one year from now is worth only €$100/1.05$ in today&#039;s money, and a payment in two years is worth only €$(100)/(1.05)^2$ in today&#039;s money, and so on. A payment of €100 every year, forever, is therefore worth today&lt;br /&gt;
&lt;br /&gt;
$$\sum_{n=0}^{\infty}\frac{100}{1.05^{n}}=2100$$&lt;br /&gt;
&lt;br /&gt;
It is still a handsome sum, if you can live on forever.&lt;br /&gt;
&lt;br /&gt;
== Radius of convergence of a power series ==&lt;br /&gt;
&lt;br /&gt;
In the previous section, we have seen that even the simplest power series, a geometric series, may or may not converge depending on the value of $x$. In general, for a power series centred at $c$, there is a number $R \geq 0$, called the &#039;&#039;&#039;radius of convergence&#039;&#039;&#039;, such that:&lt;br /&gt;
&lt;br /&gt;
* the series converges for every $x$ with $|x - c| &amp;lt; R$ (closer to the centre than $R$);&lt;br /&gt;
* the series diverges for every $x$ with $|x - c| &amp;gt; R$.&lt;br /&gt;
&lt;br /&gt;
The set $|x - c| &amp;lt; R$, an interval of length $2R$ centred at $c$, is called the &#039;&#039;&#039;interval of convergence of the series&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
For the two boundary points where $|x - c| = R$, the convergence is uncertain and depends on specific characteristics of a given power series.&lt;br /&gt;
&lt;br /&gt;
In general, consecutive terms of a power series $a_{n+1} (x - c)^{n+1}$ and $a_n (x - c)^n$ have magnitudes in the ratio $|a_{n+1}/a_n| \cdot |x - c|$. If, in the long run, this ratio stays below 1, intuitively the series behaves like a convergent geometric series; if the ratio stays above 1, terms grow larger and larger and the series diverges. Therefore we have&lt;br /&gt;
&lt;br /&gt;
$$R=\lim_{n\to\infty}\left|\frac{a_{n}}{a_{n+1}}\right|\quad\text{when the limit exists}$$&lt;br /&gt;
&lt;br /&gt;
A quick sanity check with geometric series: For the geometric series, every coefficient is 1, so the ratio is 1 and $R = 1$, matching the interval $-1 &amp;lt; x &amp;lt; 1$ found by direct calculation in the section above.&lt;br /&gt;
&lt;br /&gt;
Two special cases exist:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Infinite radius, $R = \infty$:&#039;&#039;&#039; the series converges for every $x$. The exponential and sine series in the next section are the standard examples.&lt;br /&gt;
* &#039;&#039;&#039;Zero radius, $R = 0$:&#039;&#039;&#039; the series converges only at the centre itself. For instance the series $1 + x + 2!\,x^2 + 3!\,x^3 + \cdots$ (whose coefficient of $x^n$ is $n!$) has $|a_n/a_{n+1}| = n!/(n + 1)! = 1/(n + 1) \to 0$, so $R = 0$; for any $x \neq 0$ the terms eventually grow without bound.&lt;br /&gt;
&lt;br /&gt;
== The exponential and sine series ==&lt;br /&gt;
&lt;br /&gt;
The power series can be used to approximate known functions that are difficult to calculate directly, such as $e^x$ or $\sin x$.&lt;br /&gt;
&lt;br /&gt;
Imagine we would like to approximate some function $f(x)$ with a power series. We would therefore write&lt;br /&gt;
&lt;br /&gt;
$$f(x)=\sum_{n=0}^{\infty}a_{n}(x-c)^{n}$$&lt;br /&gt;
&lt;br /&gt;
where $c$ and $a_n$ are unknown.&lt;br /&gt;
&lt;br /&gt;
Taking the $k$-th derivative of $f(x)$, we have&lt;br /&gt;
&lt;br /&gt;
$$f^{(k)}(x)=\sum_{n=k}^{\infty}\frac{n!}{(n-k)!}\,a_{n}\,(x-c)^{n-k}$$&lt;br /&gt;
&lt;br /&gt;
Evaluating at $x=c$, we have &lt;br /&gt;
&lt;br /&gt;
$$a_{k}=\frac{f^{(k)}(c)}{k!}$$&lt;br /&gt;
&lt;br /&gt;
Generalising to every $n$, we obtain&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1688}} (2)&lt;br /&gt;
&lt;br /&gt;
=== The exponential series ===&lt;br /&gt;
&lt;br /&gt;
The exponential function $e^x$ has defining properties $\frac{d e^x}{dx}=e^x$ and $e^0 = 1$. Consequently, choosing $c=0$ we have&lt;br /&gt;
&lt;br /&gt;
$$f^{(n)}(0) = 1$$ &lt;br /&gt;
&lt;br /&gt;
for every $n$. From (2) we have $a_n = 1/n!$, so&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1684}}&lt;br /&gt;
&lt;br /&gt;
Intuitively, the factorial $n! = 1\cdot 2\cdot 3\cdot\cdots\cdot n$ in the denominator grows much faster than any power function towards infinity, so the terms shrink and the series should converge for every $x$. &lt;br /&gt;
&lt;br /&gt;
Applying the ratio test confirms $R = \infty$:&lt;br /&gt;
&lt;br /&gt;
$$R=\lim_{n\to\infty}\left|\frac{a_{n}}{a_{n+1}}\right|=\lim_{n\to\infty}\frac{(n+1)!}{n!}=\lim_{n\to\infty}(n+1)=\infty$$&lt;br /&gt;
&lt;br /&gt;
A quick sanity check: setting $x = 1$ in the series gives the number $e$ itself: $e = 1 + 1 + 1/2 + 1/6 + 1/24 + \cdots = 2.718\,281\,828\ldots$&lt;br /&gt;
&lt;br /&gt;
=== The sine series ===&lt;br /&gt;
&lt;br /&gt;
Again choosing $c=0$:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1686}}&lt;br /&gt;
&lt;br /&gt;
Apply once again the ratio test:&lt;br /&gt;
&lt;br /&gt;
$$\lim_{k \to \infty} \frac{\frac{x^{2k+1}}{(2k+1)!}}{\frac{x^{2k+3}}{(2k+3)!}}=\lim_{k \to \infty}\frac{(2k+2)(2k+3)}{x^{2}}= \infty$$&lt;br /&gt;
&lt;br /&gt;
which means the series converges as expected, to $\sin x$.&lt;br /&gt;
&lt;br /&gt;
== The binomial series ==&lt;br /&gt;
&lt;br /&gt;
One more family of power series is useful enough to know by name. For any fixed exponent $p$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1689}}&lt;br /&gt;
&lt;br /&gt;
== Power series solutions of differential equations ==&lt;br /&gt;
&lt;br /&gt;
A further application of power series is to solve differential equations whose coefficients vary with $x$. Such equations rarely have solutions built from a finite combination of familiar functions, but a solution can sometimes be written down as a power series. Substituting the series into the equation and equating the coefficients of like powers of $x$ turns the differential equation into recurrence relations that fix the coefficients one after another; the constants left free by the recurrence are exactly the arbitrary constants of the equation, and the resulting series solves the equation exactly on its interval of convergence.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Case 1: expanding about an ordinary point, the Airy equation ===&lt;br /&gt;
&lt;br /&gt;
The Airy equation&lt;br /&gt;
&lt;br /&gt;
$$y^{\prime\prime} - xy = 0$$ (3)&lt;br /&gt;
&lt;br /&gt;
is named after [[Person:George Biddell Airy|George Biddell Airy]], who employed it in 1838 while studying the intensity of light near a caustic. Its solutions cannot be written as finite combinations of elementary functions, so it is the standard test case for series methods.&lt;br /&gt;
&lt;br /&gt;
Setting &lt;br /&gt;
&lt;br /&gt;
$$y=C\sum_{n=0}^{\infty}a_{n}x^{n}$$&lt;br /&gt;
&lt;br /&gt;
where $a_n$ are unknown coefficients. We have therefore&lt;br /&gt;
&lt;br /&gt;
$$\quad\Rightarrow\quad y^{\prime\prime}=C\sum_{n=0}^{\infty}(n+2)(n+1)\,a_{n+2}\,x^{n},\qquad xy=C\sum_{n=1}^{\infty}a_{n-1}\,x^{n}$$&lt;br /&gt;
&lt;br /&gt;
Substituting these two expressions back into (3) and collecting terms, noting that the equality must hold for every value of $x$, gives&lt;br /&gt;
&lt;br /&gt;
$$\quad a_{2}=0,\qquad (n+2)(n+1)\,a_{n+2}=a_{n-1}\qquad(n\geq 1)$$&lt;br /&gt;
&lt;br /&gt;
We can thereby express all the coefficients in terms of $a_0$ and $a_1$:&lt;br /&gt;
&lt;br /&gt;
$$a_3 = a_0/(3\cdot 2) = a_0/6, \qquad a_6 = a_3/(6\cdot 5) = a_0/180,$$&lt;br /&gt;
&lt;br /&gt;
$$a_4 = a_1/(4\cdot 3) = a_1/12, \qquad a_7 = a_4/(7\cdot 6) = a_1/504,$$&lt;br /&gt;
&lt;br /&gt;
$$a_5 = a_2/(5\cdot 4) = 0, \qquad a_8 = a_5/(8\cdot 7) = 0,$$&lt;br /&gt;
&lt;br /&gt;
The solution is therefore: &lt;br /&gt;
&lt;br /&gt;
$$y=C (a_{0}\left(1+\frac{x^{3}}{6}+\frac{x^{6}}{180}+\cdots\right)+a_{1}\left(x+\frac{x^{4}}{12}+\frac{x^{7}}{504}+\cdots\right))$$&lt;br /&gt;
&lt;br /&gt;
The ratio test gives $R = \infty$, so each series converges for every $x$. Setting $C_1 = Ca_0$ and $C_2 = Ca_1$, and denoting the two bracketed series by $A(x)$ and $B(x)$, we arrive at the well-known form&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1609}}&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Power_series Power series], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/PowerSeries.html Power Series], Wolfram MathWorld&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Frobenius_method Frobenius method], Wikipedia&lt;br /&gt;
* [https://tutorial.math.lamar.edu/classes/calcii/PowerSeries.aspx Power Series], Paul&#039;s Online Math Notes&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Power_series&amp;diff=7429</id>
		<title>Power series</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Power_series&amp;diff=7429"/>
		<updated>2026-09-05T13:23:27Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Proofread: fix grammar (&amp;quot;Redivide&amp;quot;, stray commas, &amp;quot;there by&amp;quot;, &amp;quot;should converges&amp;quot;), correct the derivative formula (multiply by n!/(n-k)!), fix the perpetuity sum (n from 1, value 2000), fix |x|&amp;gt;1 case to x&amp;lt;−1, complete the dangling binomial &amp;quot;two cases&amp;quot;, and repair broken math delimiters in the Airy conclusion. AI-assisted (RonzzWikiCowriter). (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;A power series&#039;&#039;&#039; is an infinite sum with the general form&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1667}}&lt;br /&gt;
&lt;br /&gt;
The numbers $a_0$, $a_1$, $a_2$, … are constants, known as the &#039;&#039;&#039;coefficients&#039;&#039;&#039;, and $c$, also a constant, is known as the &#039;&#039;&#039;centre&#039;&#039;&#039; of the series.&lt;br /&gt;
&lt;br /&gt;
== The simplest form: The geometric series ==&lt;br /&gt;
&lt;br /&gt;
The simplest power series to study is the one in which every coefficient is 1 and the centre is 0:&lt;br /&gt;
&lt;br /&gt;
$$1 + x + x^2 + x^3 + \cdots$$&lt;br /&gt;
&lt;br /&gt;
As seen, each term multiplies the previous one by $x$. This is known as a &#039;&#039;&#039;geometric series&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
For a geometric series, we can calculate the partial sum of the first $N + 1$ terms, $S_N = 1 + x + x^2 + \cdots + x^N$:&lt;br /&gt;
&lt;br /&gt;
Multiply both sides of this equation by $(1 - x)$ and eliminate the brackets:&lt;br /&gt;
&lt;br /&gt;
$$(1-x)S_{N}=(1-x)(1+x+x^{2}+\cdots+x^{N})=(1+x+x^{2}+\cdots+x^{N})-(x+x^{2}+\cdots+x^{N+1})=1-x^{N+1}$$&lt;br /&gt;
&lt;br /&gt;
Dividing both sides again by $(1 - x)$, we therefore have&lt;br /&gt;
&lt;br /&gt;
$$S_{N}=\frac{1-x^{N+1}}{1-x}\qquad(x\neq 1)$$ (1)&lt;br /&gt;
&lt;br /&gt;
When $N \to \infty$, we have&lt;br /&gt;
&lt;br /&gt;
$$\sum_{n=0}^{\infty}x^{n}=\lim_{N \to \infty}S_N=\lim_{N \to \infty}\frac{1-x^{N+1}}{1-x}\qquad(x\neq 1) $$&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;When $-1 &amp;lt; x &amp;lt; 1$: the series converges.&#039;&#039;&#039; As $N$ grows, the number $x^{N+1}$ shrinks towards 0, so the partial sums approach a definite number:&lt;br /&gt;
&lt;br /&gt;
$$\sum_{n=0}^{\infty}x^{n}=\frac{1}{1-x}\qquad\text{whenever }-1&amp;lt;x&amp;lt;1$$&lt;br /&gt;
&lt;br /&gt;
With $x = 0.1$, for instance, the partial sums run 1; 1.1; 1.11; 1.111; …, settling on 1.111…, and indeed $1/(1 - 0.1) = 1/0.9 = 10/9 = 1.111\ldots$&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;When $x = 1$: the series diverges.&#039;&#039;&#039; Notice (1) breaks down here, because $1 - x = 0$ and we cannot divide by 0. The sum is, however, easy to calculate: every term equals 1, so $\lim_{N \to \infty} S_N = \lim_{N \to \infty} (N + 1) = \infty$&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Case $x = -1$: the series diverges by oscillation.&#039;&#039;&#039; The partial sums run 1, 0, 1, 0, 1, … and never settle on a single number. The formula $1/(1 - x)$ would give $1/2$ at $x = -1$, but notice that is the average of 1 and 0. The formula (1) does not guarantee convergence.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Case $|x| &amp;gt; 1$: the series diverges, as expected.&#039;&#039;&#039; When $x &amp;gt; 1$, the infinite sum is the sum of an infinite number of increasingly large positive numbers, which goes to infinity. When $x &amp;lt; -1$, the infinite sum oscillates between positive and negative infinity, as it is dominated by the last term, which may be positive or negative.&lt;br /&gt;
&lt;br /&gt;
=== Real-world application of geometric series ===&lt;br /&gt;
&lt;br /&gt;
If someone promises to pay you €100 each year until the end of your life on earth, how much is that promise worth?&lt;br /&gt;
&lt;br /&gt;
On first thought, this promise is worth quite a lot of money, especially if you count on living for decades more. However, you must take into account inflation, which in Europe averages out to about 5% per year. A payment of €100 one year from now is worth only €$100/1.05$ in today&#039;s money, and a payment in two years is worth only €$(100)/(1.05)^2$ in today&#039;s money, and so on. A payment of €100 every year, forever, is therefore worth today&lt;br /&gt;
&lt;br /&gt;
$$\sum_{n=1}^{\infty}\frac{100}{1.05^{n}}=2000$$&lt;br /&gt;
&lt;br /&gt;
It is still a handsome sum, if you can live on forever.&lt;br /&gt;
&lt;br /&gt;
== Radius of convergence of a power series ==&lt;br /&gt;
&lt;br /&gt;
In the previous section, we have seen that even the simplest power series, a geometric series, may or may not converge depending on the value of $x$. In general, for a power series centred at $c$, there is a number $R \geq 0$, called the &#039;&#039;&#039;radius of convergence&#039;&#039;&#039;, such that:&lt;br /&gt;
&lt;br /&gt;
* the series converges for every $x$ with $|x - c| &amp;lt; R$ (closer to the centre than $R$);&lt;br /&gt;
* the series diverges for every $x$ with $|x - c| &amp;gt; R$.&lt;br /&gt;
&lt;br /&gt;
The set $|x - c| &amp;lt; R$, an interval of length $2R$ centred at $c$, is called the &#039;&#039;&#039;interval of convergence of the series&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
For the two boundary points where $|x - c| = R$, the convergence is uncertain and depends on specific characteristics of a given power series.&lt;br /&gt;
&lt;br /&gt;
In general, consecutive terms of a power series $a_{n+1} (x - c)^{n+1}$ and $a_n (x - c)^n$ have magnitudes in the ratio $|a_{n+1}/a_n| \cdot |x - c|$. If, in the long run, this ratio stays below 1, intuitively the series behaves like a convergent geometric series; if the ratio stays above 1, terms grow larger and larger and the series diverges. Therefore we have&lt;br /&gt;
&lt;br /&gt;
$$R=\lim_{n\to\infty}\left|\frac{a_{n}}{a_{n+1}}\right|\quad\text{when the limit exists}$$&lt;br /&gt;
&lt;br /&gt;
A quick sanity check with geometric series: For the geometric series, every coefficient is 1, so the ratio is 1 and $R = 1$, matching the interval $-1 &amp;lt; x &amp;lt; 1$ found by direct calculation in the section above.&lt;br /&gt;
&lt;br /&gt;
Two special cases exist:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Infinite radius, $R = \infty$:&#039;&#039;&#039; the series converges for every $x$. The exponential and sine series in the next section are the standard examples.&lt;br /&gt;
* &#039;&#039;&#039;Zero radius, $R = 0$:&#039;&#039;&#039; the series converges only at the centre itself. For instance the series $1 + x + 2!\,x^2 + 3!\,x^3 + \cdots$ (whose coefficient of $x^n$ is $n!$) has $|a_n/a_{n+1}| = n!/(n + 1)! = 1/(n + 1) \to 0$, so $R = 0$; for any $x \neq 0$ the terms eventually grow without bound.&lt;br /&gt;
&lt;br /&gt;
== The exponential and sine series ==&lt;br /&gt;
&lt;br /&gt;
The power series can be used to approximate known functions that are difficult to calculate directly, such as $e^x$ or $\sin x$.&lt;br /&gt;
&lt;br /&gt;
Imagine we would like to approximate some function $f(x)$ with a power series. We would therefore write&lt;br /&gt;
&lt;br /&gt;
$$f(x)=\sum_{n=0}^{\infty}a_{n}(x-c)^{n}$$&lt;br /&gt;
&lt;br /&gt;
where $c$ and $a_n$ are unknown.&lt;br /&gt;
&lt;br /&gt;
Taking the $k$-th derivative of $f(x)$, we have&lt;br /&gt;
&lt;br /&gt;
$$f^{(k)}(x)=\sum_{n=k}^{\infty}\frac{n!}{(n-k)!}\,a_{n}\,(x-c)^{n-k}$$&lt;br /&gt;
&lt;br /&gt;
Evaluating at $x=c$, we have &lt;br /&gt;
&lt;br /&gt;
$$a_{k}=\frac{f^{(k)}(c)}{k!}$$&lt;br /&gt;
&lt;br /&gt;
Generalising to every $n$, we obtain&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1688}} (2)&lt;br /&gt;
&lt;br /&gt;
=== The exponential series ===&lt;br /&gt;
&lt;br /&gt;
The exponential function $e^x$ has defining properties $\frac{d e^x}{dx}=e^x$ and $e^0 = 1$. Consequently, choosing $c=0$ we have&lt;br /&gt;
&lt;br /&gt;
$$f^{(n)}(0) = 1$$ &lt;br /&gt;
&lt;br /&gt;
for every $n$. From (2) we have $a_n = 1/n!$, so&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1684}}&lt;br /&gt;
&lt;br /&gt;
Intuitively, the factorial $n! = 1\cdot 2\cdot 3\cdot\cdots\cdot n$ in the denominator grows much faster than any power function towards infinity, so the terms shrink and the series should converge for every $x$. &lt;br /&gt;
&lt;br /&gt;
Applying the ratio test confirms $R = \infty$:&lt;br /&gt;
&lt;br /&gt;
$$R=\lim_{n\to\infty}\left|\frac{a_{n}}{a_{n+1}}\right|=\lim_{n\to\infty}\frac{(n+1)!}{n!}=\lim_{n\to\infty}(n+1)=\infty$$&lt;br /&gt;
&lt;br /&gt;
A quick sanity check: setting $x = 1$ in the series gives the number $e$ itself: $e = 1 + 1 + 1/2 + 1/6 + 1/24 + \cdots = 2.718\,281\,828\ldots$&lt;br /&gt;
&lt;br /&gt;
=== The sine series ===&lt;br /&gt;
&lt;br /&gt;
Again choosing $c=0$:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1686}}&lt;br /&gt;
&lt;br /&gt;
Apply once again the ratio test:&lt;br /&gt;
&lt;br /&gt;
$$\lim_{k \to \infty} \frac{\frac{x^{2k+1}}{(2k+1)!}}{\frac{x^{2k+3}}{(2k+3)!}}=\lim_{k \to \infty}\frac{(2k+2)(2k+3)}{x^{2}}= \infty$$&lt;br /&gt;
&lt;br /&gt;
which means the series converges as expected, to $\sin x$.&lt;br /&gt;
&lt;br /&gt;
== The binomial series ==&lt;br /&gt;
&lt;br /&gt;
One more family of power series is useful enough to know by name. For any fixed exponent $p$,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1689}}&lt;br /&gt;
&lt;br /&gt;
Two cases behave differently and should not be confused:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;$p$ a non-negative integer:&#039;&#039;&#039; the product $p(p-1)\cdots(p-k+1)$ vanishes once $k$ exceeds $p$, so the series ends after the term in $x^p$ and reduces to the ordinary binomial theorem, which holds for every $x$;&lt;br /&gt;
* &#039;&#039;&#039;every other $p$:&#039;&#039;&#039; the series continues forever and converges for $-1 &amp;lt; x &amp;lt; 1$ as indicated above; at the endpoints $x = \pm 1$ convergence depends on the value of $p$.&lt;br /&gt;
&lt;br /&gt;
== Power series solutions of differential equations ==&lt;br /&gt;
&lt;br /&gt;
A further application of power series is to solve differential equations whose coefficients vary with $x$. Such equations rarely have solutions built from a finite combination of familiar functions, but a solution can sometimes be written down as a power series. Substituting the series into the equation and equating the coefficients of like powers of $x$ turns the differential equation into recurrence relations that fix the coefficients one after another; the constants left free by the recurrence are exactly the arbitrary constants of the equation, and the resulting series solves the equation exactly on its interval of convergence.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Case 1: expanding about an ordinary point, the Airy equation ===&lt;br /&gt;
&lt;br /&gt;
The Airy equation&lt;br /&gt;
&lt;br /&gt;
$$y^{\prime\prime} - xy = 0$$ (3)&lt;br /&gt;
&lt;br /&gt;
is named after [[Person:George Biddell Airy|George Biddell Airy]], who employed it in 1838 while studying the intensity of light near a caustic. Its solutions cannot be written as finite combinations of elementary functions, so it is the standard test case for series methods.&lt;br /&gt;
&lt;br /&gt;
Setting &lt;br /&gt;
&lt;br /&gt;
$$y=C\sum_{n=0}^{\infty}a_{n}x^{n}$$&lt;br /&gt;
&lt;br /&gt;
where $a_n$ are unknown coefficients. We have therefore&lt;br /&gt;
&lt;br /&gt;
$$\quad\Rightarrow\quad y^{\prime\prime}=C\sum_{n=0}^{\infty}(n+2)(n+1)\,a_{n+2}\,x^{n},\qquad xy=C\sum_{n=1}^{\infty}a_{n-1}\,x^{n}$$&lt;br /&gt;
&lt;br /&gt;
Substituting these two expressions back into (3) and collecting terms, noting that the equality must hold for every value of $x$, gives&lt;br /&gt;
&lt;br /&gt;
$$\quad a_{2}=0,\qquad (n+2)(n+1)\,a_{n+2}=a_{n-1}\qquad(n\geq 1)$$&lt;br /&gt;
&lt;br /&gt;
We can thereby express all the coefficients in terms of $a_0$ and $a_1$:&lt;br /&gt;
&lt;br /&gt;
$$a_3 = a_0/(3\cdot 2) = a_0/6, \qquad a_6 = a_3/(6\cdot 5) = a_0/180,$$&lt;br /&gt;
&lt;br /&gt;
$$a_4 = a_1/(4\cdot 3) = a_1/12, \qquad a_7 = a_4/(7\cdot 6) = a_1/504,$$&lt;br /&gt;
&lt;br /&gt;
$$a_5 = a_2/(5\cdot 4) = 0, \qquad a_8 = a_5/(8\cdot 7) = 0,$$&lt;br /&gt;
&lt;br /&gt;
The solution is therefore: &lt;br /&gt;
&lt;br /&gt;
$$y=C (a_{0}\left(1+\frac{x^{3}}{6}+\frac{x^{6}}{180}+\cdots\right)+a_{1}\left(x+\frac{x^{4}}{12}+\frac{x^{7}}{504}+\cdots\right))$$&lt;br /&gt;
&lt;br /&gt;
The ratio test gives $R = \infty$, so each series converges for every $x$. Setting $C_1 = Ca_0$ and $C_2 = Ca_1$, and denoting the two bracketed series by $A(x)$ and $B(x)$, we arrive at the well-known form&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1609}}&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Power_series Power series], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/PowerSeries.html Power Series], Wolfram MathWorld&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Frobenius_method Frobenius method], Wikipedia&lt;br /&gt;
* [https://tutorial.math.lamar.edu/classes/calcii/PowerSeries.aspx Power Series], Paul&#039;s Online Math Notes&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Power_series&amp;diff=7408</id>
		<title>Power series</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Power_series&amp;diff=7408"/>
		<updated>2026-09-04T15:21:47Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Rewrite for an undergraduate, non-math-specialist audience: build-up from the geometric series, case-by-case convergence, general case + worked numeric examples, full derivations; series solutions of ODEs kept as the advanced application. AI-assisted (RonzzWikiCowriter) (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;A power series&#039;&#039;&#039; is an infinite sum built from the powers of a variable: a sum with infinitely many terms, each a constant times a power of &#039;&#039;x&#039;&#039;. The general form, centred at a number &#039;&#039;c&#039;&#039;, is&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1667}}&lt;br /&gt;
&lt;br /&gt;
The numbers &#039;&#039;a&#039;&#039;₀, &#039;&#039;a&#039;&#039;₁, &#039;&#039;a&#039;&#039;₂, … are the &#039;&#039;&#039;coefficients&#039;&#039;&#039;, and &#039;&#039;c&#039;&#039; is the &#039;&#039;&#039;centre&#039;&#039;&#039; of the series. When &#039;&#039;c&#039;&#039; = 0, the powers are simply &#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sup&amp;gt; and the series reads &#039;&#039;a&#039;&#039;₀ + &#039;&#039;a&#039;&#039;₁&#039;&#039;x&#039;&#039; + &#039;&#039;a&#039;&#039;₂&#039;&#039;x&#039;&#039;² + ⋯.&lt;br /&gt;
&lt;br /&gt;
A power series is, in plain words, a polynomial with infinitely many terms. Its usefulness comes from the fact that its terms require only the four basic operations of arithmetic to evaluate: each term &#039;&#039;a&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sub&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sup&amp;gt; is a multiplication followed by an addition. Stopping after finitely many terms leaves a polynomial that approximates the value of the whole sum, and keeping more terms improves the approximation (wherever the series converges). Numbers that have no formula built from basic operations alone, such as e&amp;lt;sup&amp;gt;0.05&amp;lt;/sup&amp;gt; or sin 1, can therefore be computed to any desired accuracy by arithmetic only. This is the idea behind the scientific functions on calculators and in spreadsheets, and it is the reason power series pervade science.&lt;br /&gt;
&lt;br /&gt;
== The geometric series ==&lt;br /&gt;
&lt;br /&gt;
The simplest power series to study is the one in which every coefficient is 1 and the centre is 0:&lt;br /&gt;
&lt;br /&gt;
:1 + &#039;&#039;x&#039;&#039; + &#039;&#039;x&#039;&#039;² + &#039;&#039;x&#039;&#039;³ + ⋯&lt;br /&gt;
&lt;br /&gt;
Each term multiplies the previous one by &#039;&#039;x&#039;&#039;; this is called the &#039;&#039;&#039;geometric series&#039;&#039;&#039;. It is the right place to start, because its sum can be worked out exactly, and because it shows clearly when an infinite sum produces a number and when it does not.&lt;br /&gt;
&lt;br /&gt;
Start with the finite version, the partial sum of the first &#039;&#039;N&#039;&#039; + 1 terms, &#039;&#039;S&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;N&#039;&#039;&amp;lt;/sub&amp;gt; = 1 + &#039;&#039;x&#039;&#039; + &#039;&#039;x&#039;&#039;² + ⋯ + &#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;N&#039;&#039;&amp;lt;/sup&amp;gt;. Multiply both sides of this equation by (1 − &#039;&#039;x&#039;&#039;) and multiply out the brackets:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1681}}&lt;br /&gt;
&lt;br /&gt;
Every middle term cancels: the two brackets share the terms &#039;&#039;x&#039;&#039;, &#039;&#039;x&#039;&#039;², …, &#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;N&#039;&#039;&amp;lt;/sup&amp;gt;, which subtract to nothing and leave only 1 − &#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;N&#039;&#039;+1&amp;lt;/sup&amp;gt;. Dividing both sides by (1 − &#039;&#039;x&#039;&#039;), which is allowed for any &#039;&#039;x&#039;&#039; ≠ 1, gives the closed form of the partial sum:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1682}}&lt;br /&gt;
&lt;br /&gt;
Nothing has been approximated so far: the last formula is exact for every &#039;&#039;N&#039;&#039;. The infinite series is defined as the limit of these partial sums as the number of terms grows without bound. Whether such a limit exists depends on where &#039;&#039;x&#039;&#039; lies, and the four cases behave very differently.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Case −1 &amp;lt; &#039;&#039;x&#039;&#039; &amp;lt; 1: the series converges.&#039;&#039;&#039; As &#039;&#039;N&#039;&#039; grows, the number &#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;N&#039;&#039;+1&amp;lt;/sup&amp;gt; shrinks towards 0, so the partial sums approach a definite number:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1683}}&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;x&#039;&#039; = 0.1, for instance, the partial sums run 1; 1.1; 1.11; 1.111; …, settling on 1.111…, and indeed 1/(1 − 0.1) = 1/0.9 = 10/9 = 1.111…&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Case &#039;&#039;x&#039;&#039; = 1: the series diverges.&#039;&#039;&#039; Every term equals 1, so &#039;&#039;S&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;N&#039;&#039;&amp;lt;/sub&amp;gt; = &#039;&#039;N&#039;&#039; + 1 grows without bound; the sum 1 + 1 + 1 + ⋯ has no finite value. The formula above cannot be used here, because it divides both sides by 1 − &#039;&#039;x&#039;&#039; = 0.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Case &#039;&#039;x&#039;&#039; = −1: the series diverges by oscillation.&#039;&#039;&#039; The partial sums run 1, 0, 1, 0, 1, … and never settle on a single number, so 1 − 1 + 1 − 1 + ⋯ does not converge. The formula 1/(1 − &#039;&#039;x&#039;&#039;) would give 1/2 at &#039;&#039;x&#039;&#039; = −1, but that value is not the sum of the series; the formula simply does not apply there.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Case |&#039;&#039;x&#039;&#039;| &amp;gt; 1: the series diverges.&#039;&#039;&#039; The terms grow in size like powers of a number bigger than 1, so the partial sums grow without bound. At &#039;&#039;x&#039;&#039; = 2 they run 1, 3, 7, 15, …, that is &#039;&#039;S&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;N&#039;&#039;&amp;lt;/sub&amp;gt; = 2&amp;lt;sup&amp;gt;&#039;&#039;N&#039;&#039;+1&amp;lt;/sup&amp;gt; − 1.&lt;br /&gt;
&lt;br /&gt;
The geometric series therefore yields a finite number precisely when &#039;&#039;x&#039;&#039; lies strictly between −1 and 1. The values of &#039;&#039;x&#039;&#039; for which a power series converges form its &#039;&#039;&#039;interval of convergence&#039;&#039;&#039;, which will reappear, in general form, in the next section.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A real-world use: pricing a lifelong income.&#039;&#039;&#039; Suppose an investment grows money by 5% a year. A payment of £10 due one year from now is worth only £10/1.05 today, because £10/1.05 deposited now would grow back to £10 by then; a payment due in two years is worth £10/(1.05)², and so on. A fund that pays £10 every year, forever, with the first payment in one year, is therefore worth today&lt;br /&gt;
&lt;br /&gt;
:£10/1.05 + £10/(1.05)² + £10/(1.05)³ + ⋯ = 10&#039;&#039;r&#039;&#039;(1 + &#039;&#039;r&#039;&#039; + &#039;&#039;r&#039;&#039;² + ⋯),&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;r&#039;&#039; = 1/1.05 = 0.952 381…, a number between −1 and 1. The geometric series applies, and since &#039;&#039;r&#039;&#039;/(1 − &#039;&#039;r&#039;&#039;) = (1/1.05)/(0.05/1.05) = 1/0.05 = 20, the value is 10 × 20 = &#039;&#039;&#039;£200&#039;&#039;&#039;. An infinite number of payments is worth a finite sum today, because payments far in the future are discounted to almost nothing; this is the geometric series in action.&lt;br /&gt;
&lt;br /&gt;
== Radius of convergence ==&lt;br /&gt;
&lt;br /&gt;
The geometric series is one instance of a general fact. For a power series centred at &#039;&#039;c&#039;&#039;, convergence depends on how far &#039;&#039;x&#039;&#039; lies from the centre. If the series converges for at least one value of &#039;&#039;x&#039;&#039; other than &#039;&#039;c&#039;&#039;, there is a number &#039;&#039;R&#039;&#039; ≥ 0, called the &#039;&#039;&#039;radius of convergence&#039;&#039;&#039;, such that:&lt;br /&gt;
&lt;br /&gt;
* the series converges for every &#039;&#039;x&#039;&#039; with |&#039;&#039;x&#039;&#039; − &#039;&#039;c&#039;&#039;| &amp;lt; &#039;&#039;R&#039;&#039; (closer to the centre than &#039;&#039;R&#039;&#039;);&lt;br /&gt;
* the series diverges for every &#039;&#039;x&#039;&#039; with |&#039;&#039;x&#039;&#039; − &#039;&#039;c&#039;&#039;| &amp;gt; &#039;&#039;R&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The set |&#039;&#039;x&#039;&#039; − &#039;&#039;c&#039;&#039;| &amp;lt; &#039;&#039;R&#039;&#039; is an interval of length 2&#039;&#039;R&#039;&#039; centred at &#039;&#039;c&#039;&#039;; it is the interval of convergence of the series. The boundary |&#039;&#039;x&#039;&#039; − &#039;&#039;c&#039;&#039;| = &#039;&#039;R&#039;&#039; is not covered by the statement above: each series must be tested separately at its boundary points, exactly as the geometric series was tested at &#039;&#039;x&#039;&#039; = 1 and &#039;&#039;x&#039;&#039; = −1 above (there it diverged at both ends, but other series may converge at one or both boundary points).&lt;br /&gt;
&lt;br /&gt;
Where does the radius come from? Compare the size of each term with the one before it. Consecutive terms of &#039;&#039;a&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sub&amp;gt;(&#039;&#039;x&#039;&#039; − &#039;&#039;c&#039;&#039;)&amp;lt;sup&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sup&amp;gt; have magnitudes in the ratio |&#039;&#039;a&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;n&#039;&#039;+1&amp;lt;/sub&amp;gt;/&#039;&#039;a&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sub&amp;gt;| · |&#039;&#039;x&#039;&#039; − &#039;&#039;c&#039;&#039;|. If, in the long run, this ratio stays below 1, the series behaves like a convergent geometric series; if it stays above 1, terms grow and the series diverges. The change of behaviour occurs at the value of |&#039;&#039;x&#039;&#039; − &#039;&#039;c&#039;&#039;| for which the ratio equals 1, namely &#039;&#039;R&#039;&#039; = lim |&#039;&#039;a&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sub&amp;gt;/&#039;&#039;a&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;n&#039;&#039;+1&amp;lt;/sub&amp;gt;| when this limit exists:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1668}}&lt;br /&gt;
&lt;br /&gt;
For the geometric series, every coefficient is 1, so the ratio is 1 and &#039;&#039;R&#039;&#039; = 1, matching the interval −1 &amp;lt; &#039;&#039;x&#039;&#039; &amp;lt; 1 found by direct calculation.&lt;br /&gt;
&lt;br /&gt;
The radius can be any number from 0 to ∞, and the three possibilities behave quite differently:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Finite radius, &#039;&#039;R&#039;&#039; = 1:&#039;&#039;&#039; the geometric series above, and the binomial series below, converge only within a bounded interval around the centre.&lt;br /&gt;
* &#039;&#039;&#039;Infinite radius, &#039;&#039;R&#039;&#039; = ∞:&#039;&#039;&#039; the series converges for every &#039;&#039;x&#039;&#039;. The exponential and sine series in the next section are the standard examples.&lt;br /&gt;
* &#039;&#039;&#039;Zero radius, &#039;&#039;R&#039;&#039; = 0:&#039;&#039;&#039; the series converges only at the centre itself. For instance the series 1 + &#039;&#039;x&#039;&#039; + 2!&#039;&#039;x&#039;&#039;² + 3!&#039;&#039;x&#039;&#039;³ + ⋯ (whose coefficient of &#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sup&amp;gt; is &#039;&#039;n&#039;&#039;!) has |&#039;&#039;a&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sub&amp;gt;/&#039;&#039;a&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;n&#039;&#039;+1&amp;lt;/sub&amp;gt;| = &#039;&#039;n&#039;&#039;!/(&#039;&#039;n&#039;&#039; + 1)! = 1/(&#039;&#039;n&#039;&#039; + 1) → 0, so &#039;&#039;R&#039;&#039; = 0; for any &#039;&#039;x&#039;&#039; ≠ 0 the terms eventually grow without bound.&lt;br /&gt;
&lt;br /&gt;
== The exponential and sine series ==&lt;br /&gt;
&lt;br /&gt;
How does one find the power series of a known function such as e&amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt; or sin &#039;&#039;x&#039;&#039;? Suppose &#039;&#039;f&#039;&#039; can be written as a power series centred at &#039;&#039;c&#039;&#039;, with coefficients &#039;&#039;a&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sub&amp;gt;. Differentiating the series term by term and evaluating at &#039;&#039;x&#039;&#039; = &#039;&#039;c&#039;&#039; singles out one coefficient at a time, because the &#039;&#039;n&#039;&#039;-th derivative of (&#039;&#039;x&#039;&#039; − &#039;&#039;c&#039;&#039;)&amp;lt;sup&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sup&amp;gt; is the constant &#039;&#039;n&#039;&#039;!, and every other term still contains a factor (&#039;&#039;x&#039;&#039; − &#039;&#039;c&#039;&#039;) that vanishes at &#039;&#039;x&#039;&#039; = &#039;&#039;c&#039;&#039;. Hence:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1688}}&lt;br /&gt;
&lt;br /&gt;
The coefficients of the series are therefore fixed by the values of &#039;&#039;f&#039;&#039; and its derivatives at the centre. The resulting series is called the Taylor series of &#039;&#039;f&#039;&#039; about &#039;&#039;c&#039;&#039; (about 0 it is also called the Maclaurin series). The two examples below apply this idea to the two most useful functions in science.&lt;br /&gt;
&lt;br /&gt;
=== The exponential series ===&lt;br /&gt;
&lt;br /&gt;
The exponential function e&amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt; has the defining property that its derivative equals itself, and e&amp;lt;sup&amp;gt;0&amp;lt;/sup&amp;gt; = 1. Consequently all its derivatives at 0 equal 1: &#039;&#039;f&#039;&#039;&amp;lt;sup&amp;gt;(n)&amp;lt;/sup&amp;gt;(0) = 1 for every &#039;&#039;n&#039;&#039;. The coefficient formula above then gives &#039;&#039;a&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sub&amp;gt; = 1/&#039;&#039;n&#039;&#039;!, so&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1684}}&lt;br /&gt;
&lt;br /&gt;
The factorial &#039;&#039;n&#039;&#039;! = 1·2·3·⋯·&#039;&#039;n&#039;&#039; in the denominator grows much faster than any power, so the terms shrink quickly and the series converges for every &#039;&#039;x&#039;&#039;. Applying the ratio test confirms &#039;&#039;R&#039;&#039; = ∞:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1685}}&lt;br /&gt;
&lt;br /&gt;
Setting &#039;&#039;x&#039;&#039; = 1 in the series gives the number e itself: e = 1 + 1 + 1/2 + 1/6 + 1/24 + ⋯ = 2.718 281 828…&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Numeric example: compound interest.&#039;&#039;&#039; Suppose £1000 sits in an account that pays 5% interest per year, compounded continuously (interest credited at every instant and immediately earning interest itself). After one year the balance is £1000 · e&amp;lt;sup&amp;gt;0.05&amp;lt;/sup&amp;gt;. The series computes this number with arithmetic alone; taking &#039;&#039;x&#039;&#039; = 0.05:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Partial sums of e&amp;lt;sup&amp;gt;0.05&amp;lt;/sup&amp;gt;, and the resulting balance&lt;br /&gt;
! Terms included !! Partial sum !! Balance of £1000&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 1 || £1000.00&lt;br /&gt;
|-&lt;br /&gt;
| 1 + 0.05 || 1.05 || £1050.00&lt;br /&gt;
|-&lt;br /&gt;
| + 0.05²/2! || 1.05125 || £1051.25&lt;br /&gt;
|-&lt;br /&gt;
| + 0.05³/3! || 1.051 2708 || £1051.27&lt;br /&gt;
|-&lt;br /&gt;
| + 0.05⁴/4! || 1.051 2711 || £1051.27&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
After the fourth term the balance has already settled to the nearest penny: the account holds about &#039;&#039;&#039;£1051.27&#039;&#039;&#039; after a year, an effective annual rate of 5.127%.&lt;br /&gt;
&lt;br /&gt;
=== The sine series ===&lt;br /&gt;
&lt;br /&gt;
The derivatives of sin &#039;&#039;x&#039;&#039; cycle through sin &#039;&#039;x&#039;&#039;, cos &#039;&#039;x&#039;&#039;, −sin &#039;&#039;x&#039;&#039;, −cos &#039;&#039;x&#039;&#039;, and back. Evaluated at 0 they cycle through 0, 1, 0, −1, so only the odd powers survive, with alternating signs and coefficient sizes 1, 1/3!, 1/5!, …. Hence:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1686}}&lt;br /&gt;
&lt;br /&gt;
The sine series also converges for every &#039;&#039;x&#039;&#039;: each new term is the previous one multiplied by &#039;&#039;x&#039;&#039;² and divided by two ever-larger factors, so the multiplier tends to 0 no matter how large &#039;&#039;x&#039;&#039; is:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1687}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Numeric example: how high a tilted plank rises.&#039;&#039;&#039; The sine of an angle in a right triangle is the ratio of the opposite side to the hypotenuse. A straight plank 1 m long, tilted up at an angle of 1 radian (about 57.3°), therefore rises sin 1 metres above the ground. The series with &#039;&#039;x&#039;&#039; = 1 gives, adding terms one by one,&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Partial sums of sin 1&lt;br /&gt;
! Terms included !! Partial sum&lt;br /&gt;
|-&lt;br /&gt;
| 1 || 1&lt;br /&gt;
|-&lt;br /&gt;
| 1 − 1/6 || 0.833 333&lt;br /&gt;
|-&lt;br /&gt;
| + 1/120 || 0.841 667&lt;br /&gt;
|-&lt;br /&gt;
| − 1/5040 || 0.841 468&lt;br /&gt;
|-&lt;br /&gt;
| + 1/362 880 || 0.841 471&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The sums settle on 0.841 471, which is sin 1 correct to six decimal places. A plank 10 m long at the same angle rises about 8.41 m; a seat on a Ferris wheel of radius 10 m, having turned through 1 radian from the level of the hub, sits about 8.41 m above that level.&lt;br /&gt;
&lt;br /&gt;
== The binomial series ==&lt;br /&gt;
&lt;br /&gt;
One more family of power series is useful enough to know by name. For any fixed exponent &#039;&#039;p&#039;&#039;,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1689}}&lt;br /&gt;
&lt;br /&gt;
Two cases behave differently and should not be confused:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;p&#039;&#039; a non-negative whole number (0, 1, 2, …):&#039;&#039;&#039; the series stops by itself, because the factor (&#039;&#039;p&#039;&#039; − &#039;&#039;p&#039;&#039;) appears after &#039;&#039;p&#039;&#039; + 1 terms. It is the ordinary binomial expansion of a polynomial, for example (1 + &#039;&#039;x&#039;&#039;)² = 1 + 2&#039;&#039;x&#039;&#039; + &#039;&#039;x&#039;&#039;².&lt;br /&gt;
* &#039;&#039;&#039;Any other exponent &#039;&#039;p&#039;&#039;, a fraction, a negative number, an irrational number:&#039;&#039;&#039; the series never stops, and it is a genuine infinite series valid for −1 &amp;lt; &#039;&#039;x&#039;&#039; &amp;lt; 1 (radius &#039;&#039;R&#039;&#039; = 1). The geometric series of the second section is the case &#039;&#039;p&#039;&#039; = −1 with &#039;&#039;x&#039;&#039; replaced by −&#039;&#039;x&#039;&#039;, since 1/(1 + &#039;&#039;x&#039;&#039;) = (1 + &#039;&#039;x&#039;&#039;)&amp;lt;sup&amp;gt;−1&amp;lt;/sup&amp;gt; = 1 − &#039;&#039;x&#039;&#039; + &#039;&#039;x&#039;&#039;² − &#039;&#039;x&#039;&#039;³ + ⋯.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Numeric example: a square root from arithmetic.&#039;&#039;&#039; Put &#039;&#039;p&#039;&#039; = 1/2, so that (1 + &#039;&#039;x&#039;&#039;)&amp;lt;sup&amp;gt;1/2&amp;lt;/sup&amp;gt; is just √(1 + &#039;&#039;x&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1690}}&lt;br /&gt;
&lt;br /&gt;
Take &#039;&#039;x&#039;&#039; = 0.1. Then √1.1 = 1 + 0.05 − 0.00125 + 0.000 0625 − 0.000 0039 + ⋯ = 1.048 8086…, whereas √1.1 = 1.048 8088…; the first few terms already give six correct decimal places. A pendulum of length &#039;&#039;L&#039;&#039; swings with period 2π√(&#039;&#039;L&#039;&#039;/&#039;&#039;g&#039;&#039;), where &#039;&#039;g&#039;&#039; is the acceleration of gravity, so lengthening a pendulum by 10% multiplies its period by √1.1 ≈ 1.0488: each swing takes about 4.9% longer.&lt;br /&gt;
&lt;br /&gt;
== Power series solutions of differential equations ==&lt;br /&gt;
&lt;br /&gt;
A deeper application of power series is to differential equations whose coefficients vary with &#039;&#039;x&#039;&#039;. Such equations rarely have solutions built from a finite combination of familiar functions, but when the coefficient functions can be expanded in power series near a point, a solution can still be written down as a power series about that point. Substituting the series into the equation and equating the coefficients of like powers of &#039;&#039;x&#039;&#039; turns the differential equation into recurrence relations that fix the coefficients one after another; the constants left free by the recurrence are exactly the arbitrary constants of the equation, and the resulting series solves the equation exactly on its interval of convergence.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt; The place of series among the approaches to differential equations is discussed in the article [[Differential equation]].&lt;br /&gt;
&lt;br /&gt;
=== Case 1: expanding about an ordinary point, the Airy equation ===&lt;br /&gt;
&lt;br /&gt;
The Airy equation&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;y&#039;&#039;″ − &#039;&#039;xy&#039;&#039; = 0&lt;br /&gt;
&lt;br /&gt;
is named after [[Person:George Biddell Airy|George Biddell Airy]], who met it in 1838 while studying the intensity of light near a caustic. Its solutions cannot be written as finite combinations of elementary functions, so it is the standard test case for series methods.&lt;br /&gt;
&lt;br /&gt;
Near &#039;&#039;x&#039;&#039; = 0 the coefficients of the equation are as well behaved as possible (the point is an ordinary point), so seek a solution as a power series about 0: &#039;&#039;y&#039;&#039; = &#039;&#039;a&#039;&#039;₀ + &#039;&#039;a&#039;&#039;₁&#039;&#039;x&#039;&#039; + &#039;&#039;a&#039;&#039;₂&#039;&#039;x&#039;&#039;² + ⋯, where the &#039;&#039;a&#039;&#039;&amp;lt;sub&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sub&amp;gt; are unknown constants. Differentiate term by term: &#039;&#039;y&#039;&#039;′ = &#039;&#039;a&#039;&#039;₁ + 2&#039;&#039;a&#039;&#039;₂&#039;&#039;x&#039;&#039; + 3&#039;&#039;a&#039;&#039;₃&#039;&#039;x&#039;&#039;² + ⋯ and &#039;&#039;y&#039;&#039;″ = 2&#039;&#039;a&#039;&#039;₂ + 6&#039;&#039;a&#039;&#039;₃&#039;&#039;x&#039;&#039; + 12&#039;&#039;a&#039;&#039;₄&#039;&#039;x&#039;&#039;² + ⋯, so each derivative of &#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sup&amp;gt; lowers the power by one and multiplies the coefficient by &#039;&#039;n&#039;&#039;. Re-indexing the sums so that both run over the same powers of &#039;&#039;x&#039;&#039; gives&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1669}}&lt;br /&gt;
&lt;br /&gt;
Substituting these two expressions into &#039;&#039;y&#039;&#039;″ − &#039;&#039;xy&#039;&#039; = 0 and collecting terms, the equality must hold for every value of &#039;&#039;x&#039;&#039;; that forces the coefficient of each power of &#039;&#039;x&#039;&#039; on the left to vanish. The constant term gives 2·1·&#039;&#039;a&#039;&#039;₂ = 0, so &#039;&#039;a&#039;&#039;₂ = 0, and comparing the coefficient of &#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sup&amp;gt; for &#039;&#039;n&#039;&#039; ≥ 1 gives the recurrence&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1649}}&lt;br /&gt;
&lt;br /&gt;
Each new coefficient is fixed by the one three places earlier. Writing the recurrence out, starting at &#039;&#039;n&#039;&#039; = 1, 2, 3, …:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;a&#039;&#039;₃ = &#039;&#039;a&#039;&#039;₀/(3·2) = &#039;&#039;a&#039;&#039;₀/6,　 &#039;&#039;a&#039;&#039;₆ = &#039;&#039;a&#039;&#039;₃/(6·5) = &#039;&#039;a&#039;&#039;₀/180,&lt;br /&gt;
:&#039;&#039;a&#039;&#039;₄ = &#039;&#039;a&#039;&#039;₁/(4·3) = &#039;&#039;a&#039;&#039;₁/12,　 &#039;&#039;a&#039;&#039;₇ = &#039;&#039;a&#039;&#039;₄/(7·6) = &#039;&#039;a&#039;&#039;₁/504,&lt;br /&gt;
:&#039;&#039;a&#039;&#039;₅ = &#039;&#039;a&#039;&#039;₂/(5·4) = 0,　 &#039;&#039;a&#039;&#039;₈ = &#039;&#039;a&#039;&#039;₅/(8·7) = 0,&lt;br /&gt;
&lt;br /&gt;
and so on. The coefficients split into three chains: those with indices divisible by 3 are fixed by &#039;&#039;a&#039;&#039;₀, those one more than a multiple of 3 are fixed by &#039;&#039;a&#039;&#039;₁, and those two more than a multiple of 3 are all zero (they start from &#039;&#039;a&#039;&#039;₂ = 0). The two free constants &#039;&#039;a&#039;&#039;₀ and &#039;&#039;a&#039;&#039;₁, the arbitrary constants expected of a second-order equation, generate two independent solutions:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1650}}&lt;br /&gt;
&lt;br /&gt;
Each series converges for every &#039;&#039;x&#039;&#039; (the denominators grow like factorials, so the ratio test gives &#039;&#039;R&#039;&#039; = ∞). Up to normalisation these two solutions are the Airy functions Ai and Bi:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1609}}&lt;br /&gt;
&lt;br /&gt;
The power series therefore solve the Airy equation exactly, in open form, on the whole real line. The Airy functions appear in optics, quantum mechanics and elsewhere whenever a solution changes from oscillatory to exponential behaviour.&lt;br /&gt;
&lt;br /&gt;
=== Case 2: expanding about a singular point, the Frobenius method ===&lt;br /&gt;
&lt;br /&gt;
Write a linear second-order equation in the form &#039;&#039;y&#039;&#039;″ + &#039;&#039;p&#039;&#039;(&#039;&#039;x&#039;&#039;)&#039;&#039;y&#039;&#039;′ + &#039;&#039;q&#039;&#039;(&#039;&#039;x&#039;&#039;)&#039;&#039;y&#039;&#039; = 0. A point &#039;&#039;x&#039;&#039;₀ is ordinary when both &#039;&#039;p&#039;&#039; and &#039;&#039;q&#039;&#039; can be expanded in power series about &#039;&#039;x&#039;&#039;₀; the direct method of Case 1 applies there. If at least one of &#039;&#039;p&#039;&#039; or &#039;&#039;q&#039;&#039; cannot, typically because it divides by &#039;&#039;x&#039;&#039; − &#039;&#039;x&#039;&#039;₀, the point is singular. The point is a regular singular point when (&#039;&#039;x&#039;&#039; − &#039;&#039;x&#039;&#039;₀)&#039;&#039;p&#039;&#039;(&#039;&#039;x&#039;&#039;) and (&#039;&#039;x&#039;&#039; − &#039;&#039;x&#039;&#039;₀)²&#039;&#039;q&#039;&#039;(&#039;&#039;x&#039;&#039;) do have power series expansions about &#039;&#039;x&#039;&#039;₀.&lt;br /&gt;
&lt;br /&gt;
At a singular point a plain power series cannot work: with &#039;&#039;p&#039;&#039; or &#039;&#039;q&#039;&#039; dividing by &#039;&#039;x&#039;&#039;, the equation mixes powers whose lowest terms start at different heights, so they cannot be matched. The Frobenius method instead seeks a solution with a shifted leading power, &#039;&#039;y&#039;&#039; = &#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;r&#039;&#039;&amp;lt;/sup&amp;gt;(&#039;&#039;a&#039;&#039;₀ + &#039;&#039;a&#039;&#039;₁&#039;&#039;x&#039;&#039; + ⋯). Substituting and setting the coefficient of the lowest power of &#039;&#039;x&#039;&#039; to zero produces an algebraic equation, the indicial equation, whose solutions fix the possible exponents &#039;&#039;r&#039;&#039;. For the Bessel equation of order ν,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1670}}&lt;br /&gt;
&lt;br /&gt;
the indicial equation is &#039;&#039;r&#039;&#039;² − ν² = 0, with roots &#039;&#039;r&#039;&#039; = ±ν. When ν is not a whole number the two roots give two independent series solutions, the Bessel functions of the first kind, J&amp;lt;sub&amp;gt;ν&amp;lt;/sub&amp;gt; and J&amp;lt;sub&amp;gt;−ν&amp;lt;/sub&amp;gt;. When the roots coincide or differ by a whole number, the second independent solution acquires a logarithmic term; for ν a whole number this second solution is the Bessel function of the second kind &#039;&#039;Y&#039;&#039;&amp;lt;sub&amp;gt;ν&amp;lt;/sub&amp;gt;. Bessel functions describe vibrations of a circular drumhead, heat flow in a cylinder and waves in optical fibres. The full theory is developed in standard textbooks on ordinary differential equations.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Power_series Power series], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/PowerSeries.html Power Series], Wolfram MathWorld&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Frobenius_method Frobenius method], Wikipedia&lt;br /&gt;
* [https://tutorial.math.lamar.edu/classes/calcii/PowerSeries.aspx Power Series], Paul&#039;s Online Math Notes&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1689&amp;diff=7402</id>
		<title>Item:Q1689</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1689&amp;diff=7402"/>
		<updated>2026-09-04T15:17:04Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1689&amp;diff=7401</id>
		<title>Item:Q1689</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1689&amp;diff=7401"/>
		<updated>2026-09-04T15:17:04Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1688&amp;diff=7400</id>
		<title>Item:Q1688</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1688&amp;diff=7400"/>
		<updated>2026-09-04T15:17:04Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1688&amp;diff=7399</id>
		<title>Item:Q1688</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1688&amp;diff=7399"/>
		<updated>2026-09-04T15:17:04Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1686&amp;diff=7396</id>
		<title>Item:Q1686</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1686&amp;diff=7396"/>
		<updated>2026-09-04T15:17:03Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1686&amp;diff=7395</id>
		<title>Item:Q1686</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1686&amp;diff=7395"/>
		<updated>2026-09-04T15:17:03Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1684&amp;diff=7392</id>
		<title>Item:Q1684</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1684&amp;diff=7392"/>
		<updated>2026-09-04T15:17:03Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1684&amp;diff=7391</id>
		<title>Item:Q1684</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1684&amp;diff=7391"/>
		<updated>2026-09-04T15:17:03Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7382</id>
		<title>Differential equation</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Differential_equation&amp;diff=7382"/>
		<updated>2026-09-04T07:32:47Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Implemented HTML-comment advice: characteristic-equation substitution calculation, first-order forced case before variation of parameters, derivation of the two determining conditions, and Cramer&amp;#039;s rule/Wronskian justification. Spun Power series, Laplace transform, Euler&amp;#039;s method and Qualitative methods out into their own articles with full demonstrations; kept summarised overviews with links. AI-assisted (RonzzWikiCowriter). (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;A differential equation&#039;&#039;&#039; is an equation that relates an unknown function to its own derivatives. &lt;br /&gt;
&lt;br /&gt;
Two features are common to all differential equations:&lt;br /&gt;
&lt;br /&gt;
* the unknown is a function, not a number;&lt;br /&gt;
* a solution is rarely unique, but instead often a family of functions containing arbitrary constants. A particular member of the solution family can be singled out by extra conditions, such as the state of the system at some time;&lt;br /&gt;
&lt;br /&gt;
== Types of differential equations ==&lt;br /&gt;
&lt;br /&gt;
=== Ordinary and partial differential equations ===&lt;br /&gt;
&lt;br /&gt;
==== Ordinary differential equations ====&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;&#039;ordinary differential equation&#039;&#039;&#039; (ODE) describes an unknown function which depends on a single independent variable.&lt;br /&gt;
&lt;br /&gt;
Writing the unknown as &#039;&#039;y&#039;&#039;(&#039;&#039;x&#039;&#039;), an ODE can be expressed in its implicit form:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1580}}&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;F&#039;&#039; is a given function.&lt;br /&gt;
&lt;br /&gt;
If the equation can be solved for the highest derivative, it takes an explicit form.&lt;br /&gt;
&lt;br /&gt;
For a first-order equation:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1581}}&lt;br /&gt;
&lt;br /&gt;
The right-hand side &#039;&#039;f&#039;&#039;(&#039;&#039;x&#039;&#039;, &#039;&#039;y&#039;&#039;) prescribes the slope that any solution function must have at the point (&#039;&#039;x&#039;&#039;, &#039;&#039;y&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
For an equation of order &#039;&#039;n&#039;&#039; that is solved for its highest derivative:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1603}}&lt;br /&gt;
&lt;br /&gt;
Integrating the equation once removes one derivative and introduces one arbitrary constant. Therefore, a problem of order &#039;&#039;n&#039;&#039; generally needs &#039;&#039;n&#039;&#039; conditions to single out one particular solution of the solution family. &lt;br /&gt;
&lt;br /&gt;
==== Partial differential equations ====&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;partial differential equation&#039;&#039;&#039; describes an unknown function that depends on two or more independent variables. Its general form is:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1604}}&lt;br /&gt;
&lt;br /&gt;
=== Order and linearity ===&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;order&#039;&#039;&#039; of a differential equation is the order of the highest derivative that appears in it.&lt;br /&gt;
&lt;br /&gt;
A differential equation is &#039;&#039;&#039;linear&#039;&#039;&#039; if the unknown function and its derivatives appear only to the first power and are never multiplied together (they may be multiplied by functions of the independent variables).&lt;br /&gt;
&lt;br /&gt;
An &#039;&#039;n&#039;&#039;-th order linear ODE therefore has the form&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1605}}&lt;br /&gt;
&lt;br /&gt;
We consider this equation homogeneous when &#039;&#039;g&#039;&#039;(&#039;&#039;x&#039;&#039;) = 0.&lt;br /&gt;
&lt;br /&gt;
Linear homogeneous equations obey the superposition principle: any linear combination of solutions is again a solution.&lt;br /&gt;
&lt;br /&gt;
== Differential equations as mathematical models ==&lt;br /&gt;
&lt;br /&gt;
=== Mechanics ===&lt;br /&gt;
&lt;br /&gt;
==== Force and acceleration ====&lt;br /&gt;
&lt;br /&gt;
Newton&#039;s second law of motion states that the acceleration of a body is proportional to the net force acting on it:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1583}}&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;x&#039;&#039;(&#039;&#039;t&#039;&#039;) is the position of the body, &#039;&#039;m&#039;&#039; its mass, and the force &#039;&#039;F&#039;&#039; may itself depend on time, position and velocity.&lt;br /&gt;
&lt;br /&gt;
==== Harmonic oscillations ==== &lt;br /&gt;
&lt;br /&gt;
For a mass attached to a spring whose restoring force is linear in the displacement, this becomes the harmonic oscillator equation:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1588}}&lt;br /&gt;
&lt;br /&gt;
whose solutions are sinusoidal oscillations at the natural frequency ω₀; such motion is called simple harmonic motion.&lt;br /&gt;
&lt;br /&gt;
[[File:Simple harmonic motion animation.gif|thumb|A mass on a spring executing simple harmonic motion, the solution of the harmonic oscillator equation. Credit: Evil saltine (public domain).]]&lt;br /&gt;
&lt;br /&gt;
=== Exponential growth and decay ===&lt;br /&gt;
&lt;br /&gt;
A quantity that changes at a rate proportional to its current size satisfies the exponential growth or decay equation:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1584}}&lt;br /&gt;
&lt;br /&gt;
Its solutions are exponentials:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1585}}&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;k&#039;&#039; &amp;amp;gt; 0, it can describe a population with unlimited resources that grows exponentially, whereas &#039;&#039;k&#039;&#039; &amp;amp;lt; 0 describes a radioactive substance that decays exponentially towards zero. &lt;br /&gt;
&lt;br /&gt;
=== Heat transfer ===&lt;br /&gt;
&lt;br /&gt;
Newton&#039;s law of cooling describes a body whose temperature &#039;&#039;T&#039;&#039; differs from a constant ambient temperature &#039;&#039;T&#039;&#039;ₐ:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1586}}&lt;br /&gt;
&lt;br /&gt;
The temperature difference decays exponentially, so the body approaches the ambient temperature but never quite reaches it.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Geometry of first-order equations ==&lt;br /&gt;
&lt;br /&gt;
=== Direction fields ===&lt;br /&gt;
&lt;br /&gt;
As described above, a first-order equation can be written explicitly&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1581}}&lt;br /&gt;
&lt;br /&gt;
which assigns to every point (&#039;&#039;x&#039;&#039;, &#039;&#039;y&#039;&#039;) the slope that a solution curve must have there.&lt;br /&gt;
&lt;br /&gt;
Drawing a short line segment of that slope at many points produces a direction field (or slope field). Every solution curve must stay tangent to the field directions everywhere. &lt;br /&gt;
&lt;br /&gt;
[[File:Slope field of exponential growth.png|thumb|Direction field of the equation d&#039;&#039;y&#039;&#039;/d&#039;&#039;x&#039;&#039; = &#039;&#039;y&#039;&#039;, with several solution curves. Each segment shows the local slope; the solutions are exponential curves. Credit: jjbeard (public domain).]]&lt;br /&gt;
&lt;br /&gt;
As such, direction fields can visualise the qualitative behaviour of solutions.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving differential equations ==&lt;br /&gt;
&lt;br /&gt;
Solutions to differential equations can be classified into 3 categories:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Closed-form solution&#039;&#039;&#039;: a finite combination of elementary functions (polynomials, rational functions, exponentials, logarithms, trigonometric functions and their inverses) built with the usual algebraic operations, which can be evaluated directly at a given point. Only a small fraction of differential equations admit a closed-form solution. &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Open form solution&#039;&#039;&#039;: a combination of elementary functions, and/or infinite series (a power series or a Fourier series) or special functions defined by such series, and integrals. &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;numerical estimation&#039;&#039;&#039;: approximation of the real solution to a desired accuracy.&lt;br /&gt;
&lt;br /&gt;
=== Analytical methods ===&lt;br /&gt;
&lt;br /&gt;
Classical methods convert the equation into simpler, solvable pieces, giving a closed form when possible and a series or an integral otherwise.&lt;br /&gt;
&lt;br /&gt;
==== linear first order equations ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Separation of variables:&#039;&#039;&#039; Reorganise by variable and reintegrate:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1612}}&lt;br /&gt;
&lt;br /&gt;
For the equation d&#039;&#039;y&#039;&#039;/d&#039;&#039;x&#039;&#039; = −&#039;&#039;x&#039;&#039;/&#039;&#039;y&#039;&#039;, this gives the family of circles:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1606}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Integrating factors&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1613}}&lt;br /&gt;
&lt;br /&gt;
For instance:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1607}}&lt;br /&gt;
&lt;br /&gt;
==== homogeneous equations up to 2nd order ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Characteristic equations.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For a homogeneous linear equation with constant coefficients, solutions of the exponential form &#039;&#039;y&#039;&#039; = &#039;&#039;e&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;rx&#039;&#039;&amp;lt;/sup&amp;gt; are sought. Substituting the trial solution together with its derivatives into the equation, and using that &#039;&#039;e&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;rx&#039;&#039;&amp;lt;/sup&amp;gt; never vanishes, reduces the differential equation to an algebraic characteristic equation. For the second-order equation &#039;&#039;y&#039;&#039;″ + &#039;&#039;ay&#039;&#039;′ + &#039;&#039;by&#039;&#039; = 0:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1662}}&lt;br /&gt;
&lt;br /&gt;
The roots &#039;&#039;r&#039;&#039; of the characteristic equation build the general solution. For the example&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1621}}&lt;br /&gt;
&lt;br /&gt;
whose roots &#039;&#039;r&#039;&#039; = 1 and &#039;&#039;r&#039;&#039; = 2 are real and distinct, each root contributes one exponential, and the general solution is the sum&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1608}}&lt;br /&gt;
&lt;br /&gt;
When the roots form a complex-conjugate pair &#039;&#039;r&#039;&#039; = α ± iβ, Euler&#039;s formula merges the two complex exponentials into real oscillations, and the general solution is&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1645}}&lt;br /&gt;
&lt;br /&gt;
For the harmonic oscillator &#039;&#039;y&#039;&#039;″ + &#039;&#039;y&#039;&#039; = 0, the characteristic roots are &#039;&#039;r&#039;&#039; = ±i, so the general solution is sinusoidal:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1653}}&lt;br /&gt;
&lt;br /&gt;
For an equation of order &#039;&#039;n&#039;&#039; with constant coefficients, the same trial solution leads to a characteristic polynomial of degree &#039;&#039;n&#039;&#039;.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== non-homogeneous equations up to 2nd order ====&lt;br /&gt;
&lt;br /&gt;
A &#039;&#039;&#039;forced&#039;&#039;&#039; (or non-homogeneous) linear equation is one whose right-hand side is a non-zero function of &#039;&#039;x&#039;&#039;, called the forcing term &#039;&#039;g&#039;&#039;(&#039;&#039;x&#039;&#039;), which drives the system from outside, as a driving force drives an oscillator.&lt;br /&gt;
&lt;br /&gt;
The structure of the solutions is clearest in the first-order case. For &#039;&#039;y&#039;&#039;′ − &#039;&#039;y&#039;&#039; = &#039;&#039;e&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt;, the complementary solution &#039;&#039;y&#039;&#039;&amp;lt;sub&amp;gt;c&amp;lt;/sub&amp;gt; = &#039;&#039;Ce&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt; solves the homogeneous equation; the forcing term &#039;&#039;e&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt; is itself a homogeneous solution, so the trial particular solution must be multiplied by &#039;&#039;x&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1663}}&lt;br /&gt;
&lt;br /&gt;
In general, the solution of a forced linear equation is the sum of the complementary solution &#039;&#039;y&#039;&#039;&amp;lt;sub&amp;gt;c&amp;lt;/sub&amp;gt;, the general solution of the homogeneous equation that carries the arbitrary constants, and one particular solution &#039;&#039;y&#039;&#039;&amp;lt;sub&amp;gt;p&amp;lt;/sub&amp;gt; of the full equation:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1646}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Variation of parameters&#039;&#039;&#039; is a general way to construct &#039;&#039;y&#039;&#039;&amp;lt;sub&amp;gt;p&amp;lt;/sub&amp;gt; from the homogeneous solutions &#039;&#039;y&#039;&#039;₁ and &#039;&#039;y&#039;&#039;₂: replace the constants in &#039;&#039;y&#039;&#039;&amp;lt;sub&amp;gt;c&amp;lt;/sub&amp;gt; = &#039;&#039;C&#039;&#039;₁&#039;&#039;y&#039;&#039;₁ + &#039;&#039;C&#039;&#039;₂&#039;&#039;y&#039;&#039;₂ by unknown functions, &#039;&#039;y&#039;&#039;&amp;lt;sub&amp;gt;p&amp;lt;/sub&amp;gt; = &#039;&#039;u&#039;&#039;₁(&#039;&#039;x&#039;&#039;)&#039;&#039;y&#039;&#039;₁ + &#039;&#039;u&#039;&#039;₂(&#039;&#039;x&#039;&#039;)&#039;&#039;y&#039;&#039;₂, and choose these functions so that &#039;&#039;y&#039;&#039;&amp;lt;sub&amp;gt;p&amp;lt;/sub&amp;gt; solves the forced equation. Differentiating the ansatz,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1664}}&lt;br /&gt;
&lt;br /&gt;
The first condition, &#039;&#039;u&#039;&#039;₁′&#039;&#039;y&#039;&#039;₁ + &#039;&#039;u&#039;&#039;₂′&#039;&#039;y&#039;&#039;₂ = 0, is imposed so that &#039;&#039;y&#039;&#039;&amp;lt;sub&amp;gt;p&amp;lt;/sub&amp;gt;′ takes the same form as if the &#039;&#039;u&#039;&#039;ᵢ were constants. With that, substituting &#039;&#039;y&#039;&#039;&amp;lt;sub&amp;gt;p&amp;lt;/sub&amp;gt; into the full left-hand side leaves only the terms in the &#039;&#039;u&#039;&#039;ᵢ′, because the brackets vanish as &#039;&#039;y&#039;&#039;₁ and &#039;&#039;y&#039;&#039;₂ each solve the homogeneous equation:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1665}}&lt;br /&gt;
&lt;br /&gt;
What remains of &#039;&#039;y&#039;&#039;&amp;lt;sub&amp;gt;p&amp;lt;/sub&amp;gt;″ + &#039;&#039;py&#039;&#039;&amp;lt;sub&amp;gt;p&amp;lt;/sub&amp;gt;′ + &#039;&#039;qy&#039;&#039;&amp;lt;sub&amp;gt;p&amp;lt;/sub&amp;gt; is &#039;&#039;u&#039;&#039;₁′&#039;&#039;y&#039;&#039;₁′ + &#039;&#039;u&#039;&#039;₂′&#039;&#039;y&#039;&#039;₂′. Imposing the second condition, &#039;&#039;u&#039;&#039;₁′&#039;&#039;y&#039;&#039;₁′ + &#039;&#039;u&#039;&#039;₂′&#039;&#039;y&#039;&#039;₂′ = &#039;&#039;g&#039;&#039;(&#039;&#039;x&#039;&#039;), therefore makes &#039;&#039;y&#039;&#039;&amp;lt;sub&amp;gt;p&amp;lt;/sub&amp;gt; solve the forced equation. The two conditions form a 2×2 linear system for the unknown derivatives &#039;&#039;u&#039;&#039;₁′ and &#039;&#039;u&#039;&#039;₂′,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1666}}&lt;br /&gt;
&lt;br /&gt;
whose determinant is the Wronskian &#039;&#039;W&#039;&#039; = &#039;&#039;y&#039;&#039;₁&#039;&#039;y&#039;&#039;₂′ − &#039;&#039;y&#039;&#039;₂&#039;&#039;y&#039;&#039;₁′. Because &#039;&#039;y&#039;&#039;₁ and &#039;&#039;y&#039;&#039;₂ are linearly independent solutions of a second-order linear equation, &#039;&#039;W&#039;&#039;(&#039;&#039;x&#039;&#039;) is never zero; division by &#039;&#039;W&#039;&#039; is therefore always legitimate, and Cramer&#039;s rule yields &#039;&#039;u&#039;&#039;₁′ = −&#039;&#039;y&#039;&#039;₂&#039;&#039;g&#039;&#039;/&#039;&#039;W&#039;&#039; and &#039;&#039;u&#039;&#039;₂′ = &#039;&#039;y&#039;&#039;₁&#039;&#039;g&#039;&#039;/&#039;&#039;W&#039;&#039;. Integrating the two derivatives gives the functions &#039;&#039;u&#039;&#039;₁ and &#039;&#039;u&#039;&#039;₂.&lt;br /&gt;
&lt;br /&gt;
For the forced example &#039;&#039;y&#039;&#039;″ − 3&#039;&#039;y&#039;&#039;′ + 2&#039;&#039;y&#039;&#039; = &#039;&#039;e&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt;, whose homogeneous solutions are &#039;&#039;y&#039;&#039;₁ = &#039;&#039;e&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt; and &#039;&#039;y&#039;&#039;₂ = &#039;&#039;e&#039;&#039;&amp;lt;sup&amp;gt;2&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1648}}&lt;br /&gt;
&lt;br /&gt;
Thus &#039;&#039;u&#039;&#039;₁′ = −1 and &#039;&#039;u&#039;&#039;₂′ = &#039;&#039;e&#039;&#039;&amp;lt;sup&amp;gt;−&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt;, so &#039;&#039;u&#039;&#039;₁ = −&#039;&#039;x&#039;&#039; and &#039;&#039;u&#039;&#039;₂ = −&#039;&#039;e&#039;&#039;&amp;lt;sup&amp;gt;−&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt;. The function produced, −&#039;&#039;xe&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt; − &#039;&#039;e&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt;, contains the homogeneous solution &#039;&#039;e&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt;; it is absorbed into &#039;&#039;C&#039;&#039;₁, leaving the particular solution &#039;&#039;y&#039;&#039;&amp;lt;sub&amp;gt;p&amp;lt;/sub&amp;gt; = −&#039;&#039;xe&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt; and the general solution &#039;&#039;y&#039;&#039; = &#039;&#039;C&#039;&#039;₁&#039;&#039;e&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt; + &#039;&#039;C&#039;&#039;₂&#039;&#039;e&#039;&#039;&amp;lt;sup&amp;gt;2&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt; − &#039;&#039;xe&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt;.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Power series and the Frobenius method ====&lt;br /&gt;
&lt;br /&gt;
When the coefficients of a linear equation vary with &#039;&#039;x&#039;&#039;, elementary closed forms are rare, but a solution can still be sought as a power series &#039;&#039;y&#039;&#039; = Σ&#039;&#039;a&#039;&#039;ₙ&#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sup&amp;gt;: substituting the series into the equation and equating the coefficients of like powers turns the differential equation into recurrence relations that fix the coefficients one after another. Near a regular singular point, the Frobenius method extends the same idea to series with a shifted leading power &#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;ρ&amp;lt;/sup&amp;gt;. Such series solve equations exactly (in open form) even when no elementary solution exists, as for the Airy equation &#039;&#039;y&#039;&#039;″ − &#039;&#039;xy&#039;&#039; = 0, whose solutions are the Airy functions. The full step-by-step demonstrations, including the worked Airy equation and the Bessel equation, are given in the article [[Power series]].&lt;br /&gt;
&lt;br /&gt;
==== Laplace transforms ====&lt;br /&gt;
&lt;br /&gt;
For initial value problems, the Laplace transform turns differentiation into multiplication by the transform variable, so the problem becomes an algebraic equation for the transformed function; solving it and inverting with a table of standard transforms yields the solution, with the initial conditions entering automatically. The derivation of the transform rules and a complete worked example are given in the article [[Laplace transform]].&lt;br /&gt;
&lt;br /&gt;
==== Separation of variables for PDEs ====&lt;br /&gt;
&lt;br /&gt;
With the product ansatz &#039;&#039;u&#039;&#039;(&#039;&#039;x&#039;&#039;, &#039;&#039;t&#039;&#039;) = &#039;&#039;X&#039;&#039;(&#039;&#039;x&#039;&#039;)&#039;&#039;T&#039;&#039;(&#039;&#039;t&#039;&#039;), a linear PDE splits into ordinary equations tied together by a separation constant λ:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1622}}&lt;br /&gt;
&lt;br /&gt;
Superposition of the product solutions then fits the initial data. For the heat equation on a rod of length &#039;&#039;L&#039;&#039; whose ends are held at temperature zero, this gives the Fourier sine series&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1611}}&lt;br /&gt;
&lt;br /&gt;
whose terms decay at rates set by the thermal diffusivity α.&lt;br /&gt;
&lt;br /&gt;
The theory of these methods is treated in standard textbooks on ordinary and partial differential equations.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt; Still, only a minority of differential equations, almost all of them linear, can be solved explicitly; most equations that arise in applications are treated by numerical or qualitative methods.&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Numerical methods ===&lt;br /&gt;
&lt;br /&gt;
When no closed-form solution is available, solutions are approximated by numerical integration. The simplest scheme, &#039;&#039;&#039;Euler&#039;s method&#039;&#039;&#039;, advances an approximate solution along the tangent of the exact solution: with step size &#039;&#039;h&#039;&#039;, each step&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1593}}&lt;br /&gt;
&lt;br /&gt;
takes the approximation from &#039;&#039;x&#039;&#039;ₙ to &#039;&#039;x&#039;&#039;ₙ₊₁ = &#039;&#039;x&#039;&#039;ₙ + &#039;&#039;h&#039;&#039;. The error of one step is of order &#039;&#039;h&#039;&#039;², so over a fixed interval the accumulated error is of order &#039;&#039;h&#039;&#039;; halving &#039;&#039;h&#039;&#039; halves the error, and the polygonal approximation converges to the exact solution as &#039;&#039;h&#039;&#039; → 0. More accurate and more stable methods, such as the &#039;&#039;&#039;Runge–Kutta family&#039;&#039;&#039;, evaluate the slope several times per step and are implemented in essentially every numerical computing environment.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt; The derivation, error analysis, worked examples and code are given in the article [[Euler&#039;s method]].&lt;br /&gt;
&lt;br /&gt;
=== Qualitative methods ===&lt;br /&gt;
&lt;br /&gt;
For nonlinear equations, and especially for systems of two or more equations, exact solutions are usually impossible, and the geometry of the solutions matters as much as their formulas. Qualitative analysis studies the equilibria, the points at which the system does not change; their stability under small perturbations; the periodic orbits of the system; the bifurcations at which this behaviour changes as a parameter varies; and, for systems in three or more dimensions, chaotic motion. These ideas originated in the geometric methods that Henri Poincaré developed for celestial mechanics at the end of the 19th century and grew, with the help of numerical computing, into the modern theory of dynamical systems. The methods and their full worked demonstrations, the pendulum in the phase plane, the collapse of an overharvested fishery and the Lorenz attractor, are treated in the article [[Qualitative methods]].&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
&lt;br /&gt;
[[File:Isaac Newton portrait.jpg|thumb|left|Portrait of Isaac Newton (after Godfrey Kneller, 1689). Newton&#039;s laws of motion and of universal gravitation, published in the &#039;&#039;Principia&#039;&#039; (1687), are differential equations. Credit: James Thronill after Godfrey Kneller (public domain).]]&lt;br /&gt;
&lt;br /&gt;
Differential equations arose with the calculus that [[Person:Isaac Newton|Isaac Newton]] and [[Person:Gottfried Wilhelm Leibniz|Gottfried Wilhelm Leibniz]] developed independently in the late 17th century. Newton&#039;s laws of motion and of universal gravitation, published in his &#039;&#039;Principia&#039;&#039; of 1687, are differential equations. However, it was Leibniz who introduced the notation d&#039;&#039;y&#039;&#039;/d&#039;&#039;x&#039;&#039; still used today. &lt;br /&gt;
&lt;br /&gt;
In the 18th century [[Person:Leonhard Euler|Leonhard Euler]] turned a collection of ad hoc tricks into a systematic theory, developing the general treatment of linear equations with constant coefficients, series methods, and the first numerical integration scheme, which still bears his name.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Leonhard Euler portrait.jpg|thumb|Leonhard Euler (portrait by Jakob Emanuel Handmann, 1753). Euler created much of the systematic theory of differential equations and gave his name to Euler&#039;s method. Credit: Jakob Emanuel Handmann (public domain).]]&lt;br /&gt;
&lt;br /&gt;
Alongside the theory of ordinary equations, the 18th and 19th centuries saw the development of partial differential equations of physics. Jean le Rond d&#039;Alembert wrote down and solved the one-dimensional wave equation for the vibrating string in the 1740s, and Joseph Fourier derived the heat equation from the physics of conduction and solved it with trigonometric series in his &#039;&#039;Théorie analytique de la chaleur&#039;&#039; of 1822, founding Fourier analysis.&amp;lt;ref&amp;gt;{{#cite:Q1579}}&amp;lt;/ref&amp;gt; [[Person:Augustin-Louis Cauchy|Augustin-Louis Cauchy]] and, later, Rudolf Lipschitz and Émile Picard placed the existence and uniqueness of solutions on a rigorous footing.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt; [[Person:Henri Poincaré|Henri Poincaré]] developed qualitative, geometric methods to study differential equations at the end of the 19th century to tackle the three-body problem of celestial mechanics. In 1892, [[Person:Aleksandr Lyapunov|Aleksandr Lyapunov]] gave a general definition of stability.&lt;br /&gt;
&lt;br /&gt;
The growing power of numerical computing in the 20th century enabled the development of the theory of dynamical systems that now pervades the sciences. In 1963, meteorologist [[Person:Edward Lorenz|Edward Lorenz]] found chaotic behaviour in a simple system of three differential equations modelling atmospheric convection, a landmark in the study of nonlinear dynamics. Although the system was deterministic, its solutions were aperiodic and so sensitive to initial conditions that nearby states rapidly diverged. He popularised the phenomenon as the butterfly effect.&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Differential_equation Differential equation], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/DifferentialEquation.html Differential Equation], Wolfram MathWorld&lt;br /&gt;
* [https://ocw.mit.edu/courses/18-03sc-differential-equations-fall-2011/ 18.03SC Differential Equations], MIT OpenCourseWare&lt;br /&gt;
* [https://mathshistory.st-andrews.ac.uk/Biographies/Euler/ Leonhard Euler], MacTutor History of Mathematics&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Qualitative_methods&amp;diff=7381</id>
		<title>Qualitative methods</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Qualitative_methods&amp;diff=7381"/>
		<updated>2026-09-04T07:32:23Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: New article spun out of Differential equation: equilibria, stability and linearisation, phase-plane analysis of the pendulum, bifurcations, limit cycles and chaos, with full worked demonstrations. AI-assisted (RonzzWikiCowriter). (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Qualitative methods&#039;&#039;&#039;, also known as the qualitative theory of differential equations, study differential equations and systems of differential equations without solving them. Instead of formulas for the solutions, they derive the behaviour directly from the equation: the equilibria, their stability, the periodic orbits, and the changes of behaviour (bifurcations) that occur as parameters vary. The approach complements the analytical and numerical methods discussed in the article [[Differential equation]].&lt;br /&gt;
&lt;br /&gt;
The field was founded by [[Person:Henri Poincaré|Henri Poincaré]] in the 1880s, whose geometric methods grew out of the three-body problem of celestial mechanics; [[Person:Aleksandr Lyapunov|Aleksandr Lyapunov]] placed the notion of stability on a rigorous footing in 1892.&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Equilibria and stability ==&lt;br /&gt;
&lt;br /&gt;
For an autonomous equation or system d&#039;&#039;&#039;y&#039;&#039;&#039;/d&#039;&#039;t&#039;&#039; = &#039;&#039;&#039;f&#039;&#039;&#039;(&#039;&#039;&#039;y&#039;&#039;&#039;), an equilibrium (fixed point) is a point &#039;&#039;&#039;y&#039;&#039;&#039;* at which &#039;&#039;&#039;f&#039;&#039;&#039;(&#039;&#039;&#039;y&#039;&#039;&#039;*) = 0: a solution placed there never changes. An equilibrium is stable when solutions starting close enough stay close for all time, and asymptotically stable when they are drawn back to it as &#039;&#039;t&#039;&#039; → ∞; otherwise it is unstable.&lt;br /&gt;
&lt;br /&gt;
For a single first-order equation &#039;&#039;y&#039;&#039;′ = &#039;&#039;f&#039;&#039;(&#039;&#039;y&#039;&#039;), stability is read from the derivative at the equilibrium: &#039;&#039;f&#039;&#039;′(&#039;&#039;y&#039;&#039;*) &amp;lt; 0 means a small displacement is pushed back, so the equilibrium is stable; &#039;&#039;f&#039;&#039;′(&#039;&#039;y&#039;&#039;*) &amp;gt; 0 means it grows, so the equilibrium is unstable. For instance, &#039;&#039;y&#039;&#039;′ = −&#039;&#039;y&#039;&#039; has the stable equilibrium 0, while &#039;&#039;y&#039;&#039;′ = &#039;&#039;y&#039;&#039; has the unstable equilibrium 0.&lt;br /&gt;
&lt;br /&gt;
For systems the same question is answered by linearising about the equilibrium. Writing &#039;&#039;&#039;u&#039;&#039;&#039; = &#039;&#039;&#039;y&#039;&#039;&#039; − &#039;&#039;&#039;y&#039;&#039;&#039;* and expanding &#039;&#039;&#039;f&#039;&#039;&#039; to first order gives the linear system&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1677}}&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;A&#039;&#039; = &#039;&#039;D&#039;&#039;&#039;&#039;&#039;f&#039;&#039;&#039;(&#039;&#039;&#039;y&#039;&#039;&#039;*) is the Jacobian matrix of &#039;&#039;&#039;f&#039;&#039;&#039; at &#039;&#039;&#039;y&#039;&#039;&#039;*. In the plane the eigenvalues of &#039;&#039;A&#039;&#039; determine the local phase portrait: two negative real eigenvalues give a stable node; complex eigenvalues with negative real part give a stable spiral; real eigenvalues of opposite signs give a saddle, which is unstable; and purely imaginary eigenvalues give a centre, around which the linearised solutions oscillate. For hyperbolic equilibria, at which no eigenvalue has zero real part, the Hartman–Grobman theorem guarantees that the nonlinear system behaves near the equilibrium exactly like its linearisation.&lt;br /&gt;
&lt;br /&gt;
== The pendulum in the phase plane ==&lt;br /&gt;
&lt;br /&gt;
The undamped pendulum&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1589}}&lt;br /&gt;
&lt;br /&gt;
has equilibria wherever sin θ = 0, namely the downward position θ = 0 and the upright position θ = π. Written as a first-order system in the phase plane (θ, &#039;&#039;v&#039;&#039;),&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1617}}&lt;br /&gt;
&lt;br /&gt;
and linearised about each equilibrium,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1618}}&lt;br /&gt;
&lt;br /&gt;
Near the downward position the linearised equation is the harmonic oscillator, so the phase plane is filled with the closed loops of periodic swinging: a centre. Near the upright position the linearised equation has exponential solutions, so the equilibrium is a saddle: only the two special trajectories that approach along its stable directions ever reach it, and every other nearby state falls away.&lt;br /&gt;
&lt;br /&gt;
== Bifurcations ==&lt;br /&gt;
&lt;br /&gt;
As a parameter changes, the qualitative picture can change abruptly at a bifurcation value: equilibria may appear, merge or vanish. In a saddle-node bifurcation a stable and an unstable equilibrium collide and annihilate each other.&lt;br /&gt;
&lt;br /&gt;
The harvested logistic equation models a population &#039;&#039;N&#039;&#039; that grows logistically and is harvested at the constant rate &#039;&#039;H&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1616}}&lt;br /&gt;
&lt;br /&gt;
Its equilibria are found by setting d&#039;&#039;N&#039;&#039;/d&#039;&#039;t&#039;&#039; = 0; the discriminant of the resulting quadratic counts them:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1678}}&lt;br /&gt;
&lt;br /&gt;
For &#039;&#039;H&#039;&#039; &amp;lt; &#039;&#039;H&#039;&#039;&amp;lt;sub&amp;gt;c&amp;lt;/sub&amp;gt; two equilibria coexist, one attracting and one repelling. As &#039;&#039;H&#039;&#039; increases towards &#039;&#039;H&#039;&#039;&amp;lt;sub&amp;gt;c&amp;lt;/sub&amp;gt; = &#039;&#039;rK&#039;&#039;/4 they move together and merge at the saddle-node bifurcation; beyond &#039;&#039;H&#039;&#039;&amp;lt;sub&amp;gt;c&amp;lt;/sub&amp;gt; no equilibrium remains and every population declines to extinction. This is the collapse of an overharvested fishery.&lt;br /&gt;
&lt;br /&gt;
== Periodic orbits and limit cycles ==&lt;br /&gt;
&lt;br /&gt;
In two dimensions a bounded solution eventually approaches an equilibrium or a periodic orbit (Poincaré–Bendixson theorem). Isolated periodic orbits are called limit cycles: nearby trajectories spiral onto them, so the system settles into self-sustained oscillation whatever the initial state. Limit cycles are intrinsically nonlinear, since a linear system oscillates with an amplitude fixed by its initial conditions rather than by the equation itself. The van der Pol oscillator&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1679}}&lt;br /&gt;
&lt;br /&gt;
has, for every μ &amp;gt; 0, an unstable equilibrium at the origin and one stable limit cycle: at small amplitudes the term −μ(1 − &#039;&#039;x&#039;&#039;²) feeds energy in, and at large amplitudes it dissipates energy, so all trajectories settle onto the same periodic motion.&lt;br /&gt;
&lt;br /&gt;
== Chaos ==&lt;br /&gt;
&lt;br /&gt;
For systems of three or more equations, bounded solutions need not be periodic: they can be aperiodic yet deterministic, with such sensitivity to initial conditions that nearby states separate exponentially fast. Such motion is called chaotic. [[Person:Edward Lorenz|Edward Lorenz]] found the first example in 1963 in a simple model of atmospheric convection, the system that now bears his name:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1619}}&lt;br /&gt;
&lt;br /&gt;
For σ = 10, ρ = 28 and β = 8/3 its solutions trace the famous butterfly-shaped chaotic attractor. Because nearby states separate exponentially, the long-term behaviour is unpredictable in practice although the equations are deterministic: this is why weather prediction beyond a limited horizon is impossible. Chaos has since been found throughout physics, biology, chemistry and economics.&amp;lt;ref&amp;gt;{{#cite:Q1578}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Qualitative_theory_of_differential_equations Qualitative theory of differential equations], Wikipedia&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Phase_plane Phase plane], Wikipedia&lt;br /&gt;
* [https://mathshistory.st-andrews.ac.uk/Biographies/Poincare/ Henri Poincaré], MacTutor History of Mathematics&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Euler%27s_method&amp;diff=7380</id>
		<title>Euler&#039;s method</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Euler%27s_method&amp;diff=7380"/>
		<updated>2026-09-04T07:32:22Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: New article spun out of Differential equation: derivation, error analysis, convergence demonstration, stability and higher-order Runge-Kutta methods, with a worked code example. AI-assisted (RonzzWikiCowriter). (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Euler&#039;s method&#039;&#039;&#039;, also called the forward Euler method, is the simplest numerical method for approximating the solution of an initial value problem&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;y&#039;&#039;′ = &#039;&#039;f&#039;&#039;(&#039;&#039;x&#039;&#039;, &#039;&#039;y&#039;&#039;),  &#039;&#039;y&#039;&#039;(&#039;&#039;x&#039;&#039;₀) = &#039;&#039;y&#039;&#039;₀.&lt;br /&gt;
&lt;br /&gt;
Given a step size &#039;&#039;h&#039;&#039;, it advances an approximate solution along the tangent of the exact solution, one step at a time, producing a polygonal line through the direction field of the equation. The method is named after [[Person:Leonhard Euler|Leonhard Euler]], who described it in his &#039;&#039;Institutiones calculi integralis&#039;&#039; of 1768; it is the prototype of the numerical methods used when no closed-form or open-form solution is available (see [[Differential equation]]).&lt;br /&gt;
&lt;br /&gt;
== The method ==&lt;br /&gt;
&lt;br /&gt;
Choose a step size &#039;&#039;h&#039;&#039; and mark the grid points &#039;&#039;x&#039;&#039;ₙ = &#039;&#039;x&#039;&#039;₀ + &#039;&#039;nh&#039;&#039;. If &#039;&#039;y&#039;&#039;(&#039;&#039;x&#039;&#039;) is the exact solution, Taylor&#039;s formula gives the local approximation&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1615}}&lt;br /&gt;
&lt;br /&gt;
Euler&#039;s method keeps only the first two terms: the increment over one step is &#039;&#039;h&#039;&#039; times the slope &#039;&#039;f&#039;&#039; evaluated at the beginning of the step. Starting from the initial value and repeating the step,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1593}}&lt;br /&gt;
&lt;br /&gt;
produces approximate values &#039;&#039;y&#039;&#039;ₙ ≈ &#039;&#039;y&#039;&#039;(&#039;&#039;x&#039;&#039;ₙ).&lt;br /&gt;
&lt;br /&gt;
[[File:Euler method.svg|thumb|Euler&#039;s method approximates a solution curve by following the local slope over short steps; smaller steps follow the exact curve more closely. Credit: Oleg Alexandrov (public domain).]]&lt;br /&gt;
&lt;br /&gt;
== Error of a single step ==&lt;br /&gt;
&lt;br /&gt;
The step of Euler&#039;s method is the first-order Taylor polynomial of the exact solution; the remainder measures how much the step misses. If the exact solution has a continuous second derivative,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1675}}&lt;br /&gt;
&lt;br /&gt;
for some ξₙ between &#039;&#039;x&#039;&#039;ₙ and &#039;&#039;x&#039;&#039;ₙ + &#039;&#039;h&#039;&#039;. The local truncation error of each step is therefore of order &#039;&#039;h&#039;&#039;².&lt;br /&gt;
&lt;br /&gt;
== Global error and convergence ==&lt;br /&gt;
&lt;br /&gt;
A fixed interval of length &#039;&#039;b&#039;&#039; − &#039;&#039;a&#039;&#039; contains (&#039;&#039;b&#039;&#039; − &#039;&#039;a&#039;&#039;)/&#039;&#039;h&#039;&#039; steps, so the local errors accumulate into a total error of order &#039;&#039;h&#039;&#039;: halving the step size halves the error. Euler&#039;s method is therefore called a first-order method, and the polygonal approximation converges to the exact solution as &#039;&#039;h&#039;&#039; → 0.&lt;br /&gt;
&lt;br /&gt;
For the model problem &#039;&#039;y&#039;&#039;′ = &#039;&#039;y&#039;&#039; with &#039;&#039;y&#039;&#039;(0) = 1, whose exact solution is &#039;&#039;y&#039;&#039; = &#039;&#039;e&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt;, each Euler step multiplies the estimate by 1 + &#039;&#039;h&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1614}}&lt;br /&gt;
&lt;br /&gt;
so the estimate at &#039;&#039;x&#039;&#039; = 1, namely (1 + &#039;&#039;h&#039;&#039;)&amp;lt;sup&amp;gt;1/&#039;&#039;h&#039;&#039;&amp;lt;/sup&amp;gt;, tends to &#039;&#039;e&#039;&#039; as &#039;&#039;h&#039;&#039; → 0. The demonstration is easy to reproduce. A short implementation in Python,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1680}}&lt;br /&gt;
&lt;br /&gt;
returns about 2.594 after ten steps of size &#039;&#039;h&#039;&#039; = 0.1, already close to the exact value &#039;&#039;e&#039;&#039; = 2.718 281 828…, and the approximation improves as the step size shrinks.&lt;br /&gt;
&lt;br /&gt;
== Stability and higher-order methods ==&lt;br /&gt;
&lt;br /&gt;
Euler&#039;s method is not stable for every step size. For the decay equation &#039;&#039;y&#039;&#039;′ = −λ&#039;&#039;y&#039;&#039; with λ &amp;gt; 0, the numerical values follow &#039;&#039;y&#039;&#039;ₙ = (1 − λ&#039;&#039;h&#039;&#039;)ⁿ&#039;&#039;y&#039;&#039;₀, which stay bounded only while λ&#039;&#039;h&#039;&#039; ≤ 2; for larger steps the computed values grow even though the exact solution decays. Stiff problems therefore demand very small steps or implicit methods.&lt;br /&gt;
&lt;br /&gt;
Better accuracy per step is obtained by evaluating the slope several times inside each step; this is the idea of the &#039;&#039;&#039;Runge–Kutta family&#039;&#039;&#039;. The midpoint method, a second-order example, first probes the slope at the middle of the interval:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1676}}&lt;br /&gt;
&lt;br /&gt;
The classical fourth-order Runge–Kutta method, developed by [[Person:Carl Runge|Carl Runge]] and [[Person:Martin Kutta|Martin Kutta]] at the turn of the 20th century, evaluates the slope four times per step and attains an error of order &#039;&#039;h&#039;&#039;⁴; it is the default method in most numerical libraries.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Euler_method Euler method], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/EulerForwardMethod.html Euler Forward Method], Wolfram MathWorld&lt;br /&gt;
* [https://ocw.mit.edu/courses/18-03sc-differential-equations-fall-2011/ 18.03SC Differential Equations], MIT OpenCourseWare&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Laplace_transform&amp;diff=7379</id>
		<title>Laplace transform</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Laplace_transform&amp;diff=7379"/>
		<updated>2026-09-04T07:32:22Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: New article spun out of Differential equation: definition, derivative rule, transform pairs and a full worked demonstration of the method on an initial value problem. AI-assisted (RonzzWikiCowriter). (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;The Laplace transform&#039;&#039;&#039; is an integral transform that maps a function &#039;&#039;f&#039;&#039;(&#039;&#039;t&#039;&#039;), defined for &#039;&#039;t&#039;&#039; ≥ 0, to a function &#039;&#039;F&#039;&#039;(&#039;&#039;s&#039;&#039;) of a new variable &#039;&#039;s&#039;&#039;, by the formula&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1671}}&lt;br /&gt;
&lt;br /&gt;
For functions of exponential order the integral converges whenever the real part of &#039;&#039;s&#039;&#039; is large enough. The transform is named after [[Person:Pierre-Simon Laplace|Pierre-Simon Laplace]] (1749–1827), who used closely related integral transforms in probability theory in the 1780s; its systematic application to differential equations grew out of the operational calculus developed around the turn of the 20th century.&lt;br /&gt;
&lt;br /&gt;
== Linearity and the derivative rule ==&lt;br /&gt;
&lt;br /&gt;
The Laplace transform is linear: the transform of a linear combination is the same combination of the transforms. Its importance for differential equations rests on the derivative rule, by which differentiation in &#039;&#039;t&#039;&#039; becomes multiplication by &#039;&#039;s&#039;&#039;, at the price of subtracting the initial value. For the first derivative the rule follows from one integration by parts:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1672}}&lt;br /&gt;
&lt;br /&gt;
Applying the rule twice gives the second-derivative rule, written for the function &#039;&#039;y&#039;&#039;(&#039;&#039;t&#039;&#039;) of an initial value problem:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1620}}&lt;br /&gt;
&lt;br /&gt;
The initial values of the problem therefore appear in the transformed equation directly: an initial value problem for &#039;&#039;y&#039;&#039; becomes an algebraic equation for &#039;&#039;Y&#039;&#039;(&#039;&#039;s&#039;&#039;). The final step, recovering &#039;&#039;y&#039;&#039; from &#039;&#039;Y&#039;&#039;, uses a table of standard transforms; the most common pairs are:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1673}}&lt;br /&gt;
&lt;br /&gt;
== Worked example ==&lt;br /&gt;
&lt;br /&gt;
Consider the initial value problem&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;y&#039;&#039;″ + &#039;&#039;y&#039;&#039; = 1,  with  &#039;&#039;y&#039;&#039;(0) = 0 and &#039;&#039;y&#039;&#039;′(0) = 0.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 1, transform the equation.&#039;&#039;&#039; Apply the derivative rules to each term, using the given initial values:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1651}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 2, solve for &#039;&#039;Y&#039;&#039;(&#039;&#039;s&#039;&#039;).&#039;&#039;&#039; The equation gives &#039;&#039;Y&#039;&#039;(&#039;&#039;s&#039;&#039;) = 1/[&#039;&#039;s&#039;&#039;(&#039;&#039;s&#039;&#039;² + 1)]. To invert with the table, expand this rational function in partial fractions with undetermined coefficients:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1674}}&lt;br /&gt;
&lt;br /&gt;
Comparing coefficients gives &#039;&#039;A&#039;&#039; = 1, &#039;&#039;B&#039;&#039; = −1 and &#039;&#039;C&#039;&#039; = 0, hence&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1652}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 3, invert term by term.&#039;&#039;&#039; Using the pairs &#039;&#039;L&#039;&#039;{1} = 1/&#039;&#039;s&#039;&#039; and &#039;&#039;L&#039;&#039;{cos &#039;&#039;t&#039;&#039;} = &#039;&#039;s&#039;&#039;/(&#039;&#039;s&#039;&#039;² + 1),&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1610}}&lt;br /&gt;
&lt;br /&gt;
The initial conditions entered automatically in step 1, in contrast with the classical method, in which the constants of the general solution are fixed only at the end. The same procedure also handles forcing terms that are discontinuous or impulsive, since the step function and the Dirac delta have simple transforms, whereas classical methods become cumbersome there. Full treatments of the transform method are found in standard textbooks.&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Laplace_transform Laplace transform], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/LaplaceTransform.html Laplace Transform], Wolfram MathWorld&lt;br /&gt;
* [https://ocw.mit.edu/courses/18-03sc-differential-equations-fall-2011/ 18.03SC Differential Equations], MIT OpenCourseWare&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Power_series&amp;diff=7378</id>
		<title>Power series</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Power_series&amp;diff=7378"/>
		<updated>2026-09-04T07:32:22Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: New article spun out of Differential equation: power series as mathematical objects and their use for solving differential equations, with full worked demonstration on the Airy equation and the Frobenius method. AI-assisted (RonzzWikiCowriter). (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;A power series&#039;&#039;&#039; is an infinite series of the form&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1667}}&lt;br /&gt;
&lt;br /&gt;
in which the coefficients &#039;&#039;a&#039;&#039;ₙ are constants and the number &#039;&#039;c&#039;&#039; is the centre of the series. A power series represents a function exactly on an interval around its centre; such a representation is an open-form expression, in contrast with a closed form built from finitely many elementary functions.&lt;br /&gt;
&lt;br /&gt;
Inside its interval of convergence, a power series may be differentiated and integrated term by term as often as needed, and it coincides there with the Taylor series of the function it represents.&lt;br /&gt;
&lt;br /&gt;
== Radius of convergence ==&lt;br /&gt;
&lt;br /&gt;
A power series converges absolutely for |&#039;&#039;x&#039;&#039; − &#039;&#039;c&#039;&#039;| &amp;lt; &#039;&#039;R&#039;&#039; and diverges for |&#039;&#039;x&#039;&#039; − &#039;&#039;c&#039;&#039;| &amp;gt; &#039;&#039;R&#039;&#039;; the number &#039;&#039;R&#039;&#039; is the radius of convergence (the endpoints |&#039;&#039;x&#039;&#039; − &#039;&#039;c&#039;&#039;| = &#039;&#039;R&#039;&#039; must be examined separately). When the ratio test applies, the radius follows directly from the coefficients:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1668}}&lt;br /&gt;
&lt;br /&gt;
The exponential series e&amp;lt;sup&amp;gt;&#039;&#039;x&#039;&#039;&amp;lt;/sup&amp;gt; = Σ&#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sup&amp;gt;/&#039;&#039;n&#039;&#039;! converges for every real &#039;&#039;x&#039;&#039; (&#039;&#039;R&#039;&#039; = ∞), whereas the geometric series 1/(1 − &#039;&#039;x&#039;&#039;) = Σ&#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sup&amp;gt; has radius &#039;&#039;R&#039;&#039; = 1.&lt;br /&gt;
&lt;br /&gt;
== Power series solutions of differential equations ==&lt;br /&gt;
&lt;br /&gt;
Linear differential equations whose coefficients vary with &#039;&#039;x&#039;&#039; rarely admit closed-form solutions. When the coefficients are analytic at a point, one can still seek a solution in the form of a power series about that point: substituting the series into the equation and equating the coefficients of like powers of &#039;&#039;x&#039;&#039; turns the differential equation into recurrence relations for the coefficients. The free constants left by the recurrence are exactly the arbitrary constants of the equation, and the resulting series is an exact solution on its interval of convergence.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The role of such series among the approaches to differential equations is discussed in the article [[Differential equation]].&lt;br /&gt;
&lt;br /&gt;
=== Worked example: the Airy equation ===&lt;br /&gt;
&lt;br /&gt;
The Airy equation&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;y&#039;&#039;″ − &#039;&#039;xy&#039;&#039; = 0&lt;br /&gt;
&lt;br /&gt;
is named after [[Person:George Biddell Airy|George Biddell Airy]] (1801–1892), who encountered it in 1838 while studying the intensity of light near a caustic. It has no solution expressible as a finite combination of elementary functions, so it is the standard test case for series methods.&lt;br /&gt;
&lt;br /&gt;
Seek a solution about the ordinary point &#039;&#039;x&#039;&#039; = 0 as a power series &#039;&#039;y&#039;&#039; = Σ&#039;&#039;a&#039;&#039;ₙ&#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sup&amp;gt;. Substituting the series for &#039;&#039;y&#039;&#039;″ and for &#039;&#039;xy&#039;&#039;, then reindexing so that both run over the same powers of &#039;&#039;x&#039;&#039;, gives&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1669}}&lt;br /&gt;
&lt;br /&gt;
Equating the coefficients of &#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sup&amp;gt; on the two sides of &#039;&#039;y&#039;&#039;″ − &#039;&#039;xy&#039;&#039; = 0:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1649}}&lt;br /&gt;
&lt;br /&gt;
The coefficient of &#039;&#039;x&#039;&#039;⁰ gives &#039;&#039;a&#039;&#039;₂ = 0, and for &#039;&#039;n&#039;&#039; ≥ 1 each coefficient is fixed by the one three places earlier: &#039;&#039;a&#039;&#039;₃ = &#039;&#039;a&#039;&#039;₀/6, &#039;&#039;a&#039;&#039;₄ = &#039;&#039;a&#039;&#039;₁/12, &#039;&#039;a&#039;&#039;₅ = 0, &#039;&#039;a&#039;&#039;₆ = &#039;&#039;a&#039;&#039;₀/180, &#039;&#039;a&#039;&#039;₇ = &#039;&#039;a&#039;&#039;₁/504, and so on. The two free constants &#039;&#039;a&#039;&#039;₀ and &#039;&#039;a&#039;&#039;₁ therefore generate two linearly independent solutions:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1650}}&lt;br /&gt;
&lt;br /&gt;
Each series converges for every &#039;&#039;x&#039;&#039; (the ratio test gives &#039;&#039;R&#039;&#039; = ∞). Up to normalisation these two solutions are the Airy functions Ai and Bi:&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1609}}&lt;br /&gt;
&lt;br /&gt;
The power series thus solve the Airy equation exactly, in open form, on the whole real line. The Airy functions appear in quantum mechanics, optics and elsewhere whenever solutions change from oscillatory to exponential behaviour.&lt;br /&gt;
&lt;br /&gt;
=== Ordinary points, singular points and the Frobenius method ===&lt;br /&gt;
&lt;br /&gt;
Write a linear second-order equation as &#039;&#039;y&#039;&#039;″ + &#039;&#039;p&#039;&#039;(&#039;&#039;x&#039;&#039;)&#039;&#039;y&#039;&#039;′ + &#039;&#039;q&#039;&#039;(&#039;&#039;x&#039;&#039;)&#039;&#039;y&#039;&#039; = 0. A point &#039;&#039;x&#039;&#039;₀ is ordinary when both &#039;&#039;p&#039;&#039; and &#039;&#039;q&#039;&#039; are analytic there; the power-series method above applies directly. If at least one of &#039;&#039;p&#039;&#039; or &#039;&#039;q&#039;&#039; has a pole at &#039;&#039;x&#039;&#039;₀, the point is singular; it is a regular singular point when (&#039;&#039;x&#039;&#039; − &#039;&#039;x&#039;&#039;₀)&#039;&#039;p&#039;&#039;(&#039;&#039;x&#039;&#039;) and (&#039;&#039;x&#039;&#039; − &#039;&#039;x&#039;&#039;₀)²&#039;&#039;q&#039;&#039;(&#039;&#039;x&#039;&#039;) are still analytic there.&lt;br /&gt;
&lt;br /&gt;
Around a regular singular point the &#039;&#039;&#039;Frobenius method&#039;&#039;&#039; seeks a solution with a shifted leading power, &#039;&#039;y&#039;&#039; = &#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;r&#039;&#039;&amp;lt;/sup&amp;gt; Σ&#039;&#039;a&#039;&#039;ₙ&#039;&#039;x&#039;&#039;&amp;lt;sup&amp;gt;&#039;&#039;n&#039;&#039;&amp;lt;/sup&amp;gt;; equating the lowest power of &#039;&#039;x&#039;&#039; fixes the exponent &#039;&#039;r&#039;&#039; through an indicial equation. For example, the Bessel equation of order ν,&lt;br /&gt;
&lt;br /&gt;
{{#content:Q1670}}&lt;br /&gt;
&lt;br /&gt;
has the indicial equation &#039;&#039;r&#039;&#039;² − ν² = 0, whose roots &#039;&#039;r&#039;&#039; = ±ν usually give two independent series solutions (Bessel functions of the first kind). When the roots coincide or differ by an integer, the second independent solution, the Bessel function of the second kind &#039;&#039;Y&#039;&#039;&amp;lt;sub&amp;gt;ν&amp;lt;/sub&amp;gt;, contains a logarithmic term. The full theory is developed in standard textbooks on ordinary differential equations.&amp;lt;ref&amp;gt;{{#cite:Q1577}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{#cite:Q1576}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Power_series Power series], Wikipedia&lt;br /&gt;
* [https://mathworld.wolfram.com/PowerSeries.html Power Series], Wolfram MathWorld&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Frobenius_method Frobenius method], Wikipedia&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1680&amp;diff=7377</id>
		<title>Item:Q1680</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1680&amp;diff=7377"/>
		<updated>2026-09-04T07:28:21Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1680&amp;diff=7376</id>
		<title>Item:Q1680</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1680&amp;diff=7376"/>
		<updated>2026-09-04T07:28:21Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1679&amp;diff=7375</id>
		<title>Item:Q1679</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1679&amp;diff=7375"/>
		<updated>2026-09-04T07:28:15Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1679&amp;diff=7374</id>
		<title>Item:Q1679</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1679&amp;diff=7374"/>
		<updated>2026-09-04T07:28:15Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1678&amp;diff=7373</id>
		<title>Item:Q1678</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1678&amp;diff=7373"/>
		<updated>2026-09-04T07:28:14Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1678&amp;diff=7372</id>
		<title>Item:Q1678</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1678&amp;diff=7372"/>
		<updated>2026-09-04T07:28:14Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1677&amp;diff=7371</id>
		<title>Item:Q1677</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1677&amp;diff=7371"/>
		<updated>2026-09-04T07:28:14Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1677&amp;diff=7370</id>
		<title>Item:Q1677</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1677&amp;diff=7370"/>
		<updated>2026-09-04T07:28:14Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1676&amp;diff=7369</id>
		<title>Item:Q1676</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1676&amp;diff=7369"/>
		<updated>2026-09-04T07:28:14Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1676&amp;diff=7368</id>
		<title>Item:Q1676</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1676&amp;diff=7368"/>
		<updated>2026-09-04T07:28:14Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1675&amp;diff=7367</id>
		<title>Item:Q1675</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1675&amp;diff=7367"/>
		<updated>2026-09-04T07:28:14Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1675&amp;diff=7366</id>
		<title>Item:Q1675</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1675&amp;diff=7366"/>
		<updated>2026-09-04T07:28:14Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Item:Q1674&amp;diff=7365</id>
		<title>Item:Q1674</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Item:Q1674&amp;diff=7365"/>
		<updated>2026-09-04T07:28:14Z</updated>

		<summary type="html">&lt;p&gt;RonzzWikiCowriterAI: Add content item&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
</feed>