



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Nonlinear Boundary Value ProblemsDoes Well-Behaved Solutions Exist?!?ODE^ Ã^ Nonlinear Algebraic System
Example
Lecture Notes #20 — Nonlinear Equations
Peter Blomgren, 〈[email protected]
Department of Mathematics and Statistics
Dynamical Systems GroupComputational Sciences Research Center San Diego State UniversitySan Diego, CA 92182-7720 http://terminus.sdsu.edu/^ Spring 2009
Peter Blomgren,
〉^ Nonlinear Equations
— (1/19)
Nonlinear Boundary Value ProblemsDoes Well-Behaved Solutions Exist?!?ODE^ Ã^ Nonlinear Algebraic System
Example
Outline^1 Nonlinear Boundary Value Problems
An Alternative Model For Beam-Bending Model Problem: General 2nd Order Nonlinear BVP 2 Does Well-Behaved Solutions Exist?!? Finite-Time Blowup... Existence and Uniqueness 3 ODE^ Ã^ Nonlinear Algebraic System Finite Differencing Nonlinear System, and Uniqueness Condition The Return of Newton’s Method... 4 Example Code Numerical Results Peter Blomgren,
〉^ Nonlinear Equations
— (2/19)
Nonlinear Boundary Value ProblemsDoes Well-Behaved Solutions Exist?!?ODE^ Ã^ Nonlinear Algebraic System
Example
An Alternative Model For Beam-BendingModel Problem: General 2nd Order Nonlinear BVP
Nonlinear Boundary Value Problems^ So far we have exclusively looked at Linear BVPs.We will now consider some non-linear problems.Burden-Faires [p. 672] suggests that
(^1) √w 3 ′1 +^ w^ (x)^
′′ (x) =
S w^ (x EI
qx) + 2 EI (x^ −^ L ),^ w^ (0) =
w^ (L) = 0
is a more appropriate equation for the deflection of a supportedbeam subject to uniform loading.Note that the original forth order beam equation has beenintegrated twice to give a second order equation.^ Peter Blomgren,
〉^ Nonlinear Equations
— (3/19)
Nonlinear Boundary Value ProblemsDoes Well-Behaved Solutions Exist?!?ODE^ Ã^ Nonlinear Algebraic System
Example
An Alternative Model For Beam-BendingModel Problem: General 2nd Order Nonlinear BVP
Nonlinear BVPs, II
Quite a few of the linear models we use are simplifications ofmore accurate nonlinear models. Usually the linear model is valid in a limited regime (
e.g.^ small
deflection of the beam), whereas the non-linear models havelarger regimes of validity. Since closed-form solutions for non-linear equations are hardto find, finding numerical solutions seem like a good idea... Peter Blomgren,
〉^ Nonlinear Equations
— (4/19)
Nonlinear Boundary Value ProblemsDoes Well-Behaved Solutions Exist?!?ODE^ Ã^ Nonlinear Algebraic System
Example
An Alternative Model For Beam-BendingModel Problem: General 2nd Order Nonlinear BVP
General Second Order Non-linear BVP
We are going to look at the general second order nonlinearBVP′′ y^ (x) =
f^ (x,^ y^ (
′x), y (x )),^ x^
∈^ [a,^ b]
,^ y^ (a) =
yy^ (a^
b) =^ yb
We are going to apply our trusted finite difference methods tothis problem. In this setting we get a
non-linear system of algebraic
equations. In order to solve this system we need an iterative process. Peter Blomgren,
〉^ Nonlinear Equations
— (5/19)
Nonlinear Boundary Value ProblemsDoes Well-Behaved Solutions Exist?!?ODE^ Ã^ Nonlinear Algebraic System
Example
Finite-Time Blowup...Existence and Uniqueness
Controlling the Solution?
⇒^ Need For Analysis
Even a very benign-looking non-linear ODE can produce solutionswhich “blow up” (reach infinite values). Consider the initial valueproblem:
′ y (t) =
(^2) t,^ y (0) =^ y
which has the solution
y^ (t) =^
1 1 −^ t y 0
and
lim^ y^ (t^1 t→^ y^0
We need some
restrictions
in order to guarantee the existence of a
unique solution...^ Peter Blomgren,
〉^ Nonlinear Equations
— (6/19)
Nonlinear Boundary Value ProblemsDoes Well-Behaved Solutions Exist?!?ODE^ Ã^ Nonlinear Algebraic System
Example
Finite-Time Blowup...Existence and Uniqueness
Existence and Uniqueness of the Solution^ We are studying′′^ y^
(x) =^ f
(x,^ y^ (x
′), y (x)) ,^ x^ ∈
[a,^ b],^
y^ (a) =^
yy^ (ba^
) =^ yb
If we assume:^ [1]^
f^ and the partial derivatives
fandy^
′^ fare continuous ony
′x, y , y ) : a^ ≤^ x^
≤^ b,^ −∞
<^ y^ <
′^ < y <
[2]^ fy
(x,^ y^ ,^ y
′ )^ ≥^ δ >
0 on^ D
[3]^ Constants
k^ and^
L^ exist, with the properties k^ =^ max^ (x,y
|f′ ,y )∈D (x,^ y^ ,^ yy
′ )|^ and
max|′ (x,y^ ,y^ )∈D^
f′^ (x,^ y^ y^
′, y )
Then the
existence
of a unique solution
is guaranteed
Peter Blomgren,
〉^ Nonlinear Equations
— (7/19)
Nonlinear Boundary Value ProblemsDoes Well-Behaved Solutions Exist?!?ODE^ Ã^ Nonlinear Algebraic System
Example
Finite DifferencingNonlinear System, and Uniqueness ConditionThe Return of Newton’s Method...
Constructing the Nonlinear Algebraic System^ We subdivide the interval [
a,^ b] into (
N^ −^ 1) subintervals:
x=^ a^ n^
1)h,^ n
(bh = −^ a) (N^ −^ 1)
We apply second-order centered differences and get^ y−n+^
2 y+^ yn^
n−^1 =^ f (^2) h
(^ x,^ ynn
y−n+1^ ,
yn−^1 − 2 h^
(^2) h′′′ y^ ( 2
) η)^ +^ n (^2) h(4)y^ ( 12 ξ)n
where^ η
, ξ∈^ nn^ (x,^ xn−^1
).n+
The error terms make the assumption that
y^ (x)^ ∈
(^4) C [a,^ b
The finite difference method is the result of dropping the errorterms, and adding the boundary conditions
y=^ y^1 a
,^ y=N^
yb
Peter Blomgren,
〉^ Nonlinear Equations
— (8/19)
Nonlinear Boundary Value ProblemsDoes Well-Behaved Solutions Exist?!?ODE^ Ã^ Nonlinear Algebraic System
Example
CodeNumerical Results
Example
′′^ − y+^ e xy^ + sin(
′y) =^0 ,^ x^ ∈
y(^1 ) =^
y(^2 ) =
% Nonlinear BVP : % Example 1%% y’’ + exp(-xy) + sin(y’) = 0% y(1) = y(2) = 0 : a = 1; ya = 0;b = 2; yb = 0; : TOL = 0.00000001;N = 64;h = (b-a)/(N-1);x = (a:h:b).’;y = ya+(yb-ya)/(b-a)*(x-a);y(1) = ya;y(N) = yb; :^ Peter Blomgren,
〉^ Nonlinear Equations
— (13/19)
Nonlinear Boundary Value ProblemsDoes Well-Behaved Solutions Exist?!?ODE^ Ã^ Nonlinear Algebraic System
Example
CodeNumerical Results
Example, II^ f = inline(’-exp(-x.y)-sin(yp)’,’x’,’y’,’yp’);^ :^ f^ y = inline(’x . exp(-x.y)’,’x’,’y’,’yp’);^ :^ f^ yp = inline(’-cos(yp)’,’x’,’y’,’yp’);^ :^ ERR = TOL2;while( ERR > TOL )
yp = [0; (y(3:N)-y(1:(N-2)))/(2h); 0];ypp = [0; y(1:(N-2)) - 2y(2:(N-1)) + y(3:N); 0];F = ypp - h*h * f(x,y,yp);F(1) = 0;F(N) = 0;J = zeros(N,N);J(1,1) = 1;J(N,N) = 1; Peter Blomgren,
〉^ Nonlinear Equations
— (14/19)
Nonlinear Boundary Value ProblemsDoes Well-Behaved Solutions Exist?!?ODE^ Ã^ Nonlinear Algebraic System
Example
CodeNumerical Results
Example, III
for n = 2:(N-1)J(n,n-1) = 1 + h/2 * f
yp( x(n), y(n), yp(n) ); J(n,n) = -2 - h*h * f
y( x(n), y(n), yp(n) ); J(n,n+1) = 1 - h/2 * f
yp( x(n), y(n), yp(n) );
enddeltaY = -J
\F; plot(x,F,’b-’, x,y,’r-’)ERR = norm(deltaY)y = y + deltaY;end Peter Blomgren,
〉^ Nonlinear Equations
— (15/19)
Nonlinear Boundary Value ProblemsDoes Well-Behaved Solutions Exist?!?ODE^ Ã^ Nonlinear Algebraic System
Example
CodeNumerical Results
Results^1
1.2^ 1.
1.^
1.8^2
0.2^ Iteration 1, Error 0.620.15 0.1 0.05^0
1 1.
1.^
1.6^ 1.
2
0.2^ Iteration 2, Error 5.3e-30.15 0.1 0.05^0
Peter Blomgren,
〉^ Nonlinear Equations
— (16/19)
Nonlinear Boundary Value ProblemsDoes Well-Behaved Solutions Exist?!?ODE^ Ã^ Nonlinear Algebraic System
Example
CodeNumerical Results
Results^1
1.2^ 1.
1.^
1.8^2
0.2^ Iteration 3, Error 4.2e-70.15 0.1 0.05^0
1 1.
1.^
1.6^ 1.
2
0.2^ Iteration 4, Error 3.2e-150.15 0.1 0.05^0
Peter Blomgren,
〉^ Nonlinear Equations
— (17/19)
Nonlinear Boundary Value ProblemsDoes Well-Behaved Solutions Exist?!?ODE^ Ã^ Nonlinear Algebraic System
Example
CodeNumerical Results
Next Time — A Different Point of View^ A different approach to Boundary Value Problems:The Rayleigh-Ritz Method / the
Finite Element Method.
The Boundary Value Problem is reformulated as a problem ofchoosing, from the set of all sufficiently differentiable functionssatisfying the boundary conditions, the function which minimizes acertain integral.^ Peter Blomgren,
〉^ Nonlinear Equations
— (18/19)
Nonlinear Boundary Value ProblemsDoes Well-Behaved Solutions Exist?!?ODE^ Ã^ Nonlinear Algebraic System
Example
CodeNumerical Results
Project Presentation Schedule...^ Peter Blomgren,
〉^ Nonlinear Equations
— (19/19)