Differential Equations 2.6: Existence and Uniqueness of Solutions

Differential Equations

Units and Topics

Unit 2. First Order Equations

2.6 Existence and Uniqueness of Solutions

The methods of this unit find formulas for solutions. Two questions come before any formula: whether an initial value problem has a solution at all, and whether it has only one. Two theorems answer these questions from the form of the equation. This topic covers the theorem for linear equations, the theorem for general first order equations, an equation with more than one solution through a point, and solutions that exist only for a limited time.

You need Topics 2.1, 2.2, and 2.3 for this topic. The partial derivative ∂f/∂y of Topic 2.3 is used in the second theorem.

1. Two Questions

An initial value problem consists of a differential equation and an initial condition.

y′ = f(t, y) with y(t₀) = y₀

The first question is the question of existence: is there a function that satisfies both the equation and the initial condition. The second question is the question of uniqueness: is there only one such function.

Both questions matter for physics. A law of motion that is written as a differential equation predicts the future from the present state only if the initial value problem has exactly one solution. The questions also matter for numerical methods. The method of Euler of Topic 1.3 produces numbers for any equation. The numbers have a meaning only if there is one solution that they approximate.

An interval in this topic is a connected piece of the t axis, such as all t between 0 and 3, or all t greater than 0.

2. Linear Equations

Theorem for linear equations. Let p(t) and q(t) be continuous on an interval that contains t₀. Then the initial value problem y′ + p(t)y = q(t) with y(t₀) = y₀ has exactly one solution, for any value of y₀, and this solution exists on the whole interval.

The reason is the formula of Topic 2.2. For continuous p and q, the integrating factor μ(t) = e∫ p(t) dt and the integral of μq exist on the whole interval, μ is never 0, and the initial condition gives exactly one value of the constant C.

The theorem gives the interval of the solution without solving the equation. The interval is found from the points where p or q is not continuous.

An example

Find the largest interval on which the theorem guarantees a solution of (t − 3)y′ + (ln t) y = 2t with y(1) = 2.

y′ + (ln t)/(t − 3) y = 2t/(t − 3)divide by t − 3 to reach the standard formp(t) = (ln t)/(t − 3)continuous for t greater than 0, except at t = 3q(t) = 2t/(t − 3)continuous except at t = 3

The points 0 and 3 divide the t axis into intervals. The initial time t₀ = 1 is between 0 and 3. So the solution exists and is unique for t between 0 and 3. With the initial condition y(4) = 2 instead, the interval would be all t greater than 3.

A solution can exist on a larger interval

The theorem guarantees an interval. It does not say that the solution stops at the end of it. Topic 2.2 found that ty′ + 2y = 4t² has the solutions y = t² + C/t². The coefficient p(t) = 2/t is not continuous at t = 0, so the theorem guarantees a solution only on one side of 0. For most initial conditions the solution grows without limit as t approaches 0. For the initial condition y(1) = 1, the constant C is 0, and the solution y = t² exists for all t.

3. General First Order Equations

Theorem for general equations. Let f(t, y) and ∂f/∂y be continuous in a rectangle of the plane that contains the point (t₀, y₀) in its interior. Then the initial value problem y′ = f(t, y) with y(t₀) = y₀ has exactly one solution on some interval around t₀.

This theorem differs from the theorem for linear equations in two ways.

QuestionLinear equationGeneral equation
What must be checkedp(t) and q(t) are continuousf and ∂f/∂y are continuous near the point (t₀, y₀)
Where the solution existsOn the whole interval on which p and q are continuousOn some interval around t₀, which can be short
Does the interval depend on y₀NoYes
Where the solution can stop existingOnly at a point where p or q is not continuousAt any time, also where f has no special point

The continuity of f alone is enough for the existence of a solution. The condition on ∂f/∂y is needed for the uniqueness. Parts 4 and 5 show what can happen.

Checking the conditions

Equationf(t, y)∂f/∂yPoints where a condition fails
y′ = t² + y²t² + y²2yNone
y′ = −t/y−t/yt/y²The points with y = 0
y′ = 3y2/33y2/32y−1/3The points with y = 0, for ∂f/∂y only
y′ = y/ty/t1/tThe points with t = 0

4. An Equation with More Than One Solution

Consider the initial value problem y′ = 3y2/3 with y(0) = 0. The function f = 3y2/3 is continuous, but its derivative 2y−1/3 has no value at y = 0. The theorem does not apply at the point (0, 0), and the problem has more than one solution.

