Back to the Electrical Engineering roadmap

Linear Algebra I · Cumulative review and practice final

Prerequisites: complete the fourteen linked Linear Algebra I units, their exercises and labs. No calculus is needed for this review. Goals: select a method from the dimensions, field and structure; justify conditions; connect exact solves, geometry, fitting and eigenvector coordinates; diagnose plausible errors; and validate answers. This is an original self-study practice final, not a university credential or a copy of an external examination.

Coverage checkpoint and study sequence

The audit checked the actual fourteen English and Persian units, their practice/lab topics and the current guide against public university materials. The previously missing four-space compatibility bridge and reusable pivoted LU are now taught. This final assesses that stated independent sequence. It does not claim the entire MIT syllabus: SVD, full Jordan theory, matrix differential equations and Fourier applications are outside its required scope. Other EE Year 1 courses still need their own lessons.

  1. Elimination and consistency
  2. Products and combinations
  3. Bases and rank–nullity
  4. Maps and inverses
  5. Orthogonal projection
  6. Least squares
  7. Orthonormal bases and QR
  8. Determinants
  9. Eigenpairs and multiplicities
  10. Coordinates and powers
  11. Complex modes
  12. Symmetric spectral theorem
  13. Four spaces and minimum norm
  14. Pivoted LU

Select the method and state its conditions

For A∈ℝᵐˣⁿ, rank r leaves n−r null directions and m−r left-null directions. Exact consistency means b∈Col(A), equivalently wᵀb=0 for every w∈N(Aᵀ). Least squares instead selects the unique fitted output p in Col(A), with Aᵀ(b−p)=0; coefficients are unique only at full column rank. Among all least-squares coefficients, the one in Row(A) has minimum norm, because adding a null vector increases squared norm by its squared length.

Thin A=QR requires independent columns and QᵀQ=I; solve Rc=Qᵀb, but do not replace QQᵀ by an ambient identity. For square nonsingular A, pivoted PA=LU requires the same P on b and completed L multipliers moved with later row swaps. Use determinant signs to check factors, not to diagnose conditioning from determinant size alone.

A=PDP⁻¹ requires an eigenbasis over the stated field; repeated roots alone decide neither diagonalizability nor singularity. Then Aⁿ=PDⁿP⁻¹ follows by cancellation. Real symmetric H admits an orthonormal real eigenbasis, so H=QDQᵀ, norms are preserved in z=Qᵀx, and xᵀHx=Σλᵢzᵢ². Positive definiteness follows from positive eigenvalues under that symmetry condition. General eigenvector matrices need not satisfy P⁻¹=Pᵀ.

Dimensions · rank · fieldWhat is being asked?Exact solvePA=LUAx=bClosest fitA=QRAᵀr=0Repeated updateA=PDP⁻¹Aⁿx₀Check the original problemFactors · residuals · conditions
Original method map. A branch is valid only when its hypotheses hold: use elimination to classify singular exact systems, and do not force LU division or an eigenbasis where one does not exist.

Worked examples · Connect the topics

  1. Choose a method from the dimensions. For A=[1 0;1 1;1 2], b=(1,2,4), the first two equations predict x=(1,1), but the third predicts 3 instead of 4, so no exact solution exists. Full column rank still gives a unique least-squares coefficient vector. AᵀA=[3 3;3 5], Aᵀb=(7,10), giving c=(5/6,3/2). Then p=(5/6,7/3,23/6), r=(1/6,−1/3,1/6), and Aᵀr=0. This verifies a best fit without claiming an exact solution.
  2. Separate fit from identification. For A=[1 2;2 4] and b=(3,6), every x=(3−2t,t) gives the same output. The row-space representative is parallel to (1,2), so xrow=(3/5,6/5). Writing every solution as xrow+s(−2,1) gives ‖x‖²=9/5+5s², proving the unique minimum-norm choice. An inverse of AᵀA does not exist.
  3. Check the permutation before solving. A=[0 1;2 3] needs P=[0 1;1 0], L=I, U=[2 3;0 1]. For b=(2,8), Pb=(8,2), so x₂=2 and x₁=1. The original check Ax=(2,8) passes; using the unpermuted b instead would solve a different problem. One row swap makes det(A)=−2.
  4. State the field and structure. The real matrix R=[0 −1;1 0] has complex eigenpairs i,(1,−i) and −i,(1,i), but no real eigenbasis. Nevertheless R²=−I and R⁴=I are real identities, so R⁷(1,0)=(0,−1). Conversely, the invertible real matrix [1 1;0 1] has only one independent eigenvector and is not diagonalizable even over ℂ. Invertibility, real eigenvalues and diagonalizability are different claims.

