Introduction

information

Theses are my notes on MATH 2121: Linear Algebra

  1. Lecture 1
  2. Lecture 2
  3. Tutorial 1
  4. Lecture 3
  5. Lecture 4

Course information

  • Course code: MATH 2121
  • Course title: Linear Algebra
  • Semester: 24/25 Fall
  • Credit: 4
  • Grade: A-F
  • TMI
    • Prerequisite: A passing grade in AL Pure Mathematics / AL Applied Mathematics; OR MATH 1014 OR MATH 1020 OR MATH 1024
    • Exclusion: MATH 2111, MATH 2131, MATH 2350
Description

This will be a first course in linear algebra, from an applied perspective. The main topics covered will include solving linear systems of equations, vector spaces, matrices, linear mappings and matrix forms, inner products, orthogonality, eigenvalues and eigenvectors, and symmetric matrices. No prior knowledge of matrix algebra is assumed.

My section

  • Section: L1 / T1D
  • Time:
    • Lecture: TuTh 03:00PM - 04:20PM
    • Tutorial: We 06:00PM - 06:50PM
    • Mid-Term: Oct 17 08:00PM - 10:00PM
  • Venue:
    • Lecture: G010, CYT Bldg
    • Tutorial: Rm 1104, Acad Concourse
  • Instructor: MARBERG, Eric Paul
  • Teaching Assistants:

Grading scheme

Assessment TaskPercentage
Online HW5%
Offline HW5%
Mid-Term30%
Final Exam60%
  • lowest online & offline HW scores: will be dropped
  • Online HW: due Mon midnight (from 9 Sep)
  • Offline HW: choose 4 problems & solve; due Wed midnight (from 11 Sep)
Extra credit

If you submit correct solutions to extra practice problems, then you can earn extra credit. You can earn up to 5% extra credit for your course grade in this way over the whole semester. See the instructions for the offline homework assignments on the course website.

Tentative Schedule
WeekTopicreading
1Linear systems, row reduction to echelon form1.1-1.2
2Vectors, matrix equations, linear independence1.3-1.5, 1.7
3Linear independence, linear transformations1.7-1.9
4Matrix multiplication, the inverse of a matrix2.1-2.3
5Subspaces, bases, dimension2.4, 2.8-2.9
6Determinants3.1-3.2
7Vector spaces, midterm4.1-4.6
8Eigenvectors, and eigenvalues5.1
9Similarity and diagonalisable matrices5.2-5.4
10Complex eigenvalues, properties of eigenvalues5.5, 6.1
11Inner products, orthogonality, and projections6.1-6.3
12Gram-Schmidt process, least-squares problems6.4-6.6
13Symmetric matrices, SVDs7.1, 7.4

Required texts

  • Linear Algebra and its Applications, by D. Lay, etc. (6th edition)

Optional resources

  • N/A

MATH 2121: Lecture 1

Date: 2024-09-03 14:57:30

Reviewed:

Topic / Chapter: Linear systems

summary

❓Questions

Notes

Introduction
  • Introduction

    • for contact: Discord is also an option
    • online HW: 5%; due every Monday
      • WebWork w/ some attempt
      • computing value
    • offline PSETs; due every Wednesday
      • choose 4 problem; exam-like course
      • no extra harsh grading
      • 5% bonus for up to 4 bonus problems
    • assignment submission: talk to TA
    • A-range: w/ cutoff that's based on exam difficulty
      • ~= absolute grading in 1013/4
  • Notation:

    • denotes the real numbers.
    • denotes the rational numbers p/q.
    • denotes the integers
    • denotes the nonnegative integers .
    • Ellipsis () notation: we write instead of the full list .