y = 0the first solution. Both sides of the equation are 0, and y(0) = 0y = t³the second solution. It also satisfies y(0) = 0y′ = 3t²the derivative of t³3y2/3 = 3(t³)2/3 = 3t²the right side, which is equal to y′

There are more solutions. A solution can stay at 0 until any time a that is 0 or positive, and then leave along the curve (t − a)³.

This solution is y = 0 for t ≤ a, and y = (t − a)³ for t greater than a.

At t = a, both pieces have the value 0 and the slope 0, so the function is differentiable there, and it satisfies the equation for all t. So the initial value problem has infinitely many solutions. The equation does not determine when the solution leaves the value 0.

Separation of variables finds the family y = (t + C)³. The constant solution y = 0 is the solution that the division by y2/3 loses, as in Topic 2.1. Here the lost solution touches the other solutions, and this is why the solutions can be joined.

For an initial condition with y₀ ≠ 0, such as y(0) = 1, both conditions of the theorem hold near the point, and there is exactly one solution near t = 0.

Try it: many solutions through one point

The menu selects one of two equations for which uniqueness fails at the value 0. For y′ = 3y2/3, each blue curve satisfies y(0) = 0. For the bucket of Part 7, each blue curve ends with an empty bucket. The slider sets the time a at which the solution leaves the value 0 or reaches it. The faint curves are solutions for other values of a.

5. Solutions That Exist Only for a Limited Time

Consider y′ = y² with y(0) = y₀. The function f = y² and its derivative 2y are continuous in the whole plane. The theorem guarantees exactly one solution through each point, on some interval. Topic 2.1 found the solution.

y = −1/(t + C)the general solution for y ≠ 0, from Topic 2.1y₀ = −1/Cthe initial condition y(0) = y₀C = −1/y₀solve for Cy = y₀/(1 − y₀t)the solution, after multiplying the numerator and the denominator by y₀

For a positive y₀, the denominator is 0 at t = 1/y₀, and the solution grows without limit as t approaches this time.

y₀SolutionThe solution exists for
1y = 1/(1 − t)t less than 1
2y = 2/(1 − 2t)t less than 0.5
10y = 10/(1 − 10t)t less than 0.1
0y = 0All t

The time at which the solution stops existing depends on the initial value, and nothing in the equation marks it. This is the meaning of the words some interval in the theorem. For a nonlinear equation, the interval of a solution is found from the solution, and not from the equation alone.

6. Solution Curves Do Not Cross

Suppose that f and ∂f/∂y are continuous in a region of the plane, and that two solution curves meet at a point of that region. Both curves are then solutions of the same initial value problem at that point. By the theorem there is only one such solution, so the two curves are the same curve.

Consequence. In a region where f and ∂f/∂y are continuous, two different solution curves have no point in common. They do not cross, and they do not touch.

Topic 2.5 used this. For an autonomous equation y′ = f(y) with a continuous derivative f′, a solution cannot cross an equilibrium solution, so a solution that starts between two equilibrium solutions stays between them. A solution also cannot reach a stable equilibrium solution in a finite time. It only approaches it.

An equation with no solution or with many solutions: ty′ = y

In the standard form the equation is y′ = y/t, and f = y/t is not continuous at t = 0. The solutions are the straight lines y = Ct through the origin, as separation of variables shows.

Initial conditionSolutionsReason
y(1) = 2Exactly one: y = 2tThe conditions hold near the point (1, 2)
y(0) = 0Infinitely many: y = Ct for each CAll of the lines pass through the origin
y(0) = 1NoneEach line y = Ct has the value 0 at t = 0

7. An Example from Physics: A Leaking Bucket

Water runs out of a bucket through a small hole in the bottom. The law of Torricelli says that the speed of the water at the hole is proportional to the square root of the height h of the water above the hole. So the height decreases at a rate that is proportional to √h.

h′ = −k√h

In this part, k is 0.2, h is in meters, and t is in seconds. The unit of k is the square root of a meter, divided by a second. The bucket is filled to the height 0.64 m at the time 0. The equation is separable.

h−1/2 dh = −k dtseparate the variables, for h greater than 02√h = −kt + Cintegrate both sides2√0.64 = Cthe initial condition h(0) = 0.64C = 1.6because √0.64 = 0.8√h = 0.8 − 0.1tdivide by 2, with k = 0.2h = (0.8 − 0.1t)²square both sides, for t up to 8

The bucket is empty at t = 8 seconds. After that time the solution is h = 0, which is the constant solution of the equation. In symbols, a bucket that starts at the height h₀ is empty at the time T = 2√h₀/k.

The past cannot be found from the empty bucket

The function f = −k√h is continuous at h = 0, but its derivative −k/2√h has no value there. The theorem does not apply at points with h = 0, and uniqueness fails there. Suppose that the bucket is found empty at the time t = 10. The equation and this condition do not determine the earlier heights. The bucket can have become empty at t = 8, at t = 5, or at any earlier time, and each of these histories is a solution that satisfies h(10) = 0.

In the forward direction there is no such problem. A bucket with a positive height has exactly one future. The failure of uniqueness at h = 0 expresses a fact about the real bucket: an empty bucket keeps no record of when it became empty.

Common Mistakes

  • Reading p(t) and q(t) from a linear equation that is not in the standard form. The division by the coefficient of y′ can produce points where p and q are not continuous.
  • Choosing the interval that does not contain t₀. The interval of the solution is the one that contains the initial time.
  • Applying the theorem for linear equations to a nonlinear equation. For y′ = y², the right side is continuous for all t and y, and the solutions still stop existing after a finite time.
  • Checking only f in the general theorem. Uniqueness needs the continuity of ∂f/∂y as well.
  • Concluding that there is no solution, or more than one solution, because a condition fails. The theorems give no information in that case, and the equation must be examined directly.
  • Assuming that a solution stops at the end of the guaranteed interval. The solution y = t² of ty′ + 2y = 4t² exists for all t.

Summary

IdeaStatement
ExistenceThe initial value problem has at least one solution
UniquenessThe initial value problem has only one solution
Linear equationIf p and q are continuous on an interval that contains t₀, there is exactly one solution on the whole interval
General equationIf f and ∂f/∂y are continuous near (t₀, y₀), there is exactly one solution on some interval around t₀
Uniqueness can faily′ = 3y2/3 with y(0) = 0 has the solutions y = 0, y = t³, and infinitely many others
Existence can be limitedy′ = y² with y(0) = y₀ greater than 0 exists only for t less than 1/y₀
No crossingWhere f and ∂f/∂y are continuous, two different solution curves have no point in common
Leaking bucketh′ = −k√h has the solution h = (√h₀ − kt/2)² until the time 2√h₀/k, and h = 0 after it

Practice

Work each problem on paper first. Then open the answer to check your work.

1. Find the largest interval on which the theorem for linear equations guarantees a solution of (t − 2)y′ + y = t with y(0) = 1.

y′ + 1/(t − 2) y = t/(t − 2)divide by t − 2 to reach the standard formp(t) = 1/(t − 2) and q(t) = t/(t − 2)both are continuous except at t = 2

The initial time t₀ = 0 is less than 2. The interval is all t less than 2.

2. Find the largest interval on which the theorem for linear equations guarantees a solution of (t² − 4)y′ + ty = 1 with y(1) = 5.

In the standard form, p(t) = t/(t² − 4) and q(t) = 1/(t² − 4). Both are continuous except at t = −2 and t = 2, where t² − 4 = 0.

The initial time t₀ = 1 is between −2 and 2. The interval is all t between −2 and 2.

3. For which initial points (t₀, y₀) does the general theorem guarantee exactly one solution of y′ = √y − 1?

The function f = √y − 1 has values only for y ≥ 1, and it is continuous there. Its derivative ∂f/∂y = 1/(2√y − 1) is continuous only for y greater than 1.

A rectangle around the point must lie in the region where both functions are continuous. So the theorem guarantees exactly one solution for each point with y₀ greater than 1.

4. Show that y = 1 and y = 1 + t²/4 are both solutions of y′ = √y − 1 with y(0) = 1, for t ≥ 0.

For y = 1: the derivative is 0, and √1 − 1 = 0. The initial condition holds.

y = 1 + t²/4the second function, with y(0) = 1y′ = t/2its derivativey − 1 = t²/4 = t/2²subtract 1, and write the result as a square√y − 1 = t/2the right side, for t ≥ 0

Both functions satisfy the equation and the initial condition. This does not contradict the theorem, because the point (0, 1) has y₀ = 1, where the theorem does not apply.

5. Solve y′ = y² with y(0) = 4, and find the interval on which the solution exists.

y = y₀/(1 − y₀t)the solution from Part 5y = 4/(1 − 4t)with y₀ = 41 − 4t = 0 at t = 1/4the denominator is 0

The solution exists for t less than 1/4. It grows without limit as t approaches 1/4.

