ENGINEERING COMPUTATION Second Year Lectures. Stephen Roberts Michaelmas Term

Similar documents
Linear Equations in Linear Algebra

M 340L CS Homework Set 1

1 - Systems of Linear Equations

Linear Algebra. Solving SLEs with Matlab. Matrix Inversion. Solving SLE s by Matlab - Inverse. Solving Simultaneous Linear Equations in MATLAB

LU Factorization. A m x n matrix A admits an LU factorization if it can be written in the form of A = LU

PARTIAL DIFFERENTIAL EQUATIONS (PDE S) I

Math 4A Notes. Written by Victoria Kala Last updated June 11, 2017

Applied Mathematics Course Contents Matrices, linear systems Gauss-Jordan elimination, Determinants, Cramer's rule, inverse matrix.

4 Elementary matrices, continued

HOSTOS COMMUNITY COLLEGE DEPARTMENT OF MATHEMATICS

Chapter 4. Solving Systems of Equations. Chapter 4

MATRICES. knowledge on matrices Knowledge on matrix operations. Matrix as a tool of solving linear equations with two or three unknowns.

MATH 2360 REVIEW PROBLEMS

Carleton College, winter 2013 Math 232, Solutions to review problems and practice midterm 2 Prof. Jones 15. T 17. F 38. T 21. F 26. T 22. T 27.

Columbus State Community College Mathematics Department Public Syllabus

University of Oxford Department of Engineering Science. A1 Mathematics Linear Algebra. 4 lectures, Michaelmas Term 2010

Algorithms to Compute Bases and the Rank of a Matrix

Linear Algebra. Matrices Operations. Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0.

Math 216 Second Midterm 28 March, 2013

4 Elementary matrices, continued

MULTIVARIABLE CALCULUS, LINEAR ALGEBRA, AND DIFFERENTIAL EQUATIONS

Math 323 Exam 2 Sample Problems Solution Guide October 31, 2013

Review Packet 1 B 11 B 12 B 13 B = B 21 B 22 B 23 B 31 B 32 B 33 B 41 B 42 B 43

Statistical Geometry Processing Winter Semester 2011/2012

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

Polynomial Degree and Finite Differences

Problem Sheet 1 with Solutions GRA 6035 Mathematics

LECTURES 4/5: SYSTEMS OF LINEAR EQUATIONS

Math 313 Chapter 5 Review

Geometric Modeling Summer Semester 2010 Mathematical Tools (1)

Linear System Equations

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

Linear Algebra I for Science (NYC)

Topic 2 Quiz 2. choice C implies B and B implies C. correct-choice C implies B, but B does not imply C

Matrices and Systems of Equations

MAT Linear Algebra Collection of sample exams

Pre-Calculus I. For example, the system. x y 2 z. may be represented by the augmented matrix

33A Linear Algebra and Applications: Practice Final Exam - Solutions

MAC1105-College Algebra. Chapter 5-Systems of Equations & Matrices

EC5555 Economics Masters Refresher Course in Mathematics September 2014

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

Lectures on Linear Algebra for IT

Systems of Linear Equations

Lecture 21: 5.6 Rank and Nullity

Exact Free Vibration of Webs Moving Axially at High Speed

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

2. Every linear system with the same number of equations as unknowns has a unique solution.

MODEL ANSWERS TO THE THIRD HOMEWORK

Math "Matrix Approach to Solving Systems" Bibiana Lopez. November Crafton Hills College. (CHC) 6.3 November / 25

(a) II and III (b) I (c) I and III (d) I and II and III (e) None are true.

Online Exercises for Linear Algebra XM511

Matrices and Systems of Equations

MAC Module 3 Determinants. Learning Objectives. Upon completing this module, you should be able to:

Elementary matrices, continued. To summarize, we have identified 3 types of row operations and their corresponding

homogeneous 71 hyperplane 10 hyperplane 34 hyperplane 69 identity map 171 identity map 186 identity map 206 identity matrix 110 identity matrix 45

SUMMARY OF MATH 1600

Lecture 1 Systems of Linear Equations and Matrices

1 9/5 Matrices, vectors, and their applications

Introduction to Systems of Equations

Lecture Summaries for Linear Algebra M51A

MATH 20F: LINEAR ALGEBRA LECTURE B00 (T. KEMP)

Linear Algebra Handout

Lecture 3: Gaussian Elimination, continued. Lecture 3: Gaussian Elimination, continued

(Linear equations) Applied Linear Algebra in Geoscience Using MATLAB

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2

LAKELAND COMMUNITY COLLEGE COURSE OUTLINE FORM

22A-2 SUMMER 2014 LECTURE 5

We see that this is a linear system with 3 equations in 3 unknowns. equation is A x = b, where

Rectangular Systems and Echelon Forms

Elementary Linear Algebra

Linear Algebra Practice Problems

is a 3 4 matrix. It has 3 rows and 4 columns. The first row is the horizontal row [ ]

Fundamentals of Linear Algebra. Marcel B. Finan Arkansas Tech University c All Rights Reserved

ECEN 615 Methods of Electric Power Systems Analysis Lecture 18: Least Squares, State Estimation

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

MA 265 FINAL EXAM Fall 2012

Lecture 12: Solving Systems of Linear Equations by Gaussian Elimination

Lecture 9: SVD, Low Rank Approximation

5x 2 = 10. x 1 + 7(2) = 4. x 1 3x 2 = 4. 3x 1 + 9x 2 = 8

Solving Systems of Linear Equations

Methods for Solving Linear Systems Part 2

7. Dimension and Structure.

The value of a problem is not so much coming up with the answer as in the ideas and attempted ideas it forces on the would be solver I.N.

Exact and Approximate Numbers:

(Refer Slide Time: 2:04)

Matrices and systems of linear equations

Matrices and Systems of Equations

LECTURES 14/15: LINEAR INDEPENDENCE AND BASES

Glossary of Linear Algebra Terms. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

MATH 3321 Sample Questions for Exam 3. 3y y, C = Perform the indicated operations, if possible: (a) AC (b) AB (c) B + AC (d) CBA

Lecture 2 Systems of Linear Equations and Matrices, Continued

Reduction to the associated homogeneous system via a particular solution

Chapter 7. Linear Algebra: Matrices, Vectors,

Mathematics 1. Part II: Linear Algebra. Exercises and problems

Linear Algebra I Lecture 8

Digital Workbook for GRA 6035 Mathematics

Gaussian Elimination -(3.1) b 1. b 2., b. b n

CE 601: Numerical Methods Lecture 7. Course Coordinator: Dr. Suresh A. Kartha, Associate Professor, Department of Civil Engineering, IIT Guwahati.

CSL361 Problem set 4: Basic linear algebra

Transcription:

ENGINEERING COMPUTATION Second Year Lectures Stephen Roerts Michaelmas Term Engineering Computation ENGINEERING COMPUTATION Second Year Lectures Stephen Roerts Michaelmas Term The handouts are rief lecture notes, not a tet ook! You must come to the lectures, read tetooks, do the tutorials and Matla eercises to understand this course. Engineering Computation

Introduction hat is this course for? Throughout your career as engineers, you will e turning mathematical models of engineering systems into numerical results. This course provides Engineering Tools in the form of Numerical Methods to do this using Computers. The study of these methods is called NUMERICAL ANALYSIS Real world engineering design and analysis prolems are usually too comple to solve analytically! Numerical analysis provides algorithms (a sequence of operations) to solve prolems numerically Computer packages (e.g. MATLAB, Mathematica NAG liraries, IDEAS for Computer Aided Design (CAD), FLUENT for Computational Fluid Dynamics (CFD))) have uilt in algorithms making it easier for engineers to solve prolems these can need handling with care. The Engineering Computation Laoratory allows you to investigate some of these methods using MATLAB in more depth. Engineering Computation Themes Numerical analysis is not principally concerned with computer algorithm implementation and optimisation of speed of implementation of algorithms (computer science issues). It is also, not just an infinite set of methods (recipes) that one has to just memorise. In practice, there are a finite numer of useful numerical methods. These can e compared in terms of Convergence rate/accuracy Roustness/staility/conditioning (we are going to have to define measures for these properties efore we do this of course.) Engineering Computation

