Numerical Methods. Midterm 2. May 14, Please give details of your calculation. A direct answer without explanation is not counted.

Size: px
Start display at page:

Download "Numerical Methods. Midterm 2. May 14, Please give details of your calculation. A direct answer without explanation is not counted."

Transcription

1 Numerical Methods Midterm 2 May 4, 208 Please give details of your calculation A direct answer without explanation is not counted Your answers must be in English You can bring notes and the textbook Other books or electronic devices are not allowed Please read problem statements carefully Problem (45%) Consider the following 2 2 matrix A = [ ] (a) (0%) Calculate Hint: Let A = max x = Ax Ax 2 = x A Ax and replace the constraint with cos 2 θ + sin 2 θ = (b) (0%) Calculate A = max x = A x Hint: Make sure your calculation of A is correct as that is going to be used in (d)-(e)

2 (c) (5%) What is the condition number of A? (d) (0%) Consider If b is slightly changed to b = A b + δb = [ ] [ ] 07, 07 then what is the new solution x + δx? What are x and (e) (0%) If A is slightly changed to Solution A + δa = A A δb b? [ ] 3 22, 22 3 then what is the new solution x + δx? What are x and A A δa A? (a) The optimization problem is [ ] [ ] A A = [ ] 3 2 = 2 3 max Ax 2 subject to x 2 + x 2 2 = Let x = cos θ and x 2 = sin θ Then max x, x 2 3x 2 24x x 2 + 3x 2 2 max θ max θ 3 24 sin θ cos θ 3 2 sin 2θ 2

3 The solution is sin 2θ = Thus A = 25 = 5 (b) The inverse matrix is A = = 5 [ [ ] ] We calculate [ 3 2 ] [ ] 3 2 (A ) A = 25 = 25 The optimization problem becomes Let [ ] max x, x 2 25 (3x2 24x x 2 + 3x 2 2) subject to x 2 + x 2 2 = x = cos θ and x 2 = sin θ Then The solution is max θ max θ (3 24 sin θ cos θ) 25 (3 2 sin 2θ) 25 sin 2θ = Thus A = 25 = 25 3

4 (c) From (a) and (b), the condition number of A is A A = 5 = 5 (d) Given [ ] [ ] 3 2 b = 2 3 [ ] =, [ ] 03 δb = 03 The new solution is x + δx = A (b + δb) [ ] [ ] = [ ] = 5 35 [ ] 07 =, 07 [ ] 03 δx = 03 We have x = ( 03)2 + ( 03) = 03 A A δb b = 5 = ( 03) 2 ( )

5 (e) The new solution is x + δx = (A + δa) b [ ] [ ] 3 22 = 22 3 = [ ] [ ] = [ ] [ ] 5/4 =, 5/4 [ ] /4 δx = /4 We have x = ( /4)2 + ( /4) = /4 Next, we solve Given We know that A A δa A A + δa = [ ] [ ] 3 22 δa = 22 3 [ ] 0 02 = 02 0 [ 3 ] To calculate δa, we follow the similar derivation as in problem (a) The optimization problem is max δax 2 subject to x 2 + x 2 2 = Let x = cos θ and x 2 = sin θ 5

6 Then max 004x x 2 2 = 004 x, x 2 Thus δa = 004 = 02 We have A A δa A = = /5 Here, we show the / x + δx value x + δx = ( /4) 2 + ( /4) 2 (5/4) 2 + (5/4) 2 = /5 Problem 2 (20%) (a) (0%) Consider the following definition Is it a norm or not? v = min i v i (b) (0%) Consider v = number of v i 0 Is it a norm or not? Solution The norm of a vector should satisfy (I) v 0 with equality iff v = 0 (II) αv = α v for any α (III) u + v u + v 6

7 (a) No Condition (I) does not holds Because For example, v = [ ] 0 v 0 st v = 0 (b) No Condition (II) does not holds Consider [ ] 0 α = 0, v = We have [ [ ] [ ] αv = 0 ] 0 = 0 = α v = = 0 Problem 3 (25%) Consider v R n, w R n that are stored as regular vectors We would like to construct the following rankone matrix vw and store it as a sparse matrix in the compressed column format Write a code to do this task Some requirements (a) Known zeros in the resulting matrix must not be stored (b) The complexity of the algorithm should be no more than the order of the number of non-zeros in the output matrix Hint: To achieve (b), you might need to first transform v to a sparse vector You are allowed to have extra O(n) arrays We assume each array starts with rather than 0 Solution The solution procedure (a) v is first transformed to a sparse array (b) For every non-zero w j, we store w j v to the output matrix 7

8 Algorithm : procedure ([APtr, AInd, AVal] = outerprod(v, w, n)) 2: k = ; 3: ind = ; 4: for i = : n do 5: if v(i) 0 then 6: vind(k) = i; 7: vval(k) = v(i); 8: k = k + ; 9: end if 0: end for : for j = : n do 2: APtr(j) = ind; 3: if w(j) 0 then 4: for i = : k- do 5: AVal(ind) = vval(i) * w(j); 6: AInd(ind) = vind(i); 7: ind = ind + ; 8: end for 9: end if 20: end for 2: APtr(n+) = ind; 22: end procedure Common mistake: >> v = [2 0 ]; 2 >> w = [3 0 2]; 3 >> outerprod (v,w,3) 4 5 APtr = AInd = AVal = Listing : Program output 8

