AMATH 584
SLN 10229, MWF 2:30-3:20, Loew Hall 216

Applied Linear Algebra and Introductory Numerical Analysis



Instructor: Helga Schaffrin Huntley
Condon 734
tel: (206) 685-9298
helga@amath.washington.edu
office hours: Wednesday, 10 am to noon
... or by appointment
TA: Yiyi Shi
Condon 816
shiyiyi@amath.washington.edu
office hours: Thursday, 1:30 pm - 2:30 pm

Homework Grades Messages Discussion Forum EDGE video

Course Description Textbook MATLAB Resources Syllabus Schedule and Homework Course Requirements Grades Messages

Official Course Description

Numerical methods for solving linear systems of equations, linear least squares problems, matrix eigenvalue problems, nonlinear systems of equations, quadrature, and initial value ordinary differential equations.

Textbook

Numerical Linear Algebra, by L.N. Trefethen and D. Bau, III, SIAM 1997.

Reference books:

MATLAB Resources

If you have never used Matlab before, you may find one of these tutorials available online helpful to get you started: Matlab's help menu tends to work pretty well, especially if you know vaguely what the command is. There is an online version of it at Mathworks' help-page. The first page has a listing by category, the second page has an alphabetical list.

On campus, Matlab is available (among other places) on the computers at the MSCC, which is in the basement of the Communications Building. The MSCC also has a Matlab help desk.

Syllabus

This course consists of two parts: applied linear algebra and an introduction to numerical methods. The first approximately 2/3 of the course will be spent on linear algebra. We will essentially follow the textbook by Trefethen and Bau.

The last third of the course will be an overview of numerical methods for other problems. The material for this portion will be drawn from various sources. Some references are mentioned above; others may be added later in the course.

The topics to be covered are:

Schedule and Homework

Follow links in the table below to obtain a copy of the homework in Adobe Acrobat (.pdf) format. An item shown below in plain text is not yet available. For additional information regarding viewing and printing the homework and solution sets, click here.

Homework and Exams Due Date Homework Problems Homework Solutions
First day of classes Wednesday, September 27 Handout
Homework #1 Friday, October 6 HW #1 Solution #1
Homework #2 Friday, October 13 HW #2 Solution #2
Homework #3 Friday, October 20 HW #3, ellipse.m Solution #3
Homework #4 Friday, October 27 HW #4, clgs.m Solution #4
Midterm Friday, November 3 Midterm
Homework #5 Monday, November 6 HW #5 Solution #5
Veterans Day Friday, November 10 no classes
Homework #6 Monday, November 13 HW #6 Solution #6
Homework #7 Wednesday, November 22 HW #7 Solution #7
Thanksgiving Thursday, November 24 no classes
Homework #8 Monday, December 4 HW #8
Last class Friday, December 8
Final Exam Tuesday, December 12, 5 pm Final Exam, planet.dat, ellipse2.m

Course Requirements

Your grade will be based on homework and two exams. The midterm will be given in class; the final exam will be a take-home exam. You are expected to learn the material covered in lecture and assigned as homework, read the book as necessary, and ask questions during lecture or office hours (or via e-mail).
Homework: There will be 8 homework assignments. They will generally be posted on the webpage on Fridays and due at the beginning of class the next Friday (except when there is no class on Fridays in November). You can also submit them any time prior to that at my office. Late homework will not be accepted! To allow for illness and other unforeseen circumstances, the lowest homework grade will be dropped. I highly encourage you to work on all homework assignments, even if you have missed the deadline for one: This is how you learn the material best.

Please make sure that your homework is neat and legible, the problems are clearly numbered and your final answer is easily identifiable. If we cannot read your solution, you will not get credit, even if it is correct. Also, you have to show your work to receive full credit.

For problems that are numerical in nature, you should submit a print-out of your final results, with the code as an appendix. All code should be well-commented. (This is a good habit to get into early!)

You are encouraged to work together on assignments -- except for the take-home exam -- but you should not just copy your buddy's work.

