LA 101
M03 · L04
Module 3: Systems

Applications of Linear Systems

Circuits, chemistry, traffic, data — every balance law in engineering is a row in a matrix. Gaussian elimination is the universal solver.

01 / 11
LA 101
M03 · L04
The Universal Template

From World to Matrix

  • Identify the unknown quantities
  • Write down every balance or conservation law
  • Each law becomes one row of A
  • Each unknown becomes one column
  • Solve Ax = b with Gaussian elimination
02 / 11
LA 101
M03 · L04
Application 1

Electrical Circuits

KCL: currents entering a node = currents leaving.
KVL: voltage drops around any loop sum to zero.

Circuit System
\begin{bmatrix}1&-1&-1\\2&3&0\\0&3&-6\end{bmatrix}\begin{bmatrix}I_1\\I_2\\I_3\end{bmatrix}=\begin{bmatrix}0\\12\\0\end{bmatrix}
03 / 11
LA 101
M03 · L04
Application 2

Balancing Chemistry

Conservation of each element type gives one linear equation in the stoichiometric coefficients.

Ethane Combustion
a C₂H₆ + b O₂ → c CO₂ + d H₂O

Homogeneous system Ax = 0. One free variable (scaling). The null space gives the balanced coefficients: 2, 7, 4, 6.

04 / 11
LA 101
M03 · L04
Application 3

Network Flow

  • Inflow = outflow at every node
  • One equation per junction
  • One unknown per edge (street / pipe / link)
  • Total inflow = total outflow is redundant
  • Free variables = routing flexibility
05 / 11
LA 101
M03 · L04
Application 4

Least Squares Fitting

More data points than unknowns → overdetermined Ax = b, no exact solution. Minimize ||Ax − b||² instead.

Normal Equations
A^T A\,\hat{x}=A^T b
06 / 11
LA 101
M03 · L04
Least Squares in Action

Linear Regression

Fitting y = mx + c to n data points: build A with rows [xᵢ 1], b with entries yᵢ. The normal equations give the best-fit slope and intercept.

Aᵀb
Right side
AᵀA
2×2 system
x̂
Best fit
07 / 11
LA 101
M03 · L04
Application 5

Signal Filters

FIR filter: y[n] = h₀x[n] + h₁x[n−1] + … + h_{L−1}x[n−L+1]

Design Method
Frequency specs at L points → L equations in L unknowns → solve Ax = b for coefficients h₀…h_{L-1}

More specs than coefficients? Use least squares for the best-fit filter.

08 / 11
LA 101
Knowledge Check

Check what stuck

Four questions from this lesson. Answer to see why — the explanation appears whether you were right or wrong. Nothing is scored or saved.

Question 1 of 0
Score 0/0

09 / 11
LA 101
M03 · L04
Summary

Key Takeaways

  • Conservation laws → rows of a matrix
  • KCL + KVL gives currents from circuit topology
  • Chemical balancing lives in the null space
  • Network flow: consistent, often underdetermined
  • Overdetermined? Use normal equations AᵀAx̂ = Aᵀb
  • FIR filter design = linear system in coefficients
10 / 11
LA 101
Up Next
Module 3 Complete

Module 4: Eigenvalues

You've mastered setting up and solving linear systems. Next: the special vectors that a matrix simply stretches — eigenvectors — and the deep structure they reveal.

11 / 11