210 likes | 512 Views
MATH 175: NUMERICAL ANALYSIS II. Lecturer: Jomar F. Rabajante 2 nd Sem AY2012-2013 IMSP, UPLB. 2 nd Method: Taylor Method of Order k. Consider Taylor expansion: From the Taylor Series we can have the Taylor Method of Order k:. 2 nd Method: Taylor Method of Order k.
E N D
MATH 175: NUMERICAL ANALYSIS II Lecturer: Jomar F. Rabajante 2ndSemAY2012-2013 IMSP, UPLB
2nd Method: Taylor Method of Order k Consider Taylor expansion: From the Taylor Series we can have the Taylor Method of Order k:
2nd Method: Taylor Method of Order k The Taylor Method of order k has global error of order k. If a method is of order p, then if we reduce h by half, the global error will be divided by 2p. This means that ODE methods of arbitrary order exist. But, Taylor Method is only used for specialized purposes since it requires extra effort in computing derivatives.
3rd & 4th Method: Trapezoid Method O(h2) • Implicit Trapezoid Method: • Explicit Trapezoid Method (also called improved or modified Euler’s Method):
Explicit Trapezoid Method (also called improved or modified Euler’s Method): Implicit Trapezoid Method is the Corrector Predictor We call these methods as PREDICTOR-CORRECTOR METHODS.
5th & 6th Method: Midpoint Method O(h2) • Implicit Midpoint Method (similar to Euler’s): • Explicit Midpoint Method: where
7th Method: Runge-Kutta MethodsO(hm) for m<4; we need more stages to get higher order (for m>4) • Euler, Trapezoid and Midpoint Methods are R-K methods • Explicit R-K method: R-K stages
7th Method: Runge-Kutta Methods • The famous R-K 4: (4th order R-K) R-K 4 offers a good balance between discretization and roundoff error.
OTHER METHODS (to be discussed later) • Variable Step-size methods (Adaptive) • Methods for Stiff ODEs • Multistep Methods We will now first focus on solving system of ODEs and higher-order ODEs.
SYSTEM OF ODEs Example: 1. Using Euler’s Method:
SYSTEM OF ODEs I also perturbed the parameter: • Using Euler’s Method: let h=0.1 (Solution with crude sensitivity/well-posedness analysis)
Do sensitivity analysis since our solution is prone to round-off error and HUMAN error. Perturbed parameter:
However, even though we got a solution, we should still improve this by making our h smaller. (and use a more sophisticated method)
Using h=0.001 w z
SYSTEM OF ODEs Example: 2. Using R-K 4: To be done in the laboratory.
HIGHER-ORDER ODEs Example 1: Convert this in to a system of ODEs:
HIGHER-ORDER ODEs Example 2: Convert this in to a system of ODEs: