LeoMath

Introduction to differential equations · Section 1 of 4

What is an ODE

Describing change through derivatives; existence and uniqueness of solutions.

about 8 min

Start from a problem

Problem

A cup of hot water cools on a table. We do not know the temperature function T(t); we only know the law of its change: it cools at a rate proportional to how far it is above room temperature.

Many laws of nature come this way: not the quantity itself, but a relation between its rate of change and its value. We need a mathematical object to express such laws, and a way to recover the function from the law.

Observe

A cup of hot water sits on a table. It does not cool at a constant rate: fast while hot, slowly as it nears room temperature. We do not know the temperature as a function of time, T(t), but we do know the law of its change:

T′(t)=−k(T(t)−Troom).

In the experiment below choose "Exponential growth", make k negative and vary the initial value. What you see are solutions of this kind of equation.

Interactive experimentNumerical ODE explorer
Equation
y′=ky
Time series
Method exactEuler error at end: 5.5336RK4 error at end: 0.0016

What did you observe?Play first, then answer. Read the explanation only after you have thought it through.

  1. 1.For “Exponential growth”, halve the step h. By what factor does each method's end-point error shrink?
  2. 2.Push h to its maximum. Does Euler's curve still look exponential? Which step goes wrong?
  3. 3.In “Damped oscillator”, increase γ. What does the phase portrait turn into? And once γ exceeds ω?
Conjecture

Many natural laws do not hand us the quantity itself but a relation between its rate of change and its value. Such a relation is an equation containing an unknown function and its derivatives. If we can recover the function from the equation, we can predict the future.

Definitions

Definition 1.1Ordinary differential equation

An ordinary differential equation (ODE) of order n is an equation

F(t,y,y′,y′′,…,y(n))=0

for an unknown function y=y(t) of one variable. The order is the highest derivative that appears. If it can be solved for that derivative, y(n)=f(t,y,…,y(n−1)), the equation is explicit.

Definition 1.2Solution and initial value problem

A function φ on an interval I is a solution if substituting y=φ(t) makes the equation hold for every t∈I. An initial value problem adds y(t0)=y0 (for order n, the values of y,y′,…,y(n−1) at t0).

Definition 1.3Linear equation

If the equation can be written an(t)y(n)+⋯+a1(t)y′+a0(t)y=g(t), so that y and its derivatives appear only to the first power and never multiplied together, it is linear; if g≡0 it is homogeneous.

y′′′+yy′=sin⁡t is third order and nonlinear (because of yy′). Order and linearity are independent attributes.

Derivation: the simplest equation

Proposition 1.1

The solutions of y′=ky are exactly y=Cekt, C∈ℝ.

Proof

Cekt is a solution by direct differentiation. Conversely let y be any solution and set u(t)=y(t)e−kt. Then

u′=y′e−kt−kye−kt=(y′−ky)e−kt=0,

so u is a constant C and y=Cekt.

We used the central fact (ekt)′=kekt from The derivative, and that a function with zero derivative is constant (a corollary of the mean value theorem). The initial condition y(0)=y0 fixes C=y0.

Back to the cooling cup: with u=T−Troom, u′=−ku, so u=u0e−kt and

T(t)=Troom+(T0−Troom)e−kt.

Existence and uniqueness

An equation only states a law. Must it have a solution? Is the solution unique? These questions decide whether "predicting the future with a differential equation" is legitimate.

Theorem 1.2Picard–Lindelöf

Let f(t,y) be continuous on the rectangle R={|t−t0|≤a, |y−y0|≤b} and Lipschitz in y: there is L with |f(t,y1)−f(t,y2)|≤L|y1−y2|. Then the initial value problem y′=f(t,y), y(t0)=y0 has a unique solution on some neighbourhood of t0.

Proof

We prove uniqueness, which shows what the Lipschitz condition is for. Let φ,ψ be solutions and w(t)=|φ(t)−ψ(t)|. Integrating the equation (see The integral) gives φ(t)=y0+∫t0tf(s,φ(s))ds and likewise for ψ, so for t≥t0

w(t)≤∫t0t|f(s,φ)−f(s,ψ)|ds≤L∫t0tw(s)ds.

Let W(t)=∫t0tw. Then W′≤LW and W(t0)=0, so (We−Lt)′=(W′−LW)e−Lt≤0: We−Lt is non-increasing, starts at 0 and is non-negative, hence W≡0 and w≡0.

Existence is obtained by Picard iteration φn+1(t)=y0+∫t0tf(s,φn(s))ds and a uniform convergence argument; this is one of the roots of Numerical solutions.

Example 1.1Uniqueness fails without Lipschitz

y′=2|y|, y(0)=0. Both y≡0 and y=t2 (for t≥0) are solutions. f(y)=2|y| is not Lipschitz near y=0.

Common mistake

The general solution of y′=ky is Cekt, not ekt+C. Where the constant goes is dictated by the derivation: here C comes from "ye−kt is constant". Also, the existence–uniqueness theorem guarantees only a local solution; the solution of y′=y2 blows up at t=1.

Application

ApplicationSolutions need not live forever

y′=y2, y(0)=1 satisfies the theorem and has the unique local solution y=11−t, which blows up at t=1. The theorem guarantees a local solution. This is the first exercise of First-order equations.

Remark

Three levels of working with differential equations: modelling (writing the law), solving (finding the function), analysis (knowing things without solving). Existence and uniqueness belongs to the third level: under broad conditions, the present state completely determines the future. This is the mathematical form of Newtonian determinism.

Exercises

0 of 2 done

1
Solve y′=2y, y(0)=3 and give y(1) to two decimals.

Decimals or fractions; anything within 0.006 of the answer counts as correct.

2
What is the order of y′′′+yy′=sin⁡t?
Answer to exercise 2

Discussion

Found a mistake, have a question or a suggestion? You can also write to 620026600@qq.com

No comments yet. Share your understanding, ask a question, or point out an error on this page.

Log in to join the discussion