Exams: The midterm will be given in class on Friday, November 3.
The final exam will be a take-home exam, due at 3 pm on Tuesday, December 12.
(It is unlikely but possible that these dates will change.)

Class Participation: Class attendance is not required but strongly recommended. Since this is an EDGE class, all lectures will be available on tape shortly after the end of each class. (They will be linked from the webpage.) So if you miss a class, you can watch the lecture at your convenience. Keep in mind, however, that you can only stop me and ask questions if you attend the live version...

Grading

70% of your course grade will consist of the homework assignments (seven best of eight). The midterm and the final will count for 15% each of your grade.

You may view your homework and exam grades on-line.

Messages

November 20: Since this week's homework is a little heavy on proofs, I have been asked to provide some hints to get you going. Of course, there are usually multiple ways to prove something, and just because you don't use my hint doesn't mean that your proof is wrong...

So, if you are stuck on one problem or another, the following may help. (If it doesn't, I have office hours Wednesday morning...)

no. 2 (a)
-- You can prove the existence of the LU factorization constructively (i.e. by showing how you would find it and that this method doesn't break down). Along the way, you will probably want to make use of the hint given in the book.
-- The other direction is most easily proved using determinants and the fact that a non-singular matrix has non-zero determinant. I wrote it as a proof by contradiction, but it is equally easy (though for me less intuitive) without using contradiction.
-- Uniqueness is almost always shown by assuming two solutions, substituting them both into the problem (here setting them both equal to A) and deriving that they are, in fact, the same.

no. 2 (b)
-- This is an inductive proof. The key is to show that the first step doesn't require any row swaps and the resulting submatrix (to be acted on next) is again strictly column diagonally dominant.

no. 3 (a)
-- I would suggest to look at an example. Start by checking out what happens to L and U if just the upper right and lower left corners of A are zeros. Then, what happens if the next sub-/super-diagonals of A are also 0? Induction will give you a general result.

no. 3 (b)
-- We know what the sparsity pattern of L and U will be if P=I. For other P's, is the banding pattern of A retained or destroyed? Is part of it retained? From 3(a) you can draw conclusions given the structure of PA.

no. 4
-- This is again an inductive proof. How is the largest entry in P_1 A related to the largest entry in A? How is the largest entry in L_1 P_1 A related to the largest entry in P_1 A? Then extend this insight to get the (k+1)th step from the kth.

no. 5
-- I already gave you this hint in class: The key here is that the P's applied to L_k leave the first k rows in place and only permute the others. Substitute the form with l_k and e_k in for L_k and see where this takes you. By the way, it suffices to show that P L_k P^(-1) has the purported properties of L'_k. One sentence can then extend this for multiple P's.

November 6: In class today, someone asked about the problem of multiplying a number by pi. At first I agreed that this could not be backward stable, because we cannot represent irrational numbers. However...

If the problem asked to multiply pi by a rational number (and we take the rationals as our vector space over rationals), this would be true. In the general (and realistic) case of a real number, the multiplication is backward stable!

In fact multiplication of any two real numbers is backward stable. You will prove this on your next homework.

Sorry for the confusion!

October 20: One of you pointed out to me that the last question on assignment #2 (question 6) asked whether one if-and-only-if statement was true, not whether one direction or the other is true. So technically finding one example where either direction is violated means the entire statement is false.

My interpretation (as well as my TA's) was that one should investigate either direction. This is how one would approach such a problem in research, where questions are more open-ended than in a textbook. If I can't quite get what I want, what does hold?

In view of the inconclusive phrasing of the question, however, I will accept an answer that provided only a counterexample for one direction. If you lost points because you didn't show that the other direction holds, please bring your homework to class on Monday and I will give you your points back. Note, however, that if you lost points because you showed only that one direction holds, you won't get them back, as this doesn't answer the question, interpreted either way.

Sorry for the mix-up.

Enjoy your weekend!

September 27: Welcome to class!


<helga@amath.washington.edu> Last modified: Tue Dec 5 12:52:54 PST 2006