Systems of Linear Equations
  • Linear equation

    • let ; be var. and constants
      • 👨‍🏫 prefers than
    • linear equation in var can be written in:
      • examples
        • // equation, but a false statement
          • corresponds to case
      • 👨‍🎓as long as there is no exponent
        • and no var. is multiplied with another var.
        • or: var is not in exponent
        • ; not considered as linear
    • linear system: a list of linear equations
    • solution to linear system: assignment of val to var s.t. all equations in the system are simultaneously true
      • solution: non-zero if at least one assignment of var.
      • e.g.
        • has solution
        • linear systems: equivalent if their solution are the same (or: have the same set of solutions)
          • and with the same variable sets
    • any linear system: w/ 0, 1, or infinitely many solutions
      • if a system has 2 or more solutions -> has solutions
      • lin. sys w/ no solution: inconsistent
      • lin. sys w/ exactly 1 solution: consistent
  • Proof on No. of Solutions on Lin Alg Systems of Equation

    • theorem: A linear system in two variables and has either 0, 1, or infinitely many solutions
    • by geometry
      • a solution to one lin. equation: represents a point io a line
      • solution to a system of 2-var lin. eq.: represents intersection of all lines defined by the equations
      • however: collections of lines must either:
        • intersect at one point
        • intersect at no point
        • infinitely many solutions
          • i.e. all equations: represent the same line
      • 👨‍🎓 what if we are on spherical, or non-euclidean plane?
    • by algebra
      • just check if lin. sys. has 2 different solution
      • given lin. sys., define the associated homogeneous system
        • where you set
      • if is solution to the starting system
        • and solution to associated homogeneous system.
        • then is also the solution to starting system
        • as
      • if homogenous system has a non-zero solution, then it has infinite many solutions
        • can be obtained by multiplying to any real number, and adding to original solution
      • if starting sys. has two different solutions: and
        • then is a non-zero solution to homogenous system
      • as
Matrices
  • Matrix

    • matrix: rectangular array of numbers
      • e.g. , ,
    • general matrix: denoted by
      • where is read as "A, two, three"
    • matrix w/ rows & columns: called "" or "-by-"
      • index: starts from 0; top->down and left->right
      • entry in row , col of matrix :
        • or "entry of A in position "
      • 👨‍🏫 position itself: also called "position "
    • zero matrix: matrix filled w/ 0
  • Augmented Matrix of the System

    • essential information of sys. of equation: set of s and in a matrix

    • changes into OR

    • bar: can be anywhere, but often used to separate constant terms

    • coefficient matrix of system: w/o constant terms

Solving Linear Systems
  • Solving linear systems

    • solve by transforming augmented matrix for certain operations
      1. add equation 1 to equation 3

      2. multiply equation 2 by

      3. add equation 2 to equation 3

      4. multiple equation 3 by

    • augmented matrix of the system is triangular if all entries in position w/ are zero
    • triangular system: can be solved easily from bottom-up
      • last equation:
      • which substitutes second eq. into
      • then, the first:
  • Row operations

    • we have used following elementary row operations on the augmented matrix of the system
    1. Replacement: replace one row by the sum of itself & a multiple of another row

      or

    2. Scaling: multiply all entries in a row w/ non-zero number

    3. Interchange: swap two rows

  • Row equivalence

    • two matrices: row equivalent if one can be transformed to the other
      • through a seq. of row operations
    • each row operations are revertible
      • 👨‍🏫 can you show why?
      • replacement: as another row, used for addition, remains uncontaminated, you can subtract it back (with coefficient)
      • scaling: as one cal multiply reciprocal
      • interchange: as one can swap back

MATH 2121: Lecture 2

Date: 2024-09-05 15:00:16

Reviewed:

Topic / Chapter:

summary

❓Questions

Notes