9 Problem 4 (0%) Consider A = 2 2, b = In our lecture we show that the Jacobi method diverges by using 0 as the initial 0 solution What if we switch to use Gauss-Seidel method? Solution Using Gauss-Seidel method, in the first iteration, we have In the second iteration, we have x = (5 2(0) 2(0))/ = 5 x 2 = (5 2(5) 2(0))/ = 5 x 3 = (5 2(5) 2( 5))/ = 5 x = (5 2( 5) 2(5))/ = 5 x 2 = (5 2(5) 2(5))/ = 5 x 3 = (5 2(5) 2( 5))/ = 25 As we observe, the sequence of x, x 2, and x 3 still diverges 9

Numerical methods, midterm test I (2018/19 autumn, group A) Solutions

Numerical methods, midterm test I (2018/19 autumn, group A) Solutions Numerical methods, midterm test I (2018/19 autumn, group A Solutions x Problem 1 (6p We are going to approximate the limit 3/2 x lim x 1 x 1 by substituting x = 099 into the fraction in the present form

More information

CS 323: Numerical Analysis and Computing

CS 323: Numerical Analysis and Computing CS 323: Numerical Analysis and Computing MIDTERM #1 Instructions: This is an open notes exam, i.e., you are allowed to consult any textbook, your class notes, homeworks, or any of the handouts from us.

More information

Solving Linear Systems

Solving Linear Systems Solving Linear Systems Iterative Solutions Methods Philippe B. Laval KSU Fall 207 Philippe B. Laval (KSU) Linear Systems Fall 207 / 2 Introduction We continue looking how to solve linear systems of the

More information

Linear Algebraic Equations

Linear Algebraic Equations Linear Algebraic Equations 1 Fundamentals Consider the set of linear algebraic equations n a ij x i b i represented by Ax b j with [A b ] [A b] and (1a) r(a) rank of A (1b) Then Axb has a solution iff

More information

Solving Linear Systems

Solving Linear Systems Solving Linear Systems Iterative Solutions Methods Philippe B. Laval KSU Fall 2015 Philippe B. Laval (KSU) Linear Systems Fall 2015 1 / 12 Introduction We continue looking how to solve linear systems of

More information

Applied Numerical Linear Algebra. Lecture 8

Applied Numerical Linear Algebra. Lecture 8 Applied Numerical Linear Algebra. Lecture 8 1/ 45 Perturbation Theory for the Least Squares Problem When A is not square, we define its condition number with respect to the 2-norm to be k 2 (A) σ max (A)/σ

More information

AMS526: Numerical Analysis I (Numerical Linear Algebra)

AMS526: Numerical Analysis I (Numerical Linear Algebra) AMS526: Numerical Analysis I (Numerical Linear Algebra) Lecture 21: Sensitivity of Eigenvalues and Eigenvectors; Conjugate Gradient Method Xiangmin Jiao Stony Brook University Xiangmin Jiao Numerical Analysis

More information

Motivation: Sparse matrices and numerical PDE's

Motivation: Sparse matrices and numerical PDE's Lecture 20: Numerical Linear Algebra #4 Iterative methods and Eigenproblems Outline 1) Motivation: beyond LU for Ax=b A little PDE's and sparse matrices A) Temperature Equation B) Poisson Equation 2) Splitting

More information

Math 163 (23) - Midterm Test 1

Math 163 (23) - Midterm Test 1 Name: Id #: Math 63 (23) - Midterm Test Spring Quarter 208 Friday April 20, 09:30am - 0:20am Instructions: Prob. Points Score possible 26 2 4 3 0 TOTAL 50 Read each problem carefully. Write legibly. Show

More information

Department of Mathematics California State University, Los Angeles Master s Degree Comprehensive Examination in. NUMERICAL ANALYSIS Spring 2015

Department of Mathematics California State University, Los Angeles Master s Degree Comprehensive Examination in. NUMERICAL ANALYSIS Spring 2015 Department of Mathematics California State University, Los Angeles Master s Degree Comprehensive Examination in NUMERICAL ANALYSIS Spring 2015 Instructions: Do exactly two problems from Part A AND two

More information

5. Direct Methods for Solving Systems of Linear Equations. They are all over the place...

5. Direct Methods for Solving Systems of Linear Equations. They are all over the place... 5 Direct Methods for Solving Systems of Linear Equations They are all over the place Miriam Mehl: 5 Direct Methods for Solving Systems of Linear Equations They are all over the place, December 13, 2012

More information

Math/Phys/Engr 428, Math 529/Phys 528 Numerical Methods - Summer Homework 3 Due: Tuesday, July 3, 2018

