Linear Systems & Matrices

Study Sheet

Linear Systems & Matrices

Systems in two and three variables, inequalities, matrices, determinants, and Cramer's Rule

Solving Two-Variable Systems (Review)

Concept
The three methods
xy

A system of two linear equations asks for the point (x,y)(x,y) that satisfies both equations at once. There are three standard methods:

  • [leftmargin=*]
  • Graphing: plot both lines; the solution is where they cross.
  • Substitution: solve one equation for a variable, then substitute into the other.
  • Elimination: add or subtract multiples of the equations to cancel one variable.

Slope is rise over run.

Concept
How many solutions?

Compare the two lines:

  • [leftmargin=*]
  • Different slopes \Rightarrow lines cross once \Rightarrow one solution (consistent, independent).
  • Same slope, different intercepts \Rightarrow parallel lines \Rightarrow no solution (inconsistent).
  • Same slope and same intercept \Rightarrow same line \Rightarrow infinitely many solutions (dependent).
Example
Worked example: elimination

Solve {2x+3y=122xy=4\begin{cases} 2x + 3y = 12 \\ 2x - y = 4 \end{cases}

The xx-terms already match. Subtract the second equation from the first:

(2x+3y)(2xy)=1244y=8y=2.(2x+3y)-(2x-y) = 12-4 \quad\Rightarrow\quad 4y = 8 \quad\Rightarrow\quad y = 2.

Substitute into 2xy=42x - y = 4:  2x2=42x=6x=3.\ 2x - 2 = 4 \Rightarrow 2x = 6 \Rightarrow x = 3.

Solution: (3,2)(3,2). Check: 2(3)+3(2)=122(3)+3(2)=12 ✓ and 2(3)2=42(3)-2=4 ✓.

Example
Worked example: graphing

Solve {y=x+1y=x+3\begin{cases} y = x + 1 \\ y = -x + 3 \end{cases} by graphing. The lines meet where x+1=x+3x+1=-x+3, i.e. 2x=22x=2, so x=1x=1 and y=2y=2.

Tip

Tip: Elimination is fastest when a variable already has matching or opposite coefficients. Substitution shines when one equation is already solved for a variable (like y=y=\dots).

Systems of Linear Inequalities

Concept
The solution is a region, not a point

For a system of linear inequalities, the solution set is the region where all shaded half-planes overlap.

  • [leftmargin=*]
  • Graph each boundary line: use a solid line for \le or \ge, a dashed line for << or >>.
  • Shade the side that makes each inequality true (use a test point such as (0,0)(0,0) if it is not on the line).
  • The overlap of all shadings is the solution region.
Example
Worked example: describe the region

Describe the solution of {yx+1y>2\begin{cases} y \le x + 1 \\ y > -2 \end{cases}

The boundary y=x+1y = x+1 is solid (from \le); shade below/on it. The boundary y=2y=-2 is dashed (from >>); shade above it. The solution is the wedge that is on or below the slanted line and strictly above the horizontal line y=2y=-2.

Test point (0,0)(0,0): is 00+10 \le 0+1? Yes. Is 0>20 > -2? Yes. So (0,0)(0,0) lies in the region.

Tip

Tip: A point is a solution of the system only if it satisfies every inequality. Test each one separately.

Solving Three-Variable Systems by Elimination

Concept
The strategy

A system in x,y,zx,y,z needs three equations. To solve:

  • [leftmargin=*]
  • Pick a variable to eliminate. Combine two equations to remove it, then combine a different pair to remove the same variable. This leaves a 2×22\times2 system.
  • Solve that 2×22\times2 system for the remaining two variables.
  • Back-substitute to find the third variable.
  • Always check the solution in all three original equations.
Example
Worked example: full 3-variable elimination

Solve {x+y+z=62xy+z=3x+2yz=2\begin{cases} x + y + z = 6 \\ 2x - y + z = 3 \\ x + 2y - z = 2 \end{cases}

Step 1 --- eliminate zz. Add equation (1) and equation (3):

(x+y+z)+(x+2yz)=6+2  2x+3y=8.(A)(x+y+z)+(x+2y-z) = 6+2 \ \Rightarrow\ 2x + 3y = 8. \quad (\text{A})

Add equation (2) and equation (3):

(2xy+z)+(x+2yz)=3+2  3x+y=5.(B)(2x-y+z)+(x+2y-z) = 3+2 \ \Rightarrow\ 3x + y = 5. \quad (\text{B})

Step 2 --- solve the 2×22\times2 system. From (B), y=53xy = 5 - 3x. Substitute into (A):

2x+3(53x)=8  2x+159x=8  7x=7  x=1.2x + 3(5-3x) = 8 \ \Rightarrow\ 2x + 15 - 9x = 8 \ \Rightarrow\ -7x = -7 \ \Rightarrow\ x = 1.

Then y=53(1)=2y = 5 - 3(1) = 2.

Step 3 --- back-substitute. From (1): z=6xy=612=3z = 6 - x - y = 6 - 1 - 2 = 3.

Solution: (1,2,3)(1,2,3). Check: 1+2+3=61+2+3=6 ✓; 22+3=32-2+3=3 ✓; 1+43=21+4-3=2 ✓.

Tip

Tip: Eliminate the same variable both times. If you accidentally remove zz once and xx once, you cannot combine the two results.

Matrix Basics

Concept
Dimensions, equality, and the simple operations

A matrix is a rectangular array of numbers. Its order (dimension) is rows×columns\text{rows} \times \text{columns}; the entry in row ii, column jj is aija_{ij}.

  • [leftmargin=*]
  • Equal matrices: same order and every matching entry is equal.
  • Addition/subtraction: only for matrices of the same order; add or subtract entry by entry.
  • Scalar multiplication: multiply every entry by the scalar kk.
Example
Worked example: combining matrices

Let A=[2103]A=\begin{bmatrix} 2 & 1 \\ 0 & 3 \end{bmatrix} and B=[1245]B=\begin{bmatrix} 1 & -2 \\ 4 & 5 \end{bmatrix} (both 2×22\times2).

A+B=[2+11+(2)0+43+5]=[3148],3A=[3(2)3(1)3(0)3(3)]=[6309].A+B = \begin{bmatrix} 2+1 & 1+(-2) \\ 0+4 & 3+5 \end{bmatrix} = \begin{bmatrix} 3 & -1 \\ 4 & 8 \end{bmatrix}, \qquad 3A = \begin{bmatrix} 3(2) & 3(1) \\ 3(0) & 3(3) \end{bmatrix} = \begin{bmatrix} 6 & 3 \\ 0 & 9 \end{bmatrix}.

Equal matrices: if [x31y]=[2315]\begin{bmatrix} x & 3 \\ 1 & y \end{bmatrix} = \begin{bmatrix} 2 & 3 \\ 1 & -5 \end{bmatrix}, then x=2x = 2 and y=5y = -5.

Tip

Tip: You can only add or subtract matrices of identical order. A 2×32\times3 and a 3×23\times2 cannot be added.

Matrix Multiplication

Concept
When is it defined, and what size is the product?

The product ABAB is defined only when the number of columns of AA equals the number of rows of BB:

(m×n)(n×p)=(m×p).(m \times \mathbf{n}) \cdot (\mathbf{n} \times p) = (m \times p).

Each entry of ABAB is a row of AA dotted with a column of BB: multiply matching entries and add. Matrix multiplication is not commutative: usually ABBAAB \ne BA.

Example
Worked example: full row-by-column product

Compute ABAB for A=[1234]A=\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} and B=[5678]B=\begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix}. Both are 2×22\times2, so ABAB is 2×22\times2.

AB=[(1)(5)+(2)(7)(1)(6)+(2)(8)(3)(5)+(4)(7)(3)(6)+(4)(8)]=[5+146+1615+2818+32]=[19224350].AB = \begin{bmatrix} (1)(5)+(2)(7) & (1)(6)+(2)(8) \\[2pt] (3)(5)+(4)(7) & (3)(6)+(4)(8) \end{bmatrix} = \begin{bmatrix} 5+14 & 6+16 \\[2pt] 15+28 & 18+32 \end{bmatrix} = \begin{bmatrix} 19 & 22 \\ 43 & 50 \end{bmatrix}.

Read it as: (row 1 of AA)\cdot(column 1 of BB) gives the top-left entry, and so on.

Tip

Tip: Before multiplying, write the orders side by side. If the two inner numbers match, the product exists; the two outer numbers give its size.

Determinants: 2×22\times2 and 3×33\times3

Concept
The determinant of a square matrix

For a 2×22\times2 matrix, the determinant is

det[abcd]=adbc.\det\begin{bmatrix} a & b \\ c & d \end{bmatrix} = ad - bc.

For a 3×33\times3 matrix, expand along the first row (note the alternating +++\,-\,+ signs):

det[abcdefghi]=a(eifh)b(difg)+c(dheg).\det\begin{bmatrix} a & b & c \\ d & e & f \\ g & h & i \end{bmatrix} = a\,(ei - fh) - b\,(di - fg) + c\,(dh - eg).
Example
Worked example: a 3×33\times3 determinant

Compute det[213102415]\det\begin{bmatrix} 2 & 1 & 3 \\ 1 & 0 & 2 \\ 4 & 1 & 5 \end{bmatrix} by expanding along the top row:

=2(0521)    1(1524)  +  3(1104)=2(02)1(58)+3(10)=2(2)1(3)+3(1)=4+3+3=2.\begin{aligned} &= 2\,(0\cdot 5 - 2\cdot 1) \;-\; 1\,(1\cdot 5 - 2\cdot 4) \;+\; 3\,(1\cdot 1 - 0\cdot 4) \\ &= 2(0-2) - 1(5-8) + 3(1-0) \\ &= 2(-2) - 1(-3) + 3(1) = -4 + 3 + 3 = 2. \end{aligned}
Tip

Tip: Expanding along a row or column that contains zeros saves work, because those terms vanish. Remember the checkerboard sign pattern +++++\begin{smallmatrix}+&-&+\\-&+&-\\+&-&+\end{smallmatrix}.

Solving Systems with Determinants: Cramer's Rule

Concept
Cramer's Rule for a 2×22\times2 system

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} form the coefficient determinant

D=det[a1b1a2b2].D = \det\begin{bmatrix} a_1 & b_1 \\ a_2 & b_2 \end{bmatrix}.

Replace the xx-column with the constants to get DxD_x, and the yy-column to get DyD_y:

Dx=det[c1b1c2b2],Dy=det[a1c1a2c2].D_x = \det\begin{bmatrix} c_1 & b_1 \\ c_2 & b_2 \end{bmatrix}, \qquad D_y = \det\begin{bmatrix} a_1 & c_1 \\ a_2 & c_2 \end{bmatrix}.

Then, provided D0D \ne 0,   x=DxD,y=DyD.x = \dfrac{D_x}{D}, \quad y = \dfrac{D_y}{D}. If D=0D=0, Cramer's Rule does not apply (no unique solution).

Example
Worked example: Cramer's Rule

Solve {2x+3y=12xy=1\begin{cases} 2x + 3y = 12 \\ x - y = 1 \end{cases}

D=det[2311]=(2)(1)(1)(3)=5,Dx=det[12311]=123=15,D = \det\begin{bmatrix} 2 & 3 \\ 1 & -1 \end{bmatrix} = (2)(-1)-(1)(3) = -5, \quad D_x = \det\begin{bmatrix} 12 & 3 \\ 1 & -1 \end{bmatrix} = -12-3 = -15,
Dy=det[21211]=212=10.D_y = \det\begin{bmatrix} 2 & 12 \\ 1 & 1 \end{bmatrix} = 2-12 = -10.

So x=155=3x = \dfrac{-15}{-5} = 3 and y=105=2y = \dfrac{-10}{-5} = 2. Solution: (3,2)(3,2). Check: 2(3)+3(2)=122(3)+3(2)=12 ✓, 32=13-2=1 ✓.

Tip

Tip: Keep the columns in order. DxD_x swaps only the xx-column for the constants; everything else stays put.

Applications: Setting Up Systems

Concept
From words to equations

To model a word problem:

  • [leftmargin=*]
  • Name each unknown with a variable (one per unknown quantity).
  • Translate each sentence of information into one equation. You need as many equations as unknowns.
  • Solve by any method, then interpret the answer in context and check it against the words.
Example
Worked example: a ticket problem

A theater sells 100100 tickets for a total of $680. Adult tickets cost $8 and child tickets cost $5. How many of each were sold?

Let aa = adult tickets, cc = child tickets. Then

{a+c=1008a+5c=680\begin{cases} a + c = 100 \\ 8a + 5c = 680 \end{cases}

From the first equation c=100ac = 100 - a. Substitute: 8a+5(100a)=6808a+5005a=6803a=180a=60.8a + 5(100-a) = 680 \Rightarrow 8a + 500 - 5a = 680 \Rightarrow 3a = 180 \Rightarrow a = 60. Then c=40.c = 40.

Answer: 6060 adult and 4040 child tickets. Check: 60+40=10060+40=100 ✓ and 8(60)+5(40)=480+200=6808(60)+5(40)=480+200=680 ✓.

Tip

Tip: Count your unknowns first. Two unknowns need two independent facts; three unknowns (say nickels, dimes, quarters) need three.

Going Deeper: Advanced Systems & Matrices

Concept
Symmetric systems and elementary symmetric functions

A system is symmetric if swapping xyx \leftrightarrow y leaves it unchanged, e.g. {x+y=sxy=p\begin{cases} x+y = s \\ xy = p \end{cases}. The two quantities

s=x+y(the sum),p=xy(the product)s = x+y \quad(\text{the \emph{sum}}), \qquad p = xy \quad(\text{the \emph{product}})

are the elementary symmetric functions. Any symmetric expression rewrites in terms of ss and pp; the key identities are

x2+y2=s22p,x2xy+y2=s23p,x3+y3=s33ps.x^2+y^2 = s^2 - 2p, \qquad x^2 - xy + y^2 = s^2 - 3p, \qquad x^3+y^3 = s^3 - 3ps.

Once ss and pp are known, xx and yy are the roots of the single quadratic

t2st+p=0.t^2 - s\,t + p = 0.
Example
Worked example: solving a symmetric system

Solve {x+y=5x2+y2=13\begin{cases} x + y = 5 \\ x^2 + y^2 = 13 \end{cases}

Step 1 --- get ss and pp. Here s=x+y=5s = x+y = 5. Use x2+y2=s22px^2+y^2 = s^2 - 2p:

13=522p  13=252p  2p=12  p=6.13 = 5^2 - 2p \ \Rightarrow\ 13 = 25 - 2p \ \Rightarrow\ 2p = 12 \ \Rightarrow\ p = 6.

Step 2 --- build the quadratic. With s=5s=5, p=6p=6, the values x,yx,y are the roots of

t25t+6=0  (t2)(t3)=0  t=2 or t=3.t^2 - 5t + 6 = 0 \ \Rightarrow\ (t-2)(t-3) = 0 \ \Rightarrow\ t = 2 \text{ or } t = 3.

Solution: (x,y)=(2,3)(x,y) = (2,3) or (3,2)(3,2). Check: 2+3=52+3=5 ✓ and 22+32=4+9=132^2+3^2 = 4+9 = 13 ✓.

Concept
Nonlinear systems: line--conic and conic--conic

When at least one equation is a conic (circle, parabola, ellipse, hyperbola), count solutions geometrically:

  • [leftmargin=*]
  • Line meets a conic: substitute the line into the conic to get one quadratic. The discriminant tells you 22 points (secant), 11 point (tangent), or 00 points (miss).
  • Two conics: up to 44 intersection points. Subtract the two equations to cancel the quadratic terms when possible --- this often leaves a line (the radical axis for two circles), reducing the problem to a line--conic case.
Example
Worked example: two-conic system by subtraction

Solve {x2+y2=25x2+y26x8y=15\begin{cases} x^2 + y^2 = 25 \\ x^2 + y^2 - 6x - 8y = -15 \end{cases}

Step 1 --- subtract to kill the squares. Equation (1) minus equation (2):

(x2+y2)(x2+y26x8y)=25(15)  6x+8y=40  3x+4y=20.(x^2+y^2) - (x^2+y^2-6x-8y) = 25 - (-15) \ \Rightarrow\ 6x + 8y = 40 \ \Rightarrow\ 3x + 4y = 20.

This line is the radical axis. Solve it for xx: x=204y3x = \dfrac{20 - 4y}{3}.

Step 2 --- substitute into the circle. Better: from 3x+4y=203x+4y=20 take x=204y3x = \frac{20-4y}{3} and plug into x2+y2=25x^2+y^2=25. Multiplying through by 99,

(204y)2+9y2=225  400160y+16y2+9y2=225  25y2160y+175=0.(20-4y)^2 + 9y^2 = 225 \ \Rightarrow\ 400 - 160y + 16y^2 + 9y^2 = 225 \ \Rightarrow\ 25y^2 - 160y + 175 = 0.

Divide by 55: 5y232y+35=0(5y7)(y5)=0y=755y^2 - 32y + 35 = 0 \Rightarrow (5y - 7)(y - 5) = 0 \Rightarrow y = \tfrac{7}{5} or y=5y = 5.

Step 3 --- back-substitute. If y=5y = 5: x=20203=0x = \frac{20-20}{3} = 0, giving (0,5)(0,5). If y=75y = \tfrac{7}{5}: x=2028/53=72/53=245x = \frac{20 - 28/5}{3} = \frac{72/5}{3} = \tfrac{24}{5}, giving (245,75)\left(\tfrac{24}{5}, \tfrac{7}{5}\right).

Solutions: (0,5)(0,5) and (245,75)\left(\tfrac{24}{5}, \tfrac{7}{5}\right). Check (0,5)(0,5): 0+25=250+25=25 ✓.

Concept
The inverse of a 3×33\times3 matrix

For a square matrix AA, the inverse A1A^{-1} satisfies AA1=A1A=IA A^{-1} = A^{-1} A = I. It exists precisely when detA0\det A \ne 0. The adjugate formula is

A1=1detAadj(A),A^{-1} = \frac{1}{\det A}\,\operatorname{adj}(A),

where adj(A)\operatorname{adj}(A) is the transpose of the cofactor matrix. Building it takes three steps:

  • [leftmargin=*]
  • Cofactors: Cij=(1)i+jMijC_{ij} = (-1)^{i+j} M_{ij}, where the minor MijM_{ij} is the determinant of AA with row ii and column jj deleted.
  • Adjugate: transpose the matrix of cofactors (adj(A)ij=Cji\operatorname{adj}(A)_{ij} = C_{ji}).
  • Scale: divide every entry by detA\det A.

Once A1A^{-1} is known, the system Ax=bA\mathbf{x} = \mathbf{b} has the one-line solution x=A1b\mathbf{x} = A^{-1}\mathbf{b}.

Example
Worked example: invert a 3×33\times3 and solve

Solve {x+2y+3z=5x+2y+3z=4x+2y+3z=3\begin{cases} x + 2y + 3z = 5 \\ \phantom{x + {}}2y + 3z = 4 \\ \phantom{x + 2y + {}}3z = 3 \end{cases} using the inverse of A=[123023003]A = \begin{bmatrix} 1 & 2 & 3 \\ 0 & 2 & 3 \\ 0 & 0 & 3 \end{bmatrix}.

Step 1 --- determinant. AA is upper triangular, so detA=123=60\det A = 1 \cdot 2 \cdot 3 = 6 \ne 0; the inverse exists.

Step 2 --- cofactors and adjugate. Computing cofactors and transposing gives

adj(A)=[660033002],A1=16[660033002]=[110012120013].\operatorname{adj}(A) = \begin{bmatrix} 6 & -6 & 0 \\ 0 & 3 & -3 \\ 0 & 0 & 2 \end{bmatrix}, \qquad A^{-1} = \frac{1}{6}\begin{bmatrix} 6 & -6 & 0 \\ 0 & 3 & -3 \\ 0 & 0 & 2 \end{bmatrix} = \begin{bmatrix} 1 & -1 & 0 \\ 0 & \tfrac12 & -\tfrac12 \\ 0 & 0 & \tfrac13 \end{bmatrix}.

Step 3 --- multiply by b=[543]\mathbf{b} = \begin{bmatrix} 5 \\ 4 \\ 3 \end{bmatrix}.

x=A1b=[110012120013][543]=[542321]=[1121].\mathbf{x} = A^{-1}\mathbf{b} = \begin{bmatrix} 1 & -1 & 0 \\ 0 & \tfrac12 & -\tfrac12 \\ 0 & 0 & \tfrac13 \end{bmatrix}\begin{bmatrix} 5 \\ 4 \\ 3 \end{bmatrix} = \begin{bmatrix} 5 - 4 \\ 2 - \tfrac32 \\ 1 \end{bmatrix} = \begin{bmatrix} 1 \\ \tfrac12 \\ 1 \end{bmatrix}.

Solution: x=1, y=12, z=1x = 1,\ y = \tfrac12,\ z = 1. Check the first equation: 1+2(12)+3(1)=1+1+3=51 + 2(\tfrac12) + 3(1) = 1+1+3 = 5 ✓.

Concept
Determinant properties and special identities

These rules let you evaluate determinants without brute force:

  • [leftmargin=*]
  • Row/column operations: adding a multiple of one row to another does not change det\det; swapping two rows multiplies det\det by 1-1; scaling a row by kk scales det\det by kk.
  • Zero determinant: a repeated row, a zero row, or one row a multiple of another all force det=0\det = 0.
  • Products & transposes: det(AB)=detAdetB\det(AB) = \det A \,\det B, det(AT)=detA\det(A^{\mathsf T}) = \det A, det(A1)=1/detA\det(A^{-1}) = 1/\det A, det(kA)=kndetA\det(kA) = k^n \det A for an n×nn\times n matrix.
  • Vandermonde: det[1aa21bb21cc2]=(ba)(ca)(cb).\det\begin{bmatrix} 1 & a & a^2 \\ 1 & b & b^2 \\ 1 & c & c^2 \end{bmatrix} = (b-a)(c-a)(c-b).
  • Rank-one update: det(I+aJ)\det(I + aJ), where JJ is the n×nn\times n all-ones matrix, equals 1+na1 + na (since JJ has eigenvalues nn and 00).
Tip

Tip: The Vandermonde determinant is zero exactly when two of a,b,ca,b,c are equal --- which is why nn distinct data points determine a unique degree-(n1)(n-1) interpolating polynomial.

Concept
Singular matrices: when there is no inverse

A square matrix AA is singular (non-invertible) exactly when detA=0\det A = 0. For the system Ax=bA\mathbf{x}=\mathbf{b} this means no unique solution --- either no solution or infinitely many. Equivalent warning signs of singularity:

  • [leftmargin=*]
  • the rows (or columns) are linearly dependent --- one is a combination of the others;
  • a row reduces to all zeros during elimination;
  • Cramer's Rule breaks because D=detA=0D = \det A = 0.

To find the parameter that makes a matrix singular, set its determinant equal to zero and solve.

Example
Worked example: for which kk is the matrix singular?

Find all kk for which A=[k28k]A = \begin{bmatrix} k & 2 \\ 8 & k \end{bmatrix} has no inverse, and describe the system Ax=0A\mathbf{x} = \mathbf{0} there.

Singular means detA=0\det A = 0:

detA=kk(2)(8)=k216=0  k=4 or k=4.\det A = k\cdot k - (2)(8) = k^2 - 16 = 0 \ \Rightarrow\ k = 4 \text{ or } k = -4.

At k=4k = 4: A=[4284]A = \begin{bmatrix} 4 & 2 \\ 8 & 4 \end{bmatrix}, whose second row is twice the first --- the rows are linearly dependent, confirming det=0\det = 0. The homogeneous system then reduces to the single equation 4x+2y=04x + 2y = 0, i.e. y=2xy = -2x, giving infinitely many solutions along that line rather than only x=0\mathbf{x}=\mathbf{0}.

Concept
Matrix powers AnA^n and recurrences

Repeated multiplication An=AAAA^n = A\cdot A \cdots A (nn factors) models step-by-step processes (Markov chains, Fibonacci-type recurrences). Two shortcuts:

  • [leftmargin=*]
  • Diagonal matrices power entrywise: diag(a,b)n=diag(an,bn)\operatorname{diag}(a,b)^n = \operatorname{diag}(a^n, b^n).
  • Cayley--Hamilton: every matrix satisfies its own characteristic equation. For a 2×22\times2 matrix, A2=(trA)A(detA)IA^2 = (\operatorname{tr}A)\,A - (\det A)\,I, which lets you reduce any power AnA^n to the form αA+βI\alpha A + \beta I.

The Fibonacci matrix illustrates the recurrence link:

[1110] ⁣n=[Fn+1FnFnFn1].\begin{bmatrix} 1 & 1 \\ 1 & 0 \end{bmatrix}^{\!n} = \begin{bmatrix} F_{n+1} & F_n \\ F_n & F_{n-1} \end{bmatrix}.
Tip

Tip: To compute a high power like A10A^{10}, use repeated squaring: A2, A4=(A2)2, A8=(A4)2A^2,\ A^4 = (A^2)^2,\ A^8 = (A^4)^2, then A10=A8A2A^{10} = A^8 A^2. That is 44 multiplications instead of 99.

Concept
Find x+y+zx+y+z without solving the whole system

Sometimes a problem asks only for a combination of the unknowns --- not each one. Look for a shortcut before grinding out a full solution:

  • [leftmargin=*]
  • Add all equations. If the coefficients of x,y,zx,y,z each sum to the same value cc, then adding gives c(x+y+z)=(sum of constants)c(x+y+z) = (\text{sum of constants}), so x+y+zx+y+z pops out directly.
  • Take a linear combination of the equations designed to produce exactly the target combination.
Example
Worked example: get x+y+zx+y+z directly

Given {x+2y+3z=143x+y+2z=112x+3y+z=11\begin{cases} x + 2y + 3z = 14 \\ 3x + y + 2z = 11 \\ 2x + 3y + z = 11 \end{cases}, find x+y+zx+y+z without solving for each variable.

Add all three equations. On the left, each variable's coefficients sum to 1+3+2=61+3+2 = 6:

(1+3+2)x+(2+1+3)y+(3+2+1)z=14+11+11  6x+6y+6z=36.(1+3+2)x + (2+1+3)y + (3+2+1)z = 14 + 11 + 11 \ \Rightarrow\ 6x + 6y + 6z = 36.

Divide by 66:

x+y+z=6.x + y + z = 6.

Answer: x+y+z=6x+y+z = 6, obtained in one step --- no elimination needed. (For the record the full solution is (1,2,3)(1,2,3), and indeed 1+2+3=61+2+3=6 ✓.)

Tip

Tip: Whenever a question asks for a symmetric combination like x+y+zx+y+z or xy+yz+zxxy+yz+zx, first check whether adding or symmetrically combining the equations delivers it immediately. It often does.

Formulas, Proofs & Tips

Tip
Determinants and Cramer’s rule
det[abcd]=adbc,x=detAxdetA,y=detAydetA\det\begin{bmatrix} a & b \\ c & d\end{bmatrix}=ad-bc,\qquad x=\frac{\det A_x}{\det A},\quad y=\frac{\det A_y}{\det A}

What it means. The determinant measures how a matrix scales area; when it is 00 the system has no unique solution.

Example. det[2314]=2431=5\det\begin{bmatrix}2&3\\1&4\end{bmatrix}=2\cdot4-3\cdot1=5.

Why it works. Solving ax+by=e, cx+dy=fax+by=e,\ cx+dy=f by elimination gives x=edbfadbcx=\tfrac{ed-bf}{ad-bc}, and the numerator is the determinant of AA with the xx-column replaced by the constants. A zero determinant means the two lines are parallel or identical.

Tip. Check detA0\det A\neq 0 before dividing — that is precisely the test for a unique solution.

Tip
Solving systems
Substitution or elimination;parallelno solution;same lineinfinitely many\text{Substitution or elimination};\quad \text{parallel} \Rightarrow \text{no solution};\quad \text{same line} \Rightarrow \text{infinitely many}

What it means. A solution is a point on both lines, so the answer count is how many times they meet.

Example. x+y=5x+y=5 and xy=1x-y=1: adding gives 2x=62x=6, so x=3x=3, y=2y=2.

Why it works. Elimination adds a multiple of one equation to the other. Since both sides are equal quantities, the new equation still holds for every common solution — but one variable is gone.

Tip. If the variables all vanish and leave a false statement (0=50=5), there is no solution; a true one (0=00=0) means infinitely many.