Polytechnique Montréal · MTH1008

Polytechnique Montréal MTH1008 tutoring

Applied Linear Algebra: send your chapter so we can check whether we can help before you book.

Ask if we can help

Course overview

MTH1008 develops applied linear algebra from elimination and matrix factorizations to projections, least-squares approximation and spectral methods. The official outline also includes singular-value decomposition.

Topics include Matrix factorization and linear systems, Vector spaces and orthogonality, Least squares, Eigenvalues and singular-value decomposition.

MTH1008 topics to review

Matrix factorization and linear systemsVector spaces and orthogonalityLeast squaresEigenvalues and singular-value decomposition

Common difficulties

  • Interpreting an inconsistent system as an approximation problem when least squares is appropriate
  • Connecting a matrix factorization with the subspaces and computational task it represents

Preparing for this course

Review matrix dimensions, row operations, dot products and norms. In Ax=bAx=b, let AA be a matrix, xx a vector of coefficients and bb a target vector; explain how AxAx combines the columns of AA with coefficients from xx. For approximate solutions, distinguish the data vector, the fitted vector and their residual.

Registration requirements

Consult the official course description for prerequisites, restrictions and section details.

Check the official course catalogue

Try a course problem

Fit the line y=a+bxy=a+bx to the points (0,1)(0,1), (1,1)(1,1) and (2,4)(2,4) by ordinary, unweighted least squares. Here xx is the input, yy the measured output, aa the unknown intercept and bb the unknown slope. Find aa and bb, then verify that the data-minus-prediction residual vector is orthogonal (perpendicular) to both columns of the design matrix. Why is an exact fit impossible?

Show the reasoning
  1. Define the matrices, predictions and residual

    Let X=(101112)X=\begin{pmatrix}1&0\\1&1\\1&2\end{pmatrix} be the design matrix, β=(ab)\beta=\begin{pmatrix}a\\b\end{pmatrix} the coefficient vector, and d=(114)d=\begin{pmatrix}1\\1\\4\end{pmatrix} the data vector.

    Each row of XX contains a constant 11 and that point’s input, so the predicted outputs are XβX\beta. The residual vector is r=d−Xβr=d-X\beta.

  2. Derive the normal equations from the squared error

    Least squares minimizes the sum of squared residuals S(a,b)=(1−a)2+(1−a−b)2+(4−a−2b)2\begin{aligned}&S(a,b)\\&=(1-a)^2+(1-a-b)^2\\&\quad +(4-a-2b)^2\end{aligned}.

    The partial derivatives are ∂S∂a=−2[(1−a)+(1−a−b)+(4−a−2b)]\begin{aligned}&\frac{\partial S}{\partial a}\\&=-2[(1-a)+(1-a-b)\\&\qquad +(4-a-2b)]\end{aligned} and ∂S∂b=−2[(1−a−b)+2(4−a−2b)]\begin{aligned}&\frac{\partial S}{\partial b}\\&=-2[(1-a-b)\\&\qquad +2(4-a-2b)]\end{aligned}.

    Setting both to zero gives 3a+3b=63a+3b=6 and 3a+5b=93a+5b=9, called the normal equations.

  3. Solve the equations and verify the unique minimum

    Subtract the first equation from the second: 2b=32b=3, so b=3/2b=3/2. Then 3a+9/2=63a+9/2=6, giving a=1/2a=1/2.

    The predictions are (1/2,2,7/2)(1/2,2,7/2), so r=(1/2,−1,1/2)r=(1/2,-1,1/2).

    The columns of XX are (1,1,1)(1,1,1) and (0,1,2)(0,1,2). Their dot products with rr are 1/2−1+1/2=01/2-1+1/2=0 and 0−1+1=00-1+1=0.

    The residual vector is therefore perpendicular to the change in predicted values caused by any change to the line. By the Pythagorean theorem, the new sum of squared residuals equals the current sum plus the squared length of that change. It cannot be smaller. Because the columns are linearly independent, only one pair of coefficients gives these predictions, so the best-fit line is unique.

  4. Explain the residual and the effect of shifting the data

    The first two points would force an exact-fit line to have a=1a=1 and b=0b=0, which predicts 11, not 44, at the third point. Orthogonality therefore verifies the best approximation; it does not claim zero error.

    Adding a constant to all outputs shifts the fitted intercept by that constant while leaving the slope and residual unchanged.

How tutoring can help

Your tutor can trace your matrix calculation to separate a dimension or arithmetic error from a misunderstanding of the model. Small projection and least-squares examples can help you interpret a nonzero residual, then return to your factorization or system with a clearer reason for each step.

Exam preparation for MTH1008

Follow your current outline when selecting elimination, orthogonality, eigenvalue and singular-value exercises. After each computation, state what it tells you about rank, solvability or approximation. Check a proposed eigenpair by multiplication and a least-squares result by residual orthogonality; neither check depends on trusting the calculation that produced it.

Use your section’s outline to choose the chapters to review. We work through permitted practice and comparable problems, without completing graded assignments or exams on your behalf.

Need help with MTH1008?

Send your topic and preferred times. We’ll confirm whether we can help and, if so, agree on a time by text or email before payment.

Request MTH1008 tutoring

Nablio is an independent service and is not affiliated with this institution.

MTH1008 · official course referenceMTH1008 · official offering information