Professional Documents
Culture Documents
Existence and Uniqueness of Solutions of BVPS: Theorem Suppose That F Is Continuous On The Set
Existence and Uniqueness of Solutions of BVPS: Theorem Suppose That F Is Continuous On The Set
Existence and Uniqueness of Solutions of BVPS: Theorem Suppose That F Is Continuous On The Set
Consider the boundary value problems (BVPs) for the second order differential equation of the form
(*) y ′′ fx, y, y ′ , a ≤ x ≤ b, ya and yb .
Under what conditions does a boundary value problem have a solution or has a unique solution?
1. Existence and Uniqueness of Solutions of BVPs:
Theorem Suppose that f is continuous on the set
D x, y, y ′ ; a ≤ x ≤ b, − y , − y ′
and the partial derivatives f y and f y ′ are continuous on D. If
f y x, y, y ′ 0, for all x, y, y ′ in D, and
there exists a constant M such that
f y ′ x, y, y ′ ≤ M for all x, y, y ′ in D,
1
2. The Linear Shooting Method:
Consider the linear boundary value problems of the form:
y ′′ pxy ′ qxy rx, a ≤ x ≤ b, ya , yb
where px, qx and rx are continuous and qx 0 for a ≤ x ≤ b. Consider the solutions of the
following two initial-value problems:
(i) y ′′ pxy ′ qxy rx, a ≤ x ≤ b, ya , y ′ a 0
(**)
(ii) y ′′ pxy ′ qxy, a ≤ x ≤ b, ya 0, y ′ a 1
say, y 1 x and y 2 x. Let yx be the following linear combination of y 1 x and y 2 x :
− y 1 b
yx y 1 x y 2 x
y 2 b
Then yx is the solution of the boundary value problem. Check:
− y 1 b ′′ − y 1 b
y ′′ x y ′′1 x y 2 x pxy ′1 x qxy 1 x rx pxy ′2 x qxy 2 x
y 2 b y 2 b
− y 1 b ′ − y 1 b
px y ′1 x y 2 x qx y 1 x y 2 x rx
y 2 b y 2 b
So, yx is a solution of y ′′ pxy ′ qxy rx. Check the boundary conditions:
− y 1 b − y 1 b
ya y 1 a y 2 a 0
y 2 b y 2 b
− y 1 b
yb y 1 b y 2 b .
y 2 b
This suggests that a boundary value problem can be solved by solving two (independent) initial-value
problems in (**).
Review: Solve a second-order initial-value problem:
y ′′ fx, y, y ′ , ya 0 , y ′ a 1 .
Let u 1 y 1 , and u 2 y ′1 . Then above second-order differential equation for y becomes the following
system of two first-order differential equation in u 1 and u 2 :
u ′1 u 2
, a ≤ x ≤ b, u 1 a 0 , u 2 a 1 .
u ′2 f 1 x, u 1 , u 2
2
Example Rewrite the initial-value problem for the system of 2 second-order differential equations
y ′′1 y ′1 − 2y ′2 2y 1 − y 2 t
, y 1 0 1, y 2 0 −1, y ′1 0 2, y ′2 0 3
y ′′2 − 3y ′1 y 1 4y 2 2 sint
3
(i) y ′′1 − 4x y ′1 − 2 y 1 2 ln x, 1 ≤ x ≤ 2, y 1 1 1 , y ′ 1 0
1
x2 x2 2
(ii) y ′′2 − 4x y ′2 − 2 y 2 , 1 ≤ x ≤ 2, y 2 1 0, y ′ 1 1
2
x2
Set up the initial-value problem for a system of 4 1st-order differential equations:
u ′1 u 2
u ′2 − 4x u 2 − 22 u 1 22 ln x
x x , u 1 1 1 , u 2 1 0, u 3 1 0, u 4 1 1.
′ 2
u3 u4
u ′4 − 4x u 4 − 22 u 3
x
2 2 2 2
Shooting Method: y"=-4/x*y-2/x *y+2*ln(x)/x , y(1)=1/2,y(2)=ln2 Shooting Method: y"=-4/x*y-2/x *y+2*ln(x)/x , y(1)=1/2,y(2)=ln2
-5
0.8 10
0.7 -6
10
|y(x i)-y i|
2 2 -8
0.4 IVP: y "=-4/x*y -2/x *y +2*ln(x)/x , y (1)=1/2,y (1)=0 10
1 1 1 1 1
0.3 -9
10
0.2
-10
10
2
0.1 IVP: y "=-4/x*y -2/x *y , y (1)=0, y (1)=1
2 2 2 2 2
-11
0 10
1 1.2 1.4 1.6 1.8 2 1 1.2 1.4 1.6 1.8 2
x
help ode45
ODE45 Solve non-stiff differential equations, medium order method.
[TOUT,YOUT] ODE45(ODEFUN,TSPAN,Y0) with TSPAN [T0 TFINAL] integrates
Notes: ode45.m is an MatLab building-in function which solves initial-value problems for systems of
n first-order differential equations:
u ′1 f 1 x, u 1 , . . . , u n
, a ≤ x ≤ b, u 1 a 1 , . . . , u n a n .
u ′n f n x, u 1 , . . . , u n
It is called by:
[xv,uv]ode45(’funsysa’,[a b],[ 1 , . . . , n ]); where funsysa.m is a user-provided Matlab program that
x0 a
x1
evaluates functions of the system at x. The outputs are the vector xv and
x N−1
xN b
u 10 u n0
u 11 u n1
uv . That is, for a ≤ x ≤ b,
u 1N u nN
y 1 x ≈ u 10 , u 11 , . . . , u 1N , . . . , y n x ≈ u n0 , u n1 , . . . , u nN .
5
Exercises:
1. For each of the following boundary value problems, determine (1) if it is linear; and (2) if it has a
unique solution.
(1) y ′′ 1x y ′ 32 y lnxx − 1, 1 ≤ x ≤ 2, y1 y2 0
x
(2) y ′′ y 3 − yy ′ , 1 ≤ x ≤ 2, y1 12 , y2 13
(3) y ′′ y ′ 2y − ln x 3 − 1x , 2 ≤ x ≤ 3, y2 12 ln2, f3 13 ln 3
2. Consider the boundary value problem: y ′′ y 0, 0 ≤ x ≤ b, y0 0, yb B. Find choices for b
and B so that this boundary value problem has
(1) no solution;
(2) exactly one solution;
(3) infinitely many solutions.
3. Rewrite the initial-value problem for the system of 2 second-order differential equations
y ′′1 y ′1 y ′2 − 2y 1 − y 2 e 2t
, y 1 0 1, y 2 0 3, y ′1 0 −1, y ′2 0 3
y ′′2 − 3y ′1 − y 1 3y 2 2 cost
as an initial-value problem for a system of 4 first-order differential equations.
6. Let p represent the electrostatic potential in r between two concentric metal spheres of radii R 1 and R 2
where R 1 R 2 . The potential of the inner sphere is kept constant at V 1 volts, and the potential of the
6
outer sphere is 0 volts. The potential in the region between the two spheres is governed by Laplace
equation, which, in this particular application, reduces to
d2p dp
2r 0, R 1 ≤ r ≤ R 2 , pR 1 V 1 and pR 2 0.
dr 2 dr
Approximate the potential for the case where R 1 2 inches, R 2 4 inches, and V 1 110 volts.