Recommended tet: Burden R.L. and Faires, J.D., Numerical Analysis, 6 th Edition. Kreyzig, E. Advanced Engineering Mathematics, th Ed. Chapters 8- Further reading: Johnson, L.. and Riess R.D., Numerical Analysis, Addison-esley. Curtis, F. and heatley, P.O., Applied Numerical Analysis, Addison-esley Press et al, Numerical Recipes for C, Camridge University Press. Plus many ooks on numerical analysis in college liraries and the departmental lirary. If you find a good one let me know and I ll advertise it.. Engineering Computation Lecture Course Contents (8 lectures):.linear simultaneous equations A: rank; nullity; kernels and echelon form..conditioning of simultaneous equations: ill-conditioning; vector norms; matri norms; condition numer..iterative solution of simultaneous equations A: Jacoi and Gauss-Siedel algorithms; convergence..computation of matri eigenvalues and eigenvectors: power method; Rayleigh quotient, deflation of matrices..approimate representations of data: regression, overfitting, functional approimation, using orthonormal polynomials as a asis, Cheyshev polynomials, stale regression. 6.Computing derivatives and integrals: difference methods; trapezium method; Simpson s rule and advanced quadrature methods..computing Solutions of Ordinary Differential Equations: Euler method; modified Euler; Higher order equations. 8.Computing Solutions of Partial Differential Equations: elliptical (e.g. Laplace s), paraolic (e.g. diffusion) and hyperolic (e.g.wave) equations. Engineering Computation 6

Linear simultaneous equations (LSEs) A () Some useful definitions (rank, nullity) () Solving general LSEs Etra reference: Elementary Linear Algera, H. Anton, John-iley 8 th Ed,. Engineering Computation Linear Simultaneous Equations Many engineering prolems come as Linear simultaneous equations. e.g. electrical circuit analysis. consider the equation for Node on the right. The Ys are admittances: ( V V ) Y + ( V V ) Y + ( V V ) Y For all nodes, this is a set of equations of the form V V Y, i,,,... ( i j ) i j ij At first glance these equations appear homogeneous of the form.epression... However, on the left hand side we have an etra inhomogeneous equation defining the input: V V in. the complete set can e written as a matri equation A, In this case ( V,...V ) T, ( V in,,... )T and A is a matri of admittances of the form Y ij. Solving the matri equation A calculates the voltages in the circuit. Engineering Computation 8

Structural analysis (e.g. Computer aided design CAD ) also gives rise to Linear simultaneous equations, if the components of the forces into nodes of a truss structure (such as the Sydney Harour ridge elow ) are summed. Let us look at formal ways to solve general linear simultaneous equations of this kind Engineering Computation 9 Rank and Nullity Last year you solved A when A M N is square, or M N. How? i.e. numer of equations numer of variales hat if this isn t so? hat if matrices are rectangular rather than square? Two Cases:. Portrait M > N More equations than variales. Either equations are inconsistent no eact solution. Perhaps look for Optimal solution which most nearly satisfies the equations? Or there is some redundancy e.g. one equation is the sum of two others, and a solution may still eist!. Landscape M < N More variales than equations. hole family of solutions. Can we incorporate other knowledge and find some optimal solution? Need tests to determine redundancy and consistency in sets of linear simultaneous equations Engineering Computation

