Solving Two-Variable Systems (Review)
A system of two linear equations asks for the point that satisfies both equations at once. There are three standard methods:
- 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.
Three equations in three unknowns are solved by the same elimination as two: use one equation against each of the other two to remove a variable, which leaves an ordinary system, then back-substitute twice. A matrix stores the coefficients so the elimination can be written without repeating , , and on every line — each row is an equation, each column an unknown, and the bar marks where the equals signs were. The three row operations are exactly the three legal equation moves, which is why row reduction can never gain or lose a solution. A determinant of zero says there is no unique solution; whether that means none or infinitely many is decided by the constants.
Subtracting one equation from another produces a new equation that every solution of the pair still satisfies. When the -terms cancel, that new equation is a horizontal line, , passing through the same crossing point. Elimination is the search for a combination simple enough to read the answer from.
Compare the two lines:
- Different slopes lines cross once one solution (consistent, independent).
- Same slope, different intercepts parallel lines no solution (inconsistent).
- Same slope and same intercept same line infinitely many solutions (dependent).
Solve
The -terms already match. Subtract the second equation from the first:
Substitute into :
Solution: . Check: ✓ and ✓.
Doing a row operation on the coefficient columns and forgetting the constant column. Augment the matrix and treat every row as one unit.
Solve by graphing. The lines meet where , i.e. , so and .
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 ).
Solve .
Show the answerHide the answer
The second equation is already solved for , so substitute: , , . Then . Check: . Solution .
Systems of Linear Inequalities
For a system of linear inequalities, the solution set is the region where all shaded half-planes overlap.
- Graph each boundary line: use a solid line for or , a dashed line for or .
- Shade the side that makes each inequality true (use a test point such as if it is not on the line).
- The overlap of all shadings is the solution region.
Each boundary line splits the plane into two half-planes, one where the inequality holds and one where it fails, and a point cannot switch sides without crossing the line. So one test point per boundary settles which side to shade, and the system's solutions are where all the shaded half-planes overlap.
Describe the solution of
The boundary is solid (from ); shade below/on it. The boundary 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 .
Test point : is ? Yes. Is ? Yes. So lies in the region.
Using a solid boundary for a strict inequality. For , points on the line fail ( is false), so the line is dashed and not part of the region.
Tip: A point is a solution of the system only if it satisfies every inequality. Test each one separately.
For and , is a solution? ? ?
Show the answerHide the answer
: and , yes. : fails, no. : holds but fails, no (it is on the dashed edge).
Solving Three-Variable Systems by Elimination
A system in needs three equations. To solve:
- Pick a variable to eliminate. Combine two equations to remove it, then combine a different pair to remove the same variable. This leaves a system.
- Solve that system for the remaining two variables.
- Back-substitute to find the third variable.
- Always check the solution in all three original equations.
Each linear equation in three variables is a plane in space, and three planes typically meet in one point. Eliminating the same variable from two different pairs of equations produces two equations in the remaining two variables, which is a system you already know how to solve; the third variable is recovered by substituting back.
Solve
Step 1 — eliminate . Add equation (1) and equation (3):
Add equation (2) and equation (3):
Step 2 — solve the system. From (B), . Substitute into (A):
Then .
Step 3 — back-substitute. From (1): .
Solution: . Check: ✓; ✓; ✓.
Eliminating different variables in the two pairs: removing from equations (1) and (3) but from (1) and (2). The two results still contain three variables between them and cannot be combined. Eliminate the same variable both times.
Tip: Eliminate the same variable both times. If you accidentally remove once and once, you cannot combine the two results.
Solve .
Show the answerHide the answer
Eliminate twice. (1) (3): . (2) (3): . From the second, ; substitute: , so and . Then (1) gives . Check (2): . Solution .
Matrix Basics
A matrix is a rectangular array of numbers. Its order (dimension) is ; the entry in row , column is .
- 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 .
A matrix is a table of numbers with a fixed shape, and addition works entry by entry, so only tables of the same shape can be added (there must be an entry to pair with each entry). A scalar multiplies every entry because scaling a table scales everything in it, just as .
Let and (both ).
Equal matrices: if , then and .
Adding matrices of different orders by padding with zeros: a plus a is undefined, not a . Sums need matching positions.
Tip: You can only add or subtract matrices of identical order. A and a cannot be added.
For and , find .
Show the answerHide the answer
, and subtracting entry by entry gives .
Matrix Multiplication
The product is defined only when the number of columns of equals the number of rows of :
Each entry of is a row of dotted with a column of : multiply matching entries and add. Matrix multiplication is not commutative: usually .
The row-times-column rule comes from substitution. If turns into new variables and turns those into others, then doing and then is a single substitution whose coefficients are exactly the row-by-column sums. That is also why order matters: substituting in the other order gives a different result.
Compute for and . Both are , so is .
Read it as: (row 1 of )(column 1 of ) gives the top-left entry, and so on.
Multiplying entry by entry: . Matrix multiplication pairs rows with columns: the top-left entry is .
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.
For the same and , compute and compare it with .
Show the answerHide the answer
.
Determinants: and
For a matrix, the determinant is
For a matrix, expand along the first row (note the alternating signs):
A determinant measures area: the columns and span a parallelogram whose area is . For the columns and span area . A determinant of means the parallelogram is flat, the columns lie on one line, which is exactly when the matching system has no unique solution.
Compute by expanding along the top row:
Forgetting the alternating signs in a expansion: adding all three terms. The middle term along the top row is subtracted: .
Tip: Expanding along a row or column that contains zeros saves work, because those terms vanish. Remember the checkerboard sign pattern .
Find and .
Show the answerHide the answer
. Along the top row: .
Solving Systems with Determinants: Cramer's Rule
For form the coefficient determinant
Replace the -column with the constants to get , and the -column to get :
Then, provided , If , Cramer's Rule does not apply (no unique solution).
Cramer's rule is elimination done once in general: eliminating from and gives , which is . When that equation cannot be divided through, and the system has no solution or infinitely many.
Solve
So and . Solution: . Check: ✓, ✓.
Replacing the wrong column: for the constants replace the -column (the first), not the -column. Swapping them computes and returns where was wanted.
Tip: Keep the columns in order. swaps only the -column for the constants; everything else stays put.
Use Cramer's rule on .
Show the answerHide the answer
. . . So , . Check: and .
Applications: Setting Up Systems
To model a word problem:
- 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.
Each independent fact in a word problem is one equation, and each unknown needs one fact to pin it down. That count, equations equal to unknowns, is why a two-unknown problem needs two facts and a coin problem with three kinds of coins needs three.
A theater sells tickets for a total of $680. Adult tickets cost $8 and child tickets cost $5. How many of each were sold?
Let = adult tickets, = child tickets. Then
From the first equation . Substitute: Then
Answer: adult and child tickets. Check: ✓ and ✓.
Mixing units: writing correctly but pairing it with . One equation counts tickets, the other counts dollars; the totals are tickets and dollars.
Tip: Count your unknowns first. Two unknowns need two independent facts; three unknowns (say nickels, dimes, quarters) need three.
A jar holds coins (nickels, dimes, quarters) worth . There are twice as many dimes as nickels. How many of each?
Show the answerHide the answer
Let . Count: . Value in cents: . Relation: . Then and , so . Subtract: , , , . Check: .
Three Equations, Three Unknowns
A system is solved by turning it into a system.
1. Pick one variable to eliminate — the one with the friendliest coefficients.
2. Use the FIRST equation with the second, and the first with the third, to remove it. You now have two equations in two unknowns.
3. Solve that system by the usual means.
4. Back-substitute twice to recover the third unknown.
5. Check the triple in all three original equations — not just the two you finished with.
Solve , , .
Step 1 — choose. Eliminate ; its coefficients are , , , which is as easy as it gets.
Step 2 — first with second. Subtracting: gives .
Step 3 — first with third. Adding: gives .
Step 4 — solve the 2×2. From the first, . Substituting: , so and , hence .
Step 5 — back-substitute. , so .
Answer. .
Check. ✓, ✓, ✓.
Eliminate the chosen variable using ONE equation paired with each of the other two. Pairing the second with the third instead produces an equation you could have derived from the two you already have, and you end up going in a circle.
Row Reduction Without the Mystery
Writing , as throws away nothing except the symbols , and , which never change. The bar marks where the equals signs were. Every row is one equation, every column one unknown — so a row operation IS an equation move, done with less writing.
Swap two rows — writing the equations in a different order.
Scale a row by a nonzero constant — multiplying an equation through.
Add a multiple of one row to another — the elimination step.
Each is reversible, so none of them can gain or lose a solution. That reversibility is the entire justification for the method, and it is why a zero constant is forbidden in the scaling move: multiplying an equation by cannot be undone.
Solve , , .
Set up.
Step 1 — clear the first column. and give
Step 2 — tidy the pivot. gives the row , i.e. .
Step 3 — clear the second column below. gives , i.e. and .
Step 4 — back-substitute up. gives ; gives .
Answer. .
Check. ✓, ✓, ✓.
The commonest row-reduction error is performing an operation on the coefficient entries and forgetting the number after the bar. Treat each row as one object: whatever you do, do it to every entry in it.
Reading a Reduction That Did Not Finish
A row with reads "", which is false. The equations contradict each other: no solution.
A row reads "", which is true but empty. One equation was a consequence of the others, so there are fewer real constraints than unknowns: infinitely many solutions, described with a free parameter.
Solve , , .
Step 1 — reduce. gives a row of zeros: the second equation was twice the first and says nothing new.
Step 2 — what is left. and . Two equations, three unknowns, so one variable is free.
Step 3 — parametrise. Let . Then and , so .
Answer. for every real .
Check. At : — and ✓, ✓. At : , also a solution ✓.
Solve , .
Step 1 — reduce. gives .
Step 2 — read it. That row says .
Answer. No solution — the two planes are parallel and distinct.
The tell before you start. The left sides are proportional () but the right sides are not (). Whenever the coefficients scale and the constants do not, the system is inconsistent.
Determinants and Cramer's Rule
For the determinant is . Two readings of the same number:
Geometric. It is the factor by which the matrix scales area. Zero means the transformation squashes the plane onto a line, so it cannot be undone.
Algebraic. It is exactly the coefficient of that survives when you eliminate from the general system — which is why dividing by it is the last step of every solution, and why a zero determinant is the signal that no unique solution exists.
Solve , .
Step 1 — the determinant. . Nonzero, so there is one solution.
Step 2 — replace the -column with the constants. .
Step 3 — replace the -column. .
Step 4 — divide. and .
Check. ✓ and ✓.
For a system Cramer's rule and elimination cost about the same. For it needs four determinants, and beyond that it is hopeless — row reduction wins. Its real value is theoretical: it shows in one line that the solution is a RATIO of determinants, so it exists exactly when the bottom one is nonzero.
Systems That Are Not Lines
When one equation is a circle, a parabola or a hyperbola, elimination usually has nothing to cancel. Substitution still works: solve the linear equation for one variable and put it into the curved one. The result is a quadratic (or worse) in one variable, so expect up to TWO intersection points — and expect to have to check them.
Solve and .
Step 1 — substitute. .
Step 2 — expand and tidy. , so and .
Step 3 — factor. , so or .
Step 4 — get the partners. gives and .
Answer. Two points: and .
Check. ✓ and ✓ — the line cuts through the circle, which matches the two solutions.
Solve and .
Step 1 — recognise the shape. A sum and a product of two numbers are exactly the coefficients of a quadratic: and are the roots of .
Step 2 — solve it. , so the roots are and .
Answer. and — the system is symmetric, so both orderings solve it.
Check. ✓ and ✓.
Worth remembering. Any symmetric system in and can be rewritten in terms of and ; for instance , with no need to find and first.
If a step squares both sides — solving a system containing a square root, say — every candidate must be tested in the ORIGINAL equations. A pair that survives the algebra but fails the original is extraneous and must be discarded.
Going Deeper: Advanced Systems & Matrices
A system is symmetric if swapping leaves it unchanged, e.g. . The two quantities
are the elementary symmetric functions. Any symmetric expression rewrites in terms of and ; the key identities are
Once and are known, and are the roots of the single quadratic
Solve
Step 1 — get and . Here . Use :
Step 2 — build the quadratic. With , , the values are the roots of
Solution: or . Check: ✓ and ✓.
When at least one equation is a conic (circle, parabola, ellipse, hyperbola), count solutions geometrically:
- Line meets a conic: substitute the line into the conic to get one quadratic. The discriminant tells you points (secant), point (tangent), or points (miss).
- Two conics: up to 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.
Solve
Step 1 — subtract to kill the squares. Equation (1) minus equation (2):
This line is the radical axis. Solve it for : .
Step 2 — substitute into the circle. Better: from take and plug into . Multiplying through by ,
Divide by : or .
Step 3 — back-substitute. If : , giving . If : , giving .
Solutions: and . Check : ✓.
For a square matrix , the inverse satisfies . It exists precisely when . The adjugate formula is
where is the transpose of the cofactor matrix. Building it takes three steps:
- Cofactors: , where the minor is the determinant of with row and column deleted.
- Adjugate: transpose the matrix of cofactors ().
- Scale: divide every entry by .
Once is known, the system has the one-line solution .
Solve using the inverse of .
Step 1 — determinant. is upper triangular, so ; the inverse exists.
Step 2 — cofactors and adjugate. Computing cofactors and transposing gives
Step 3 — multiply by .
Solution: . Check the first equation: ✓.
These rules let you evaluate determinants without brute force:
- Row/column operations: adding a multiple of one row to another does not change ; swapping two rows multiplies by ; scaling a row by scales by .
- Zero determinant: a repeated row, a zero row, or one row a multiple of another all force .
- Products & transposes: , , , for an matrix.
- Vandermonde:
- Rank-one update: , where is the all-ones matrix, equals (since has eigenvalues and ).
Tip: The Vandermonde determinant is zero exactly when two of are equal — which is why distinct data points determine a unique degree- interpolating polynomial.
A square matrix is singular (non-invertible) exactly when . For the system this means no unique solution — either no solution or infinitely many. Equivalent warning signs of singularity:
- 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 .
To find the parameter that makes a matrix singular, set its determinant equal to zero and solve.
Find all for which has no inverse, and describe the system there.
Singular means :
At : , whose second row is twice the first — the rows are linearly dependent, confirming . The homogeneous system then reduces to the single equation , i.e. , giving infinitely many solutions along that line rather than only .
Repeated multiplication ( factors) models step-by-step processes (Markov chains, Fibonacci-type recurrences). Two shortcuts:
- Diagonal matrices power entrywise: .
- Cayley–Hamilton: every matrix satisfies its own characteristic equation. For a matrix, , which lets you reduce any power to the form .
The Fibonacci matrix illustrates the recurrence link:
Tip: To compute a high power like , use repeated squaring: , then . That is multiplications instead of .
Sometimes a problem asks only for a combination of the unknowns — not each one. Look for a shortcut before grinding out a full solution:
- Add all equations. If the coefficients of each sum to the same value , then adding gives , so pops out directly.
- Take a linear combination of the equations designed to produce exactly the target combination.
Given , find without solving for each variable.
Add all three equations. On the left, each variable's coefficients sum to :
Divide by :
Answer: , obtained in one step — no elimination needed. (For the record the full solution is , and indeed ✓.)
Tip: Whenever a question asks for a symmetric combination like or , first check whether adding or symmetrically combining the equations delivers it immediately. It often does.
Why It Works
Row operations — swap two rows, multiply a row by a nonzero constant, add a multiple of one row to another — are exactly the three legal equation moves, so they never change the solution set. Reaching a row with means the equations contradict each other (no solution); a row of all zeros means one equation was redundant (infinitely many). The determinant is zero precisely when the rows are dependent, which is why it detects both cases at once.
Do not read a proof the way you read a rule. Cover the last line, ask what the previous line forces, and only then uncover it. If a step feels like magic, that is the step to work by hand with a concrete number.
Formulas, Proofs & Tips
What it means. The determinant measures how a matrix scales area; when it is the system has no unique solution.
Example. .
Why it works. Solving by elimination gives , and the numerator is the determinant of with the -column replaced by the constants. A zero determinant means the two lines are parallel or identical.
Tip. Check before dividing — that is precisely the test for a unique solution.
What it means. A solution is a point on both lines, so the answer count is how many times they meet.
Example. and : adding gives , so , .
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 (), there is no solution; a true one () means infinitely many.