MAE 384 Numerical Methods for Engineers

Similar documents
5.1 Introduction to the Graphs of Polynomials

Properties of Quadratic functions

Welcome to MTH 308 A/B!! Principles of Numerical Computation / Numerical Analysis and Scientific Computing

The Bisection Method versus Newton s Method in Maple (Classic Version for Windows)

Supplemental 1.5. Objectives Interval Notation Increasing & Decreasing Functions Average Rate of Change Difference Quotient

Quadratic Functions. *These are all examples of polynomial functions.

Warm-Up Exercises. Find the x-intercept and y-intercept 1. 3x 5y = 15 ANSWER 5; y = 2x + 7 ANSWER ; 7

6.4 Vertex Form of a Quadratic Function

3.7. Vertex and tangent

Algebra 2 Honors Lesson 10 Translating Functions

CHAPTER 6 Quadratic Functions

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s.

College Algebra. Cartesian Coordinates and Graphs. Dr. Nguyen August 22, Department of Mathematics UK

CVEN 302. Computer Applications in Engineering and Construction. Dr. Tony Cahill Environmental and Water Resources Division

3.1 INTRODUCTION TO THE FAMILY OF QUADRATIC FUNCTIONS

Computational Physics PHYS 420

MAT128A: Numerical Analysis Lecture One: Course Logistics and What is Numerical Analysis?

f( x ), or a solution to the equation f( x) 0. You are already familiar with ways of solving

Linear Algebra Math 203 section 003 Fall 2018

Introduction to Computer Programming with MATLAB Calculation and Programming Errors. Selis Önel, PhD

Columbus State Community College Mathematics Department Public Syllabus. Course and Number: MATH 1172 Engineering Mathematics A

Core Mathematics 1 Transformations of Graphs

Math Homework 3

CSE 417 Practical Algorithms. (a.k.a. Algorithms & Computational Complexity)

9.1: GRAPHING QUADRATICS ALGEBRA 1

AP Calculus AB Unit 2 Assessment

9.1 Linear Inequalities in Two Variables Date: 2. Decide whether to use a solid line or dotted line:

Huei-Huang Lee. Programming with MATLAB2016 SDC ACCESS CODE. Better Textbooks. Lower Prices. UNIQUE CODE INSIDE

More Ways to Solve & Graph Quadratics The Square Root Property If x 2 = a and a R, then x = ± a

Teaching numerical methods : a first experience. Ronojoy Adhikari The Institute of Mathematical Sciences Chennai.

Cubic Splines By Dave Slomer

PROGRAMMING AND ENGINEERING COMPUTING WITH MATLAB Huei-Huang Lee SDC. Better Textbooks. Lower Prices.

Math 2260 Exam #1 Practice Problem Solutions

Pre Calculus 12 Final Exam With Answers

EXERCISE SET 10.2 MATD 0390 DUE DATE: INSTRUCTOR

Topic 6: Calculus Integration Volume of Revolution Paper 2

Unit 2: Function Transformation Chapter 1. Basic Transformations Reflections Inverses

Name: Chapter 7 Review: Graphing Quadratic Functions

Math-2. Lesson 3-1. Equations of Lines

CMPT 126: Introduction to Computing Science and Programming Fall 2007, Harbour Centre

Lecture 1. Course Overview, Python Basics

3.1 Quadratic Functions and Models

Introduction to Computational Mathematics

An Introduction to Numerical Analysis

Engineering Analysis ENG 3420 Fall Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00

MS6021 Scientific Computing. MatLab and Python for Mathematical Modelling. Aimed at the absolute beginner.

CURVE SKETCHING EXAM QUESTIONS

Put your initials on the top of every page, in case the pages become separated.

CS321 Introduction To Numerical Methods

Name: Signature: Section and TA:

Polynomial and Rational Functions

Problem Possible Points Points Earned Problem Possible Points Points Earned Test Total 100

: Dimension. Lecturer: Barwick. Wednesday 03 February 2016

Core Mathematics 3 Functions