Common mistakes before the final

Do not confuse a unique fit with identifiable coefficients, a small residual with accurate parameters, invertibility with diagonalizability, or symmetry with orthogonality. Keep vector dimensions visible. Use the original pivot columns for a column-space basis. State ℝ or ℂ for eigenvector questions. Move both the right-hand side and stored multipliers when required by LU pivoting. Check an eigenpair with Av=λv and v≠0, and a claimed factorization by multiplication.

Practice · Graduated review

  1. For B=[1 2;0 0], classify Bx=(3,0), find all solutions and the minimum-norm one. What happens for (3,1)?
  2. Project b=(2,1) onto span{(1,2)} and prove the residual is orthogonal.
  3. Pivot-factor B=[0 1;2 1] and solve Bx=(3,5); check determinant and residual.
  4. For H=[2 −1;−1 2], find Hⁿ(1,0) and explain which component grows.
Fully worked practice solutions
  1. Rank 1; x=(3−2t,t). The row-space solution is (3/5,6/5), and adding s(−2,1) increases squared norm by 5s². For (3,1), the last row says 0=1, so inconsistent.
  2. Coefficient α=(2+2)/5=4/5; p=(4/5,8/5), r=(6/5,−3/5), vᵀr=0. Squared distance is 36/25+9/25=9/5. Every alternative p+tv has squared error 9/5+5t².
  3. P swaps rows, L=I, U=[2 1;0 1]. Pb=(5,3) gives x₂=3, x₁=1. Thus B(1,3)=(3,5), residual zero, and det(B)=−2.
  4. (1,1) and (1,−1) have eigenvalues 1 and 3. Since (1,0) is half their sum, Hⁿ(1,0)=((1+3ⁿ)/2,(1−3ⁿ)/2). The first mode stays fixed, the second grows; n=1 gives (2,−1).

Assessment · Open book · 120 points

Open book: use books, lesson notes, cited readings, calculators, and relevant free software. Explain your own reasoning, assumptions, units, and checks; identify references or software you use. Attempt the questions before opening the answer key. Suggested study time: 180–210 minutes; this is a self-study guide, not a timed restriction.

Ten questions carry 10 points each; the original synthesis challenge adds 20 for a total of 120. This is open book: books, notes, cited readings, calculators and relevant free software are allowed. Explain your own reasoning, assumptions and checks, and name references/software used. All quantities below are dimensionless unless stated otherwise. Allow roughly three hours across one or more sittings; that is a study estimate, not an enforced limit. Attempt every part before revealing the rubric. Equivalent justified methods earn the allocated points; a bare software output does not replace the requested reasoning.

  1. For Aₜ=[1 1;2 t] and b=(3,6), classify the system for every real t. At t=2 give every solution and its minimum-norm representative. Then replace b by (3,7) at t=2 and explain the change. Show the determinant or elimination and justify the norm claim. (10)
  2. For M=[1 0 1 2;0 1 1 0;1 1 2 2], give bases for Col(M), N(M), Row(M) and N(Mᵀ), including their ambient spaces and dimensions. Decide if Mx=(1,2,4) is consistent using a left-null vector, rather than solving all four unknowns. (10)
  3. Let T(x₁,x₂)=(x₁+2x₂,x₂) and S(y₁,y₂)=(2y₁,−y₂). Construct their matrices from basis images, compare ST and TS on (1,2), find (ST)⁻¹, and decide whether F(x)=T(x)+(1,0) is linear. (10)
  4. Fit b=(1,4,3) using A=[1 −1;1 0;1 1]. Derive and solve the normal equations, report fitted values and squared residual, and construct a thin QR to check the same coefficients. Explain why QᵀQ=I₂ does not imply QQᵀ=I₃. (10)
  5. For C=[0 2;3 1], construct PA=LU with A=C, solve Cx=(4,5), and reuse the factors for Cx=(2,1). Find det(C), det(3C), and the determinant of D=[1 2 0;0 3 1;2 0 1]. Explain the row-swap sign. (10)
  6. For J=[2 1;0 2], find the characteristic polynomial and eigenspace, distinguish algebraic and geometric multiplicity, and decide diagonalizability and invertibility. Compare J with 2I to test the claim that every repeated eigenvalue prevents diagonalization. (10)
  7. For K=[3 1;1 3] and x₀=(2,0), find an orthonormal eigenbasis, the coordinates of x₀, and a formula for Kⁿx₀ for integers n≥0. Check n=2 directly. For the scaled update xₙ₊₁=(K/4)xₙ with the same x₀, find the limit and explain why it is not zero. (10)
  8. For R=[0 −2;2 0], find the complex eigenpairs and explain why no nonzero real eigenvector exists. Decompose x₀=(1,0) into complex modes, reconstruct Rⁿx₀ as a real vector, and calculate R³x₀ and its norm. (10)
  9. Orthogonally diagonalize H=[2 1;1 2]. Express xᵀHx in eigenvector coordinates, prove positivity for x≠0, and find its minimum subject to ‖x‖=1. A reviewer then claims positive eigenvalues suffice for a positive quadratic form even without symmetry; test N=[1 4;0 1] on x=(1,−1). (10)
  10. Let A=[1 1 0;2 2 1;0 3 1]. Partial pivoting swaps rows 1,2 and later rows 2,3. Construct P,L,U with PA=LU, explaining where the stored multiplier 1/2 moves. Use them to solve Ax=(1,2,3), check the original residual, and obtain det(A). (10)

