WILEY. Differential Equations with MATLAB (Third Edition) Brian R. Hunt Ronald L. Lipsman John E. Osborn Jonathan M. Rosenberg

Similar documents
Differential Equations with Boundary Value Problems

Maple in Differential Equations

Multivariable Calculus with MATLAB

CONTROL SYSTEMS ENGINEERING Sixth Edition International Student Version

Numerical Methods for Engineers. and Scientists. Applications using MATLAB. An Introduction with. Vish- Subramaniam. Third Edition. Amos Gilat.

USE OF MATLAB TO UNDERSTAND BASIC MATHEMATICS

NUMERICAL METHODS FOR ENGINEERING APPLICATION

A Mathematica Companion for Differential Equations

Introduction to Applied Linear Algebra with MATLAB

Chabot College Fall Course Outline for Mathematics 25 COMPUTATIONAL METHODS FOR ENGINEERS AND SCIENTISTS

Symbolic Solution of higher order equations

Numerical Methods with MATLAB

1 Number Systems and Errors 1

Math 330 (Section 7699 ): Fall 2015 Syllabus

Numerical Analysis. A Comprehensive Introduction. H. R. Schwarz University of Zürich Switzerland. with a contribution by

Differential Equations

FOURIER SERIES, TRANSFORMS, AND BOUNDARY VALUE PROBLEMS

SPECIAL FUNCTIONS AN INTRODUCTION TO THE CLASSICAL FUNCTIONS OF MATHEMATICAL PHYSICS

Differential Equations with Mathematica

The Essentials of Linear State-Space Systems

Basic Mathematics for Chemists

ADVANCED ENGINEERING MATHEMATICS

MATLAB for Engineers

Continuous Univariate Distributions

ORDINARY DIFFERENTIAL EQUATIONS

Continuous Univariate Distributions

INTRODUCTION TO CHEMICAL ENGINEERING COMPUTING

NEW RIVER COMMUNITY COLLEGE DUBLIN, VIRGINIA COURSE PLAN

Spis treści Contents List of Examples Preface to Third Edition 21

Representing Polynomials

Mathematics with Maple

DIFFERENTIAL EQUATIONS WITH BOUNDARY VALUE PROBLEMS

age for ^^Undergraduates Gregory V. Bard Providence, Rhode Island AMERICAN MATHEMATICAL SOCIETY

Modeling and Experimentation: Compound Pendulum

CHAPTER 1 Introduction to Differential Equations 1 CHAPTER 2 First-Order Equations 29

THE SEPARATRIX FOR A SECOND ORDER ORDINARY DIFFERENTIAL EQUATION OR A 2 2 SYSTEM OF FIRST ORDER ODE WHICH ALLOWS A PHASE PLANE QUANTITATIVE ANALYSIS

(Mathematical Operations with Arrays) Applied Linear Algebra in Geoscience Using MATLAB

AN INTRODUCTION TO THE FRACTIONAL CALCULUS AND FRACTIONAL DIFFERENTIAL EQUATIONS

Study Differential Equations And Dynamical Systems Chgplc

Applied Linear Algebra in Geoscience Using MATLAB

GIS CONCEPTS ARCGIS METHODS AND. 3 rd Edition, July David M. Theobald, Ph.D. Warner College of Natural Resources Colorado State University

NUMERICAL COMPUTATION IN SCIENCE AND ENGINEERING

CONTROL * ~ SYSTEMS ENGINEERING

FIRST-ORDER ORDINARY DIFFERENTIAL EQUATIONS II: Graphical and Numerical Methods David Levermore Department of Mathematics University of Maryland

Why This Class? James K. Peterson. August 22, Department of Biological Sciences and Department of Mathematical Sciences Clemson University

Columbus State Community College Mathematics Department. CREDITS: 5 CLASS HOURS PER WEEK: 5 PREREQUISITES: MATH 2173 with a C or higher

ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK

(Linear equations) Applied Linear Algebra in Geoscience Using MATLAB

Dynamical Systems with Applications

Upon successful completion of MATH 220, the student will be able to:

FUNDAMENTALS OF POLARIZED LIGHT

Applied Numerical Analysis

Introduction to Ordinary Differential Equations with Mathematica

MATLAB BASICS. Instructor: Prof. Shahrouk Ahmadi. TA: Kartik Bulusu

Signals and Systems with MATLAB Applications

SOUTHERN UNIVERSITY and A&M COLLEGE DEPARTMENT OF MATHEMATICS MATH 395 CALCULUS III AND DIFFERENTIAL EQUATIONS FOR JUNIOR ENGINEERING MAJORS

ADVANCED ENGINEERING MATHEMATICS MATLAB

MATH 345 Differential Equations

Chapter 8 Linear Algebraic Equations

Linear Models in Statistics

Regression Analysis By Example

Section 7.4 Runge-Kutta Methods

MA 580; Numerical Analysis I

MATHEMATICS (MATH) Calendar

NUMERICAL METHODS USING MATLAB

CHEE 222: PROCESS DYNAMICS AND NUMERICAL METHODS

Using web-based Java pplane applet to graph solutions of systems of differential equations

Chapter 9b: Numerical Methods for Calculus and Differential Equations. Initial-Value Problems Euler Method Time-Step Independence MATLAB ODE Solvers

AND NONLINEAR SCIENCE SERIES. Partial Differential. Equations with MATLAB. Matthew P. Coleman. CRC Press J Taylor & Francis Croup

Applied Linear Algebra in Geoscience Using MATLAB

Solving Linear Systems of ODEs with Matlab

MATLAB for Chemical Engineering

Partial Differential Equations with MATLAB

Maple in Calculus. by Harald Pleym. Maple Worksheets Supplementing. Edwards and Penney. CALCULUS 6th Edition Early Transcendentals - Matrix Version

Introduction to Mathematical Physics

Applied Nonlinear Control

Matrix Differential Calculus with Applications in Statistics and Econometrics

Rotary Motion Servo Plant: SRV02. Rotary Experiment #01: Modeling. SRV02 Modeling using QuaRC. Student Manual

2 Ordinary Differential Equations: Initial Value Problems

ACM/CMS 107 Linear Analysis & Applications Fall 2016 Assignment 4: Linear ODEs and Control Theory Due: 5th December 2016

Introduction to MATLAB

Elements of Matlab and Simulink Lecture 7

EXPLORING SCANNING PROBE MICROSCOPY WITH MATHEMATICA

Dynamic Systems. Simulation of. with MATLAB and Simulink. Harold Klee. Randal Allen SECOND EDITION. CRC Press. Taylor & Francis Group

Elementary Lie Group Analysis and Ordinary Differential Equations

APPENDIX 1 MATLAB AND ANSYS PROGRAMS

Physics 584 Computational Methods

NUMERICAL METHODS. lor CHEMICAL ENGINEERS. Using Excel', VBA, and MATLAB* VICTOR J. LAW. CRC Press. Taylor & Francis Group

Green s Functions with Reflection

Math 98 - Introduction to MATLAB Programming. Spring Lecture 3

Linear Statistical Models

Differential Equations

EET 3212 Control Systems. Control Systems Engineering, 6th Edition, Norman S. Nise December 2010, A. Goykadosh and M.

Reduction to the associated homogeneous system via a particular solution

Biomedical Signal Processing and Signal Modeling

Applied Linear Algebra in Geoscience Using MATLAB

Graded Project #1. Part 1. Explicit Runge Kutta methods. Goals Differential Equations FMN130 Gustaf Söderlind and Carmen Arévalo

Mathematics Qualifying Exam Study Material

Lecture 17: Ordinary Differential Equation II. First Order (continued)

Preface. 2 Linear Equations and Eigenvalue Problem 22

Transcription:

Differential Equations with MATLAB (Third Edition) Updated for MATLAB 2011b (7.13), Simulink 7.8, and Symbolic Math Toolbox 5.7 Brian R. Hunt Ronald L. Lipsman John E. Osborn Jonathan M. Rosenberg All of the University of Maryland, College Park WILEY John Wiley & Sons, Inc. New York Chichester Weinheim Brisbane Singapore Toronto in

Contents Preface v 1 Introduction 1 1.1 Guiding Philosophy 1 1.2 Student's Guide 3 1.3 Instructor's Guide 5 1.3.1 MATLAB, MuPAD, and Simulink 5 1.3.2 ODE Chapters 5 1.3.3 Computer Problem Sets 6 1.4 A Word About Software Versions 6 2 Getting Started with MATLAB 9 2.1 Platforms and Versions 9 2.2 Installation 10 2.3 Starting MATLAB 10 2.4 Typing in the Command Window 11 2.5 Online Help 11 2.6 MATLAB Windows 13 2.7 Ending a Session 14 3 Doing Mathematics with MATLAB 15 3.1 Arithmetic 15 3.2 Symbolic Computation 16 3.2.1 Substituting in Symbolic Expressions 17 3.2.2 Symbolic Expressions and Variable Precision Arithmetic 17 3.3 Vectors 18 3.3.1 Suppressing Output 19 3.4 Recovering from Problems 19 3.4.1 Errors in Input 20 3.4.2 Aborting Calculations 20 3.5 Functions 20 3.5.1 Built-in Functions 20 3.5.2 User-defined Functions 20 3.6 Managing Variables 22 Vll

