Introduction to Numerical Methods and Matlab Programming for Engineers

Similar documents
Mathematics. Mathematics

School of Innovative Technologies and Engineering

Algebra 1, Quarter 3, Unit 3.1. Line of Best Fit. Overview

AGS THE GREAT REVIEW GAME FOR PRE-ALGEBRA (CD) CORRELATED TO CALIFORNIA CONTENT STANDARDS

ME 4495 Computational Heat Transfer and Fluid Flow M,W 4:00 5:15 (Eng 177)

B.S/M.A in Mathematics

Statewide Framework Document for:

STRUCTURAL ENGINEERING PROGRAM INFORMATION FOR GRADUATE STUDENTS

Mathematics Assessment Plan

EECS 700: Computer Modeling, Simulation, and Visualization Fall 2014

ME 443/643 Design Techniques in Mechanical Engineering. Lecture 1: Introduction

UNIT ONE Tools of Algebra

First Grade Standards

Control Tutorials for MATLAB and Simulink

AP Calculus AB. Nevada Academic Standards that are assessable at the local level only.

Honors Mathematics. Introduction and Definition of Honors Mathematics

Syllabus ENGR 190 Introductory Calculus (QR)

1 st Quarter (September, October, November) August/September Strand Topic Standard Notes Reading for Literature

EGRHS Course Fair. Science & Math AP & IB Courses

Introduction and Motivation

The Good Judgment Project: A large scale test of different methods of combining expert predictions

Learning Disability Functional Capacity Evaluation. Dear Doctor,

FUNCTIONS AND OPERATORS IN MAPLE AND MATLAB. Matthias Kawski (Received September 23, 2003)

MTH 215: Introduction to Linear Algebra

WHEN THERE IS A mismatch between the acoustic

The Algebra in the Arithmetic Finding analogous tasks and structures in arithmetic that can be used throughout algebra

Using the Attribute Hierarchy Method to Make Diagnostic Inferences about Examinees Cognitive Skills in Algebra on the SAT

Dublin City Schools Mathematics Graded Course of Study GRADE 4

Course Syllabus for Math

ACTL5103 Stochastic Modelling For Actuaries. Course Outline Semester 2, 2014

ACCOUNTING FOR LAWYERS SYLLABUS

Grade 6: Correlated to AGS Basic Math Skills

Math 098 Intermediate Algebra Spring 2018

University of Groningen. Systemen, planning, netwerken Bosman, Aart

PROGRAM REVIEW CALCULUS TRACK MATH COURSES (MATH 170, 180, 190, 191, 210, 220, 270) May 1st, 2012

Engineering Analysis with Finite Elements LS-DYNA for Undergraduate Students

MTH 141 Calculus 1 Syllabus Spring 2017

ADVANCED PLACEMENT STUDENTS IN COLLEGE: AN INVESTIGATION OF COURSE GRADES AT 21 COLLEGES. Rick Morgan Len Ramist

Foothill College Summer 2016

Modeling function word errors in DNN-HMM based LVCSR systems

Arizona s College and Career Ready Standards Mathematics

Missouri Mathematics Grade-Level Expectations

Bittinger, M. L., Ellenbogen, D. J., & Johnson, B. L. (2012). Prealgebra (6th ed.). Boston, MA: Addison-Wesley.

St Math Teacher Login

Python Machine Learning

Edexcel GCSE. Statistics 1389 Paper 1H. June Mark Scheme. Statistics Edexcel GCSE

Mathematics subject curriculum

Detailed course syllabus

TOPICS LEARNING OUTCOMES ACTIVITES ASSESSMENT Numbers and the number system

Math 121 Fundamentals of Mathematics I

Learning to Think Mathematically With the Rekenrek

Fashion Design Program Articulation

Mathematics Program Assessment Plan

We are strong in research and particularly noted in software engineering, information security and privacy, and humane gaming.

Classroom Connections Examining the Intersection of the Standards for Mathematical Content and the Standards for Mathematical Practice

South Carolina English Language Arts

Math-U-See Correlation with the Common Core State Standards for Mathematical Content for Third Grade

Montana Content Standards for Mathematics Grade 3. Montana Content Standards for Mathematical Practices and Mathematics Content Adopted November 2011

IEEE TRANSACTIONS ON AUDIO, SPEECH, AND LANGUAGE PROCESSING, VOL. 17, NO. 3, MARCH

Using Calculators for Students in Grades 9-12: Geometry. Re-published with permission from American Institutes for Research

What s in a Step? Toward General, Abstract Representations of Tutoring System Log Data

PROVIDENCE UNIVERSITY COLLEGE

Conducting the Reference Interview:

Circuit Simulators: A Revolutionary E-Learning Platform

STA 225: Introductory Statistics (CT)

MASTER OF ARTS IN APPLIED SOCIOLOGY. Thesis Option

Digital Fabrication and Aunt Sarah: Enabling Quadratic Explorations via Technology. Michael L. Connell University of Houston - Downtown

Mathematics 112 Phone: (580) Southeastern Oklahoma State University Web: Durant, OK USA

Course Content Concepts

Bluetooth mlearning Applications for the Classroom of the Future

Analysis of Emotion Recognition System through Speech Signal Using KNN & GMM Classifier

Test Blueprint. Grade 3 Reading English Standards of Learning

Course Name: Elementary Calculus Course Number: Math 2103 Semester: Fall Phone:

TabletClass Math Geometry Course Guidebook

Analysis of Enzyme Kinetic Data

Radius STEM Readiness TM

Characteristics of Functions

Timeline. Recommendations

D Road Maps 6. A Guide to Learning System Dynamics. System Dynamics in Education Project

Extending Place Value with Whole Numbers to 1,000,000

Generating Test Cases From Use Cases

MODULE 4 Data Collection and Hypothesis Development. Trainer Outline

SOUTHERN MAINE COMMUNITY COLLEGE South Portland, Maine 04106

To link to this article: PLEASE SCROLL DOWN FOR ARTICLE

ENME 605 Advanced Control Systems, Fall 2015 Department of Mechanical Engineering

All-Math Meeting. September 28, Department of Mathematics University of Kentucky

Do students benefit from drawing productive diagrams themselves while solving introductory physics problems? The case of two electrostatic problems

Business Analytics and Information Tech COURSE NUMBER: 33:136:494 COURSE TITLE: Data Mining and Business Intelligence

ARTICULATION AGREEMENT

Fourth Grade. Reporting Student Progress. Libertyville School District 70. Fourth Grade

Probability and Statistics Curriculum Pacing Guide

Communication and Cybernetics 17

CURRICULUM VITAE. To develop expertise in Graph Theory and expand my knowledge by doing Research in the same.

Generative models and adversarial training

COMPUTER-ASSISTED INDEPENDENT STUDY IN MULTIVARIATE CALCULUS

Undergraduate Program Guide. Bachelor of Science. Computer Science DEPARTMENT OF COMPUTER SCIENCE and ENGINEERING

Students Understanding of Graphical Vector Addition in One and Two Dimensions

A Model to Predict 24-Hour Urinary Creatinine Level Using Repeated Measurements

Transfer of Training

College of Science Promotion & Tenure Guidelines For Use with MU-BOG AA-26 and AA-28 (April 2014) Revised 8 September 2017

Transcription:

Introduction to Numerical Methods and Matlab Programming for Engineers Todd Young and Martin J. Mohlenkamp Department of Mathematics Ohio University Athens, OH 45701 youngt@ohio.edu January 20, 2017

ii Copyright c 2008, 2009, 2011, 2014, 2016, 2017 Todd R. Young and Martin J. Mohlenkamp. Original edition 2004, by Todd R. Young. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.

Preface These notes were developed by the first author in the process of teaching a course on applied numerical methods for Civil Engineering majors during 2002-2004 and was modified to include Mechanical Engineering in 2005. The materials have been periodically updated since then and underwent a major revision by the second author in 2006-2007. The main goals of these lectures are to introduce concepts of numerical methods and introduce Matlab in an Engineering framework. By this we do not mean that every problem is a real life engineering application, but more that the engineering way of thinking is emphasized throughout the discussion. The philosophy of this book was formed over the course of many years. My father was a Civil Engineer and surveyor, and he introduced me to engineering ideas from an early age. At the University of Kentucky I took most of the basic Engineering courses while getting a Bachelor s degree in Mathematics. Immediately afterward I completed a M.S. degree in Engineering Mechanics at Kentucky. While working on my Ph.D. in Mathematics at Georgia Tech I taught all of the introductory math courses for engineers. During my education, I observed that incorporation of computation in coursework had been extremely unfocused and poor. For instance during my college career I had to learn 8 different programming and markup languages on 4 different platforms plus numerous other software applications. There was almost no technical help provided in the courses and I wasted innumerable hours figuring out software on my own. A typical, but useless, inclusion of software has been (and still is in most calculus books) to set up a difficult applied problem and then add the line write a program to solve or use a computer algebra system to solve. At Ohio University we have tried to take a much more disciplined and focused approach. The Russ College of Engineering and Technology decided that Matlab should be the primary computational software for undergraduates. At about the same time members of the Mathematics Department proposed an 1804 project to bring Matlab into the calculus sequence and provide access to the program at nearly all computers on campus, including in the dorm rooms. The stated goal of this project was to make Matlab the universal language for computation on campus. That project was approved and implemented in the 2001-2002 academic year. In these lecture notes, instruction on using Matlab is dispersed through the material on numerical methods. In these lectures details about how to use Matlab are detailed (but not verbose) and explicit. To teach programming, students are usually given examples of working programs and are asked to make modifications. The lectures are designed to be used in a computer classroom, but could be used in a lecture format iii

