ENGR108: Introduction to Matrix Methods

John Duchi Stanford University, Fall 2024

Homework is assigned weekly, and due by Thursday at 5:00 PM. We will use gradescope for homework submission. Contact the teaching team if you do not see the class in your gradescope dashboard. Late homework will not be accepted. However, we will drop your lowest homework grade when finalizing grades for the course.

The homework problems are assigned from the book, or from the additional exercises (marked with A, as in A2.1), which can be found here. We will update these additional exercises during the quarter, so be sure to download the newest version before starting your homework.

Some homework problems will require you to code in Julia (see our Julia page for more information). You must submit your code for any problems that require coding. The Julia files needed for homework problems are available to download here.

If you wish to solve problems in Python, you should feel free to do that instead. We recommend that you use Google Colab for these exercises, since it requires the least amount of setup, but you can use any method for running Python that you'd like. You must submit your code with outputs for any problems that require coding. We will do our best to provide Python files for any homework problems, but in the worst case, translating from Julia to Python isn't too hard.

You are welcome to collaborate on the homework, but you must write up your own final version to hand in, and you must write up your own code. We strongly recommend against using generative AI software, as it will leave you ill-prepared for the midterm and final exams. If you do use it, please acknowledge it as you would any other source.

Homework

  • Homework 1, due Thursday, 10/3/24, at 5:00pm:
    1.3, 1.8, 1.9, A1.2, A1.7
    Solutions

  • Homework 2, due Thursday, 10/10/24, at 5:00pm:
    2.5, 2.6, A3.7, A3.9, A3.11, A3.15, A3.16, A4.2
    Solutions

  • Homework 3, due Thursday, 10/17/24, at 5:00pm:
    5.2, A5.1, A5.4, A5.7, A5.8, 6.15, A6.4
    Solutions

  • Homework 4, due Thursday, 10/24/24, at 5:00pm:
    6.18, 6.19, A6.14, A6.15, 7.5, 7.15, A7.6
    Solutions

  • Homework 5, due Thursday, 10/31/24, at 5:00pm:
    8.11, 8.15, A8.3, A9.3, A10.3
    Solutions

  • Homework 6, due Thursday, 11/7/24, at 5:00pm:
    A10.13, A10.18, A10.24, A10.25, A10.26, A10.27
    UPDATE: For A10.26(a), the problem statement should be “Give a diagonal matrix D such that…”
    Solutions

  • Homework 7, due Thursday, 11/14/24, at 5:00pm:
    11.3, 11.6, A11.1, A11.25, A11.26, 11.17, A12.4
    Solutions

  • Homework 8, due Thursday, 11/21/24, at 5:00pm:
    A11.27, A12.7, 13.8, 13.11, 13.22, A13.8, A13.12, A13.13
    UPDATE: In A13.13 we fixed a typo in the definition of J_i. In A11.27(b) we fixed a missing transpose in the Woodbury-Morrison definition. Download a new copy of the additional exercises to get these changes.

Additional exercises

Linked here. You may need to download this regularly, as we will update them.