6 Engineering Computation Rank r of a Matri A matri T T T... M N M a a a A is made up of M row-vectors T m a, m,,...m. Each row vector is the set of coefficients of left hand side of the equations A. ( ) A rank r is defined as the numer of linearly independent vectors of the set T m a of the rows of A. A vector a m is linearly dependent on a, a,....., a m- if there eist constants µ, µ,....,µ m- such that a m µ a + µ a +.....+ µ m- a m- How do we determine rank? Engineering Computation Eamples - y-eye approach : has rank.,, and and have rank. hat are the determinants of these matrices? Is this relevant? Let s try some further eamples: hat is the rank of (i), (ii) 9 (iii) 8??

Nullity of a Matri A complimentary measure to rank of A,the numer of effective constraints on in A, is the nullity. Define n nullity(a) numer of degrees of freedom remaining in. So: n nullity M N ( A ) N r (rememer, N is the numer of columns, or variales ) hat are the nullities of the eamples aove. Engineering Computation The further eamples: (i), r, N, nn-r- (ii), r, N, nn-r- 9 (iii), r, N, nn-r- 8 Engineering Computation

Eample of an indeterminate structure Resolving forces horizontally and vertically, plus taking moments, gives equilirium equations, in matri form: A or X Y X Y You can see that the rows of A are independent A has rank r. But numer of columns numer of variales N. So nullity n -. Since n >, the forces [ X ] T, Y, X, Y are not uniquely determined. Of course this is ecause the horizontal forces are indeterminate and can e made any magnitude, suject to the constraint in the second equation, i.e. X + X Nullity can e useful in determining whether engineering prolems have real solutions. Engineering Computation The general solution of a linear simultaneous equations A Engineering Computation 6 8

The Kernel of a Matri hat can we do aout finding the many solutions to indeterminate sets of simultaneous linear equations? Rememer the solutions to a differential equation such as & y&+ y& + y cos? The full solution was one particular solution of the full equation plus a complimentary function solving & y + y& + y. e use a similar idea: The general solution of A has two parts: () A particular solution such that A and () a kernel of A, defined as a vector space ( A ) { : A } ker where : here means such that The Kernel is thus the set of many vectors for which A. Note is a vector! Engineering Computation The general solution is then +, for all ker( A), where reads contained in. For eample, in the indeterminate structure aove, one particular solution (y inspection) is [ / / ] T and ker( A ) [ ] T where R is any real-valued constant. This makes sense in physical terms, and gives a complete solution (of course, many solutions!) + [ / / ] hat aout a more general approach! Engineering Computation 8 9

Engineering Computation 9 Echelon Form e can t continue to solve all these prolems y inspection! e need a systematic, roust engineering method for computing rank, nullity, the kernel and particular solutions. Use Gaussian elimination you used in the first year to generate the Echelon Form of the matri: Gaussian elimination Eample: Add multiples of one row to others to reduce matri to an upper triangular form. row row - row - row row row - 6 Note that these row operations preserve the determinant and the rank of the matri. The rank is then just the numer of non-zero rows ( ). The determinant is the product of the diagonal terms ( -). This looks useful! Engineering Computation Echelon form Eample: Apply similar row-operations to non-square matrices to determine their rank and nullity. Use our structure eample again. No zero rows, so rank r. Nullity - as efore. In the prolem A, or, There is one free variale,, not on the leading terms of the echelon. so set, any real numer, and ack solve to give,, + giving ( ) [ ] T ker A as efore.

Engineering Computation General solution to static indeterminacy prolem A slight variation on what we have done just now. Reduce what is known as the augmented matri to Echelon form in the same fashion as you did with Gaussian elimination: Represent A y the augmented matri [ ] A Get a particular solution y setting free variale and ack solve for remaining key variales: [ ] T / /, /, / General solution is [ ] [ ] T T / / + [As efore] Engineering Computation Eample with two dimensional kernel (ie free variales). A and Echelon form ecomes [ ] [ ] A A 6

Engineering Computation Proceed in three steps:. Consistency. in [ ], A is linearly dependant on the columns of A, so at least one solution eists.. Kernel. Identify free variales, and solve A to give ( ), ker A. Particular solution Set free variales and solve A to give. Engineering Computation The full solution is the sum of these: + + + for any values of and.