iv PREFACE with students doing computer exercises afterward. The lectures are divided into four Parts with a summary provided at the end of each Part. Todd Young Dependencies Below we give the dependencies between Lectures. Almost everything depends on Lectures 1 4, so those links are omitted to reduce clutter. Some lectures, marked with * in the table of contents, have not yet been developed. Part II 13 18 16-17 8 9 12 14 15 10 11 Part III 19-20 24 22 25 21 23 28 Part I 27 26 7 Part IV 1-4 5-6 35 36-37 Everything in Parts II,III,IV 41-42 33 38-39 34 29-32

Contents Preface iii I Matlab and Solving Equations 1 Lecture 1. Vectors, Functions, and Plots in Matlab 2 Lecture 2. Matlab Programs 5 Lecture 3. Newton s Method and Loops 9 Lecture 4. Controlling Error and Conditional Statements 12 Lecture 5. The Bisection Method and Locating Roots 16 Lecture 6. Secant Methods 20 Lecture 7. Symbolic Computations 23 Review of Part I 26 II Linear Algebra 31 Lecture 8. Matrices and Matrix Operations in Matlab 32 Lecture 9. Introduction to Linear Systems 36 Lecture 10. Some Facts About Linear Systems 40 Lecture 11. Accuracy, Condition Numbers and Pivoting 43 Lecture 12. LU Decomposition 47 Lecture 13. Nonlinear Systems - Newton s Method 50 Lecture 14. Eigenvalues and Eigenvectors 54 Lecture 15. An Application of Eigenvectors: Vibrational Modes and Frequencies 57 Lecture 16. Numerical Methods for Eigenvalues 60 v

vi CONTENTS Lecture 17. The QR Method* 64 Lecture 18. Iterative solution of linear systems* 66 Review of Part II 67 III Functions and Data 71 Lecture 19. Polynomial and Spline Interpolation 72 Lecture 20. Least Squares Fitting: Noisy Data 76 Lecture 21. Integration: Left, Right and Trapezoid Rules 79 Lecture 22. Integration: Midpoint and Simpson s Rules 84 Lecture 23. Plotting Functions of Two Variables 88 Lecture 24. Double Integrals for Rectangles 91 Lecture 25. Double Integrals for Non-rectangles 95 Lecture 26. Gaussian Quadrature* 98 Lecture 27. Numerical Differentiation 99 Lecture 28. The Main Sources of Error 103 Review of Part III 106 IV Differential Equations 113 Lecture 29. Reduction of Higher Order Equations to Systems 114 Lecture 30. Euler Methods 118 Lecture 31. Higher Order Methods 122 Lecture 32. Multi-step Methods* 125 Lecture 33. ODE Boundary Value Problems and Finite Differences 126 Lecture 34. Finite Difference Method Nonlinear ODE 129 Lecture 35. Parabolic PDEs - Explicit Method 132 Lecture 36. Solution Instability for the Explicit Method 137

CONTENTS vii Lecture 37. Implicit Methods 140 Lecture 38. Insulated Boundary Conditions 143 Lecture 39. Finite Difference Method for Elliptic PDEs 148 Lecture 40. Convection-Diffusion Equations* 151 Lecture 41. Finite Elements 152 Lecture 42. Determining Internal Node Values 156 Review of Part IV 160 V Appendices 163 Lecture A. Sample Exams 164 Lecture B. Glossary of Matlab Commands 169 GNU Free Documentation License 176 1. APPLICABILITY AND DEFINITIONS.......................... 176 2. VERBATIM COPYING................................... 178 3. COPYING IN QUANTITY................................. 178 4. MODIFICATIONS...................................... 179 5. COMBINING DOCUMENTS................................ 181 6. COLLECTIONS OF DOCUMENTS............................ 182 7. AGGREGATION WITH INDEPENDENT WORKS................... 182 8. TRANSLATION....................................... 182 9. TERMINATION....................................... 183 10. FUTURE REVISIONS OF THIS LICENSE....................... 183 11. RELICENSING....................................... 184 ADDENDUM: How to use this License for your documents................. 184

viii CONTENTS