Application and reasoning · 20 points

An instrument model F=[1 1;2 2;0 0] receives b=(2,5,1). A colleague proposes (FᵀF)⁻¹Fᵀb and claims a unique best-fit output identifies both parameters. Diagnose the rank/inverse claim (4), find the fitted output, residual and squared error (4), and derive every least-squares coefficient vector and the minimum-norm one (4). Now repeatedly update any such coefficient vector by C=[3/4 1/4;1/4 3/4]. Find its kth iterate using eigenvector coordinates (4), and explain whether its limiting minimum norm supplies new observational identification, checking what F sees at every step (4).

Complete answer key and scoring rubric
  1. det(Aₜ)=t−2; elimination gives (t−2)x₂=0 (2). If t≠2, x=(3,0) is unique (2). At t=2, x=(3−s,s), s∈ℝ (2). With (3,7), the second row reduces to 0=1, so inconsistent (2). The squared norm is (3−s)²+s²=9/2+2(s−3/2)², minimized at x=(3/2,3/2) (2).
  2. Columns 1,2 are independent and columns 3,4 equal c₁+c₂,2c₁, so Col(M)=span{(1,0,1),(0,1,1)} in ℝ³, dimension 2 (2). N(M)=span{(−1,−1,1,0),(−2,0,0,1)} in ℝ⁴, dimension 2 (2). Row(M)=span{(1,0,1,2),(0,1,1,0)} in ℝ⁴, dimension 2 (2). N(Mᵀ)=span{(−1,−1,1)} in ℝ³, dimension 1 (2). The left-null dot product is −1−2+4=1≠0, so inconsistent; dimensions satisfy rank+nullity=4 and rank+left-nullity=3 (2).
  3. T=[1 2;0 1], S=[2 0;0 −1] from images of e₁,e₂ (2). ST=[2 4;0 −1] while TS=[2 −2;0 −1] (2). The outputs are (10,−2) and (−2,−2), respectively, so order matters (2). (ST)⁻¹=[1/2 2;0 −1], verified by multiplication (2). F(0)=(1,0)≠0, so F is affine, not linear (2).
  4. AᵀA=diag(3,2), Aᵀb=(8,2), so coefficients c=(8/3,1) (2). Fitted p=(5/3,8/3,11/3) (2). Residual b−p=(−2/3,4/3,−2/3), Aᵀ(b−p)=0, squared error 8/3 (2). Q has columns (1,1,1)/√3 and (−1,0,1)/√2; R=diag(√3,√2), and Rc=Qᵀb gives the same c (2). QQᵀ projects onto the two-dimensional column space, annihilating (1,−2,1), and therefore is not I₃ (2).
  5. P=[0 1;1 0], L=I, U=[3 1;0 2], with PC=LU (2). For (4,5), Pb=(5,4), y=Pb, then x=(1,2); Cx=(4,5) (2). For (2,1), Pb=(1,2), x=(0,1), and Cx=(2,1) (2). One swap gives det(C)=−3·2=−6 and scaling both rows gives det(3C)=3²det(C)=−54 (2). Expansion in D row 1 gives 1·3−2·(−2)=7 (2).
  6. det(J−λI)=(2−λ)², so the eigenvalue 2 has algebraic multiplicity 2 (2). (J−2I)v=0 forces v₂=0, so the eigenspace is span{(1,0)}, geometric multiplicity 1 (2). A 2D eigenbasis does not exist; J is not diagonalizable (2). Nevertheless det(J)=4≠0, so J is invertible (2). For 2I every vector is an eigenvector apart from zero, and e₁,e₂ form an eigenbasis; repeated roots alone do not imply failure (2).
  7. q₁=(1,1)/√2 and q₂=(1,−1)/√2 have eigenvalues 4,2 (2). Qᵀx₀=(√2,√2), hence x₀=(1,1)+(1,−1) (2). Kⁿx₀=(4ⁿ+2ⁿ,4ⁿ−2ⁿ) (2). Direct Kx₀=(6,2), K²x₀=(20,12) agrees (2). The scaled eigenvalues are 1,1/2, so xₙ=(1+2⁻ⁿ,1−2⁻ⁿ)→(1,1); the eigenvalue-1 component remains (2).
  8. The characteristic polynomial is λ²+4, giving ±2i (2). Eigenvectors for +2i and −2i are (1,−i),(1,i), checked by multiplication (2). There is no real eigenvalue and therefore no nonzero real eigenvector (2). x₀ is half the sum of these conjugate vectors; the powered conjugate terms sum to (2ⁿcos(nπ/2),2ⁿsin(nπ/2)), which is real (2). R³x₀=(0,−8) and its Euclidean norm is 8; the factor 2 causes growth despite rotation (2).
  9. Use Q=[1 1;1 −1]/√2 and D=diag(3,1), so H=QDQᵀ (2). With z=Qᵀx, xᵀHx=3z₁²+z₂²=2x₁²+2x₁x₂+2x₂² (2). Q is invertible, so x≠0 implies z≠0 and the sum is positive (2). On the unit circle z₁²+z₂²=1, the minimum is 1 at z₁=0, z₂=±1, or x=±(1,−1)/√2 (2). N has eigenvalues 1,1 but xᵀNx=−2 at (1,−1); the claim omitted symmetry (2).
  10. P=[0 1 0;0 0 1;1 0 0]. The old first-column multiplier moves to row 3: L=[1 0 0;0 1 0;1/2 0 1] (2). U=[2 2 1;0 3 1;0 0 −1/2], and LU=PA=[2 2 1;0 3 1;1 1 0] (2). Pb=(2,3,1), forward y=(2,3,0) (2). Back substitution gives x=(0,1,0), with Ax=(1,2,3) and zero residual (2). Two swaps give positive permutation sign, so det(A)=2·3·(−1/2)=−3 (2).

