Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Solving ODE.

Slides:



Advertisements
Similar presentations
Formal Computational Skills
Advertisements

Ordinary Differential Equations
Chapter 6 Differential Equations
Lecture 5 Newton-Raphson Method
Roundoff and truncation errors
CSE 330: Numerical Methods
Open Methods Chapter 6 The Islamic University of Gaza
ROOTS OF EQUATIONS Student Notes ENGR 351 Numerical Methods for Engineers Southern Illinois University Carbondale College of Engineering Dr. L.R. Chevalier.
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Laplace Transforms.
Chapter 2: Second-Order Differential Equations
1cs542g-term Notes. 2 Solving Nonlinear Systems  Most thoroughly explored in the context of optimization  For systems arising in implicit time.
Open Methods Chapter 6 The Islamic University of Gaza
Chapter 4 Roots of Equations
A second order ordinary differential equation has the general form
Open Methods (Part 1) Fixed Point Iteration & Newton-Raphson Methods
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
8-1 Chapter 8 Differential Equations An equation that defines a relationship between an unknown function and one or more of its derivatives is referred.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Martin Mendez UASLP Chapter 61 Unit II.
Open Methods Chapter 6 The Islamic University of Gaza
Numerical Solutions of Ordinary Differential Equations
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Ordinary Differential Equations Final Review Shurong Sun University of Jinan Semester 1,
Differential Equations and Boundary Value Problems
Lecture 2 Differential equations
Today’s class Numerical Integration Newton-Cotes Numerical Methods
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 2 Roots of Equations Why? But.
ISAT 412 -Dynamic Control of Energy Systems (Fall 2005)
1 Chapter 8 Ordinary differential equation Mathematical methods in the physical sciences 3rd edition Mary L. Boas Lecture 5 Introduction of ODE.
EE3561_Unit 8Al-Dhaifallah14351 EE 3561 : Computational Methods Unit 8 Solution of Ordinary Differential Equations Lesson 3: Midpoint and Heun’s Predictor.
Integration of 3-body encounter. Figure taken from
MECN 3500 Inter - Bayamon Lecture 3 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Performance & Stability Analysis.
CSE 3802 / ECE 3431 Numerical Methods in Scientific Computation
Signals and Systems 1 Lecture 8 Dr. Ali. A. Jalali September 6, 2002.
Chapter 3 Roots of Equations. Objectives Understanding what roots problems are and where they occur in engineering and science Knowing how to determine.
Numerical Methods for Engineering MECN 3500
Scientific Computing Multi-Step and Predictor-Corrector Methods.
CHAPTER 3 NUMERICAL METHODS
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Advanced Engineering Mathematics by Erwin Kreyszig Copyright  2007 John Wiley & Sons, Inc. All rights reserved. Engineering Mathematics Lecture 05: 2.
Newton’s Method, Root Finding with MATLAB and Excel
MECN 3500 Inter - Bayamon Lecture 6 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Lecture 5 - Single Variable Problems CVEN 302 June 12, 2002.
Using Partial Fraction Expansion
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
ECE 576 – Power System Dynamics and Stability Prof. Tom Overbye Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Ordinary Differential Equations
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapters 22 and 23.
Differential Equations
DYNAMIC BEHAVIOR OF PROCESSES :
CHAPTER 3 NUMERICAL METHODS
Part 7 - Chapter 25.
Laplace Transforms Chapter 3 Standard notation in dynamics and control
Advanced Engineering Mathematics 6th Edition, Concise Edition
Ordinary Differential Equations
Chapter 22.
Class Notes 18: Numerical Methods (1/2)
Class Notes 19: Numerical Methods (2/2)
MATH 2140 Numerical Methods
Chapter 6.
Numerical Analysis Lecture 45.
Chapter 27.
Computers in Civil Engineering 53:081 Spring 2003
Part 7 - Chapter 25.
SKTN 2393 Numerical Methods for Nuclear Engineers
Chapter 6.
1 Newton’s Method.
Presentation transcript:

Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Solving ODE

Outline of Today’s Lecture Review SIMULINK Two common mathematical problems is controls Numerical Methods Newton Raphson Homogeneous Solution Euler Method Runge Kutta

