Numerical Solution of Ordinary Differential Equations: 8.1.1 First Existence Theorem
Numerical Solution of Ordinary Differential Equations: 8.1.1 First Existence Theorem
8.1 Introduction
Consider the initial value problems (IVP) of the form
where x′ = dxdt . (8.1) is a first order ordinary differential equation and (8.2) is a particular
point fixed on the solution (in general known as initial condition). The ode together with
the necessary initial conditions is called as an initial value problem. The initial condition
restricts the possible solutions of the given differential equation because a solution of the
initial value problem must satisfy both the ODE and the initial condition.
D = {(t, x) ∶ ∣t − t0 ∣ ≤ α, ∣x − x0 ∣ ≤ β} (8.3)
then the initial-value problem (8.1) and (8.2) has a solution x(t) for ∣t − t0 ∣ < min(α, M
β
),
where M is the maximum of f (t, x) in the rectangle D.
EXAMPLE 1 : Prove that the initial value problem x′ = (t + sin x)2 , x(0) = 3 has a
solution in the interval −1 ≤ t ≤ 1.
67
68 Sanyasiraju V S S Yedida sryedida@iitm.ac.in
8.1.2 Uniqueness
Consider x′ = x2/3 , x(0) = 0 has more than one solution x ≡ 0 and x = 27t 3
.
df
If f and dx are continuous in the rectangle D defined by (8.3), then the initial-value problem
(8.1) and (8.2) has a unique solution in the interval ∣t − t0 ∣ ≤ min(α, M
β
).
In the given example fx is continuous at x = 0.
then the initial-value problem (8.1) and (8.2) has a unique solution in the interval [a, b].
Inequality (8.4) is called a Lipschitz condition in the second variable.
is stronger than continuity because if x2 approaches x1 , then the right-hand side in (8.5)
approaches 0, and this forces g(x2 ) to approach g(x1 ).
The condition (8.5) is weaker than having a bounded derivative. Indeed, if g ′ (x) exists
everywhere and does not exceed L in modulus, then by the Mean-Value Theorem,
Therefore, the sufficient condition for the existence of a unique solution is : Suppose f (t, x)
is defined on a convex set D ⊂ R2 . If a constant L > 0 exists with
∂f
∣ (t, x)∣ ≤ L, for all (t, x) ∈ D
∂x
then f satisfies a Lipschitz condition on D in the variable x with Lipschitz constant L.
Convex set A set D ⊂ R2 is said to be convex if whenever (t1 , x1 ) and (t2 , x2 ) belong
to D, then ((1 − λ)t1 + λt2 , (1 − λ)x1 + λx2 ) also belongs to D for every λ in [0, 1]. That is,
a set is convex provided that whenever two points belong to the set, the entire straight-line
segment between the points is also belongs to the set.
8.1.4 Example 2
Show that the function g(x) = ∑ni=1 ai ∣x − wi ∣ satisfies a Lipschitz condition with the constant
L = ∑ni=1 ∣ai ∣.
Lecture Notes MA5470 Numerical Analysis 69
Solution :
n n
∣g(x1 ) − g(x2 )∣ = ∣ ∑ ai ∣x1 − wi ∣ − ∑ ai ∣x2 − wi ∣ ∣
i=1 i=1
n
= ∣ ∑ ai {∣x1 − wi ∣ − ∣x2 − wi ∣} ∣
i=1
n
≤ ∑ ∣ai ∣ ∣ {∣x1 − wi ∣ − ∣x2 − wi ∣} ∣
i=1
n n
≤ ∑ ∣ai ∣ ∣ {x1 − x2 } ∣ = L ∣x1 − x2 ∣, where L = ∑ ∣ai ∣
i=1 i=1
8.1.5 Example 3
Show that f (t, x) = t ∣x∣ satisfies a Lipschitz condition on the interval D = {(t, x) ∶ 1 ≤ t ≤
2 and 3 ≤ x ≤ 4}.
Solution : For each pair of points (t, x1 ) and (t, x2 ) in D we have
Thus f satisfies a Lipschitz condition on D in the variable y with Lipschitz constant 2. The
smallest value possible for the Lipschitz constant for this problem is L = 2, because, for
example, ∣f (2, 1) − f (2, 0)∣ = ∣2 − 0∣ = 2∣1 − 0∣.
8.1.6 Example 4
Show that there is a unique solution to the initial value problem
Solution : Keeping t constant and applying the Mean Value Theorem to the function
f (t, x) = 1 + t sin(t x), we see, whenever x1 < x2 , a number ξ in (x1 , x2 ) exists with
f (t, x2 ) − f (t, x1 ) ∂f
= (t, ξ) = t2 cos(ξ t)
x2 − x1 ∂x
Thus, ∣f (t, x2 ) − f (t, x1 )∣ = ∣x2 − x1 ∣ ∣t2 cos(ξt)∣ ≤ 4∣x2 − x1 ∣. That is, f satisfies a Lipschitz
condition in the variable x with Lipschitz constant L = 4. Additionally, f (t, x) is continuous
when 0 ≤ t ≤ 2 and −∞ < x < ∞ therefore, a unique solution exists to the given initial-value
problem.
• There exist constants 0 > 0 and k > 0 such that for any , with 0 > > 0, whenever
δ(t) is continuous with ∣δ(t)∣ < for all t in [a, b], and when ∣δ0 ∣ < , the initial-value
problem z ′ (t) = f (t, z) + δ(t), a ≤ t ≤ b, z(a) = α + δ0 has a unique solution z(t) that
satisfies ∣z(t) − y(t)∣ < k for all t in [a, b].
The problem specified above is called a perturbed problem associated with the original IVP.
It assumes the possibility of an error being introduced in the statement of the differential
equation, as well as an error δ0 being present in the initial condition. Numerical methods
will always be concerned with solving a perturbed problem because any round-off error in-
troduced in the representation perturbs the original problem. Unless the original problem is
well-posed, there is little reason to expect that the numerical solution to a perturbed problem
will accurately approximate the solution to the original problem.
8.1.8 Problems
1. Find the two solutions of x′ = x1/3 , x(0) = 0.
√
2. Show that x = t4 and x = 1−t are solutions of the initial-value problem 2x′ = t2 + 4x−t,
2
x(2) = 1. Is this contradicting the theorem on the uniqueness of solution to the initial-
value problems?
(a) f (t, x) = t3
(b) f (t, x) = (1 − t2 )−1/2
(c) f (t, x) = (1 + t2 )−1/2
(d) f (t, x) = (1 + t)−1
√
4. Show that the IVP x′ = ∣x∣, x(0) = 0 has a solution on the entire real line.
5. Show that the IVP x′ = tan x, x(0) = 0 has a solution in the interval ∣t∣ < π4 .
6. Prove that the IVP x′ = t2 +ex , x(0) = 0 has a unique solution in the interval ∣t∣ < 0.351.
7. Show that the IVP x′ = 1 + x + x2 cos t, x(0) = 0 has a solution in the interval ∣t∣ < 13 .
8. Show that the IVP x′ = tx2/3 , x(0) = 1 has a solution in the interval ∣t∣ < 2. Dies it has
more than one solution ?
9. Find the interval in which the IVP x′ = sec x, x(0) = 0 has a unique solution?
Lecture Notes MA5470 Numerical Analysis 71
In this method, using the information of x and its derivatives at t (assumed to exits), the
value of x at its neighboring point is computed using the truncated Taylor series.
x′ = cos t − sin x + t2
x(2) = − sin t − x′ cos x + 2t
x(3) = − cos t − x(2) cos x + (x′ )2 sin x + 2
x(4) = sin t − x(3) cos x + 3x′ x(2) sin x + (x′ )3 cos x so on...
If we decides to stop with x(4) term then the error is committed from the x(5) term on wards
(5) (ξ) where
5
or by remainder theorem the error term (called Local Truncation Error ) is ∆t5! x
ξ ∈ (t, t + ∆t).
starting at t = 1 and fixing the step length of ∆t as 0.01, compute the values of x, x′ ,
x(2) , x(3) and x(4) then substitute them in the Taylor series (8.6) to obtain the value of
x(−1 + .01). Repeating the same until t = 1 gives the required discrete solution of the given
IVP.
If we repeat the exercise with x(1) = 6.42194 and ∆t = −0.01, the result at t = −.99999
can be obtained as 3.00000. The close agreement with the original initial value tells us that
the numerical solution what we have computed is accurate to all the FIVE significant figures.