Oundary Alue Roblems: Dr. Johnson
Oundary Alue Roblems: Dr. Johnson
Oundary Alue Roblems: Dr. Johnson
Dr. Johnson
School of Mathematics
Semester 1 2008
O UTLINE
1 R EVIEW
2 B OUNDARY VALUE P ROBLEMS
Condition at Both Ends
Taking a guess
4 S UMMARY
O UTLINE
1 R EVIEW
2 B OUNDARY VALUE P ROBLEMS
Condition at Both Ends
Taking a guess
4 S UMMARY
O UTLINE
1 R EVIEW
2 B OUNDARY VALUE P ROBLEMS
Condition at Both Ends
Taking a guess
4 S UMMARY
O UTLINE
1 R EVIEW
2 B OUNDARY VALUE P ROBLEMS
Condition at Both Ends
Taking a guess
4 S UMMARY
O UTLINE
1 R EVIEW
2 B OUNDARY VALUE P ROBLEMS
Condition at Both Ends
Taking a guess
4 S UMMARY
B OUNDARY CONTITIONS
All ODEs and PDEs require boundary conditions in order
that a solution may exist
In initial value problems, the boundary conditions are all on
one side
This is not always the case, for instance take the following
problem:
d 2y dy
2
+κ + xy = 0
dx dx
with the boundary conditions
B OUNDARY CONTITIONS
All ODEs and PDEs require boundary conditions in order
that a solution may exist
In initial value problems, the boundary conditions are all on
one side
This is not always the case, for instance take the following
problem:
d 2y dy
2
+κ + xy = 0
dx dx
with the boundary conditions
B OUNDARY CONTITIONS
All ODEs and PDEs require boundary conditions in order
that a solution may exist
In initial value problems, the boundary conditions are all on
one side
This is not always the case, for instance take the following
problem:
d 2y dy
2
+κ + xy = 0
dx dx
with the boundary conditions
Y1 = y (x);
dy
Y2 = ;
dx
dY1
= Y2 ;
dx
dY2
= −κY2 − xY1 .
dx
and the boundary conditions are:
Y1 (x = 0) = 0 and Y1 (x = 1) = 0.
Dr. Johnson MATH65241
Review
Boundary Value Problems Condition at Both Ends
Newtons Shooting Method Taking a guess
Summary
W HAT NEXT ?
In order to solve the problem by marching through x we
need to assign a value to Y2 (x = 0)
How to choose a value of Y2 – our choice must satisfy the
boundary condition
2
1.8
1.6
1.4
1.2
y1(x)
1
0.8
0.6
0.4
0.2
0
0 0.2 0.4 0.6 0.8 1
x
Dr. Johnson MATH65241
Review
Boundary Value Problems Condition at Both Ends
Newtons Shooting Method Taking a guess
Summary
W HAT NEXT ?
In order to solve the problem by marching through x we
need to assign a value to Y2 (x = 0)
How to choose a value of Y2 – our choice must satisfy the
boundary condition
2
1.8
1.6
1.4
1.2
y1(x)
1
0.8
0.6
0.4
0.2
0
0 0.2 0.4 0.6 0.8 1
x
Dr. Johnson MATH65241
Review
Boundary Value Problems Condition at Both Ends
Newtons Shooting Method Taking a guess
Summary
O UTLINE
1 R EVIEW
2 B OUNDARY VALUE P ROBLEMS
Condition at Both Ends
Taking a guess
4 S UMMARY
TAKING A GUESS
φ(g) = Y1 (1; g) − 1,
φ(g) = Y1 (1; g) − 1,
O UTLINE
1 R EVIEW
2 B OUNDARY VALUE P ROBLEMS
Condition at Both Ends
Taking a guess
4 S UMMARY
φ(ĝ + dg) = 0
dφ
φ(ĝ + dg) = φ(ĝ) + dg (ĝ) + O(dg 2 )
dg
R EMINDER ...
0.8
Start with a guess x0 = 0.8
0.6
0.4 In order to generate the
0.2 green line, we need the
f(x)
0 gradient of f at x0 = 0.8
-0.2
The new guess is
-0.4
x1 = 0.55625
-0.6
0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
x
R EMINDER ...
0.8
Start with a guess x0 = 0.8
0.6
0.4 In order to generate the
0.2 green line, we need the
f(x)
0 gradient of f at x0 = 0.8
-0.2
The new guess is
-0.4
x1 = 0.55625
-0.6
0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
x
O UTLINE
1 R EVIEW
2 B OUNDARY VALUE P ROBLEMS
Condition at Both Ends
Taking a guess
4 S UMMARY
S ECANT M ETHOD
Our formula to generate new guesses is:
φ(gn )
gn+1 = gn −
φ′ (gn )
φ(gn ) − φ(gn−1 )
φ′ (gn ) =
gn − gn−1
S ECANT M ETHOD
Our formula to generate new guesses is:
φ(gn )
gn+1 = gn −
φ′ (gn )
φ(gn ) − φ(gn−1 )
φ′ (gn ) =
gn − gn−1
O UTLINE
1 R EVIEW
2 B OUNDARY VALUE P ROBLEMS
Condition at Both Ends
Taking a guess
4 S UMMARY
½ ¾ Ã ∂Y2
!
d ∂Y ∂g
= ,
dx ∂g −κ ∂Y ∂Y1
∂g − x ∂g
2
¯ µ ¶
∂Y ¯¯ 0
= .
∂g x=0
¯ 1
∂Y1
φ′ (gn ) = (1; gn )
∂g
½ ¾ Ã ∂Y2
!
d ∂Y ∂g
= ,
dx ∂g −κ ∂Y ∂Y1
∂g − x ∂g
2
¯ µ ¶
∂Y ¯¯ 0
= .
∂g x=0
¯ 1
∂Y1
φ′ (gn ) = (1; gn )
∂g
Y2 0
dY −κY2 − xY1 g
= , Y (x = 0) = 0 .
dx Y4
−κY4 − xY3 1
S UMMARY
S UMMARY