: What is Finite Element Analysis (FEA)?

QUADRATIC FUNCTIONS. PROTOTYPE: f(x) = ax 2 + bx + c. (1) The leading coefficient a 0 is called the shape parameter.

Math (Spring 2009): Lecture 5 Planes. Parametric equations of curves and lines

Math 52 - Fall Final Exam PART 1

1) Complete problems 1-65 on pages You are encouraged to use the space provided.

The following information is for reviewing the material since Exam 3:

Math 340 Fall 2014, Victor Matveev. Binary system, round-off errors, loss of significance, and double precision accuracy.

Core Mathematics 1 Graphs of Functions

Calculus (Math 1A) Lecture 1

Chapter P Preparation for Calculus

Part A: Course Outline

Midterm Exam Review. CS 2420 :: Fall 2016 Molly O'Neil

EE/AA 578: Convex Optimization

Functions. Edexcel GCE. Core Mathematics C3

Lecture 1. Course Overview, Python Basics

CS 6210 Fall 2016 Bei Wang. Review Lecture What have we learnt in Scientific Computing?

Classification of Optimization Problems and the Place of Calculus of Variations in it

Why are soda cans shaped the way they are?

College Algebra Exam File - Fall Test #1

CSC 015: FUNDAMENTALS OF COMPUTER SCIENCE I

UNIT 3 EXPRESSIONS AND EQUATIONS Lesson 3: Creating Quadratic Equations in Two or More Variables

Notes Packet on Quadratic Functions and Factoring Graphing quadratic equations in standard form, vertex form, and intercept form.

Reals 1. Floating-point numbers and their properties. Pitfalls of numeric computation. Horner's method. Bisection. Newton's method.

2.2 Transformers: More Than Meets the y s

Truncation Errors. Applied Numerical Methods with MATLAB for Engineers and Scientists, 2nd ed., Steven C. Chapra, McGraw Hill, 2008, Ch. 4.

Unit: Quadratic Functions

CITS2401 Computer Analysis & Visualisation

Education Resources. This section is designed to provide examples which develop routine skills necessary for completion of this section.

DOWNLOAD PDF BIG IDEAS MATH VERTICAL SHRINK OF A PARABOLA

2/3 Unit Math Homework for Year 12

Wednesday 18 May 2016 Morning

Lesson 2 / Overview. Large Group Introduction

Euler s Method for Approximating Solution Curves

Table of Contents. Introduction.*.. 7. Part /: Getting Started With MATLAB 5. Chapter 1: Introducing MATLAB and Its Many Uses 7

A GEOMETRIC INTERPRETATION OF COMPLEX ZEROS OF QUADRATIC FUNCTIONS

1.00 Lecture 19. Numerical Methods: Root Finding

Math 2280: Introduction to Differential Equations- Syllabus

Thursday 1/8 1 * syllabus, Introduction * preview reading assgt., chapter 1 (modeling) * HW review chapters 1, 2, & 3

A function: A mathematical relationship between two variables (x and y), where every input value (usually x) has one output value (usually y)

1

over The idea is to construct an algorithm to solve the IVP ODE (9.1)

2.1 Quadraticsnts.notebook. September 10, 2018

4.7 Approximate Integration

ME451 Kinematics and Dynamics of Machine Systems

INF 315E Introduction to Databases School of Information Fall 2015

Introduction to Multigrid and its Parallelization

Transcription:

MAE 384 Numerical Methods for Engineers Instructor: Huei-Ping Huang office: ERC 359, email: hp.huang@asu.edu (Huei rhymes with way ) Tu/Th 9:00-10:15 PM WGHL 101 Textbook: Numerical Methods for Engineers and Scientists: An Introduction with Applications Using Matlab, 2nd edition Gilat and Subramaniam, Required Office hours: Tuesday 10:30-12:00, Wednesday 2:00-3:00, or by appointment

Course website: http://www.public.asu.edu/~hhuang38/mae384.html Posting of homework + solutions Update of course/exam schedule Supplementary course material & slides

Please review: (1) Calculus and ordinary differential equation (2) Linear algebra (3) Matlab Self study: Ch. 2, Ch. 4 (sec. 4.1-4.4), and Appendix A of G&S textbook Review of calculus & differential equation will be very useful for the second half of the course - More difficult; Separates A's from B's Quick exercise: Work through Example 3-2 in G&S textbook and make sure every step in that example is transparent to you. If not, consult Calculus textbooks.

Course outline Part I Basic numerical methods (Ch. 1, 3-9 of Galit & Subramaniam) Overview and numerical errors Nonlinear equations System of linear equations (matrix equation, eigenvalue problem) Curve fitting and interpolation Numerical differentiation and integration Ordinary differential equation Initial value problem Boundary value problem Part II Introduction to Partial Differential Equation (Lecture note) Analytic solution of PDE Numerical solution of PDE

Grade: 50% Homework (5-6 assignments) 20% Mid-term (One exam) 30% Final See course website for projected time line for HW & exams Exams are open book, open note. Only basic calculators are allowed.

Matlab related MAE 215 (Intro to Computer Programming in Matlab) is becoming a prerequisite of this course. You are strongly encouraged to survey the material. This is a course on Numerical Methods, not Computer Programming BUT... Computer programming is extremely useful for performing lengthy, and often repetitive, calculations that arise from the applications of almost all numerical methods The materials related to Matlab will be excluded from the exams. They will however be very useful for homework.

Exams : One midterm + final Laptops, programmable calculators, hand-held devices with programming functions will not be allowed Examples of calculators that are permitted for exams: Typical cost ~ $10

A quick overview Slides will be posted at http://www.public.asu.edu/~hhuang38/mae384.html (Don't worry about the details. They will be explained in later lectures.)

Why study numerical methods? Most ( > 99.9%) of real world problems in science/engineering are complicated enough that they can only be solved numerically Analytic (exact, closed-form) solutions - the kind of "math" you have been learning all the way - are in fact very rare. Nevertheless, these gems are the "core truth" that helps us understand the structure of the mathematical problems and test the integrity of our numerical schemes.

Analytic vs. numerical solutions - example Quadratic equation a x 2 b x c = 0 2 b b 4 a c analytic solutions : x = ± 2a 2a It works for any set of values of (a,b,c) -- powerful It tells us that real solutions exist only when b 2 4 a c 0 - The properties of the solutions are transparent

Numerical solution: -- Can only deal with a given set of (a,b,c) at a time -- Solution is approximate; Error estimate is needed We want the computer to do repeated search for the solutions, but not blindly. A clear set of rules ("steps" that can be repeated over and over again) has to be designed based on sound mathematical reasoning. Often, a good "numerical scheme" would guarantee a solution at a desirable level of accuracy.

Numerical solution - quadratic equations -- Always useful to "visualize" the problem before solving it f(x) = ax2 + bx + c is a parabola The real solutions of ax2 + bx + c = 0 are the intersections of the parabola and the zero line (x-axis) Examples Green: 2 x2 + 3 x + 12 = 0 has no real solutions; No intersection Blue: 2 x2 + 3 x 7 = 0 has two real solutions; Two intersections ---> Let's try to find a solution to this equation

Numerical solution: f(x) = ax2 + bx + c is a parabola The real solutions of ax2 + bx + c = 0 are the intersections of the parabola and the zero line (x-axis) If X is a solution, and x1 and x2 are two points immediately to its left and right on the x-axis, f(x1) and f(x2) will have opposite signs In other words, if f(x1) and f(x2) have opposite signs, a solution falls within the interval (x1, x2). The goal of our numerical scheme is to systematically refine this interval.

A numerical scheme (Bisection method) 1. Pick two points, x1 and x2, such that f(x1) and f(x2) have opposite signs (this has to be done manually) 2. "Bisect" the interval, (x1, x2), into (x1, xm) and (xm, x2), where xm is the mid-point of the original interval. Keep the half interval for which f(x) retains opposite signs at the two end points. 3. Repeat step 2 until the refined interval is short enough (depending on how accurate you want the solution to be). The mid-point of this interval is our numerical solution. The interval itself is the "error bar". The "Repeat step 2" is where a computer's brute force can provide great help, but the numerical scheme is the soul of the procedure.

Example: Solve f(x) = 0 f(x) 2 x2 + 3 x 7 Analytic solutions: x = 3± 65 / 4, x = 2.76556443... and 1.26556443... Numerical solution: (for demonstration, just the positive solution) Observe that f(0) = 7 < 0 and f(2) = 7 > 0 => Pick (0,2) as initial interval that contains a solution bisect (0,2) bisect (1,2) bisect (1, 1.5) bisect (1.25, 1.5) f(1) = 2 < 0 f(1.5) = 2 > 0 f(1.25) = 0.125 < 0 f(1.375) = 0.3828125 > 0...... => pick (1, 2) as the refined interval => pick (1, 1.5) => pick (1.25, 1.5) => pick (1.25, 1.375) After 9 iterations, the interval is refined into (1.2578125, 1.265625) If we stop here, the numerical solution is x = 1.26171875± 0.00390625 After 20 iterations, it is improved to x = 1.26556587 ± 0.00000191

The procedure for the numerical solution looks cumbersome, nothing of the elegance of the analytic solution. It is also inefficient compared to the analytic solution. So, why bother? As the mathematical problem becomes more complicated, analytic solutions become exceedingly hard to come by, eventually nonexistent. One numerical scheme can be adapted to solve a wide range of problems. Often, the level of complexity of the numerical scheme does not increase dramatically with the complexity of the mathematical problem.

Cubic equation a x3 + b x2 + c x + d = 0 Analytic solution Numerical solution Bisection method works. No need to upgrade. (From Abramowitz & Stegun's Handbook)

Quartic equation a x4 + b x3 + c x2 + d x + e = 0 Analytic solution Numerical solution Again, bisection method works. No need to change. (From Abramowitz & Stegun's Handbook)

Quintic equation a x5 + b x4 + c x3 + d x2 + e x + f = 0, and beyond Analytic solution Does not exist (except for a few isolated special cases) Numerical solution Bisection method works as usual. Bisection and other numerical methods become the only options.

Types of mathematical problems that we will learn to solve numerically Nonlinear equations x7 + 3 x3 + 5 x + 9 = 0 x + sin x + 0.1= 0 Ordinary differential equations Initial value problem du u = sin x 1, u(0) = 0 dx Boundary value problem 2 d u du 2 x 5 u cos 3 x = 0, u(0) = 1.5, u(π) = 0 2 d x dx Partial differential equations (Will be introduced in Part 2)

System of linear equations 3 2 5 3.5 1.5 4 7 4 2 5 0.5 6 1.5 9 7 1 x1 0.5 x2 = 3 2 x3 7 x4 Matrix eigenvalue problem 3 2 5 3.5 1.5 4 7 4 2 5 0.5 6 1.5 9 7 1 x1 x2 = x3 x4 x1 x2 x3 x4 Other useful techniques: Numerical differentiation and integration; Curve fitting and interpolation

Numerical errors Everything is digitized and finite in a computer (or calculator) For example, 1 = 0.33333333333333333333333... (exact) 3 For a calculator with 9-digit capacity, "1 3" = 0.333333333 The error is 0.0000000003333333... This is an example of round-off error

Another example (round-off error) A = 0.34982, exact B = 0.29817, exact A B = 0.1043058294, exact For a prototypical "five digit machine", even though A and B individually are exact, A B is not => A B = 0.10430, error = 0.0000058294 (which we throw away) In this manner, round-off errors will accumulate at every step of the calculation In addition to round-off errors, we will also encounter truncation errors in numerical procedures. The "digits" in the above examples are 10-based. In a real computer, the representation of a number is 2-based (i.e., in binary). We will discuss these issues in later lectures.

Numerical solutions are approximate, not exact. Error estimation is always important.