viii Contents 3.7 Solving Equations 23 3.8 Graphics 25 3.8.1 Graphing with ezplot 25 3.8.2 Modifying Graphs 26 3.8.3 Graphing with plot 27 3.8.4 Plotting Multiple Curves 28 3.8.5 Parametric Plots 28 3.8.6 Implicit Plots and Contour Plots 30 3.9 Calculus 31 3.10 Some Tips and Reminders 32 4 Using the Desktop and M-files 33 4.1 The MATLAB Desktop 33 4.1.1 The Workspace 33 4.1.2 The Current Folder and Search Path 34 4.1.3 The Command History 35 4.2 M-files 36 4.2.1 Script M-files 36 4.2.2 Function M-files 38 4.2.3 Cells 40 4.3 Loops 40 4.4 Presenting Your Results 41 4.4.1 Presenting Graphics 41 4.4.2 Pretty Printing 43 4.4.3 "Publishing" an M-file 43 4.4.4 M-books 44 4.4.5 Preparing Homework Solutions 45 4.5 Debugging Your M-files 47 Problem Set A: Practice with MATLAB 49 5 Solutions of Differential Equations 53 5.1 Finding Symbolic Solutions 53 5.2 Existence and Uniqueness 56 5.3 Stability of Differential Equations 58 5.4 Different Types of Symbolic Solutions 61 6 MuPAD 69 7 A Qualitative Approach to Differential Equations 75 7.1 Direction Field for a First Order Linear Equation 75 7.2 Direction Field for a Non-Linear Equation 77 7.3 Autonomous Equations 79 7.3.1 Examples of Autonomous Equations 81

Contents ix Problem Set B: First Order Equations 85 8 Numerical Methods 97 8.1 Numerical Solutions Using MATLAB 98 8.2 Some Numerical Methods 101 8.2.1 The Euler Method 102 8.2.2 The Improved Euler Method 105 8.2.3 The Runge-Kutta Method 106 8.2.4 Inside ode45 107 8.2.5 Round-off Error 108 8.3 Controlling the Error in ode4 5 108 8.4 Reliability of Numerical Methods 109 9 Features of MATLAB 113 9.1 Data Classes 113 9.1.1 String Manipulation 114 9.1.2 Symbolic and Floating Point Numbers 115 9.1.3 Structures 115 9.2 Functions and Expressions 116 9.3 More about M-files 117 9.3.1 Variables in Script M-files 117 9.3.2 Variables in Function M-files 118 9.3.3 Structure of Function M-files 118 9.4 Matrices 119 9.4.1 Solving Linear Systems 120 9.4.2 Calculating Eigenvalues and Eigenvectors 121 9.5 Graphics 121 9.5.1 Figure Windows 121 9.5.2 Editing Figures 123 9.6 Features ofmatlab's Numerical ODE Solvers 124 9.6.1 Evaluation of Numerical Solutions with deval 125 9.6.2 Plotting Families of Numerical Solutions of ODEs 126 9.6.3 Event Detection 127 9.7 Troubleshooting 129 9.7.1 The Most Common Mistakes 129 9.7.2 Error and Warning Messages 129 10 Using Simulink 131 10.1 Constructing and Running a Simulink Model 131 10.2 Output to the Workspace and How Simulink Works 137 Problem Set C: Numerical Solutions 141

x Contents 11 Solving and Analyzing Second Order Linear Equations 149 11.1 Second Order Equations with MATLAB 151 11.2 Second Order Equations with Simulink 155 11.3 Comparison Methods 157 11.3.1 The Interlacing of Zeros 158 11.3.2 Proof of the Sturm Comparison Theorem 159 11.4 A Geometric Method 160 11.4.1 The Constant Coefficient Case 161 11.4.2 The Variable Coefficient Case 162 11.4.3 Airy's Equation 163 11.4.4 Bessel's Equation 164 11.4.5 Other Equations 165 Problem Set D: Second Order Equations 167 12 Series Solutions 181 12.1 Series Solutions 182 12.2 Singular Points 183 12.3 Other Linear and Nonlinear Equations 185 13 Laplace Transforms 187 13.1 Differential Equations and Laplace Transforms 189 13.2 Discontinuous Functions 192 13.3 Differential Equations with Discontinuous Forcing 194 Problem Set E: Series Solutions and Laplace Transforms 197 14 Higher Order Equations and Systems of First Order Equations 211 14.1 Higher Order Linear Equations 212 14.2 Systems of First Order Equations 213 14.2.1 Linear First Order Systems 213 14.2.2 Using MATLAB to Find Eigenpairs 216 14.3 Phase Portraits 220 14.3.1 Plotting a Single Trajectory 220 14.3.2 Plotting Several Trajectories 221 14.3.3 Numerical Solutions of First Order Systems 223 14.3.4 A Non-Linear System 225 15 Qualitative Theory for Systems of Differential Equations 227 Problem Set F: Systems of Differential Equations 235 Sample Solutions 253 Index 277