Math ClubMath Club
v1 · padrão canônico

Lesson 29 — 2x2 and 3x3 Linear Systems

Substitution, row reduction, Cramer's rule. Existence and uniqueness of solutions.

Used in: 1.º ano do EM (15–16 anos) · Equiv. Algebra II japonês · Equiv. Klasse 10 alemã

{a1x+b1y=c1a2x+b2y=c2x=c1b2c2b1a1b2a2b1\begin{cases} a_1 x + b_1 y = c_1 \\ a_2 x + b_2 y = c_2 \end{cases} \quad \to \quad x = \frac{c_1 b_2 - c_2 b_1}{a_1 b_2 - a_2 b_1}
Choose your door

Rigorous notation, full derivation, hypotheses

Methods and theory

Solution methods

  1. Substitution: isolate one variable and substitute into the other.
  2. Addition (elimination): combine equations to eliminate a variable.
  3. Cramer: ratio of determinants.
  4. Row reduction (Gauss): triangularize the matrix.
  5. Inverse matrix: x=A1b\mathbf x = A^{-1}\mathbf b.

Cramer 2x2

For {a1x+b1y=c1a2x+b2y=c2\begin{cases} a_1 x + b_1 y = c_1 \\ a_2 x + b_2 y = c_2 \end{cases} with D=a1b2a2b10D = a_1 b_2 - a_2 b_1 \neq 0:

x=c1b2c2b1D,y=a1c2a2c1Dx = \frac{c_1 b_2 - c_2 b_1}{D}, \quad y = \frac{a_1 c_2 - a_2 c_1}{D}

Cramer 3x3

3x3 determinant (Sarrus): detA=a11(a22a33a23a32)a12(a21a33a23a31)+a13(a21a32a22a31)\det A = a_{11}(a_{22}a_{33} - a_{23}a_{32}) - a_{12}(a_{21}a_{33} - a_{23}a_{31}) + a_{13}(a_{21}a_{32} - a_{22}a_{31})

xi=detAidetAx_i = \frac{\det A_i}{\det A}

where AiA_i has the ii-th column replaced by b\vec b.

Classification by determinant

CaseDeterminant2x2 geometrySolutions
DeterminateD0D \neq 0concurrent linesunique
IndeterminateD=0D = 0 + consistentcoincident linesinfinitely many
ImpossibleD=0D = 0 + inconsistentdistinct parallelsnone

Row reduction (Gauss)

Elementary operations:

  1. Swap two equations.
  2. Multiply an equation by a non-zero scalar.
  3. Add a multiple of one equation to another.

Goal: upper triangular. Then back-substitution.

Exercise list

35 exercises · 8 with worked solution (25%)

Application 20Modeling 12Challenge 2Proof 1
  1. Ex. 29.1Application
    Solve {x+y=5xy=1\begin{cases} x + y = 5 \\ x - y = 1 \end{cases}. (Ans: (3,2)(3, 2).)
  2. Ex. 29.2Application
    Solve {2x+3y=134xy=5\begin{cases} 2x + 3y = 13 \\ 4x - y = 5 \end{cases}. (Ans: (2,3)(2, 3).)
  3. Ex. 29.3ApplicationAnswer key
    Solve {3xy=7x+2y=4\begin{cases} 3x - y = 7 \\ x + 2y = 4 \end{cases}.
  4. Ex. 29.4Application
    Solve {x=2yx+y=9\begin{cases} x = 2y \\ x + y = 9 \end{cases}. (Ans: (6,3)(6, 3).)
  5. Ex. 29.5Application
    Solve by Cramer: {2x+y=7x3y=2\begin{cases} 2x + y = 7 \\ x - 3y = -2 \end{cases}.
  6. Ex. 29.6Application
    System {2x+4y=8x+2y=4\begin{cases} 2x + 4y = 8 \\ x + 2y = 4 \end{cases}. How many solutions? (Ans: infinitely many, coincident lines.)
  7. Ex. 29.7Application
    System {x+y=3x+y=5\begin{cases} x + y = 3 \\ x + y = 5 \end{cases}. Solutions? (Ans: none.)
  8. Ex. 29.8Application
    3x3 system: {x+y+z=62xy+z=3x+2yz=2\begin{cases} x + y + z = 6 \\ 2x - y + z = 3 \\ x + 2y - z = 2 \end{cases}.
  9. Ex. 29.9Application
    Determinant of (2314)\begin{pmatrix} 2 & 3 \\ 1 & 4 \end{pmatrix}. (Ans: 5.)
  10. Ex. 29.10ApplicationAnswer key
    3x3 determinant of (123456780)\begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 0 \end{pmatrix}. (Ans: 27.)
  11. Ex. 29.11Application
    For which kk does the system {x+2y=53x+ky=10\begin{cases} x + 2y = 5 \\ 3x + ky = 10 \end{cases} have a unique solution? (Ans: k6k \neq 6.)
  12. Ex. 29.12Application
    For which kk is the system in 29.11 inconsistent?
  13. Ex. 29.13Application
    Solve {0.5xy=3x+2y=5\begin{cases} 0.5 x - y = 3 \\ x + 2 y = 5 \end{cases}.
  14. Ex. 29.14ApplicationAnswer key
    System with fractions: {x/2+y/3=1x/3y/4=0\begin{cases} x/2 + y/3 = 1 \\ x/3 - y/4 = 0 \end{cases}.
  15. Ex. 29.15ApplicationAnswer key
    How many liters of a 30% solution and how many of a 50% solution to obtain 10 L at 40%? (Ans: 5L of each.)
  16. Ex. 29.16Application
    Sum of 2 numbers is 25, difference is 7. Find them. (Ans: 16 and 9.)
  17. Ex. 29.17Application
    Sum of coins: $3. Some $0.25 coins and some $0.50 coins, 8 coins total. How many of each?
  18. Ex. 29.18Application
    The sum of 3 numbers is 30; the second is twice the first; the third equals the sum of the other 2. Find them.
  19. Ex. 29.19Application
    System with 3 equations: {a+b+c=10ab+c=4a+bc=6\begin{cases} a + b + c = 10 \\ a - b + c = 4 \\ a + b - c = 6 \end{cases}.
  20. Ex. 29.20Application
    Verify that the solution of {x+y=7xy=1\begin{cases} x + y = 7 \\ x - y = 1 \end{cases} is (4,3)(4, 3).
  21. Ex. 29.21Modeling
    Mixture: 200g of coffee at $30/kg + xxg of coffee at $50/kg = mixture at $38/kg. Find xx.
  22. Ex. 29.22ModelingAnswer key
    Age: father is 4×4\times the son's age today. In 20 years, he'll be only twice as old. Current ages? (Ans: father 40, son 10.)
  23. Ex. 29.23Modeling
    Geometry: rectangle perimeter 30, area 56. Sides? (Ans: 7 and 8.)
  24. Ex. 29.24ModelingAnswer key
    Boat speed against current: vbvc=8v_b - v_c = 8 km/h, with current: vb+vc=12v_b + v_c = 12. Find. (Ans: vb=10,vc=2v_b = 10, v_c = 2.)
  25. Ex. 29.25Modeling
    At a pizzeria, 3 pizzas + 2 sodas = $80. 2 pizzas + 4 sodas = $70. Price of each?
  26. Ex. 29.26ModelingAnswer key
    Truss with 3 bars: forces F1,F2,F3F_1, F_2, F_3 obey F1+F2=100F_1 + F_2 = 100, F12F2+F3=0F_1 - 2F_2 + F_3 = 0, F2+F3=50F_2 + F_3 = 50. Solve.
  27. Ex. 29.27Modeling
    In economics, 2 connected markets: D1(p1,p2)=202p1+p2D_1(p_1, p_2) = 20 - 2p_1 + p_2, S1(p1)=p15S_1(p_1) = p_1 - 5. Equilibrium: D1=S1D_1 = S_1. System.
  28. Ex. 29.28Modeling
    In circuits, Kirchhoff's law gives a linear system of currents. Solve 3 loops with R1=10R_1 = 10, R2=20R_2 = 20, V=12V = 12 V.
  29. Ex. 29.29Modeling
    In ML linear regression with 2 features: y^=ax1+bx2\hat y = a x_1 + b x_2. Normal system XTXβ=XTyX^TX \beta = X^Ty is 2x2.
  30. Ex. 29.30Modeling
    In quant finance, portfolio with 2 assets. Constraints: w1+w2=1w_1 + w_2 = 1 (full investment), μ1w1+μ2w2=rT\mu_1 w_1 + \mu_2 w_2 = r_T (target return). 2x2 system in w1,w2w_1, w_2.
  31. Ex. 29.31Modeling
    Balanced chemical reaction aH2+bO2cH2OaH_2 + bO_2 \to cH_2O. System 2a=2c2a = 2c, 2b=c2b = c. Find smallest positive integer solution. (Ans: a=2,b=1,c=2a=2, b=1, c=2.)
  32. Ex. 29.32Modeling
    CAPM with 2 assets: ri=rf+βi(rmrf)r_i = r_f + \beta_i(r_m - r_f). Given r1=0.08,r2=0.12r_1 = 0.08, r_2 = 0.12 with rf=0.03,rm=0.10r_f = 0.03, r_m = 0.10, find β1,β2\beta_1, \beta_2.
  33. Ex. 29.33Challenge
    Show that the homogeneous system Ax=0A\mathbf{x} = \mathbf{0} always has x=0\mathbf{x} = \mathbf{0} as a solution. A non-trivial solution exists iff detA=0\det A = 0.
  34. Ex. 29.34ProofAnswer key
    Prove Cramer's 2x2 rule from elimination.
  35. Ex. 29.35Challenge
    For which kk does the 3x3 system {x+y+z=1x+2y+kz=2x+4y+k2z=4\begin{cases} x + y + z = 1 \\ x + 2y + kz = 2 \\ x + 4y + k^2 z = 4 \end{cases} have (a) unique solution, (b) infinitely many solutions, (c) none?

Sources

Updated on 2026-04-30 · Author(s): Clube da Matemática

Found an error? Open an issue on GitHub or submit a PR — open source forever.