Simulink

SIMULINK

Two Mathematical Problems Frequently Encountered in Controls Find the roots of an equation Methods Trial and Error (bracketing methods add a bit of science to this) Graphics Closed form solutions (e.g.: quadratic formula) Newton Raphson Find the solution at a given time for given conditions Various differential and difference equations analytic solutions (sometimes reformulated as find the roots problem) Numerical Methods Newton Cotes Methods (trapezoidal rule, Simpson’s rule. etc. for integration) Euler’s Method Runga Kutta/Butcher Methods Many other techniques (Adams-Bashforth, Adams-Milne, Hermite–Obreschkoff, Fehlberg, Conjugate Gradient Methods, etc.)

Numerical Methods Solutions can be approximated using numerical methods Why Numerical Methods? Analytical methods may not exist to solve for the exact roots or the exact solution Use of computers Flexibility of making changes

Numerical Methods Numerical methods follow the procedure Step1: Initialize: Select some initial value Step2: Estimate using (guess, some analytical technique) a new value at increment “i” Step 3: Is the system converging? If not, use something else. We usually know a priori whether a method will converge or not form mathematics. Therefore, this step is often omitted. Step 4: Is the change from the previous value to current value smaller than our acceptable error? If not, make the current value the previous value and return to step 2. If so, stop and accept the new value as the solution.

Newton Raphson Method for finding roots Probably the most common numerical technique simple efficient flexible It can be shown from a truncated Taylor’s Series that Provided that the slope at the test points is consistent, we can iterate to a solution within our error tolerance t f(t) f(t i ) titi t i+1 Problems occur if the slope reverses sign such as in an oscillation or becomes very flat

Example Find the roots of To within 0.01 of the value of s There appears to be a crossing between -2 and 0, but where?

ODE for Linear Control Theory In Linear Control Theory, the equations that are encountered are almost always of the form with constant coefficients subject to initial conditions. Most problems are 2nd order. The electric motor example: Subject to {V a (0), i a (0)=0 and  (0) = 0}

Solution Methods To solve We can use Reduction in order Undetermined coefficients Variation of parameters Laplace Transforms Superposition of particular integrals Cauchy-Euler equation Numerical methods

Reduction of Order The object is to reduce the order of the equation by substitutions until it can be solved Example: A hanging cable with a weight of w per unit length under tension T: W H T  x y s

Homogenous Case When we form the characteristic equation and solve for its roots We have three possible outcomes for the roots that we must consider: 1) Real Distinct Roots : for p distinct real roots, the solution term is of the form 2) Repeated Real Roots: Assume roots r and r+1 are repeated, that is, Then the term in the solution corresponding to the repeated root is and if there were v repeated roots of the same value, the term would be 3) Complex Conjugate Roots: Assume that roots, The corresponding term of the solution is Therefore the complete solution accounting for all possible roots is

Homogenous Example A weight of 15 Kgf is supported (x = 0, at rest,) by a spring with a spring rate of 50 N/m. At t = 0, the weight is extended by 20 centimeters and released. Model and solve.

Euler Method Our goal is to solve equations of the form The theory for the Euler method is the same as that of the Newton Raphson Method: Rather than now solve for an axis crossing, we predict where the next value of the curve will be and then Make successive estimates of y i+1 yiyi xixi Prediction Error } y i+1 x i+1 step h }

Example

Try a smaller time step, say, h = 0.01seconds

Runge Kutta/Butcher Method Has its origins in a 2 variable Taylor Series Expansion The function is called the increment function RK4 is a four factor expansion of the incrementing function For RK4: Butcher’s method uses 5 factors is more accurate than RK4 at a given time step

Example

The result of the RK4 at h = 0.1 is essentially the same as the analytic solution:

Summary Models for Control Systems are either differential equation or difference equations The problems we commonly see will be Finding the roots of the equation Finding the trajectory or path of the equation over time While we have a number of analytical techniques to find exact results, we cannot address all of the equations encountered Numerical methods for finding roots and for trajectories are most commonly used Newton Raphson for finding roots Methods such as the Runge Kutta 4 are used for trajectories Next Class: Analyzing stability