Survey of Mathematics

7.1 Existence and uniqueness for differential equations

A differential equation with a starting value has exactly one solution, for a short time, as long as its right-hand side does not stretch distances too fast. The proof turns the equation into an integral equation and applies the contraction mapping theorem to the space of continuous functions.

Taught in 375/376Apostol, not taughtBeyond the courseApostol 6.1, 6.4, 6.5, 7.21 to 7.28Technau, MATH 376 lectures of March 16 to 23 and April 22MATH 376 worksheets 18 and 19, homework 7

A population grows at a rate proportional to its size. A ball falls with an acceleration that depends on its speed. A capacitor drains at a rate that depends on its charge. Each of these gives an equation in which the unknown is a function and the equation involves the function’s derivative. Before we try to find a solution we should ask two questions that school courses skip. Is there a solution at all? And if there is, is there only one? The end of 4.2 gave a preview: turn the differential equation into an integral equation, and a solution becomes a fixed point of a contraction on a space of functions. This chapter carries that out in general.

Before you start

You need three earlier ideas: the contraction mapping theorem and the sup metric from 4.2, the fundamental theorem of calculus from 1.5, and the idea of a norm from 2.9 and 4.1. Three quick checks:

Quick checkWhich of these is NOT a hypothesis of the Banach fixed point theorem?
Quick checkOn [0,1][0, 1] let f(t)=tf(t) = t and g(t)=t2g(t) = t^2. What is the sup distance d∞(f,g)=max⁡t∣f(t)−g(t)∣d_\infty(f, g) = \max_t \lvert f(t) - g(t) \rvert?
Quick checkA continuous function yy satisfies y(t)=1+∫0ty(s) dsy(t) = 1 + \int_0^t y(s)\,ds for all tt. What is y′(t)y'(t)?

The picture

Each curve below is a Picard iterate. Start with the constant function y0=1y_0 = 1, which is the starting value. Plug it into the right-hand side of the equation and integrate from 00 to tt. The result is a new function y1y_1. Repeat with y1y_1 to get y2y_2, and so on. The dashed red curve is the true solution. Slide the iterate number up, and do it for all three equations.

For y′=yy' = y and y′=2tyy' = 2ty each new iterate agrees with the true solution to a higher power of tt, so the curves lock on from the left. For y′=y2y' = y^2 they lock on only up to t=1t = 1. The true solution is 11−t\frac{1}{1-t}, which rises to infinity at t=1t = 1, so no polynomial can follow it past that point. The theorem of this chapter says when the process converges and why the limit is the only solution. The example y′=y2y' = y^2 shows what it cannot promise: a solution that lasts forever.

Where this came from· Picard, Lindelöf, Lipschitz, and an idea older than all of them

People solved differential equations by repeated substitution before anyone proved it works. Joseph Liouville used successive approximations in the 1830s to compute solutions. Rudolf Lipschitz proved existence and uniqueness in 1868, by Euler’s polygons, for right-hand sides satisfying the condition now named after him. Giuseppe Peano showed in 1886 that mere continuity of the right-hand side still gives a solution, though not a unique one. Émile Picard introduced successive approximations as a general existence method in a memoir of 1890 on partial differential equations, and in 1893 applied it to ordinary equations, which is the theorem of this chapter. Ernst Lindelöf presented a short, clean version for ordinary equations in 1894, which is why the theorem carries both names. Writing it as a contraction on a space of functions came later still: it is Banach’s fixed point theorem of 1922 applied to Picard’s operator.

The idea, in words

Why· A differential equation is a rule for motion; integrating turns the rule into a loop

The equation y′=f(t,y)y' = f(t, y) says: wherever you are, at time tt and position yy, your velocity is f(t,y)f(t, y). Starting from y(t0)=y0y(t_0) = y_0, it is a rule you can follow, like a ball rolling on a landscape whose slopes are given. Two things can go wrong. Following the rule may lead you off in two different ways at once (no uniqueness), or may take you to infinity in finite time (no solution beyond that time). There is good news and a caveat. Neither failure happens if the rule does not change too abruptly from point to point (the Lipschitz condition). But even then the proof gives a solution only for a short time, and the solution may not be extendable forever.

The proof has three moves. Integrate the equation, so that the unknown function appears on both sides: y(t)=y0+∫t0tf(s,y(s)) dsy(t) = y_0 + \int_{t_0}^{t} f(s, y(s))\,ds. Now a solution is a function that the “integrate the rule along me” machine TT leaves unchanged, that is, a fixed point of TT. Shrink: for a short enough time TT moves any two candidate functions closer together, by a factor below 11. That is exactly the Lipschitz condition at work inside an integral over a short interval. Use completeness: the continuous functions on that interval with the sup metric form a complete space (4.2), so Banach hands us exactly one fixed point.

Definitions and theorems

Differential equations and starting values

Definition T

Ordinary differential equation

An ordinary differential equation (ODE) is an equation for an unknown function yy of one real variable tt that involves yy and some of its derivatives. “Ordinary” means one variable (with several variables the derivatives are partial and the equation is a PDE). The order is the highest derivative that appears. In the explicit form of order nn,

y(n)(t)=f(t, y(t), y′(t), …, y(n−1)(t)),y^{(n)}(t) = f\big(t,\ y(t),\ y'(t),\ \dots,\ y^{(n-1)}(t)\big),

where y(k)y^{(k)} is the kk-th derivative. A solution on an interval JJ is a function yy with nn continuous derivatives on JJ that satisfies the equation at every tt in JJ. The values of yy may be numbers or, for a system, vectors in Rm\mathbb R^m. (Technau’s notes keep JJ open and write Ck(J)C^k(J) for the functions with kk continuous derivatives.)

In one lineAn equation for an unknown function y(t)y(t) of ONE variable that involves its derivatives, such as y′=3yy' = 3y or y′′+y=0y'' + y = 0.

Why it existsIt is how a law of change (a growth rate, a force) is written down, with the unknown being the whole motion rather than a number.

The three equations of Technau’s lecture of March 20 show the range. y′=ryy' = ry is population growth (snakes, radioactive decay, interest on a bank balance). y′′=−ωyy'' = -\omega y is a harmonic oscillator. y′=ry(1−y/K)y' = ry(1 - y/K) is the logistic equation, in which growth slows as the population nears the capacity KK. The first two are linear (a sum of solutions is a solution, which 7.2 uses everywhere); the third is not.

Definition T

Initial value problem

An initial value problem (IVP) of first order is

y′(t)=f(t,y(t)),y(t0)=y0.y'(t) = f\big(t, y(t)\big), \qquad y(t_0) = y_0 .

A solution is a function yy on an interval J∋t0J \ni t_0 that satisfies the equation at every point of JJ and takes the value y0y_0 at t0t_0. (For order nn one prescribes y(t0),y′(t0),…,y(n−1)(t0)y(t_0), y'(t_0), \dots, y^{(n-1)}(t_0).)

In one lineAn ODE together with the value of the solution (and, for higher order, of its derivatives) at one starting time: y′=f(t,y)y' = f(t, y), y(t0)=y0y(t_0) = y_0.

Why it existsThe equation alone has a whole family of solutions. The starting value picks one, the way a starting position picks one path through a field of arrows.

Worked example MATH 376 worksheet 18 #5 to #8
Does the function solve the problem? y = e^(2x) for y' = 2y; y = x² + 1 for y' = 2x, y(0) = 1; y = x² for y' = x.

Solution.

  1. Differentiate the candidate. y=e2xy = e^{2x} gives y′=2e2xy' = 2e^{2x}. To test a proposed solution we never solve anything. We differentiate it and substitute.
  2. Substitute into the equation. y′=2e2x=2yy' = 2e^{2x} = 2y. This is the equation y′=2yy' = 2y, so the first candidate works.
  3. Second candidate: equation and starting value. y=x2+1y = x^2 + 1 has y′=2xy' = 2x, which matches. And y(0)=0+1=1y(0) = 0 + 1 = 1. An IVP has two requirements, the equation and the starting value, and both must be checked.
  4. Third candidate. y=x2y = x^2 gives y′=2xy' = 2x, but the equation asks for y′=xy' = x, and 2x≠x2x \ne x except at x=0x = 0. The equation must hold at every point of the interval, not at one point.

Answer. The first two are solutions (the second of the IVP). The third is not a solution.

Worked example MATH 376 worksheet 18 #9 to #12
Solve y' = e^t with y(1) = 0, y' = t² + 1 with y(0) = 3, y' = 3x with y(0) = 2, and y' = cos x with y(0) = 0.

Solution.

  1. Integrate. When ff does not depend on yy, the equation y′=f(t)y' = f(t) asks for an antiderivative: y=∫et dt=et+Cy = \int e^t\,dt = e^t + C. The right-hand side does not contain the unknown, so we are in the plain integration case of calculus.
  2. Fix the constant with the starting value. y(1)=e+C=0y(1) = e + C = 0 gives C=−eC = -e, so y=et−ey = e^t - e. The starting value is what selects one solution out of the family.
  3. Second problem. y=t33+t+Cy = \frac{t^3}{3} + t + C and y(0)=C=3y(0) = C = 3, so y=t33+t+3y = \frac{t^3}{3} + t + 3. Same two moves: integrate, then fix CC.
  4. Two more of the same kind. y′=3xy' = 3x with y(0)=2y(0) = 2 gives y=32x2+Cy = \frac32x^2 + C and C=2C = 2. And y′=cos⁡xy' = \cos x with y(0)=0y(0) = 0 gives y=sin⁡x+Cy = \sin x + C and C=0C = 0. Same two moves again.
  5. Check one of them. (et−e)′=et\left(e^t - e\right)' = e^t and e1−e=0e^1 - e = 0. Differentiating the answer and testing the starting value is the check from the last example.

Answer. y=et−ey = e^t - e, y=t33+t+3y = \frac{t^3}{3} + t + 3, y=32x2+2y = \frac32x^2 + 2 and y=sin⁡xy = \sin x. These are the only cases where “solve the IVP” is only “integrate”. When ff contains yy, the unknown is inside the integral, and that is where the rest of the chapter begins.

Higher order is first order in disguise

Every explicit equation of order nn can be turned into a first-order equation for a vector. This is why we only need a theorem for first-order systems.

Fact T Technau, March 23 (Step 1 of Theorem 7.6); Apostol 7.1

A higher-order equation is a first-order system

Let yy be nn times differentiable and put x1=yx_1 = y, x2=y′x_2 = y', …\dots, xn=y(n−1)x_n = y^{(n-1)}. Then yy solves y(n)=f(t,y,y′,…,y(n−1))y^{(n)} = f(t, y, y', \dots, y^{(n-1)}) if and only if x=(x1,…,xn)x = (x_1, \dots, x_n) solves

x1′=x2,x2′=x3,…,xn−1′=xn,xn′=f(t,x1,x2,…,xn).x_1' = x_2,\quad x_2' = x_3,\quad \dots,\quad x_{n-1}' = x_n,\quad x_n' = f(t, x_1, x_2, \dots, x_n).

The starting values y(t0),…,y(n−1)(t0)y(t_0), \dots, y^{(n-1)}(t_0) become the starting vector x(t0)x(t_0).

In one linePut x=(y,y′,…,y(n−1))x = (y, y', \dots, y^{(n-1)}). Then y(n)=f(t,y,…,y(n−1))y^{(n)} = f(t, y, \dots, y^{(n-1)}) is the same as x′=F(t,x)x' = F(t, x) for a vector function FF.

Why it is trueThe new unknown remembers the first n−1n - 1 derivatives as separate coordinates, so each coordinate's derivative is either the next coordinate or the right-hand side.

ProofTechnau, March 23
The idea: Differentiate each coordinate and read off the pattern.
For k<nk < n: xk′=y(k)=xk+1x_k' = y^{(k)} = x_{k+1}.
The definition of xkx_k: xk=y(k−1)x_k = y^{(k-1)}, so xk′=y(k)x_k' = y^{(k)}.
xn′=y(n)=f(t,y,…,y(n−1))=f(t,x1,…,xn)x_n' = y^{(n)} = f(t, y, \dots, y^{(n-1)}) = f(t, x_1, \dots, x_n).
The last coordinate is xn=y(n−1)x_n = y^{(n-1)}, whose derivative is y(n)y^{(n)}, and the equation says what that is.
So solutions of the two problems correspond one to one.
Going the other way: if xx solves the system, the first n−1n - 1 equations say that the coordinates are the successive derivatives of x1x_1, so y=x1y = x_1 has y(k)=xk+1y^{(k)} = x_{k+1}, and the last equation is the original one.
Worked example MATH 376 worksheet 28 #4; pendulum new
Write y'' + 4y = 0 as a first-order system. Do the same for the pendulum θ'' = −sin θ.

Solution.

  1. Name the coordinates. For y′′+4y=0y'' + 4y = 0 put x1=yx_1 = y and x2=y′x_2 = y'. An equation of order 2 needs two coordinates.
  2. Differentiate each. x1′=y′=x2x_1' = y' = x_2 and x2′=y′′=−4y=−4x1x_2' = y'' = -4y = -4x_1. The first is the definition of x2x_2. The second uses the equation to replace y′′y''.
  3. Write it as a matrix equation. [x1x2]′=[01−40][x1x2]\begin{bmatrix}x_1\\x_2\end{bmatrix}' = \begin{bmatrix}0 & 1\\-4 & 0\end{bmatrix}\begin{bmatrix}x_1\\x_2\end{bmatrix}. The equation is linear in xx, so the right-hand side is a matrix times xx. This matrix is called the companion matrix of the equation (7.2).
  4. The pendulum. With x1=θx_1 = \theta, x2=θ′x_2 = \theta': x1′=x2x_1' = x_2 and x2′=−sin⁡x1x_2' = -\sin x_1. Here the right-hand side F(x)=(x2,−sin⁡x1)F(x) = (x_2, -\sin x_1) is not a matrix times xx. The equation is not linear, but it is still a first-order system and the theorems below apply.

Answer. x′=[01−40]xx' = \begin{bmatrix}0 & 1\\-4 & 0\end{bmatrix}x and x′=[x2−sin⁡x1]x' = \begin{bmatrix}x_2\\-\sin x_1\end{bmatrix}.

The integral equation

Theorem T Technau, March 20 (Step 1); Apostol 7.21

An IVP is an integral equation

Let ff be continuous, and let yy be a continuous function on an interval J∋t0J \ni t_0 whose graph stays where ff is defined. Then yy is a solution of the IVP on JJ if and only if

y(t)=y0+∫t0tf(s,y(s)) dsfor all t∈J.y(t) = y_0 + \int_{t_0}^{t} f\big(s, y(s)\big)\,ds \qquad \text{for all } t \in J.

For a vector-valued yy the integral is taken coordinate by coordinate.

In one lineA continuous function yy solves y′=f(t,y)y' = f(t, y), y(t0)=y0y(t_0) = y_0 on an interval exactly when y(t)=y0+∫t0tf(s,y(s)) dsy(t) = y_0 + \int_{t_0}^{t} f(s, y(s))\,ds for every tt in it.

Why it is trueThe fundamental theorem of calculus runs in both directions: integrating the equation gives the integral form, and differentiating the integral form gives the equation back.

ProofTechnau, March 20; Apostol 7.21
The idea: Integrate the equation for one direction, differentiate the formula for the other.
(⇒\Rightarrow) y(t)−y(t0)=∫t0ty′(s) ds=∫t0tf(s,y(s)) dsy(t) - y(t_0) = \int_{t_0}^{t} y'(s)\,ds = \int_{t_0}^{t} f(s, y(s))\,ds.
If yy solves the IVP then y′(s)=f(s,y(s))y'(s) = f(s, y(s)) is continuous in ss (a composition of continuous functions), so the fundamental theorem of calculus, part 2 (1.5), applies to yy.
So y(t)=y0+∫t0tf(s,y(s)) dsy(t) = y_0 + \int_{t_0}^{t} f(s, y(s))\,ds.
y(t0)=y0y(t_0) = y_0 is the starting value.
Differentiating the integral form gives y′(t)=f(t,y(t))y'(t) = f(t, y(t)).
(⇐\Leftarrow) The integrand s↦f(s,y(s))s \mapsto f(s, y(s)) is continuous, because yy and ff are, so part 1 of the fundamental theorem of calculus says that its integral from t0t_0 is differentiable in tt with derivative f(t,y(t))f(t, y(t)).
And y(t0)=y0+0=y0y(t_0) = y_0 + 0 = y_0. ■\blacksquare
Put t=t0t = t_0: the integral from t0t_0 to t0t_0 is 00.

The unknown now sits on both sides of the equation, inside the integral and outside it. That is what a fixed point looks like. Define a machine TT that takes a function yy and returns the function (Ty)(t)=y0+∫t0tf(s,y(s)) ds(Ty)(t) = y_0 + \int_{t_0}^{t} f(s, y(s))\,ds. The theorem says: yy solves the IVP if and only if Ty=yTy = y.

The Lipschitz condition

Definition T

Lipschitz condition

Let DD be a set of pairs (t,x)(t, x) with xx in Rm\mathbb R^m, and let f:D→Rmf : D \to \mathbb R^m. We say ff satisfies a Lipschitz condition (in xx, uniformly in tt) on DD with Lipschitz constant L≥0L \ge 0 if

∥f(t,x)−f(t,z)∥≤L ∥x−z∥whenever (t,x),(t,z)∈D.\lVert f(t, x) - f(t, z) \rVert \le L\,\lVert x - z \rVert \qquad \text{whenever } (t, x), (t, z) \in D .

Here ∥⋅∥\lVert \cdot \rVert is the Euclidean length. The time tt is the same on both sides: the condition compares two positions at one time, not two times. It is the same inequality as in a contraction (4.2), with the one difference that LL is allowed to be large.

In one lineA function f(t,x)f(t, x) satisfies a Lipschitz condition in xx with constant LL if ∥f(t,x)−f(t,z)∥≤L ∥x−z∥\lVert f(t, x) - f(t, z) \rVert \le L\,\lVert x - z \rVert for all tt and all x,zx, z.

Why it existsIt limits how fast the right-hand side can change when the position changes. That is the size of the contraction constant in the proof.

Worked example extends MATH 376 worksheet 19 #3
Which of these right-hand sides satisfy a Lipschitz condition in y, and with what L? f = 2y; f = sin y; f = y² on |y| at most 3; f = y² on all of R; f = |y|; f = 3y^(2/3) near y = 0.

Solution.

  1. f=2yf = 2y. ∣2y−2z∣=2∣y−z∣\lvert 2y - 2z \rvert = 2\lvert y - z \rvert, so L=2L = 2, and this holds for all y,zy, z. A linear function stretches every difference by one fixed factor.
  2. f=sin⁡yf = \sin y. By the mean value theorem ∣sin⁡y−sin⁡z∣=∣cos⁡c∣ ∣y−z∣≤∣y−z∣\lvert \sin y - \sin z \rvert = \lvert \cos c \rvert\,\lvert y - z \rvert \le \lvert y - z \rvert, so L=1L = 1 on all of R\mathbb R. The slope of ff is at most 11 in size, and the mean value theorem turns a slope bound into a Lipschitz bound.
  3. f=y2f = y^2 on ∣y∣≤3\lvert y \rvert \le 3. ∣y2−z2∣=∣y+z∣ ∣y−z∣≤6 ∣y−z∣\lvert y^2 - z^2 \rvert = \lvert y + z \rvert\,\lvert y - z \rvert \le 6\,\lvert y - z \rvert, so L=6L = 6. Factor the difference of squares, and bound ∣y+z∣\lvert y + z \rvert using the range.
  4. f=y2f = y^2 on all of R\mathbb R. The factor ∣y+z∣\lvert y + z \rvert is not bounded, so no single LL works: take z=0z = 0 and yy large, then ∣f(y)−f(0)∣=y ∣y−0∣\lvert f(y) - f(0) \rvert = y\,\lvert y - 0 \rvert and the ratio is yy. The condition fails globally. It holds on every bounded range, with a constant that grows with the range. This is why y′=y2y' = y^2 will blow up.
  5. f=∣y∣f = \lvert y \rvert. By the reverse triangle inequality ∣∣y∣−∣z∣∣≤∣y−z∣\big\lvert \lvert y \rvert - \lvert z \rvert \big\rvert \le \lvert y - z \rvert, so L=1L = 1. Lipschitz does not need a derivative. ∣y∣\lvert y \rvert has a corner at 00 and is still Lipschitz.
  6. f=3y2/3f = 3y^{2/3} near 00. With z=0z = 0: ∣f(y)−f(0)∣=3∣y∣2/3\lvert f(y) - f(0) \rvert = 3\lvert y \rvert^{2/3}, so the ratio to ∣y−0∣\lvert y - 0 \rvert is 3∣y∣−1/33\lvert y \rvert^{-1/3}, which tends to infinity as y→0y \to 0. The slope of y2/3y^{2/3} is infinite at 00, and no LL can cover it.

Answer. L=2L = 2, L=1L = 1, L=6L = 6 (on ∣y∣≤3\lvert y \rvert \le 3), none on all of R\mathbb R, L=1L = 1, and none near 00 for the last.

Theorem B standard (mean value theorem); Apostol 7.22

Derivative test for a Lipschitz condition

Let f:D→Rf : D \to \mathbb R with D=I×KD = I \times K, II an interval and KK an interval of positions, let ∂f/∂x\partial f / \partial x exist on DD and satisfy ∣∂f/∂x∣≤L\lvert \partial f / \partial x \rvert \le L. Then ∣f(t,x)−f(t,z)∣≤L ∣x−z∣\lvert f(t, x) - f(t, z) \rvert \le L\,\lvert x - z \rvert for all t∈It \in I and x,z∈Kx, z \in K.

In one lineIf f(t,x)f(t, x) is differentiable in the real variable xx on a region where ∣∂f/∂x∣≤L\lvert \partial f/\partial x \rvert \le L and the region contains the segment between any two positions at the same time, then ff satisfies a Lipschitz condition with constant LL.

Why it is trueFor two positions at the same time, the mean value theorem in xx says the change of ff is a slope times the change of xx, and the slope is at most LL.

Proofstandard
The idea: Fix the time and apply the mean value theorem to the function of position alone.
Let x≠zx \ne z in KK. By the mean value theorem (1.4) there is cc between xx and zz with f(t,x)−f(t,z)=∂f∂x(t,c) (x−z)f(t, x) - f(t, z) = \frac{\partial f}{\partial x}(t, c)\,(x - z).
For fixed tt, the function x↦f(t,x)x \mapsto f(t, x) is differentiable on the interval KK.
So ∣f(t,x)−f(t,z)∣≤L ∣x−z∣\lvert f(t, x) - f(t, z) \rvert \le L\,\lvert x - z \rvert. ■\blacksquare
cc is in KK because KK is an interval, so the bound on the derivative applies.
Quick checkFor which equation does the Lipschitz condition FAIL near the starting value y(0)=0y(0) = 0?

Picard iteration

Definition A

Picard iteration

For the IVP y′=f(t,y)y' = f(t, y), y(t0)=x0y(t_0) = x_0, the Picard operator is (Ty)(t)=x0+∫t0tf(s,y(s)) ds(Ty)(t) = x_0 + \int_{t_0}^{t} f(s, y(s))\,ds, and Picard iteration produces the Picard iterates y0=x0y_0 = x_0, y1=Ty0y_1 = Ty_0, y2=Ty1y_2 = Ty_1, and so on. Apostol (7.21 to 7.23) calls this the method of successive approximations. (From here on the starting value is written x0x_0, because the symbol y0y_0 now names the first iterate, the constant function x0x_0.)

In one lineStart with the constant function y0(t)=x0y_0(t) = x_0 and repeatedly set yk+1(t)=x0+∫t0tf(s,yk(s)) dsy_{k+1}(t) = x_0 + \int_{t_0}^{t} f(s, y_k(s))\,ds.

Why it existsIt is the contraction mapping iteration yk+1=Tyky_{k+1} = Ty_k for the operator TT whose fixed points are the solutions. Each pass makes the guess agree with the solution to a higher order in t−t0t - t_0.

Worked example compare Apostol 7.21
Picard iterates for y' = 2ty, y(0) = 1.

Solution. Use the stepper to watch the integral at each pass.

Answer. yn=∑k=0nt2kk!y_n = \sum_{k=0}^{n} \frac{t^{2k}}{k!}, converging to y=et2y = e^{t^2} for every tt.

Your answerIn the Picard iteration for y′=2tyy' = 2ty, y(0)=1y(0) = 1, what is y3(1)y_3(1)? (Give a fraction.)
Worked example MATH 376 lecture of April 22 (y' = y²); y' = y as in 4.2
Picard iterates for y' = y, y(0) = 1, and for y' = y², y(0) = 1.

Solution.

  1. y′=yy' = y: first pass. y1=1+∫0t1 ds=1+ty_1 = 1 + \int_0^t 1\,ds = 1 + t. Here f(s,y)=yf(s, y) = y and y0=1y_0 = 1.
  2. Continue. y2=1+∫0t(1+s) ds=1+t+t22y_2 = 1 + \int_0^t (1 + s)\,ds = 1 + t + \frac{t^2}{2}, and yn=∑k=0ntkk!y_n = \sum_{k=0}^{n} \frac{t^k}{k!}, which converges to ete^t. The partial sums of the exponential series of 1.6. This is the example computed in 4.2 with the contraction constant aa on [0,a][0, a].
  3. y′=y2y' = y^2: first pass. y1=1+∫0t1 ds=1+ty_1 = 1 + \int_0^t 1\,ds = 1 + t. f(s,y)=y2f(s, y) = y^2, and y02=1y_0^2 = 1.
  4. Second and third pass. y2=1+∫0t(1+s)2 ds=1+t+t2+t33y_2 = 1 + \int_0^t (1 + s)^2\,ds = 1 + t + t^2 + \frac{t^3}{3}, and y3=1+t+t2+t3+2t43+t53+t69+t763y_3 = 1 + t + t^2 + t^3 + \frac{2t^4}{3} + \frac{t^5}{3} + \frac{t^6}{9} + \frac{t^7}{63}. Square the previous polynomial and integrate. Each iterate agrees with 1+t+t2+t3+⋯1 + t + t^2 + t^3 + \cdots for more terms: y1y_1 for 2, y2y_2 for 3, y3y_3 for 4.
  5. Name the limit. The pattern 1+t+t2+t3+⋯1 + t + t^2 + t^3 + \cdots is the geometric series 11−t\frac{1}{1-t}, which converges only for ∣t∣<1\lvert t \rvert < 1. One checks directly that y=11−ty = \frac{1}{1-t} satisfies y′=1(1−t)2=y2y' = \frac{1}{(1-t)^2} = y^2 and y(0)=1y(0) = 1.

Answer. y′=yy' = y gives ete^t for all tt. y′=y2y' = y^2 gives 11−t\frac{1}{1-t} for t<1t < 1 only: the solution blows up at t=1t = 1.

The Picard–Lindelöf theorem

Now we state and prove the theorem. It is Technau’s Theorem 7.4 of March 20, with one check that his notes skip (that the iterates stay inside the region where ff is defined) written in.

Theorem T Technau, March 20 (Theorem 7.4); Apostol 7.23, 7.28; Picard 1893, Lindelöf 1894

Picard–Lindelöf theorem

Let R={(t,x):∣t−t0∣≤a, ∥x−x0∥≤b}R = \{(t, x) : \lvert t - t_0 \rvert \le a,\ \lVert x - x_0 \rVert \le b\} be a closed rectangle in R×Rm\mathbb R \times \mathbb R^m. Suppose f:R→Rmf : R \to \mathbb R^m is continuous and satisfies a Lipschitz condition in xx on RR with constant LL. Let M=max⁡R∥f∥M = \max_R \lVert f \rVert and

h=min⁡(a, bM, 12L)h = \min\Big(a,\ \frac bM,\ \frac{1}{2L}\Big)

(read bM=∞\frac bM = \infty if M=0M = 0, and 12L=∞\frac{1}{2L} = \infty if L=0L = 0). Then the IVP y′=f(t,y)y' = f(t, y), y(t0)=x0y(t_0) = x_0 has exactly one solution on I=[t0−h,t0+h]I = [t_0 - h, t_0 + h] (the same holds on any smaller interval around t0t_0). The Picard iterates converge uniformly on II to it, with max⁡I∥yn−y∥≤21−n Mh\max_I \lVert y_n - y \rVert \le 2^{1-n}\,Mh.

In one lineIf ff is continuous and Lipschitz in xx on a rectangle around (t0,x0)(t_0, x_0), the IVP has exactly one solution on a short interval around t0t_0, and Picard iteration converges to it.

Why it is trueThe integral operator moves any two candidate functions at most LhLh times as far apart as before, where hh is half the length of the time interval. For hh small that is a contraction of a complete space.

Why· The picture behind the proof

In the picture of this chapter, the iterates y0,y1,y2,…y_0, y_1, y_2, \dots are the green curves. The proof says that the vertical gap between consecutive iterates is at most half of the previous gap, at every tt in [t0−h,t0+h][t_0 - h, t_0 + h]. A sequence of curves whose consecutive gaps shrink geometrically has summable gaps, so the curves bunch together in the tube sense of 4.2: Cauchy in the sup metric. Completeness of the space of continuous functions provides the limit curve, and the limit is the red dashed one. The three numbers in hh each protect one thing: aa keeps tt in the rectangle, b/Mb / M keeps the curves inside it (a speed of at most MM for time hh moves a point at most Mh≤bMh \le b), and 1/(2L)1/(2L) makes the gap shrink by Lh≤12Lh \le \frac12 per pass.

ProofTechnau, March 20; Apostol 7.28
The idea: Work in the space X of continuous curves on I that stay inside the rectangle. Show X is complete, that the Picard operator T sends X into X, and that T shrinks distances by Lh at most 1/2. Banach's theorem then gives exactly one fixed point, which by the integral equation theorem is the solution.
Let (Ty)(t)=x0+∫t0tf(s,y(s)) ds(Ty)(t) = x_0 + \int_{t_0}^{t} f(s, y(s))\,ds. We look for fixed points of TT.
The integral equation theorem above: solutions of the IVP on II are exactly the continuous fixed points of TT whose graph lies in RR.
Let XX be the set of continuous y:I→Rmy : I \to \mathbb R^m with ∥y(t)−x0∥≤b\lVert y(t) - x_0 \rVert \le b for all t∈It \in I. It is non-empty (it contains the constant x0x_0) and complete.
C(I,Rm)C(I, \mathbb R^m) with the sup metric d(y,z)=max⁡t∈I∥y(t)−z(t)∥d(y, z) = \max_{t \in I} \lVert y(t) - z(t) \rVert is complete: this is the theorem of 4.2, applied to each coordinate (convergence in Rm\mathbb R^m is coordinatewise). Uniform limits keep an inequality ∥y(t)−x0∥≤b\lVert y(t) - x_0 \rVert \le b, so XX is a closed subset, hence complete by 4.2.This closed-ball restriction is the check that is missing in the lecture notes: without it f(s,y(s))f(s, y(s)) might be asked for outside the rectangle, where ff is not defined or not Lipschitz.
TyTy is a well-defined continuous function on II.
For y∈Xy \in X the points (s,y(s))(s, y(s)) lie in RR, so f(s,y(s))f(s, y(s)) is defined and continuous in ss (composition of continuous maps). An integral of a continuous function is continuous in its upper limit.
For y∈Xy \in X and t∈It \in I: ∥(Ty)(t)−x0∥=∥∫t0tf(s,y(s)) ds∥≤M ∣t−t0∣≤Mh≤b\lVert (Ty)(t) - x_0 \rVert = \big\lVert \int_{t_0}^{t} f(s, y(s))\,ds \big\rVert \le M\,\lvert t - t_0 \rvert \le Mh \le b, since h≤b/Mh \le b/M.
First the fact ∥∫v∥≤∫∥v∥\big\lVert \int v \big\rVert \le \int \lVert v \rVert, proved after this proof. Then ∥f∥≤M\lVert f \rVert \le M on RR and ∣t−t0∣≤h\lvert t - t_0 \rvert \le h.
So TT maps XX into XX.
This is why h≤bMh \le \frac bM is in the definition of hh: a curve with speed at most MM cannot leave the tube of radius bb in time hh.
For y,z∈Xy, z \in X: ∥(Ty)(t)−(Tz)(t)∥≤∣∫t0t∥f(s,y(s))−f(s,z(s))∥ ds∣≤L ∣∫t0t∥y(s)−z(s)∥ ds∣≤L ∣t−t0∣ d(y,z)\lVert (Ty)(t) - (Tz)(t) \rVert \le \Big\lvert \int_{t_0}^{t} \lVert f(s, y(s)) - f(s, z(s)) \rVert\,ds \Big\rvert \le L \,\Big\lvert \int_{t_0}^{t} \lVert y(s) - z(s) \rVert\,ds \Big\rvert \le L\,\lvert t - t_0 \rvert\,d(y, z).
The Lipschitz condition, applied at each time ss to the two positions y(s)y(s) and z(s)z(s), then ∥y(s)−z(s)∥≤d(y,z)\lVert y(s) - z(s) \rVert \le d(y, z) by the definition of the sup metric.
d(Ty,Tz)≤Lh d(y,z)≤12 d(y,z)d(Ty, Tz) \le Lh\,d(y, z) \le \frac12\,d(y, z). So TT is a contraction of XX with q=12q = \frac12.
Take the maximum over t∈It \in I, using ∣t−t0∣≤h\lvert t - t_0 \rvert \le h and h≤12Lh \le \frac{1}{2L}.This is where the short time interval pays off: over a long interval the factor L∣t−t0∣L\lvert t - t_0 \rvert could exceed 1.
TT has exactly one fixed point yy in XX. The Picard iterates yk+1=Tyky_{k+1} = Ty_k converge to it in the sup metric (uniformly), and d(yn,y)≤21−nMhd(y_n, y) \le 2^{1-n}Mh.
Banach fixed point theorem (4.2), parts (a), (b), (c). For (c): d(y1,y0)=max⁡t∥∫t0tf(s,x0) ds∥≤Mhd(y_1, y_0) = \max_t \lVert \int_{t_0}^{t} f(s, x_0)\,ds \rVert \le Mh, and qn1−q=2⋅2−n\frac{q^n}{1-q} = 2 \cdot 2^{-n}.
So the fixed point is a solution, and it is the only one. ■\blacksquare
Any solution on II must have its graph in RR, because ff is only defined on RR. So it is in XX, and a fixed point of TT by the integral equation theorem. The same argument works on a smaller interval around t0t_0 (replace II by it).

The proof used one inequality for vector-valued integrals, which for numbers is the familiar ∣∫g∣≤∫∣g∣\lvert \int g \rvert \le \int \lvert g \rvert.

Fact B standard; uses Cauchy–Schwarz from 2.9

The norm of an integral

Let v:[a,b]→Rmv : [a, b] \to \mathbb R^m be continuous (the integral is coordinatewise). Then ∥∫abv∥≤∫ab∥v∥\big\lVert \int_a^b v \big\rVert \le \int_a^b \lVert v \rVert.

In one lineFor a continuous curve v:[a,b]→Rmv : [a, b] \to \mathbb R^m, ∥∫abv(s) ds∥≤∫ab∥v(s)∥ ds\lVert \int_a^b v(s)\,ds \rVert \le \int_a^b \lVert v(s) \rVert\,ds.

Why it is truePair the integral with itself and use Cauchy–Schwarz inside the integral; then divide by its length.

Proofstandard
The idea: Let w be the integral. Compute w·w by moving the dot product inside the integral, bound the integrand with Cauchy–Schwarz, and divide by the length of w.
Let w=∫abvw = \int_a^b v. Then ∥w∥2=w⋅∫abv=∫abw⋅v(s) ds\lVert w \rVert^2 = w \cdot \int_a^b v = \int_a^b w \cdot v(s)\,ds.
Linearity of the integral: the dot product with a fixed vector can be moved inside.
≤∫ab∥w∥ ∥v(s)∥ ds=∥w∥∫ab∥v∥\le \int_a^b \lVert w \rVert\,\lVert v(s) \rVert\,ds = \lVert w \rVert \int_a^b \lVert v \rVert.
The Cauchy–Schwarz inequality of 2.9: ∣w⋅v∣≤∥w∥ ∥v∥\lvert w \cdot v \rvert \le \lVert w \rVert\,\lVert v \rVert. Integrals preserve inequalities.
So ∥w∥≤∫ab∥v∥\lVert w \rVert \le \int_a^b \lVert v \rVert. ■\blacksquare
If w=Ow = O there is nothing to prove; otherwise divide by ∥w∥>0\lVert w \rVert > 0.
Proof workshopRebuild the proof of the Picard–Lindelöf theoremTechnau, March 20

Tap the lines in the order a proof would write them. Each line can only use what is already above it.

    Quick checkIn the proof above, which step uses completeness of the space of continuous functions?
    Worked example MATH 376 worksheet 19 #3
    Use the theorem for y' = 2y, y(0) = 1. How long does it promise a solution? Is there only one?

    Solution.

    1. Identify ff. f(t,y)=2yf(t, y) = 2y, continuous in both variables. Continuity of ff is the first hypothesis.
    2. Check the Lipschitz condition. ∣2y−2z∣=2∣y−z∣\lvert 2y - 2z \rvert = 2\lvert y - z \rvert, so L=2L = 2 on the whole plane. A function that is linear in yy is Lipschitz with LL the absolute value of its coefficient. This is why the worksheet says “linear in yy, so Lipschitz”.
    3. Pick a rectangle and compute hh. Take b=1b = 1, a=1a = 1. On ∣y−1∣≤1\lvert y - 1 \rvert \le 1, y∈[0,2]y \in [0, 2] and M=max⁡∣2y∣=4M = \max \lvert 2y \rvert = 4. Then h=min⁡(1,14,12⋅2)=14h = \min(1, \frac14, \frac{1}{2 \cdot 2}) = \frac14. The theorem guarantees one solution on [−14,14][-\frac14, \frac14], not more.
    4. Name the solution. y=e2ty = e^{2t}: it satisfies y′=2e2t=2yy' = 2e^{2t} = 2y and y(0)=1y(0) = 1. Uniqueness says that this is THE solution. Any method that finds one solution has found them all.
    5. Why the answer lasts longer than hh. The right-hand side is Lipschitz on the whole plane, so the global linear theorem below gives the solution on all of R\mathbb R. The number hh is a guarantee, not the true lifetime.

    Answer. Exactly one solution exists on [−14,14][-\frac14, \frac14] by the theorem, namely e2te^{2t}; in fact it is the unique solution on all of R\mathbb R.

    Uniqueness on a long interval, and linear equations

    The theorem gives uniqueness only on a short interval II. Two solutions that agree at t0t_0 must agree wherever both exist, not only on II.

    Corollary B standard; Apostol 7.23

    Two solutions that meet are equal

    Let ff be continuous on an open set DD of pairs (t,x)(t, x) and Lipschitz in xx on every closed rectangle in DD (a locally Lipschitz function; any ff with continuous ∂f/∂x\partial f / \partial x is such). If yy and zz both solve the IVP y′=f(t,y)y' = f(t, y), y(t0)=x0y(t_0) = x_0 on an interval J∋t0J \ni t_0, then y=zy = z on JJ.

    In one lineIf ff is continuous and satisfies a Lipschitz condition on every closed rectangle inside its domain, then two solutions of the same IVP agree on every interval where both are defined.

    Why it is trueThe set where the two solutions agree is closed (by continuity) and open (by local uniqueness at each of its points). An interval cannot be split into two such sets unless one is empty.

    Proofstandard
    The idea: Let S be the set of times where the two solutions are equal. It contains t0. Show S is closed and open in J; a connected interval has no other such subsets.
    Let S={t∈J:y(t)=z(t)}S = \{t \in J : y(t) = z(t)\}. Then t0∈St_0 \in S and SS is closed in JJ.
    yy and zz are continuous, so y−zy - z is continuous and the set where it is zero is closed in JJ.
    If s∈Ss \in S, then yy and zz are two solutions of the IVP with starting point (s,y(s))(s, y(s)) that stay in RR near ss, so they agree on an interval around ss.
    Take s∈Ss \in S and a closed rectangle RR around (s,y(s))(s, y(s)) inside DD. By continuity both y(t)y(t) and z(t)z(t) stay in RR for tt near ss. Apply the uniqueness part of Picard–Lindelöf with starting time ss.
    Hence SS is open in JJ.
    So SS contains a neighbourhood of each of its points: it is open in JJ.
    So S=JS = J. ■\blacksquare
    An interval is connected: a non-empty subset that is both open and closed in it is all of it.

    For linear systems the right-hand side is Lipschitz on the whole space, and then the solution lasts as long as the coefficients do.

    Theorem B Technau, March 23 ('one can show'); Apostol 7.18 and 7.21; Rudin 9.23 idea

    Linear systems have solutions on the whole interval

    Let JJ be an interval, A:J→Rm×mA : J \to \mathbb R^{m \times m} and g:J→Rmg : J \to \mathbb R^m continuous, t0∈Jt_0 \in J, x0∈Rmx_0 \in \mathbb R^m. Then the IVP x′=A(t)x+g(t)x' = A(t)x + g(t), x(t0)=x0x(t_0) = x_0 has exactly one solution on JJ.

    In one lineIf A(t)A(t) and g(t)g(t) are continuous on an interval JJ, then x′=A(t)x+g(t)x' = A(t)x + g(t), x(t0)=x0x(t_0) = x_0 has exactly one solution, and it is defined on all of JJ.

    Why it is trueOn a closed bounded interval the Picard operator is not a contraction, but its mm-th power is, because the shrinking factor becomes (Lℓ)m/m!(L\ell)^m / m!, which falls below 1 for large mm.

    ProofTechnau, March 23; 4.2 stretch problem
    The idea: It is enough to work on a closed bounded interval K inside J. The Picard operator T has Lipschitz constant L for the right-hand side on all of R^m, so no restriction on the size of the functions is needed. T itself may not be a contraction on K, but T^m is: induct to get a factor (L times the length)^m divided by m!, then use that some power of T is a contraction.
    Fix a closed bounded interval K=[α,β]⊆JK = [\alpha, \beta] \subseteq J containing t0t_0, and write ℓ=β−α\ell = \beta - \alpha. We find a unique solution on KK.
    Any two points of JJ lie in a closed bounded subinterval, and solutions on bigger intervals restrict to smaller ones. By the corollary, solutions on different KK agree where they overlap and fit together into one solution on JJ.
    Let L=max⁡t∈K∥A(t)∥L = \max_{t \in K} \lVert A(t) \rVert. Then ∥A(t)u−A(t)w∥≤L ∥u−w∥\lVert A(t)u - A(t)w \rVert \le L\,\lVert u - w \rVert for all vectors u,wu, w and t∈Kt \in K.
    The operator norm of 3.5: ∥A(t)u∥≤∥A(t)∥ ∥u∥\lVert A(t)u \rVert \le \lVert A(t) \rVert\,\lVert u \rVert. The continuous function t↦∥A(t)∥t \mapsto \lVert A(t) \rVert has a maximum on KK.
    Let (Ty)(t)=x0+∫t0t(A(s)y(s)+g(s)) ds(Ty)(t) = x_0 + \int_{t_0}^{t} \big(A(s)y(s) + g(s)\big)\,ds on X=C(K,Rm)X = C(K, \mathbb R^m) with the sup metric dd.
    X=C(K,Rm)X = C(K, \mathbb R^m) is complete (4.2). There is no ball bb now: the right-hand side is defined for every xx.
    Claim: ∥(Tmy)(t)−(Tmz)(t)∥≤(L∣t−t0∣)mm! d(y,z)\lVert (T^my)(t) - (T^mz)(t) \rVert \le \dfrac{(L\lvert t - t_0 \rvert)^m}{m!}\,d(y, z) for all y,z∈Xy, z \in X, t∈Kt \in K, m≥0m \ge 0.
    Induction on mm. Case m=0m = 0: both sides are ∥y−z∥≤d(y,z)\lVert y - z \rVert \le d(y, z). Inductive step: apply the Lipschitz estimate under the integral and integrate ∣s−t0∣m\lvert s - t_0 \rvert^m, which gives ∣t−t0∣m+1/(m+1)\lvert t - t_0 \rvert^{m+1} / (m+1).This is the same computation as the one-step estimate L∣t−t0∣ d(y,z)L\lvert t - t_0 \rvert\,d(y, z), with the previous bound plugged in instead of the crude d(y,z)d(y, z).
    Hence d(Tmy,Tmz)≤(Lℓ)mm! d(y,z)d(T^my, T^mz) \le \frac{(L\ell)^m}{m!}\,d(y, z), and for large mm the factor is below 11: S=TmS = T^m is a contraction of XX.
    (Lℓ)m/m!(L\ell)^m / m! is the general term of the series for eLℓe^{L\ell}, so it tends to 00 (1.6). Choose mm with (Lℓ)m/m!<1(L\ell)^m / m! < 1.
    So TT itself has exactly one fixed point: the IVP has exactly one solution on KK. ■\blacksquare
    Banach gives a unique fixed point y∗y^* of SS. Then S(Ty∗)=T(Sy∗)=Ty∗S(Ty^*) = T(Sy^*) = Ty^*, so Ty∗Ty^* is also a fixed point of SS, hence equals y∗y^* by uniqueness. A fixed point of TT is a fixed point of SS, so there is only one.
    Proof workshopRebuild: a linear system has a solution on the whole intervalTechnau, March 23

    Each line of the proof is shown in order. Choose the reason that justifies it, then press Check.

    1. Fix a closed bounded interval KK of length ℓ\ell. Let L=max⁡K∥A(t)∥L = \max_K \lVert A(t) \rVert.
    2. ∥(Tmy)(t)−(Tmz)(t)∥≤(L∣t−t0∣)mm! d(y,z)\lVert (T^my)(t) - (T^mz)(t) \rVert \le \dfrac{(L\lvert t - t_0 \rvert)^m}{m!}\,d(y, z).
    3. For large mm, (Lℓ)mm!<1\dfrac{(L\ell)^m}{m!} < 1, so TmT^m is a contraction.
    4. TmT^m has a unique fixed point y∗y^*.
    5. Ty∗Ty^* is also a fixed point of TmT^m, so Ty∗=y∗Ty^* = y^*.
    Worked example
    Why does the IVP y' = 2y, y(0) = 1 have a solution on all of R, even though the theorem only guarantees [−1/4, 1/4]?

    Solution.

    1. Write it as a linear system. y′=A(t)y+g(t)y' = A(t)y + g(t) with A(t)=2A(t) = 2 (a 1×11 \times 1 matrix) and g=0g = 0. The right-hand side is linear in yy, so the global linear theorem applies.
    2. Check continuity. AA and gg are constants, so continuous on all of R\mathbb R. That is the only hypothesis.
    3. Apply the theorem to K=[−N,N]K = [-N, N] for each NN. There is a unique solution on every [−N,N][-N, N]; by uniqueness the solutions fit together. The short hh of the local theorem comes from the ball bb, which is not needed for linear equations.

    Answer. The unique solution y=e2ty = e^{2t} is defined on all of R\mathbb R. For a non-linear ff the next example shows this can fail.

    When the hypotheses fail

    Worked example Apostol 6.1 style; new numbers
    Non-uniqueness: show that y' = 3y^(2/3), y(0) = 0 has more than one solution.

    Solution.

    1. Find one solution by inspection. y=0y = 0 has y′=0=3⋅02/3y' = 0 = 3 \cdot 0^{2/3} and y(0)=0y(0) = 0. The constant function at the starting value solves the problem.
    2. Find another. Try y=t3y = t^3. Then y′=3t2y' = 3t^2 and 3y2/3=3(t3)2/3=3t23y^{2/3} = 3(t^3)^{2/3} = 3t^2. And y(0)=0y(0) = 0. For t≥0t \ge 0, (t3)2/3=t2(t^3)^{2/3} = t^2. The cube root of a negative number is real, and (t3)2/3=t2(t^3)^{2/3} = t^2 for t<0t < 0 as well.
    3. Find a whole family. For any c≥0c \ge 0, let yc(t)=0y_c(t) = 0 for t≤ct \le c and yc(t)=(t−c)3y_c(t) = (t - c)^3 for t≥ct \ge c. Each is differentiable (the derivative 3(t−c)23(t - c)^2 tends to 00 at cc) and satisfies the equation. The solution sits at 00 for as long as it likes, and then leaves along a cubic. A solution may leave 00 at ANY time.
    4. See which hypothesis fails. f(y)=3y2/3f(y) = 3y^{2/3} is continuous but not Lipschitz near 00 (the earlier example). With a Lipschitz ff the Picard operator would be a contraction, and there would be one solution. Existence still holds (this is Peano’s theorem); uniqueness is what is lost.

    Answer. There are infinitely many solutions, one for each leaving time c∈[0,∞]c \in [0, \infty].

    Worked example MATH 376 lecture of March 23 (remarks after Theorem 7.6)
    What each hypothesis does: t y' = 2y with y(0) = 0; y'' = 0 with too few or too many conditions; why the logistic equation is not linear.

    Solution.

    1. Continuous coefficients. Write ty′=2yty' = 2y as y′−2t y=0y' - \frac2t\,y = 0. The coefficient −2t-\frac2t is not defined at t=0t = 0, so the linear theorem of 7.2 does not apply on R\mathbb R. The theorem asks for continuous coefficients on the whole interval.
    2. Two solutions with the same start. y=t2y = t^2 has ty′=2t2=2yty' = 2t^2 = 2y. And y=t∣t∣y = t\lvert t\rvert has y′=2∣t∣y' = 2\lvert t\rvert and ty′=2t∣t∣=2yty' = 2t\lvert t\rvert = 2y. Both have y(0)=0y(0) = 0 and they are different functions. Uniqueness fails exactly where the coefficient breaks down. (These two functions return in 7.3 as independent functions with Wronskian 00.)
    3. Too few conditions. y′′=0y'' = 0 with only y(0)=0y(0) = 0 is solved by every y=cty = ct. An equation of order nn needs nn starting numbers; with fewer, uniqueness fails.
    4. Too many conditions. y′′=0y'' = 0 with y(0)=0y(0) = 0, y′(0)=0y'(0) = 0 and also y(1)=1y(1) = 1 has no solution, because the first two conditions force y=0y = 0. With more than nn conditions, existence can fail.
    5. Linearity. In y′=ry(1−y/K)y' = ry(1 - y/K) the constant y=Ky = K is a solution, but y=2Ky = 2K is not: y′=0y' = 0 while r⋅2K(1−2)=−2rK≠0r \cdot 2K(1 - 2) = -2rK \ne 0. A solution doubled must again be a solution if the equation is linear. Here it is not, because of the term −ry2/K-ry^2/K.

    Answer. The theorem needs continuous coefficients, exactly nn conditions, and (for the whole interval) linearity. Each example above breaks one of them.

    Worked example MATH 376 lecture of April 22 (Example 8.14)
    Blow-up: solve y' = y², y(0) = 1. Why does the solution stop at t = 1, and what does the theorem promise?

    Solution.

    1. Separate variables. For y≠0y \ne 0: y′y2=1\frac{y'}{y^2} = 1, so ddt(−1y)=1\frac{d}{dt}\left(-\frac1y\right) = 1, so −1y=t+C-\frac1y = t + C. The left side is the derivative of −1/y-1/y.
    2. Fix the constant. y(0)=1y(0) = 1 gives C=−1C = -1, so y=11−ty = \frac{1}{1 - t}. Check: y′=1(1−t)2=y2y' = \frac{1}{(1-t)^2} = y^2 and y(0)=1y(0) = 1.
    3. Read off the lifetime. The formula is a solution on (−∞,1)(-\infty, 1) and tends to +∞+\infty as t→1t \to 1 from below. It cannot be continued to t=1t = 1. A solution of an ODE is a function on an interval with finite values. After t=1t = 1 nothing is left.
    4. Compute what the theorem promises. On the rectangle ∣y−1∣≤b\lvert y - 1 \rvert \le b we have M=(1+b)2M = (1 + b)^2 and L=2(1+b)L = 2(1 + b), so h=min⁡(b(1+b)2,14(1+b))h = \min\big(\frac{b}{(1+b)^2}, \frac{1}{4(1+b)}\big). The two terms are equal when b=13b = \frac13, and then h=316=0.1875h = \frac{3}{16} = 0.1875. This is the best the theorem can do for this rectangle family. It is much less than the true 11, as the theorem only uses worst-case information.
    5. Why this does not contradict the linear theorem. The right-hand side y2y^2 is not Lipschitz on all of R\mathbb R (shown earlier). The larger yy is, the faster it grows, and the faster yy grows, the larger yy gets. That feedback loop reaches infinity in finite time.
    6. General starting value. With y(0)=y0>0y(0) = y_0 > 0 the solution is y=y01−y0ty = \frac{y_0}{1 - y_0 t}, which blows up at t=1y0t = \frac{1}{y_0}. Technau’s power-series solution of April 22 finds the same formula: with y=∑αktky = \sum \alpha_k t^k the recurrence gives αk=α0k+1\alpha_k = \alpha_0^{k+1}, a geometric series with radius 1/α01/\alpha_0.

    Answer. y=11−ty = \frac{1}{1-t} on (−∞,1)(-\infty, 1); blow-up at t=1t = 1. The theorem guarantees only [−316,316][-\frac{3}{16}, \frac{3}{16}] for this rectangle.

    Your answerThe solution of y′=y2y' = y^2 with y(0)=2y(0) = 2 becomes infinite at a finite time TT. What is TT?
    Your answerFor f(y)=y2f(y) = y^2 on the range ∣y∣≤3\lvert y \rvert \le 3, what is the smallest Lipschitz constant LL?
    Beyond the course: for understanding· B: Peano's theorem, Euler polygons, and what the theorem leaves out

    If ff is merely continuous, a solution still exists, locally (Peano, 1886; he extended it to systems in 1890), but it need not be unique, as y′=3y2/3y' = 3y^{2/3} shows. A different construction proves it: Euler’s method with a smaller and smaller step hh gives polygons, and a subsequence of them converges to a solution (the Arzelà–Ascoli theorem, from MATH 521). With the Lipschitz condition the whole sequence converges and the limit is unique, which is Lipschitz’s original proof. The next lab runs Euler’s method and shows its error.

    Python labPicard iterates as exact polynomials
    import numpy as np
    from numpy.polynomial import Polynomial as P
    
    # Picard iteration for y' = f(t, y), y(0) = 1, with the iterates kept as exact polynomials
    def picard(step, n):
        y, out = P([1.0]), [P([1.0])]
        for _ in range(n):
            y = step(y)
            out.append(y)
        return out
    
    step = lambda y: 1 + (P([0, 2]) * y).integ()      # y' = 2 t y   (exact solution e^(t^2))
    exact = lambda t: np.exp(t**2)
    
    ts = np.linspace(0, 1, 401)
    print(" n   largest gap on [0, 1]")
    for n, y in enumerate(picard(step, 8)):
        print(f"{n:2d}   {np.max(np.abs(exact(ts) - y(ts))):.2e}")

    Try this. For y′=2tyy' = 2ty the largest gap on [0,1][0, 1] falls from 1.71.7 at n=0n = 0 to 3×10−63 \times 10^{-6} at n=8n = 8, shrinking faster at each pass. Now replace the step with step = lambda y: 1 + (y * y).integ() (that is y′=y2y' = y^2), the exact function with lambda t: 1 / (1 - t), change the 88 in the loop to 1010, and use np.linspace(0, 0.5, 401) instead of np.linspace(0, 1, 401): the gap falls steadily and is below 10−610^{-6} by n=10n = 10 (it is 4.5×10−74.5 \times 10^{-7}). With np.linspace(0, 0.9, 401) it is still about 0.180.18 after 10 passes. The iterates are working against the blow-up at t=1t = 1.

    Python labEuler's method: walk along the tangent, then re-aim
    import math
    
    # Euler's method for y' = f(t, y), y(0) = 1: walk along the tangent for a short time h, then re-aim.
    f = lambda t, y: y             # y' = y
    exact = math.exp               # e^t
    T = 1.0
    
    def euler(f, T, h):
        t, y = 0.0, 1.0
        for _ in range(round(T / h)):
            y += h * f(t, y)
            t += h
        return y
    
    print("   h      Euler y(1)   error      error / h")
    for h in [0.5, 0.1, 0.05, 0.025, 0.0125]:
        y = euler(f, T, h)
        print(f"{h:7.4f}  {y:10.6f}  {abs(exact(T) - y):.2e}  {abs(exact(T) - y) / h:.3f}")

    Try this. Run it: halving hh roughly halves the error, so the last column settles near e/2=1.36e/2 = 1.36. Euler's method is first order. Now try a decaying equation: set f = lambda t, y: -5 * y, exact = lambda t: math.exp(-5 * t), T = 2.0 and the list [0.5, 0.4, 0.2, 0.1]. The true value is e−10=4.5×10−5e^{-10} = 4.5 \times 10^{-5}. With h=0.5h = 0.5 Euler returns 5.065.06, with h=0.4h = 0.4 it returns −1-1, with h=0.2h = 0.2 it returns 00, and only h=0.1h = 0.1 gets close (about 10−610^{-6}). A step that is too long amplifies the solution instead of shrinking it.

    Worked example
    Euler's method by hand: y' = t − y, y(0) = 1, with step h = 0.5 up to t = 1.

    Solution.

    1. State the rule. From (tk,yk)(t_k, y_k) move to tk+1=tk+ht_{k+1} = t_k + h and yk+1=yk+h f(tk,yk)y_{k+1} = y_k + h\,f(t_k, y_k). Follow the tangent line for time hh, then recompute the slope at the new point.
    2. First step. f(0,1)=0−1=−1f(0, 1) = 0 - 1 = -1, so y1=1+0.5(−1)=0.5y_1 = 1 + 0.5(-1) = 0.5 at t=0.5t = 0.5. The slope at the start is −1-1.
    3. Second step. f(0.5,0.5)=0.5−0.5=0f(0.5, 0.5) = 0.5 - 0.5 = 0, so y2=0.5+0.5⋅0=0.5y_2 = 0.5 + 0.5 \cdot 0 = 0.5 at t=1t = 1. The slope at the new point is 00.
    4. Compare with the exact solution. Solving the linear equation gives y=t−1+2e−ty = t - 1 + 2e^{-t}, so y(1)=2e−1=0.7358y(1) = 2e^{-1} = 0.7358. The error 0.2360.236 is large because h=0.5h = 0.5 is large. With the next lab you can see it fall in proportion to hh.

    Answer. y2=0.5y_2 = 0.5, against the exact value 0.73580.7358.

    Your answerEuler's method with h=0.5h = 0.5 for y′=yy' = y, y(0)=1y(0) = 1: what is the approximation of y(1)y(1)?

    Where it is used

    Used inside maths· Inside maths: why the solution spaces of 7.2 have dimension n, and why orbits never cross

    The linear theorem above is the engine of 7.2. It says: for each choice of nn starting values there is exactly one solution of a linear equation of order nn, on the whole interval. In the language of 2.4, the map “solution ↦\mapsto its starting values” is one-to-one and onto, an isomorphism, so the space of solutions has dimension nn. A second consequence is that two different solutions of x′=F(x)x' = F(x) never meet: if they met at time ss they would be two solutions of the same IVP starting at ss, and uniqueness says they are one. This is why the arrows of a phase portrait in 7.4 can bend but never cross. The same contraction argument also proves the inverse function theorem and the implicit function theorem (Unit 5).

    Used in the real world· Biology: a bacterial culture with limited food (logistic growth)

    Let N(t)N(t) be the number of cells. With plenty of food, N′=rNN' = rN and N=N0ertN = N_0e^{rt}. With limited food, growth slows near the capacity KK: N′=rN(1−N/K)N' = rN(1 - N/K). Take r=0.7r = 0.7 per hour, K=109K = 10^9 cells and N0=106N_0 = 10^6. The right-hand side f(N)=rN(1−N/K)f(N) = rN(1 - N/K) has f′(N)=r(1−2N/K)f'(N) = r(1 - 2N/K), of size at most 3r=2.13r = 2.1 on 0≤N≤2K0 \le N \le 2K, so it is Lipschitz there and the theorem applies: there is exactly one solution for each N0N_0. It is

    N(t)=K1+(KN0−1)e−rt,N(t) = \frac{K}{1 + \left(\frac{K}{N_0} - 1\right)e^{-rt}},

    (substitute to check). The culture reaches K/2K/2 when (KN0−1)e−rt=1\left(\frac{K}{N_0} - 1\right)e^{-rt} = 1, that is t=ln⁡9990.7≈9.87t = \frac{\ln 999}{0.7} \approx 9.87 hours. At first the doubling time is ln⁡20.7≈0.99\frac{\ln 2}{0.7} \approx 0.99 hours, as with N′=rNN' = rN. At 2424 hours the logistic model gives N≈0.99995×109N \approx 0.99995 \times 10^9, while the pure exponential would have predicted 1.98×10131.98 \times 10^{13} cells. Technau’s lecture of March 20 introduced exactly this equation, with snakes, as the “more realistic” model after y′=ryy' = ry.

    Used in the real world· Machine learning: residual networks and neural ODEs

    A residual block computes xk+1=xk+f(xk)x_{k+1} = x_k + f(x_k), where ff is a small neural network. Compare Euler’s method with step hh: xk+1=xk+h f(xk)x_{k+1} = x_k + h\,f(x_k). A stack of blocks is Euler’s method for the equation x′=f(x)x' = f(x), with the layer number as time. In 2018 Chen, Rubanova, Bettencourt and Duvenaud posted the paper “Neural Ordinary Differential Equations”, which makes this literal: the network is the ODE, and a numerical solver decides how many steps to take. The theorem of this chapter is why the idea is well defined: if ff is Lipschitz (a network with weights of bounded size, and smooth activation functions, is) then the equation has a unique solution from each input x(0)x(0), so the map “input ↦\mapsto output at time TT” is a well-defined function, and, running the equation backwards, one-to-one. The Lipschitz constant LL controls how far two nearby inputs can move apart: by Gronwall’s inequality, at most by the factor eLTe^{LT} after time TT. This is the reason practitioners penalise the size of the weights.

    Traps

    Watch out· Check the starting value as well as the equation

    A function can satisfy y′=2xy' = 2x and have the wrong starting value: y=x2+5y = x^2 + 5 solves the equation and fails y(0)=1y(0) = 1. The family y=x2+Cy = x^2 + C solves the equation for every CC, and the starting value picks one. Worksheet 18 #6 is built around this: verify both.

    Watch out· Uniqueness needs the Lipschitz condition, and Lipschitz means the same time on both sides

    y′=3y2/3y' = 3y^{2/3}, y(0)=0y(0) = 0 has infinitely many solutions. The Lipschitz inequality compares f(t,x)f(t, x) and f(t,z)f(t, z) at the SAME tt. It does not say ff is continuous in tt (that is a separate hypothesis) and it is not a bound on ∣f(t,x)−f(s,x)∣\lvert f(t, x) - f(s, x) \rvert.

    Watch out· 'There is a solution' is local; it may end

    y′=y2y' = y^2, y(0)=1y(0) = 1 has the solution 11−t\frac{1}{1-t}, which does not exist at t=1t = 1, although the equation looks harmless. Only for linear equations (Lipschitz on the whole space) does the solution last as long as the coefficients are defined. Do not write “for all t∈Rt \in \mathbb R” unless you have checked.

    Watch out· Contraction needs q below 1 strictly, and the time interval is chosen to make it so

    The estimate gives d(Ty,Tz)≤L∣t−t0∣ d(y,z)d(Ty, Tz) \le L\lvert t - t_0 \rvert\,d(y, z). For L∣t−t0∣≥1L \lvert t - t_0 \rvert \ge 1 the operator may not shrink anything, so the proof restricts to ∣t−t0∣≤h\lvert t - t_0 \rvert \le h with Lh≤12Lh \le \frac12. This is the same point as worksheet 18 #3: T(x)=x+1T(x) = x + 1 moves every distance by factor exactly 11 and has no fixed point. In Technau’s lecture, ε<1L\varepsilon < \frac1L is the same condition.

    Watch out· The iterates must stay inside the region where f is defined

    The lecture proof applies the Lipschitz condition to f(τ,g(τ))f(\tau, g(\tau)) without checking that g(τ)g(\tau) lies in the rectangle where the condition holds. The fix is the ball of radius bb and the condition h≤b/Mh \le b/M. If you write this proof on an exam, say in one line why TT maps the space into itself. It is the same trap as in 4.2: always check T(X)⊆XT(X) \subseteq X.

    Watch out· Cauchy is not convergent, and convergent implies Cauchy always

    On the 376 final (4(a)) you defined a Cauchy sequence as one whose norms converge, and on 6(c) you said that a convergent sequence in an incomplete space need not be Cauchy. A sequence is Cauchy if its terms get close to each other: for every ε\varepsilon there is NN with ∥xm−xn∥<ε\lVert x_m - x_n \rVert < \varepsilon for m,n≥Nm, n \ge N. Every convergent sequence is Cauchy (triangle inequality through the limit, no completeness used). The converse is what completeness means, and the Picard–Lindelöf proof is where you use it.

    Problems

    checkMATH 376 worksheet 18 #5 to #8

    Which of these solve the stated problem? (a) y=e2xy = e^{2x} for y′=2yy' = 2y. (b) y=x2+1y = x^2 + 1 for y′=2xy' = 2x, y(0)=1y(0) = 1. (c) y=sin⁡xy = \sin x for y′=cos⁡xy' = \cos x, y(0)=0y(0) = 0. (d) y=x2y = x^2 for y′=xy' = x. (e) y=x2+5y = x^2 + 5 for y′=2xy' = 2x, y(0)=1y(0) = 1.

    Solution

    (a) Yes: y′=2e2x=2yy' = 2e^{2x} = 2y. (b) Yes: y′=2xy' = 2x and y(0)=1y(0) = 1. (c) Yes: y′=cos⁡xy' = \cos x and sin⁡0=0\sin 0 = 0. (d) No: y′=2x≠xy' = 2x \ne x. (e) No: the equation holds but y(0)=5≠1y(0) = 5 \ne 1.

    check

    For each right-hand side, state whether it satisfies a Lipschitz condition in yy on all of R\mathbb R, and give LL: (a) f=−3y+tf = -3y + t; (b) f=cos⁡yf = \cos y; (c) f=y3f = y^3; (d) f=∣y∣f = \sqrt{\lvert y \rvert}.

    Solution

    (a) Yes, L=3L = 3: ∣(−3y+t)−(−3z+t)∣=3∣y−z∣\lvert (-3y + t) - (-3z + t) \rvert = 3\lvert y - z \rvert. (b) Yes, L=1L = 1 since ∣sin⁡∣≤1\lvert \sin \rvert \le 1. (c) No: ∣y3−z3∣=∣y−z∣(y2+yz+z2)\lvert y^3 - z^3 \rvert = \lvert y - z \rvert (y^2 + yz + z^2) and the second factor is unbounded; it is Lipschitz on bounded ranges, with L=3K2L = 3K^2 on ∣y∣≤K\lvert y \rvert \le K. (d) No: near 00 the ratio ∣y∣∣y∣=∣y∣−1/2\frac{\sqrt{\lvert y \rvert}}{\lvert y \rvert} = \lvert y \rvert^{-1/2} is unbounded. (This is a second example of non-uniqueness: y′=∣y∣y' = \sqrt{\lvert y \rvert}, y(0)=0y(0) = 0 has the solutions 00 and t2/4t^2/4 for t≥0t \ge 0.)

    checkMATH 376 worksheet 18 #3 and #4

    Is T(x)=x+1T(x) = x + 1 a contraction of R\mathbb R? Does it have a fixed point? Is T(x)=cos⁡xT(x) = \cos x a contraction of [0,1][0, 1]?

    Solution

    ∣T(x)−T(y)∣=∣x−y∣\lvert T(x) - T(y) \rvert = \lvert x - y \rvert, so the best constant is q=1q = 1, not below 11: not a contraction. x+1=xx + 1 = x is impossible, so there is no fixed point, which shows the hypothesis q<1q < 1 cannot be dropped. For cos⁡\cos on [0,1][0, 1]: it maps [0,1][0, 1] into [cos⁡1,1]⊆[0,1][\cos 1, 1] \subseteq [0, 1], and ∣cos⁡′∣=∣sin⁡x∣≤sin⁡1<1\lvert \cos' \rvert = \lvert \sin x \rvert \le \sin 1 < 1, so yes, with q=sin⁡1q = \sin 1.

    checkMATH 376 practice final 4(a)

    State Banach’s fixed point theorem. (Write all hypotheses.)

    Solution

    Let (X,d)(X, d) be a non-empty complete metric space (for example a Banach space, which is a complete normed space) and T:X→XT : X \to X a contraction: there is qq with 0≤q<10 \le q < 1 and d(Tx,Ty)≤q d(x,y)d(Tx, Ty) \le q\,d(x, y) for all x,yx, y. Then TT has exactly one fixed point x∗x^* (Tx∗=x∗Tx^* = x^*), and for every starting point x0x_0 the iterates xn+1=Txnx_{n+1} = Tx_n converge to x∗x^*. (Optional: d(xn,x∗)≤qn1−q d(x1,x0)d(x_n, x^*) \le \frac{q^n}{1 - q}\,d(x_1, x_0).)

    use

    Do three Picard iterations for y′=y+1y' = y + 1, y(0)=0y(0) = 0. What function do the iterates approach, and what is it?

    Solution

    y0=0y_0 = 0. y1=∫0t(0+1) ds=ty_1 = \int_0^t (0 + 1)\,ds = t. y2=∫0t(s+1) ds=t+t22y_2 = \int_0^t (s + 1)\,ds = t + \frac{t^2}{2}. y3=∫0t(s+s22+1)ds=t+t22+t36y_3 = \int_0^t \left(s + \frac{s^2}{2} + 1\right)ds = t + \frac{t^2}{2} + \frac{t^3}{6}. In general yn=∑k=1ntkk!y_n = \sum_{k=1}^{n} \frac{t^k}{k!}, which tends to et−1e^t - 1. Check: y=et−1y = e^t - 1 has y′=et=y+1y' = e^t = y + 1 and y(0)=0y(0) = 0.

    use

    For y′=t−yy' = t - y, y(0)=1y(0) = 1, find y1,y2,y3y_1, y_2, y_3 by Picard iteration, and compare with the exact solution y=t−1+2e−ty = t - 1 + 2e^{-t} at t=0.5t = 0.5.

    Solution

    y0=1y_0 = 1. y1=1+∫0t(s−1) ds=1−t+t22y_1 = 1 + \int_0^t (s - 1)\,ds = 1 - t + \frac{t^2}{2}. y2=1+∫0t(s−1+s−s22)ds=1−t+t2−t36y_2 = 1 + \int_0^t \left(s - 1 + s - \frac{s^2}{2}\right)ds = 1 - t + t^2 - \frac{t^3}{6}. y3=1+∫0t(s−1+s−s2+s36)ds=1−t+t2−t33+t424y_3 = 1 + \int_0^t \left(s - 1 + s - s^2 + \frac{s^3}{6}\right)ds = 1 - t + t^2 - \frac{t^3}{3} + \frac{t^4}{24}. At t=0.5t = 0.5: y3=1−0.5+0.25−0.041667+0.002604=0.710938y_3 = 1 - 0.5 + 0.25 - 0.041667 + 0.002604 = 0.710938. Exact: 0.5−1+2e−0.5=0.7130610.5 - 1 + 2e^{-0.5} = 0.713061. The gap is 0.00210.0021.

    use

    For y′=y2y' = y^2 with y(0)=2y(0) = 2, find the guaranteed hh for the rectangle ∣y−2∣≤1\lvert y - 2 \rvert \le 1 with a=1a = 1, and compare with the true blow-up time.

    Solution

    On y∈[1,3]y \in [1, 3]: M=9M = 9, L=max⁡∣2y∣=6L = \max \lvert 2y \rvert = 6. So h=min⁡(1,19,112)=112≈0.083h = \min(1, \frac19, \frac{1}{12}) = \frac1{12} \approx 0.083. The true solution is 21−2t\frac{2}{1 - 2t}, which blows up at t=12t = \frac12. The theorem guarantees a solution on [−112,112][-\frac{1}{12}, \frac{1}{12}], about one sixth of the true lifetime.

    use

    Write y′′′+2y′′−y′+3y=sin⁡ty''' + 2y'' - y' + 3y = \sin t as a first-order system x′=Ax+g(t)x' = Ax + g(t), and say which theorem of this chapter proves that its IVP has exactly one solution on R\mathbb R.

    Solution

    With x=(y,y′,y′′)x = (y, y', y''): x1′=x2x_1' = x_2, x2′=x3x_2' = x_3, x3′=y′′′=−3x1+x2−2x3+sin⁡tx_3' = y''' = -3x_1 + x_2 - 2x_3 + \sin t. So A=[010001−31−2]A = \begin{bmatrix}0 & 1 & 0\\0 & 0 & 1\\-3 & 1 & -2\end{bmatrix} and g=(0,0,sin⁡t)g = (0, 0, \sin t). AA is constant and gg is continuous on R\mathbb R, so the global linear theorem gives exactly one solution on R\mathbb R for each x(0)=(y(0),y′(0),y′′(0))x(0) = (y(0), y'(0), y''(0)).

    prove

    Prove that if ff is continuous and yy is continuous, then yy solves y′=f(t,y)y' = f(t, y), y(t0)=y0y(t_0) = y_0 on JJ if and only if y(t)=y0+∫t0tf(s,y(s)) dsy(t) = y_0 + \int_{t_0}^{t} f(s, y(s))\,ds on JJ. (This is the first theorem of the chapter, rewritten as an exercise.)

    Solution

    Plan. Use the fundamental theorem of calculus in each direction.

    (⇒\Rightarrow) If y′=f(t,y)y' = f(t, y) then y′y' is continuous, since ff and yy are. By part 2 of the fundamental theorem, y(t)−y(t0)=∫t0ty′(s) ds=∫t0tf(s,y(s)) dsy(t) - y(t_0) = \int_{t_0}^{t} y'(s)\,ds = \int_{t_0}^{t} f(s, y(s))\,ds, and y(t0)=y0y(t_0) = y_0. (⇐\Leftarrow) The function s↦f(s,y(s))s \mapsto f(s, y(s)) is continuous, so by part 1 the right-hand side is differentiable with derivative f(t,y(t))f(t, y(t)). So y′=f(t,y)y' = f(t, y). Put t=t0t = t_0: the integral is 00, so y(t0)=y0y(t_0) = y_0. ■\blacksquare

    proveApostol 7.22 idea

    Prove by induction that for y′=yy' = y, y(0)=1y(0) = 1, the Picard iterates satisfy ∣yk+1(t)−yk(t)∣≤∣t∣k+1(k+1)!\lvert y_{k+1}(t) - y_k(t) \rvert \le \frac{\lvert t \rvert^{k+1}}{(k+1)!}. Deduce that they converge uniformly on every [−N,N][-N, N], without using the factor Lh≤12Lh \le \frac12.

    Solution

    Plan. Subtract consecutive iterates, integrate, and use the series for eNe^N.

    y1−y0=ty_1 - y_0 = t, so ∣y1−y0∣=∣t∣=∣t∣11!\lvert y_1 - y_0 \rvert = \lvert t \rvert = \frac{\lvert t \rvert^1}{1!}. If ∣yk+1−yk∣≤∣s∣k+1(k+1)!\lvert y_{k+1} - y_k \rvert \le \frac{\lvert s \rvert^{k+1}}{(k+1)!} then ∣yk+2(t)−yk+1(t)∣=∣∫0t(yk+1−yk) ds∣≤∣∫0t∣s∣k+1(k+1)! ds∣=∣t∣k+2(k+2)!\lvert y_{k+2}(t) - y_{k+1}(t) \rvert = \left\lvert \int_0^t (y_{k+1} - y_k)\,ds \right\rvert \le \left\lvert \int_0^t \frac{\lvert s \rvert^{k+1}}{(k+1)!}\,ds \right\rvert = \frac{\lvert t \rvert^{k+2}}{(k+2)!}. On [−N,N][-N, N] the gaps are at most Nk+1(k+1)!\frac{N^{k+1}}{(k+1)!}, and ∑kNk+1(k+1)!<∞\sum_k \frac{N^{k+1}}{(k+1)!} < \infty (it is the exponential series). By the Weierstrass M-test (1.6) the series y0+∑k(yk+1−yk)y_0 + \sum_k (y_{k+1} - y_k) converges uniformly, and its partial sums are the yky_k. ■\blacksquare

    prove

    Let xx and zz be two solutions of x′=f(t,x)x' = f(t, x) on [t0,t1][t_0, t_1], where ff is Lipschitz in xx with constant LL on a set containing both graphs. Prove that ∥x(t)−z(t)∥≤∥x(t0)−z(t0)∥ eL(t−t0)\lVert x(t) - z(t) \rVert \le \lVert x(t_0) - z(t_0) \rVert\,e^{L(t - t_0)} for t≥t0t \ge t_0. In particular, solutions that start at the same point are equal.

    Solution

    Plan. This is Gronwall’s inequality. Integrate the difference, bound with the Lipschitz condition, and solve the resulting inequality by multiplying by e−Lte^{-Lt}.

    Let u(t)=∥x(t)−z(t)∥u(t) = \lVert x(t) - z(t) \rVert and c=u(t0)c = u(t_0). By the integral equation and the norm-of-an-integral fact, u(t)≤c+L∫t0tu(s) dsu(t) \le c + L\int_{t_0}^{t} u(s)\,ds. Let w(t)=c+L∫t0tuw(t) = c + L\int_{t_0}^{t} u. Then w′=Lu≤Lww' = Lu \le Lw, so (e−L(t−t0)w)′=e−L(t−t0)(w′−Lw)≤0\left(e^{-L(t - t_0)}w\right)' = e^{-L(t - t_0)}(w' - Lw) \le 0. Hence e−L(t−t0)w(t)≤w(t0)=ce^{-L(t - t_0)}w(t) \le w(t_0) = c, and u≤w≤c eL(t−t0)u \le w \le c\,e^{L(t - t_0)}. If c=0c = 0 then u=0u = 0 for t≥t0t \ge t_0. (For t≤t0t \le t_0 apply the same argument with t↦−tt \mapsto -t.) ■\blacksquare

    proveMATH 376 worksheet 18 and HW7 #2 style; new application

    Show that for ∣λ∣<1\lvert \lambda \rvert < 1 the equation x=λcos⁡xx = \lambda \cos x has exactly one real solution. Which theorem do you use, and what are XX, TT and qq?

    Solution

    Plan. Banach on X=RX = \mathbb R with T(x)=λcos⁡xT(x) = \lambda\cos x. X=RX = \mathbb R is complete (1.2). TT maps R\mathbb R into R\mathbb R. By the mean value theorem ∣T(x)−T(y)∣=∣λ∣ ∣sin⁡c∣ ∣x−y∣≤∣λ∣ ∣x−y∣\lvert T(x) - T(y) \rvert = \lvert \lambda \rvert\,\lvert \sin c \rvert\,\lvert x - y \rvert \le \lvert \lambda \rvert\,\lvert x - y \rvert, so TT is a contraction with q=∣λ∣<1q = \lvert \lambda \rvert < 1. Banach gives exactly one fixed point, and the iterates xn+1=λcos⁡xnx_{n+1} = \lambda \cos x_n converge to it from any start. ■\blacksquare

    stretch

    Show that if xx and zz solve x′=F(x)x' = F(x) (an autonomous system with FF locally Lipschitz) and x(s)=z(r)x(s) = z(r) for some times s,rs, r, then z(t)=x(t+s−r)z(t) = x(t + s - r) for all tt. Conclude that an orbit of a planar autonomous system that touches itself at two different times is closed (periodic).

    Solution

    Plan. Show that a time shift of a solution is again a solution, then use uniqueness.

    Let z~(t)=x(t+s−r)\tilde z(t) = x(t + s - r). Then z~′(t)=x′(t+s−r)=F(x(t+s−r))=F(z~(t))\tilde z'(t) = x'(t + s - r) = F(x(t + s - r)) = F(\tilde z(t)), because FF does not depend on tt, so z~\tilde z is a solution. And z~(r)=x(s)=z(r)\tilde z(r) = x(s) = z(r). So z~\tilde z and zz solve the same IVP at time rr, and by the corollary of this chapter they are equal. If an orbit meets itself, x(s)=x(r)x(s) = x(r) with s≠rs \ne r, then with z=xz = x we get x(t)=x(t+s−r)x(t) = x(t + s - r) for all tt: xx is periodic with period ∣s−r∣\lvert s - r \rvert. ■\blacksquare (This is why the closed loops in the phase portraits of 7.4 are exactly the periodic solutions, and why two orbits cannot cross.)

    stretchApostol 6.1 style

    Find all solutions of y′=∣y∣y' = \sqrt{\lvert y \rvert}, y(0)=0y(0) = 0, and say which hypothesis of the Picard–Lindelöf theorem fails.

    Solution

    For y>0y > 0: y′y=1\frac{y'}{\sqrt y} = 1 gives 2y=t−c2\sqrt y = t - c, so y=(t−c)24y = \frac{(t - c)^2}{4} for t≥ct \ge c. For y<0y < 0 the equation reads y′=−yy' = \sqrt{-y}, and the same computation gives y=−(d−t)24y = -\frac{(d - t)^2}{4} for t≤dt \le d. Since y′=∣y∣≥0y' = \sqrt{\lvert y \rvert} \ge 0, every solution is non-decreasing, so a solution through 00 can rest at 00 for a while and then leave on either side. All the solutions are, for any −∞≤d≤0≤c≤∞-\infty \le d \le 0 \le c \le \infty,

    y(t)={−(d−t)24t≤d,0d≤t≤c,(t−c)24t≥c.y(t) = \begin{cases} -\frac{(d - t)^2}{4} & t \le d,\\ 0 & d \le t \le c,\\ \frac{(t - c)^2}{4} & t \ge c. \end{cases}

    (At t=ct = c both one-sided derivatives are 0=00 = \sqrt 0, and the same at t=dt = d.) The right-hand side is continuous but not Lipschitz near 00: ∣y∣∣y∣=∣y∣−1/2\frac{\sqrt{\lvert y \rvert}}{\lvert y \rvert} = \lvert y \rvert^{-1/2} is unbounded. Existence holds (Peano), uniqueness fails.

    Summary

    • An ordinary differential equation relates an unknown function of one variable to its derivatives. An initial value problem adds the value at one time. Every equation of order nn is a first-order system for x=(y,y′,…,y(n−1))x = (y, y', \dots, y^{(n-1)}).
    • The IVP y′=f(t,y)y' = f(t, y), y(t0)=y0y(t_0) = y_0 is the same as the integral equation y(t)=y0+∫t0tf(s,y(s)) dsy(t) = y_0 + \int_{t_0}^{t} f(s, y(s))\,ds, by the fundamental theorem of calculus. A solution is a fixed point of the Picard operator TT.
    • ff satisfies a Lipschitz condition with constant LL if ∥f(t,x)−f(t,z)∥≤L ∥x−z∥\lVert f(t, x) - f(t, z) \rVert \le L\,\lVert x - z \rVert. A bounded derivative gives it; a corner is allowed; a vertical tangent (y2/3y^{2/3} at 00) is not.
    • Picard–Lindelöf: continuous plus Lipschitz gives exactly one solution on [t0−h,t0+h][t_0 - h, t_0 + h] with h=min⁡(a,b/M,1/(2L))h = \min(a, b/M, 1/(2L)). The proof: the space of curves inside the rectangle is complete, TT maps it into itself, and TT shrinks distances by Lh≤12Lh \le \frac12. Picard iterates converge uniformly.
    • Two solutions that meet are equal, for as long as both exist. For linear systems the solution exists on the whole interval, because TmT^m is a contraction for large mm.
    • Without Lipschitz, uniqueness fails (y′=3y2/3y' = 3y^{2/3}, infinitely many solutions). Without a global Lipschitz condition, a solution can blow up in finite time (y′=y2y' = y^2 gives 11−t\frac{1}{1-t}).
    • In practice: verify both the equation and the starting value, state which hypothesis you use, and remember the theorem is local. Euler’s method is Picard’s idea at finite step size, with error proportional to hh.

    Watch and read

    The same ideas explained by someone else. Use these when an explanation here does not land.

    Where this sits

    Comes from
    4.2 Convergence, completeness and the contraction mapping theorem
    1.5 The Riemann integral: area as a limit
    1.6 Series, power series, and uniform convergence
    Leads to
    7.2 Linear differential equations
    Same idea elsewhere
    MATH 376: Lectures of March 20 and 23 prove this theorem (Theorem 7.4, Picard-Lindelöf) and use it to show that a linear equation of order n has exactly one solution for each choice of n starting values. Worksheet 19 asks why y' = 2y, y(0) = 1 has exactly one solution.
    MATH 521: 521 proves the Banach fixed point theorem and then the Picard–Lindelöf theorem as its standard application. Peano's theorem, existence without uniqueness, is also proved there.
    CS 532 / AI: A residual network step x + f(x) is one Euler step of the equation x' = f(x). Neural ODEs let the computer choose how many steps to take. Whether the continuous version is well defined is this chapter's theorem, with f the network.