Row Reduction to Echelon Form
  • Introduction

    • goal: give an algorthm to determine how many solutions (0, 1, ) does a lin. sys. have
      • and find out the value of solutions, when they exist
    • such algorithm: row reduction to echelon form
      • formalize the way we solve lin. sys.also called: Gausiian elimination
  • Defining reduced echelon form

    • row in matrix: nonzero if "not every entry in the row" is zero
      • nonzero column: defined similarly
    • leading entry in a row: first non-zero entry in the row
      • starting from left to right
    • matrix of size is in echelon form if:
      1. if a row is nonzero: every row above it is also nonzero
      2. the leading entry in a nonzero row: strictly right of the leading entry of any earlier row
        • 👨‍🎓 i.e. in somewhat triangular form?
      3. if a row is nonzero: every entry below its leading entry in the same column is zero
        • implied from the second principle
    • by definition
      • every one-row matrix is in echelon form
      • one-column matrix in echelon form: where * is any number
    Examples
    • echelon form:
    • NOT echelon form:
    • a matrix in echelon form is reduced is
      1. each nonzero row has leading entry 1
      2. the leading 1 in each nonzero row is the only nonzero number in its column
    • reduced echelon form: matrix in echelon form that is reduced
      • 👨‍🎓 solved?
    • reduced echelon form looks like:
    • ⭐ theorem: each matrix is row equivalent to exactly one matrix in reduced echelon form
    • : reduced echelon form of
  • Solving a linear system from reduce echelon form

    • pivot position in a matrix : location containing a leading 1 in

      • aka:
    • pivot column in a matrix A: column containing a pivot position

    • for lin. sys. in with aug. matrix

      • the var is ...
        • basic if is a pivot column of
        • free if is not a pivot column of
    • case study

      • which means system:

        • are basic
        • and is free
      • to solve the system: choose any values for the free var., and solve for the basic var.

      • solution to above system: all in form

    • theorem: consider a lin. sys. whose augmented matrix is A

      • the system has 0 solutions / is inconsistent
        • if the last column of contains a pivot
        • which the row will look like:
          • i.e. equivalent of saying
      • the system has only 1 solution
        • if there are no free variables and the last column is not a pivot
      • otherwise: the system has infinitely many solutions
    • once is computed and free / basic var. are identified

      • we can write down all solutions to system as in the above example
      • let all free var. to be arbitrary, and solve it for basic var.
  • Computing reduced echelon form

    • algorithm to compute has two parts
      • row reduction to echelon form
      • reducing it to
    • example
      • for general algorithm: input: matrix
      • procedure
        1. begin with the leftmost nonzero column

          • this will be the pivot column, pivot being the top position
          • boxed: pivot position
        2. select a nonzero entry in the current pivot column

          • if needed: perform row operation to swap the row with the top one
        3. use row operations to create zeros below the boxed pivot position

        4. repeat steps 1-3 on the bottom right sub-matrix

        5. now: we have a echelon form: now reduce it (w/ replacements)

        • now: rescale rightmost pivot, and cancel entries above rightmost pivot
          • repeat (heading left)
        • final result
    • for a general matrix : follow the algorithm below
      • input: matrix
      • procedure:
        1. begin with the leftmost nonzero column
          • i.e. the pivot column, position being the top position of column
        2. select a nonzero entry in current pivot column
          • swap rows as needed
        3. use row operations to create zeros in the entries below the pivot
        4. apply previous step for sub-matrix that remains
          • repeat until the entire matrix is in echelon form
        5. start from the rightmost pivot position in matrix
          • rescale this row to have leading entry 1
          • use row operation to create zeros in entries in the same column as the pivot
          • repeat this for the pivot {above = left}
      • output:

MATH 2121: Tutorial 1

Date: 2024-09-10 13:22:00

Reviewed:

Topic / Chapter: Solving Linear Systems of Equation

summary

❓Questions

Notes

Solving Linear Systems of Equation
  • Problem 1

    1. write down augmented matrix of th linear system
      • as of following:
    2. compute the reduced echelon form of the matrix
    • to echelon form
    • to RREF
    1. how many solutions exists?
      • infinite, as there is a free variable, and the last column does not have a pivot
  • Problem 2

    • find all solutions to following system
    • to matrix
    • infinitely many solution, as there is a free variable & last column is not a pivot

MATH 2121: Lecture 3

Date: 2024-09-10 13:40:28

Reviewed:

Topic / Chapter: Vectors, Linear Combination, and Span

summary

❓Questions

Notes

Vectors
  • Vector terminology

    • vector: matrix with exactly one column
      • 👨‍🏫 until we discuss vector spaces
      • etc.
      • aka: column vectors
    • general vector
      • where
    • two vectors : equal if same no. of rows & same entries for each row
    • size of vector: no. of rows
    • vectors of same size: can be added
      • and
    • if is a scala, then: scala multiple, is:
    • subtraction is defined as
    • : set of all vectors w/ exactly rows
    • vectors : identified as arrows in the Cartesian plane
    • proposition: sum of two vectors, can be represented as arrow towards opposite vector of the parallelogram w/ sides
      • 01_vector_addition
      • proof:
        • let be slopes of arrow
        • then slope of arrow from end of to (line 1):
        • slope of arrow from end of to (line 2):
        • thus, the diagram made by these 4 vectors is a parallelogram
        • the opposite vertex: where line 1,2 meets:
        • thus the endpoint = opposite vertex of parallelogram from origin
    • zero vector in : vector with all entries being 0
      • symbol 0 is used for both number 0 and zero vector in for any