6. A bucket leaks with h′ = −0.5√h, with h in meters and t in seconds. The height is 4 m at the time 0. Find h(t) and the time at which the bucket is empty.

2√h = −0.5t + Cseparate the variables and integrate2√4 = Cthe initial condition h(0) = 4C = 4because √4 = 2√h = 2 − 0.25tdivide by 2h = (2 − 0.25t)²square both sides, for t up to 82 − 0.25t = 0 at t = 8the bucket is empty

The bucket is empty after 8 seconds, and h = 0 after that time.

Python Practice

Step 1. Two solutions of one initial value problem

Part 4 stated that y = t³ is a solution of y′ = 3y2/3 with y(0) = 0. The code below checks it for times between 0 and 2. The power 2/3 is calculated as the cube root of y², and the cube root is typed as np.cbrt.

Python

The first value is y(0) = 0, and the largest difference is about 0.001, so the function satisfies the equation and the initial condition. Now check the solution that stays at 0 until t = 1 and is (t − 1)³ after that. The function np.where(t > 1, (t - 1) ** 3, 0) gives (t − 1)³ where t is greater than 1, and 0 at the other times. The largest difference should again be small.

Python

Both functions start at y(0) = 0 and satisfy the same equation. At t = 2 the first one has the value 8, and the second one has the value 1.

Step 2. What a numerical method does without uniqueness

The code below applies the method of Euler to y′ = 3y2/3 with y(0) = 0, up to the time t = 2.

Python

The result is 0. The method follows the solution y = 0 and gives no sign that other solutions exist. Now change the initial value to 0.000001, which is one millionth. The result should be about 8.06.

Python

A change of one millionth in the initial value changes the result at t = 2 from 0 to about 8. Where uniqueness fails, a numerical result cannot be trusted.

Step 3. The time at which a solution stops existing

Part 5 found that the solution of y′ = y² with y(0) = y₀ grows without limit at the time 1/y₀. The code below applies the method of Euler with small steps and stops when y is greater than 1000. The word while repeats the lines below it as long as its condition is true. The condition np.less(y, 1000) is true as long as y is less than 1000.

Python

The loop stops at about t = 1.000, which agrees with 1/y₀ = 1. Now start at y(0) = 2. The loop should stop at about t = 0.5.

Python

Step 4. The end of a guaranteed interval

The equation ty′ + 2y = 4t² has the solutions y = t² + C/t², and the theorem for linear equations guarantees them only on one side of t = 0. The initial condition y(1) = 2 gives C = 1. The code below calculates this solution at times that approach 0.

Python

The values are 4.25, 100.01, and 10000.0001. The solution grows without limit as t approaches 0. The initial condition y(1) = 1 gives C = 0. Change the first line. The values should be 0.25, 0.01, and 0.0001.

Python

This solution stays finite at t = 0. The theorem guarantees an interval, and one solution can exist beyond it.

Step 5. The leaking bucket

Part 7 found the height h = (√h₀ − kt/2)² of the water in a leaking bucket, and the time T = 2√h₀/k at which the bucket is empty. The code below calculates T and the height after 4 seconds, for h₀ = 0.64 m and k = 0.2.

Python

The bucket is empty after 8 seconds, and after 4 seconds the height is 0.16 m. After one half of the time, one quarter of the height is left. Now start with the height 0.36 m. The bucket should be empty after 6 seconds, and the height after 4 seconds should be 0.04 m.

Python

Quiz

This quiz has 5 questions on this topic. A question asks you either to choose one answer or to type numbers. The page grades your answers and explains each one. A number can be typed as a whole number, a decimal, a fraction such as 1/3, or a calculation such as sqrt(18)/2 or arccos(1/2). The page shows the value of a calculation next to the box. Angles in a calculation are in degrees. The Calculator button under each question opens a calculator. Your answers are saved in your browser, so they are still on the page when you come back to it.

Choose how your answers are checked

1. On which interval does the theorem for linear equations guarantee exactly one solution of (t − 5)y′ + y = t² with y(2) = 1?

2. For which initial condition does the general theorem NOT guarantee a unique solution of y′ = 3y2/3?

3. The solution of y′ = y² with y(0) = 5 grows without limit as t approaches a time T. Find T.

4. The functions f and ∂f/∂y are continuous in the whole plane. Two solutions of y′ = f(t, y) have the same value at t = 3. What follows?

5. A bucket leaks with h′ = −0.5√h, with h in meters and t in seconds. The height is 9 m at the time 0. After how many seconds is the bucket empty?

Next: Topic 2.7, Models with First Order Equations