Application and reasoning · 20 points

Rank(F)=1 and N(F)=span{(1,−1)} (2); FᵀF=[5 5;5 5] is singular, so the suggested inverse is invalid (2). Projection onto v=(1,2,0) gives α=(vᵀb)/(vᵀv)=12/5 (1), p=(12/5,24/5,0) (1), r=(−2/5,1/5,1), squared error 6/5 and Fᵀr=0 (2). Coefficients satisfy x₁+x₂=12/5 (1), hence x=(6/5+t,6/5−t) (1). The row-space representative is xmin=(6/5,6/5); ‖x‖²=72/25+2t² proves the minimum (2). C(1,1)=(1,1), C(1,−1)=(1/2)(1,−1) (2), so Cᵏx=(6/5+2⁻ᵏt,6/5−2⁻ᵏt) (2). Every iterate has the same sum 12/5, hence F sees exactly p and the same error (2). The vanishing nullspace component as k→∞ is a selection rule, not new measurement evidence: the original data cannot distinguish any initial nullspace offset (2).

Scoring: existing questions 100 + application problem 20 = 120 points. Award the stated method and reasoning marks, not only final answers.

Self-review: record your score out of 120, then list every lost point as a condition, method choice, algebra, or validation issue. Revisit the linked unit and solve a changed version before rechecking. A high total does not excuse an unresolved division by zero, incorrect dimensions, or unjustified inverse. This self-score is feedback, not a grade or certificate issued by a university.