Linear Combination
  • Linear combinations

    • suppose are vectors
    • and are scalars
    • then linear combination:
    • in language: " is combination of with coefficients "
    • proposition: a vector equation of the form
        • where are variables and are vectors
      • has the same solution w/ the linear system w. augmented matrix
      • i.e. being lin. combination of lin. sys. being consistent (1 answer)
Span
  • Span

    • span of a finite set of vectors : set of all vectors
      • that are linear combinations of
      • and is denoted by:
        • or
    • or, more directly:
    • example
        • unless: span is an infinite set
      • span of non-zero :
        • all scalar multiples of
        • i.e. line
      • for non-zero ;
      • if ;
        • i.e. line
      • otherwise: no simpler way of describing
        • 👨‍🏫 unless you want to say: "the set of all vectors of the form where and are arbitrary real numbers."
  • Visualizing span

    • span of 0: single point consisting of origin
    • span: collection of vectors belonging to the same line through the origin
    • for , span of : a plane not a line
      • all combinations of two non-parallel vectors
      • i.e. we can get any vector in Cartesian by combining 2 non-parallel vectors
  • Remarks

    • often, separate word exists for operation, verb doing the operation, and the result of operation
      • e.g. addition-add-sum
    • : also an operation
      • input: collection of vectors w/ same size
      • output: set of vectors w/ same size as the input
    • for span, names are:
      • operation: span
      • output of span operation on : the span of
      • or: (as a verb) spans the set
      • is spanned by : means
    • 👨‍🏫 span of an infinite collection of vectors in : not covered yet
      • think of it as set of all vectors in
      • s.t. are linear combinations of a finite subset of collection of input vectors
      • finiteness: required as linear combinations aca only be formed w/ finite list of vectors
        • no general way to compute infinite sums of vectors
      • now: : takes any set of vectors in , and produces a set of vectors in
        • as input type == output type
        • can be composed with itself
      • above operation: idempotent in that
        • is any set, then

MATH 2121: Lecture 4

Date: 2024-09-12 15:03:35

Reviewed:

Topic / Chapter: Matrix Equations

summary

❓Questions

Notes

Multiplying Matrices and Vectors
  • Matrix as vector operator

    • given
      • and

      • then matrix-vector product

      • and : linear combination on col. of where coeff. are provided by entries

    • example
    • if , then only defined for
      • i.e. no. of columns of should match size (rows) of
      • then
    • : transforms to
  • Linear-ness of transformation

    • transformation is linear
      1. if and then
      2. if and and then
    • line: a spane of one vector
      • then
    • e.g. : counterclockwise rotation, 90 degrees
Matrix Equations
  • Recap

    • linear system: can be written as vector equation as well
    • why not matrix?
  • Matrix equation

    • when ,
    • where are each variable
      • : matrix equation
    • : has same solution as
      • and lin. sys. with augmented matrix
    • : has solution being lin. combination of columns of
  • Linear systems trilogy

    • for matrix , following properties are equivalent
      1. for each vector , the matrix has a solution
      2. each vector is a linear combination fo the columns of
      3. the span of the columns of is the set (read: "columns of span ")
        • same to (2), but slightly different wordings
      4. has a pivot position in every row
        • not intuitive, but computable
    • proof:
      • 1-3: different way of saying the same thing
      • 4: if has pivot in every row
        • cannot have a pivot position in the last column
        • i.e.
Linear independence
  • Linear independence

    • are linearly independent if the only solution to
      • is
      • is there is any non-zero solution: vectors are linearly independent
    • theorem: The columns of a matrix A are linearly independent if and only if A has a pivot position in every column
    • theorem: Suppose . If then these vectors are linearly dependent
      • : no. of cols.