Math/Phys/Engr 428, Math 529/Phys 528 Numerical Methods - Summer Homework 3 Due: Tuesday, July 3, 2018 Math/Phys/Engr 428, Math 529/Phys 528 Numerical Methods - Summer 28. (Vector and Matrix Norms) Homework 3 Due: Tuesday, July 3, 28 Show that the l vector norm satisfies the three properties (a) x for x

More information

COURSE Numerical methods for solving linear systems. Practical solving of many problems eventually leads to solving linear systems.

COURSE Numerical methods for solving linear systems. Practical solving of many problems eventually leads to solving linear systems. COURSE 9 4 Numerical methods for solving linear systems Practical solving of many problems eventually leads to solving linear systems Classification of the methods: - direct methods - with low number of

More information

ECE580 Fall 2015 Solution to Midterm Exam 1 October 23, Please leave fractions as fractions, but simplify them, etc.

ECE580 Fall 2015 Solution to Midterm Exam 1 October 23, Please leave fractions as fractions, but simplify them, etc. ECE580 Fall 2015 Solution to Midterm Exam 1 October 23, 2015 1 Name: Solution Score: /100 This exam is closed-book. You must show ALL of your work for full credit. Please read the questions carefully.

More information

3.2 Iterative Solution Methods for Solving Linear