Download the synthesis lab

Download the exact-fraction Python lab

Objective: connect QR, residual orthogonality and parameter identifiability. Install free Python 3 from its official site for Windows, macOS or Linux, save the file and open a terminal in that folder. Run the commands below; Windows can replace python3 with py -3. No account or additional packages are needed; the file runs offline after installation. Inputs u,v,e,t are half-unit values from −4 to 6. A=[1 −1;1 0;1 1] fits synthetic readings b=(u−v,u+e,u+v). D=[1 1;1 1;1 1] is a deliberately redundant alternative. t offsets coefficients along N(D). All inputs are dimensionless.

python3 ee-linear-algebra-final.py 2 1 0 0
python3 ee-linear-algebra-final.py 2 1 2 0
python3 ee-linear-algebra-final.py 2 1 2 1
python3 ee-linear-algebra-final.py 0 0 0 0
python3 ee-linear-algebra-final.py -1/2 1/2 -1/2 1/2
python3 ee-linear-algebra-final.py -4 6 6 -4

Procedure: first predict the QR coefficients and residual when e changes, then run. Compare the exact normal-equation solution with the floating-point QR result. Next hold u,v,e fixed and change t from 0 to 1: D’s output and data error must stay fixed while coefficient norm increases. Verify Aᵀr=0, DᵀrD=0, QᵀQ=I and QR=A. Repeat in the browser alternative below and compare the same quantities.

Lab expected observations and worked answers

Let α=u+e/3. The full-rank fit has coefficients (α,v), residual (−e/3,2e/3,−e/3), and squared data error 2e²/3. The redundant fit is (α,α,α), with squared error 2v²+2e²/3. Its minimum-norm coefficients are (α/2,α/2), and a trial (α/2+t,α/2−t) has squared norm α²/2+2t². The first command gives full coefficients (2,1), zero full-fit error, but redundant error 2. The next two give (8/3,1), full error 8/3 and redundant error 14/3; changing t from 0 to 1 raises redundant coefficient norm squared from 32/9 to 50/9 without changing its fit. Why is A’s coefficient unique? Rank(A)=2. Why is D’s not? N(D)=span{(1,−1)}. Why does t=0 help? It enforces orthogonality to that nullspace, not new data information.

Limitations: this is a fixed synthetic algebra investigation, not physical sensor calibration or a general numerical solver. Python uses exact fractions for fits and a separate floating-point Gram–Schmidt QR check. The browser uses floating point, six-decimal displays and scaled check tolerance 1e−9. A zero residual checks this model only; it does not prove that real measurements are accurate or that duplicated parameters are identifiable.

Precise free readings and next step

Use the linked Georgia Tech sections to repair specific errors and MIT’s review as optional broader practice; its full syllabus and exam extend beyond this scoped sequence. The new questions and diagram here are original. After reviewing your solutions, continue to Mechanics and Dynamics: begin with units, vector descriptions and one-dimensional motion before forces. Its on-site sequence is still being developed; the current guide provides public self-study readings in the meantime.

Synthesis lab · Fit versus identifiable coefficients

Compare a full-rank fit using QR with a redundant model and its minimum-norm selection.

Free tool built into this page. Use it in your browser without an account or download.

Procedure

Try (u,v,e,t)=(2,1,0,0),(2,1,2,0),(2,1,2,1),(0,0,0,0),(−0.5,0.5,−0.5,0.5),(−4,6,6,−4). Predict the effect of e on the full fit and t on the redundant fit and norm. A=[1 −1;1 0;1 1], b=(u−v,u+e,u+v), D=[1 1;1 1;1 1]. Check QR, both residual orthogonality tests, and Python agreement.

Expected results and answer check

With α=u+e/3, A has unique coefficients (α,v) and squared residual 2e²/3. D has fit (α,α,α), squared residual 2v²+2e²/3, minimum coefficients (α/2,α/2), and trial squared norm α²/2+2t². Changing t cannot improve its data fit; t=0 only selects the minimum norm.

Fixed dimensionless synthetic data; no physical calibration, general solver or arbitrary Python execution. Browser uses floating point and rounded displays; the downloadable lab uses exact fractions and an independent floating-point QR check.