3.2 Iterative Solution Methods for Solving Linear 22 CHAPTER 3. NUMERICAL LINEAR ALGEBRA 3.2 Iterative Solution Methods for Solving Linear Systems 3.2.1 Introduction We continue looking how to solve linear systems of the form Ax = b where A = (a ij is

More information

Lecture 9. Errors in solving Linear Systems. J. Chaudhry (Zeb) Department of Mathematics and Statistics University of New Mexico

Lecture 9. Errors in solving Linear Systems. J. Chaudhry (Zeb) Department of Mathematics and Statistics University of New Mexico Lecture 9 Errors in solving Linear Systems J. Chaudhry (Zeb) Department of Mathematics and Statistics University of New Mexico J. Chaudhry (Zeb) (UNM) Math/CS 375 1 / 23 What we ll do: Norms and condition

More information

Theory of Iterative Methods

Theory of Iterative Methods Based on Strang s Introduction to Applied Mathematics Theory of Iterative Methods The Iterative Idea To solve Ax = b, write Mx (k+1) = (M A)x (k) + b, k = 0, 1,,... Then the error e (k) x (k) x satisfies

More information

Today s class. Linear Algebraic Equations LU Decomposition. Numerical Methods, Fall 2011 Lecture 8. Prof. Jinbo Bi CSE, UConn

Today s class. Linear Algebraic Equations LU Decomposition. Numerical Methods, Fall 2011 Lecture 8. Prof. Jinbo Bi CSE, UConn Today s class Linear Algebraic Equations LU Decomposition 1 Linear Algebraic Equations Gaussian Elimination works well for solving linear systems of the form: AX = B What if you have to solve the linear

More information

Computational Methods. Systems of Linear Equations

Computational Methods. Systems of Linear Equations Computational Methods Systems of Linear Equations Manfred Huber 2010 1 Systems of Equations Often a system model contains multiple variables (parameters) and contains multiple equations Multiple equations

More information

JACOBI S ITERATION METHOD

JACOBI S ITERATION METHOD ITERATION METHODS These are methods which compute a sequence of progressively accurate iterates to approximate the solution of Ax = b. We need such methods for solving many large linear systems. Sometimes

More information

Iterative Methods. Splitting Methods

Iterative Methods. Splitting Methods Iterative Methods Splitting Methods 1 Direct Methods Solving Ax = b using direct methods. Gaussian elimination (using LU decomposition) Variants of LU, including Crout and Doolittle Other decomposition

More information

- - - - - - - - - - - - - - - - - - DISCLAIMER - - - - - - - - - - - - - - - - - - General Information: This midterm is a sample midterm. This means: The sample midterm contains problems that are of similar,

More information

Math 122 Test 3. April 15, 2014

Math 122 Test 3. April 15, 2014 SI: Math 1 Test 3 April 15, 014 EF: 1 3 4 5 6 7 8 Total Name Directions: 1. No books, notes or 6 year olds with ear infections. You may use a calculator to do routine arithmetic computations. You may not

More information

- - - - - - - - - - - - - - - - - - DISCLAIMER - - - - - - - - - - - - - - - - - - General Information: This midterm is a sample midterm. This means: The sample midterm contains problems that are of similar,

More information

MATH 33A LECTURE 3 PRACTICE MIDTERM I

MATH 33A LECTURE 3 PRACTICE MIDTERM I MATH A LECTURE PRACTICE MIDTERM I Please note: Show your work Correct answers not accompanied by sufficent explanations will receive little or no credit (except on multiple-choice problems) Please call

More information

Please give details of your answer. A direct answer without explanation is not counted.

Please give details of your answer. A direct answer without explanation is not counted. Please give details of your answer. A direct answer without explanation is not counted. Your answers must be in English. Please carefully read problem statements. During the exam you are not allowed to

More information

Vector and Matrix Norms I

Vector and Matrix Norms I Vector and Matrix Norms I Scalar, vector, matrix How to calculate errors? Scalar: absolute error: ˆα α relative error: Vectors: vector norm Norm is the distance!! ˆα α / α Chih-Jen Lin (National Taiwan

More information

Hence a root lies between 1 and 2. Since f a is negative and f(x 0 ) is positive The root lies between a and x 0 i.e. 1 and 1.

Hence a root lies between 1 and 2. Since f a is negative and f(x 0 ) is positive The root lies between a and x 0 i.e. 1 and 1. The Bisection method or BOLZANO s method or Interval halving method: Find the positive root of x 3 x = 1 correct to four decimal places by bisection method Let f x = x 3 x 1 Here f 0 = 1 = ve, f 1 = ve,

More information

Lecture 7. Gaussian Elimination with Pivoting. David Semeraro. University of Illinois at Urbana-Champaign. February 11, 2014

Lecture 7. Gaussian Elimination with Pivoting. David Semeraro. University of Illinois at Urbana-Champaign. February 11, 2014 Lecture 7 Gaussian Elimination with Pivoting David Semeraro University of Illinois at Urbana-Champaign February 11, 2014 David Semeraro (NCSA) CS 357 February 11, 2014 1 / 41 Naive Gaussian Elimination

More information

Math 273 (51) - Final

Math 273 (51) - Final Name: Id #: Math 273 (5) - Final Autumn Quarter 26 Thursday, December 8, 26-6: to 8: Instructions: Prob. Points Score possible 25 2 25 3 25 TOTAL 75 Read each problem carefully. Write legibly. Show all

More information

- - - - - - - - - - - - - - - - - - DISCLAIMER - - - - - - - - - - - - - - - - - - General Information: This is a midterm from a previous semester. This means: This midterm contains problems that are of

More information

- - - - - - - - - - - - - - - - - - DISCLAIMER - - - - - - - - - - - - - - - - - - General Information: This midterm is a sample midterm. This means: The sample midterm contains problems that are of similar,

More information

Vector and Matrix Norms I

Vector and Matrix Norms I Vector and Matrix Norms I Scalar, vector, matrix How to calculate errors? Scalar: absolute error: ˆα α relative error: Vectors: vector norm Norm is the distance!! ˆα α / α Chih-Jen Lin (National Taiwan

More information

MIDTERM. b) [2 points] Compute the LU Decomposition A = LU or explain why one does not exist.

MIDTERM. b) [2 points] Compute the LU Decomposition A = LU or explain why one does not exist. MAE 9A / FALL 3 Maurício de Oliveira MIDTERM Instructions: You have 75 minutes This exam is open notes, books No computers, calculators, phones, etc There are 3 questions for a total of 45 points and bonus

More information

Measurement and Uncertainty

Measurement and Uncertainty Physics 1020 Laboratory #1 Measurement and Uncertainty 1 Measurement and Uncertainty Any experimental measurement or result has an uncertainty associated with it. In todays lab you will perform a set of

More information

Introduction to PDEs and Numerical Methods Lecture 7. Solving linear systems

Introduction to PDEs and Numerical Methods Lecture 7. Solving linear systems Platzhalter für Bild, Bild auf Titelfolie hinter das Logo einsetzen Introduction to PDEs and Numerical Methods Lecture 7. Solving linear systems Dr. Noemi Friedman, 09.2.205. Reminder: Instationary heat

More information

SyDe312 (Winter 2005) Unit 1 - Solutions (continued)

SyDe312 (Winter 2005) Unit 1 - Solutions (continued) SyDe3 (Winter 5) Unit - Solutions (continued) March, 5 Chapter 6 - Linear Systems Problem 6.6 - b Iterative solution by the Jacobi and Gauss-Seidel iteration methods: Given: b = [ 77] T, x = [ ] T 9x +

More information

Name: AK-Nummer: Ergänzungsprüfung January 29, 2016

Name: AK-Nummer: Ergänzungsprüfung January 29, 2016 INSTRUCTIONS: The test has a total of 20 pages including this title page and 9 questions which are marked out of 10 points; ensure that you do not omit a page by mistake. Please write your name and AK-Nummer

More information

Exam in TMA4215 December 7th 2012

Exam in TMA4215 December 7th 2012 Norwegian University of Science and Technology Department of Mathematical Sciences Page of 9 Contact during the exam: Elena Celledoni, tlf. 7359354, cell phone 48238584 Exam in TMA425 December 7th 22 Allowed

More information

Sparse Linear Systems. Iterative Methods for Sparse Linear Systems. Motivation for Studying Sparse Linear Systems. Partial Differential Equations

Sparse Linear Systems. Iterative Methods for Sparse Linear Systems. Motivation for Studying Sparse Linear Systems. Partial Differential Equations Sparse Linear Systems Iterative Methods for Sparse Linear Systems Matrix Computations and Applications, Lecture C11 Fredrik Bengzon, Robert Söderlund We consider the problem of solving the linear system

More information

Lecture 4: Linear Algebra 1

Lecture 4: Linear Algebra 1 Lecture 4: Linear Algebra 1 Sourendu Gupta TIFR Graduate School Computational Physics 1 February 12, 2010 c : Sourendu Gupta (TIFR) Lecture 4: Linear Algebra 1 CP 1 1 / 26 Outline 1 Linear problems Motivation

More information

2.29 Numerical Fluid Mechanics Fall 2011 Lecture 7

2.29 Numerical Fluid Mechanics Fall 2011 Lecture 7 Numerical Fluid Mechanics Fall 2011 Lecture 7 REVIEW of Lecture 6 Material covered in class: Differential forms of conservation laws Material Derivative (substantial/total derivative) Conservation of Mass

More information

Math 7824 Spring 2010 Numerical solution of partial differential equations Classroom notes and homework

Math 7824 Spring 2010 Numerical solution of partial differential equations Classroom notes and homework Math 7824 Spring 2010 Numerical solution of partial differential equations Classroom notes and homework Jan Mandel University of Colorado Denver May 12, 2010 1/20/09: Sec. 1.1, 1.2. Hw 1 due 1/27: problems

More information

10.2 ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS. The Jacobi Method

10.2 ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS. The Jacobi Method 54 CHAPTER 10 NUMERICAL METHODS 10. ITERATIVE METHODS FOR SOLVING LINEAR SYSTEMS As a numerical technique, Gaussian elimination is rather unusual because it is direct. That is, a solution is obtained after

More information

Iterative Solvers. Lab 6. Iterative Methods

Iterative Solvers. Lab 6. Iterative Methods Lab 6 Iterative Solvers Lab Objective: Many real-world problems of the form Ax = b have tens of thousands of parameters Solving such systems with Gaussian elimination or matrix factorizations could require

More information

MATH 20B MIDTERM #2 REVIEW

MATH 20B MIDTERM #2 REVIEW MATH 20B MIDTERM #2 REVIEW FORMAT OF MIDTERM #2 The format will be the same as the practice midterms. There will be six main questions worth 0 points each. These questions will be similar to problems you

More information

Gauss-Seidel method. Dr. Motilal Panigrahi. Dr. Motilal Panigrahi, Nirma University

Gauss-Seidel method. Dr. Motilal Panigrahi. Dr. Motilal Panigrahi, Nirma University Gauss-Seidel method Dr. Motilal Panigrahi Solving system of linear equations We discussed Gaussian elimination with partial pivoting Gaussian elimination was an exact method or closed method Now we will

More information

MATH UN1201, Section 3 (11:40am 12:55pm) - Midterm 1 February 14, 2018 (75 minutes)

MATH UN1201, Section 3 (11:40am 12:55pm) - Midterm 1 February 14, 2018 (75 minutes) Name: Instructor: Shrenik Shah MATH UN1201, Section 3 (11:40am 12:55pm) - Midterm 1 February 14, 2018 (75 minutes) This examination booklet contains 6 problems plus an additional extra credit problem.

More information

5 Solving Systems of Linear Equations

5 Solving Systems of Linear Equations 106 Systems of LE 5.1 Systems of Linear Equations 5 Solving Systems of Linear Equations 5.1 Systems of Linear Equations System of linear equations: a 11 x 1 + a 12 x 2 +... + a 1n x n = b 1 a 21 x 1 +

More information

Experiment 1 - Mass, Volume and Graphing

Experiment 1 - Mass, Volume and Graphing Experiment 1 - Mass, Volume and Graphing In chemistry, as in many other sciences, a major part of the laboratory experience involves taking measurements and then calculating quantities from the results

More information

The conjugate gradient method

The conjugate gradient method The conjugate gradient method Michael S. Floater November 1, 2011 These notes try to provide motivation and an explanation of the CG method. 1 The method of conjugate directions We want to solve the linear

More information

Math 106: Calculus I, Spring 2018: Midterm Exam II Monday, April Give your name, TA and section number:

Math 106: Calculus I, Spring 2018: Midterm Exam II Monday, April Give your name, TA and section number: Math 106: Calculus I, Spring 2018: Midterm Exam II Monday, April 6 2018 Give your name, TA and section number: Name: TA: Section number: 1. There are 6 questions for a total of 100 points. The value of

More information

Preliminary/Qualifying Exam in Numerical Analysis (Math 502a) Spring 2012

Preliminary/Qualifying Exam in Numerical Analysis (Math 502a) Spring 2012 Instructions Preliminary/Qualifying Exam in Numerical Analysis (Math 502a) Spring 2012 The exam consists of four problems, each having multiple parts. You should attempt to solve all four problems. 1.

More information

Advanced Placement Physics C Summer Assignment

Advanced Placement Physics C Summer Assignment Advanced Placement Physics C Summer Assignment Summer Assignment Checklist: 1. Book Problems. Selected problems from Fundamentals of Physics. (Due August 31 st ). Intro to Calculus Packet. (Attached) (Due

More information

Computational Linear Algebra

Computational Linear Algebra Computational Linear Algebra PD Dr. rer. nat. habil. Ralf Peter Mundani Computation in Engineering / BGU Scientific Computing in Computer Science / INF Winter Term 2017/18 Part 3: Iterative Methods PD

More information

Some definitions. Math 1080: Numerical Linear Algebra Chapter 5, Solving Ax = b by Optimization. A-inner product. Important facts

Some definitions. Math 1080: Numerical Linear Algebra Chapter 5, Solving Ax = b by Optimization. A-inner product. Important facts Some definitions Math 1080: Numerical Linear Algebra Chapter 5, Solving Ax = b by Optimization M. M. Sussman sussmanm@math.pitt.edu Office Hours: MW 1:45PM-2:45PM, Thack 622 A matrix A is SPD (Symmetric

More information

The Treatment of Numerical Experimental Results

The Treatment of Numerical Experimental Results Memorial University of Newfoundl Department of Physics Physical Oceanography The Treatment of Numerical Experimental Results The purpose of these notes is to introduce you to some techniques of error analysis

More information

Math 122 Test 3. April 17, 2018

Math 122 Test 3. April 17, 2018 SI: Math Test 3 April 7, 08 EF: 3 4 5 6 7 8 9 0 Total Name Directions:. No books, notes or April showers. You may use a calculator to do routine arithmetic computations. You may not use your calculator

More information

Probabilistic Model Checking Michaelmas Term Dr. Dave Parker. Department of Computer Science University of Oxford

Probabilistic Model Checking Michaelmas Term Dr. Dave Parker. Department of Computer Science University of Oxford Probabilistic Model Checking Michaelmas Term 2011 Dr. Dave Parker Department of Computer Science University of Oxford Probabilistic model checking System Probabilistic model e.g. Markov chain Result 0.5

More information

Math 162: Calculus IIA

Math 162: Calculus IIA Math 162: Calculus IIA Final Exam December 15, 2015 NAME (please print legibly): Your University ID Number: Your University email Indicate your instructor with a check in the box: JJ Lee Doug Ravenel Timur

More information

Bindel, Fall 2016 Matrix Computations (CS 6210) Notes for At a high level, there are two pieces to solving a least squares problem:

Bindel, Fall 2016 Matrix Computations (CS 6210) Notes for At a high level, there are two pieces to solving a least squares problem: 1 Trouble points Notes for 2016-09-28 At a high level, there are two pieces to solving a least squares problem: 1. Project b onto the span of A. 2. Solve a linear system so that Ax equals the projected

More information

Homework 6 Solutions

Homework 6 Solutions Homeork 6 Solutions Igor Yanovsky (Math 151B TA) Section 114, Problem 1: For the boundary-value problem y (y ) y + log x, 1 x, y(1) 0, y() log, (1) rite the nonlinear system and formulas for Neton s method

More information

The Solution of Linear Systems AX = B

The Solution of Linear Systems AX = B Chapter 2 The Solution of Linear Systems AX = B 21 Upper-triangular Linear Systems We will now develop the back-substitution algorithm, which is useful for solving a linear system of equations that has

More information

Numerical Methods I Solving Square Linear Systems: GEM and LU factorization

Numerical Methods I Solving Square Linear Systems: GEM and LU factorization Numerical Methods I Solving Square Linear Systems: GEM and LU factorization Aleksandar Donev Courant Institute, NYU 1 donev@courant.nyu.edu 1 MATH-GA 2011.003 / CSCI-GA 2945.003, Fall 2014 September 18th,

More information

Conjugate gradient method. Descent method. Conjugate search direction. Conjugate Gradient Algorithm (294)

Conjugate gradient method. Descent method. Conjugate search direction. Conjugate Gradient Algorithm (294) Conjugate gradient method Descent method Hestenes, Stiefel 1952 For A N N SPD In exact arithmetic, solves in N steps In real arithmetic No guaranteed stopping Often converges in many fewer than N steps

More information

Algebra 2 CP Semester 1 PRACTICE Exam

Algebra 2 CP Semester 1 PRACTICE Exam Algebra 2 CP Semester 1 PRACTICE Exam NAME DATE HR You may use a calculator. Please show all work directly on this test. You may write on the test. GOOD LUCK! THIS IS JUST PRACTICE GIVE YOURSELF 45 MINUTES

More information

9. Iterative Methods for Large Linear Systems

9. Iterative Methods for Large Linear Systems EE507 - Computational Techniques for EE Jitkomut Songsiri 9. Iterative Methods for Large Linear Systems introduction splitting method Jacobi method Gauss-Seidel method successive overrelaxation (SOR) 9-1

More information

MLC Practice Final Exam. Recitation Instructor: Page Points Score Total: 200.

MLC Practice Final Exam. Recitation Instructor: Page Points Score Total: 200. Name: PID: Section: Recitation Instructor: DO NOT WRITE BELOW THIS LINE. GO ON TO THE NEXT PAGE. Page Points Score 3 20 4 30 5 20 6 20 7 20 8 20 9 25 10 25 11 20 Total: 200 Page 1 of 11 Name: Section:

More information

1 Error analysis for linear systems

1 Error analysis for linear systems Notes for 2016-09-16 1 Error analysis for linear systems We now discuss the sensitivity of linear systems to perturbations. This is relevant for two reasons: 1. Our standard recipe for getting an error

More information

Please give details of your answer. A direct answer without explanation is not counted.

Please give details of your answer. A direct answer without explanation is not counted. Please give details of your answer. A direct answer without explanation is not counted. Your answers must be in English. Please carefully read problem statements. During the exam you are not allowed to

More information

MATH 153 FIRST MIDTERM EXAM

MATH 153 FIRST MIDTERM EXAM NAME: Solutions MATH 53 FIRST MIDTERM EXAM October 2, 2005. Do not open this exam until you are told to begin. 2. This exam has pages including this cover. There are 8 questions. 3. Write your name on

More information

Without fully opening the exam, check that you have pages 1 through 12.

Without fully opening the exam, check that you have pages 1 through 12. Name: Section: Recitation Instructor: INSTRUCTIONS Fill in your name, etc. on this first page. Without fully opening the exam, check that you have pages 1 through 12. Show all your work on the standard

More information

A2 MATHEMATICS HOMEWORK C3

A2 MATHEMATICS HOMEWORK C3 Name Teacher A2 MATHEMATICS HOMEWORK C3 Mathematics Department September 2016 Version 1 Contents Contents... 2 Introduction... 3 Week 1 Trigonometric Equations 1... 4 Week 2 Trigonometric Equations 2...

More information

6. Iterative Methods for Linear Systems. The stepwise approach to the solution...

6. Iterative Methods for Linear Systems. The stepwise approach to the solution... 6 Iterative Methods for Linear Systems The stepwise approach to the solution Miriam Mehl: 6 Iterative Methods for Linear Systems The stepwise approach to the solution, January 18, 2013 1 61 Large Sparse

More information

Numerical linear algebra

Numerical linear algebra Numerical linear algebra Purdue University CS 51500 Fall 2017 David Gleich David F. Gleich Call me Prof Gleich Dr. Gleich Please not Hey matrix guy! Huda Nassar Call me Huda Ms. Huda Please not Matrix

More information

Classical iterative methods for linear systems

Classical iterative methods for linear systems Classical iterative methods for linear systems Ed Bueler MATH 615 Numerical Analysis of Differential Equations 27 February 1 March, 2017 Ed Bueler (MATH 615 NADEs) Classical iterative methods for linear

More information

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Bastian Steder

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Bastian Steder Introduction to Mobile Robotics Compact Course on Linear Algebra Wolfram Burgard, Bastian Steder Reference Book Thrun, Burgard, and Fox: Probabilistic Robotics Vectors Arrays of numbers Vectors represent

More information

MIDTERM Fundamental Algorithms, Spring 2008, Professor Yap March 10, 2008

MIDTERM Fundamental Algorithms, Spring 2008, Professor Yap March 10, 2008 INSTRUCTIONS: MIDTERM Fundamental Algorithms, Spring 2008, Professor Yap March 10, 2008 0. This is a closed book exam, with one 8 x11 (2-sided) cheat sheet. 1. Please answer ALL questions (there is ONE

More information

Student s Printed Name:

Student s Printed Name: Student s Printed Name: Instructor: CUID: Section # : You are not permitted to use a calculator on any portion of this test. You are not allowed to use any textbook, notes, cell phone, laptop, PDA, smart

More information

Chapter 3. Numerical linear algebra. 3.1 Motivation. Example 3.1 (Stokes flow in a cavity) Three equations,

Chapter 3. Numerical linear algebra. 3.1 Motivation. Example 3.1 (Stokes flow in a cavity) Three equations, Chapter 3 Numerical linear algebra 3. Motivation In this chapter we will consider the two following problems: ➀ Solve linear systems Ax = b, where x, b R n and A R n n. ➁ Find x R n that minimizes m (Ax

More information

- there will be midterm extra credit available (described after 2 nd midterm)

- there will be midterm extra credit available (described after 2 nd midterm) Lecture 13: Energy & Work Today s Announcements: * Midterm # 1 still being graded. Stay tuned - there will be midterm extra credit available (described after 2 nd midterm) * Midterm # 1 solutions being

More information

Topics. The CG Algorithm Algorithmic Options CG s Two Main Convergence Theorems

Topics. The CG Algorithm Algorithmic Options CG s Two Main Convergence Theorems Topics The CG Algorithm Algorithmic Options CG s Two Main Convergence Theorems What about non-spd systems? Methods requiring small history Methods requiring large history Summary of solvers 1 / 52 Conjugate

More information

EE 16B Final, December 13, Name: SID #:

EE 16B Final, December 13, Name: SID #: EE 16B Final, December 13, 2016 Name: SID #: Important Instructions: Show your work. An answer without explanation is not acceptable and does not guarantee any credit. Only the front pages will be scanned

More information

Basic Linear Algebra. Florida State University. Acknowledgements: Daniele Panozzo. CAP Computer Graphics - Fall 18 Xifeng Gao

Basic Linear Algebra. Florida State University. Acknowledgements: Daniele Panozzo. CAP Computer Graphics - Fall 18 Xifeng Gao Basic Linear Algebra Acknowledgements: Daniele Panozzo Overview We will briefly overview the basic linear algebra concepts that we will need in the class You will not be able to follow the next lectures

More information

Vectors Year 12 Term 1

Vectors Year 12 Term 1 Vectors Year 12 Term 1 1 Vectors - A Vector has Two properties Magnitude and Direction - A vector is usually denoted in bold, like vector a, or a, or many others. In 2D - a = xı + yȷ - a = x, y - where,

More information

MATH 408N PRACTICE MIDTERM 1

MATH 408N PRACTICE MIDTERM 1 02/0/202 Bormashenko MATH 408N PRACTICE MIDTERM Show your work for all the problems. Good luck! () (a) [5 pts] Solve for x if 2 x+ = 4 x Name: TA session: Writing everything as a power of 2, 2 x+ = (2

More information

Spring 2018 Exam 1 MARK BOX HAND IN PART NAME: PIN:

Spring 2018 Exam 1 MARK BOX HAND IN PART NAME: PIN: problem MARK BOX points HAND IN PART - 65=x5 4 5 5 6 NAME: PIN: % INSTRUCTIONS This exam comes in two parts. () HAND IN PART. Hand in only this part. () STATEMENT OF MULTIPLE CHOICE PROBLEMS. Do not hand

More information

CHAPTER 5. Basic Iterative Methods

CHAPTER 5. Basic Iterative Methods Basic Iterative Methods CHAPTER 5 Solve Ax = f where A is large and sparse (and nonsingular. Let A be split as A = M N in which M is nonsingular, and solving systems of the form Mz = r is much easier than

More information

Math 223 Final. July 24, 2014

Math 223 Final. July 24, 2014 Math 223 Final July 24, 2014 Name Directions: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Total 1. No books, notes, or evil looks. You may use a calculator to do routine arithmetic computations. You may not use your

More information

Solving Linear Systems of Equations

Solving Linear Systems of Equations Solving Linear Systems of Equations Gerald Recktenwald Portland State University Mechanical Engineering Department gerry@me.pdx.edu These slides are a supplement to the book Numerical Methods with Matlab:

More information

Numerical Linear Algebra

Numerical Linear Algebra Numerical Analysis, Lund University, 2018 96 Numerical Linear Algebra Unit 8: Condition of a Problem Numerical Analysis, Lund University Claus Führer and Philipp Birken Numerical Analysis, Lund University,

More information

5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns

5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns 5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns (1) possesses the solution and provided that.. The numerators and denominators are recognized

More information

FALL 2018 MATH 4211/6211 Optimization Homework 1

FALL 2018 MATH 4211/6211 Optimization Homework 1 FALL 2018 MATH 4211/6211 Optimization Homework 1 This homework assignment is open to textbook, reference books, slides, and online resources, excluding any direct solution to the problem (such as solution

More information

Iterative Methods for Ax=b

Iterative Methods for Ax=b 1 FUNDAMENTALS 1 Iterative Methods for Ax=b 1 Fundamentals consider the solution of the set of simultaneous equations Ax = b where A is a square matrix, n n and b is a right hand vector. We write the iterative

More information

https://sites.google.com/site/dhseisen/

https://sites.google.com/site/dhseisen/ Name: Calculus AP - Summer Assignment 2017 All questions and concerns related to this assignment should be directed to Ms. Eisen on or before Wednesday, June 21, 2017. If any concerns should arise over

More information

4. Direct Methods for Solving Systems of Linear Equations. They are all over the place...

4. Direct Methods for Solving Systems of Linear Equations. They are all over the place... They are all over the place... Numerisches Programmieren, Hans-Joachim ungartz page of 27 4.. Preliminary Remarks Systems of Linear Equations Another important field of application for numerical methods

More information

Chapter 12: Iterative Methods

Chapter 12: Iterative Methods ES 40: Scientific and Engineering Computation. Uchechukwu Ofoegbu Temple University Chapter : Iterative Methods ES 40: Scientific and Engineering Computation. Gauss-Seidel Method The Gauss-Seidel method

More information

Lecture 16.1 :! Final Exam Review, Part 2

Lecture 16.1 :! Final Exam Review, Part 2 Lecture 16.1 :! Final Exam Review, Part 2 April 28, 2015 1 Announcements Online Evaluation e-mails should have been sent to you.! Please fill out the evaluation form. May 6 is deadline.! Remember that

More information

Final exam (practice) UCLA: Math 31B, Spring 2017

Final exam (practice) UCLA: Math 31B, Spring 2017 Instructor: Noah White Date: Final exam (practice) UCLA: Math 3B, Spring 207 This exam has 8 questions, for a total of 80 points. Please print your working and answers neatly. Write your solutions in the

More information

v Fc v < 3 v < 2 v < 1 v

v Fc v < 3 v < 2 v < 1 v Fc v v Fc 2 4 3 1 4 v< 3 v< 2 v< 1 v v Fc ( ) v 0 8 2 F c Fc v v Fc rv 8r >0 v Fc rv 8r >0 = prox C ( rv) My Favorite Benefits Local non-linear friction models used directly without any discretization

More information