- Learn
- Mathematics
- University Math
- Linear Algebra 1
- Systems of Linear Equations
Systems of Linear Equations and Gaussian Elimination
BeginnerLesson 1 of 9 in Linear Algebra 1 Course
What you will learn
- Recognize linear equations in several variables, describe what the solution set of a system is, and solve small systems by applying elementary row operations to the augmented matrix.
- Describe linear systems and their solution setsDecide whether an equation is linear, test whether a list of numbers solves a system, and know the three possible kinds of solution set and what they look like geometrically.
- Use augmented matrices and elementary row operationsWrite a system as an augmented matrix, apply the three row operations correctly, and use them with back substitution to solve a system.
- Describe linear systems and their solution sets
- Reduce any matrix to echelon and reduced echelon form, read the general solution from it using basic and free variables, and decide whether a system has no solution, one solution or infinitely many.
- Recognize echelon and reduced echelon forms and their pivotsCheck the conditions for echelon and reduced echelon form, know which form is unique, and locate pivot positions and pivot columns.
- Carry out the row reduction algorithmFollow the forward and backward phases of row reduction step by step to reach the reduced echelon form, avoiding the typical slips.
- Write the general solution with basic and free variablesIdentify basic and free variables from the reduced echelon form and write a parametric description of every solution.
- Decide whether solutions exist and whether they are uniqueUse the pivots of an echelon form to decide between no solution, exactly one solution and infinitely many, including systems with an unknown constant.
- Recognize echelon and reduced echelon forms and their pivots
- Calculate with vectors in , rewrite a linear system as a vector equation, and decide whether a vector is a linear combination of given vectors and so lies in their span.
- Add and scale vectors in ℝⁿWrite vectors in as columns, add them and multiply them by scalars, and picture these operations in the plane.
- Write systems as vector equations using linear combinationsForm linear combinations, turn a vector equation into an augmented matrix, and use row reduction to find the weights or show that none exist.
- Describe the span of a set of vectors and test membershipExplain what a span is, picture spans in and , and decide whether a given vector lies in a span.
- Add and scale vectors in ℝⁿ
- Multiply a matrix by a vector, move between the system, vector equation and matrix equation forms, and use pivots to decide when can be solved for every right-hand side.
- Multiply a matrix by a vectorCompute as a linear combination of the columns of and by the row–vector rule, and know when the product is defined.
- Connect the system, the vector equation and Ax = bTranslate between the three forms of a linear system and decide whether the columns of a matrix span from its pivot positions.
- Multiply a matrix by a vector
- Solve homogeneous systems, write any solution set in parametric vector form, and explain the solutions of as a shifted copy of the solutions of .
- Solve homogeneous systems Ax = 0Decide when has nontrivial solutions and write its solution set as a span in parametric vector form.
- Describe the solutions of Ax = b as a translated setWrite the solutions of a consistent nonhomogeneous system as a particular solution plus the homogeneous solutions, and interpret this as a line or plane.
- Solve homogeneous systems Ax = 0
Systems of Linear Equations study guide
1Linear systems and row operations
A system asks several equations to hold for the same values of the variables. With two variables, you can often see the answer where lines meet. With more variables, an augmented matrix keeps the equations organized while you eliminate unknowns. This chapter connects that familiar algebra to the three row operations and shows how to recover a complete solution without losing an equation along the way.
1.1 Equations, solutions, and intersections
A linear system is a collection of linear equations in the same variables. A solution is an ordered list of values that makes every equation true. Keeping the order fixed matters: the first entry belongs to the first variable, even when an equation happens not to contain it.
What makes an equation linear?
A linear equation in variables can be written as
The coefficients and constant are fixed real numbers. Variables occur to the first power and are multiplied by constants. Simplify before deciding: becomes , which is linear. A coefficient such as is allowed because it is a fixed number. A remaining term such as , , or makes an equation nonlinear.
Test every equation
Consider
For , the left sides are , , and . All three match their right sides, so this ordered triple is a solution. The triple passes the first equation but gives in the second. One failed equation rules it out.
The solution set contains every solution. Systems are equivalent when their solution sets are equal, even if their equations look different. A system is consistent when it has at least one solution and inconsistent when it has none. Over the real numbers, the only possibilities are no solution, exactly one solution, and infinitely many solutions.
The row picture
In two variables, an equation with at least one nonzero coefficient describes a line. Each equation contributes a line, and the system asks which points lie on all of them. Two crossing lines give one solution. Distinct parallel lines give none. Coincident lines give infinitely many points on their common line.
In three variables, an equation with at least one nonzero coefficient describes a plane. Shared points of the planes form the solution set. The planes and share the entire -axis: each point works. Other systems can have an empty intersection, one point, or a plane.
Counts alone do not decide the answer
Two equations in three variables can conflict: and require the same sum to have different values. Three equations in two variables can agree at one point: , , and all hold at .
If every coefficient in an equation is zero, inspect the constant. The equation restricts nothing; makes the whole system inconsistent. If every equation is an identity, every list of real values works. Thus a three-variable system consisting entirely of identities has all of as its solution set.
Key Takeaways
- A solution satisfies every equation with the same ordered variable values.
- After simplification, a linear equation has only constant multiples of variables to the first power.
- A real linear system has zero, one, or infinitely many solutions.
- A consistent system has at least one solution.
- The row picture finds the common intersection of the equations’ lines or planes.
- An identity adds no restriction; a contradiction rules out every solution.
1.2 Augmented matrices and reversible operations
An augmented matrix records the numbers in a system while keeping the variable order fixed. Row operations then simplify the equations without changing their solutions. They are the matrix version of elimination.
Put each number in its place
An matrix has rows and columns. Its -entry lies in row , column . The coefficient matrix stores one equation per row and one variable per column. The augmented matrix adds the constants as a final column, separated by a bar.
For the system in the preceding section, the augmented matrix is
There are three variables but four matrix columns. Rewrite equations with variables in the same order and constants on the right before collecting coefficients. The equation contributes . Its initial zero reserves the position for .
Three elementary row operations
Replacement adds a multiple of another row to a row: . Interchange swaps rows: . Scaling multiplies a whole row by a nonzero constant: . Each operation includes the constant entry.
These operations are reversible. Add back the multiple to undo replacement, swap again to undo interchange, or multiply by the reciprocal to undo scaling. Reversibility makes the old and new systems equivalent. Multiplying a row by zero destroys information and is not an elementary scaling operation. Matrices connected by row operations are row equivalent.
Eliminate from the top down
Use row 1 of the displayed matrix to clear column 1 below it:
- gives .
- gives .
Now use the current row 2: gives . The new system is triangular:
The first replacement is ordinary equation subtraction written compactly. Subtract twice the entire equation from . Collecting coefficients gives . The right side is , just as the left side subtracts twice every coefficient. Keeping the unchanged first equation lets you recover the original second equation by adding twice the first back.
Substitute from the bottom up
The last row gives , so . The second gives , so . The first gives , so . This is back substitution. Checking in the original equations verifies each equality.
Use the current rows
A replacement changes just its target row. Record that change before using the result in another operation. For and , replacing both rows simultaneously by their differences would leave and . The information fixing would be lost. Replacing only row 2 by keeps row 1 and gives , after which back substitution recovers both values.
Key Takeaways
- An augmented matrix keeps coefficients and constants in fixed columns.
- A missing variable needs a zero coefficient.
- Replacement, interchange, and nonzero scaling act on the entire row.
- Reversible row operations preserve the solution set.
- Use back substitution from the bottom nonzero row upward.
2Pivots, free variables, and complete solutions
Row reduction puts a system into a form where its restrictions are easy to see. Leading entries show which variables are determined by the others. A contradictory row settles existence; the remaining variable columns settle uniqueness. You will first learn to recognize the target forms, then carry out both reduction phases and turn the result into a description of every solution, including cases with an unknown coefficient.
2.1 Echelon forms and pivot positions
An echelon form organizes the nonzero rows into a staircase. It exposes the equations that remain after elimination. The reduced form goes further, making each leading variable easy to isolate.
Check the staircase
The leading entry of a nonzero row is its leftmost nonzero number. A matrix is in echelon form when all zero rows are at the bottom and the leading entry of each successive nonzero row lies strictly to the right of the one above. Entries below a leading entry are consequently zero.
For example,
is in echelon form. Its leading entries are 2 in column 1 and 5 in column 3. They need not be 1. A zero row between these two nonzero rows would break the form, as would placing the lower leading entry in column 1.
Make the form reduced
A matrix is in reduced echelon form, or RREF, when it is in echelon form and every leading entry is 1 and the only nonzero entry in its column. Thus
is reduced. The 4 and −2 in column 3 are allowed: column 3 has no leading entry. Reduction clears pivot columns, not every column. A matrix can already be in RREF even when it has many nonzero entries away from its leading 1s.
One reduced form, several echelon forms
Different legal operations can produce different echelon forms. Starting from
use to obtain rows and . Scaling the first row by gives rows and , another echelon form. Clearing the 2 above the second leading entry gives the identity matrix. Every matrix has exactly one reduced echelon form, regardless of the legal route used to reach it.
A position is different from its current entry
A pivot position is a position holding a leading 1 in the reduced form. It also holds a leading entry in every echelon form. A pivot column is a column containing one of these positions. The nonzero entry chosen to clear other entries during elimination is called a pivot.
You find pivot positions by reduction, not by marking all nonzero entries of the original matrix. In
the top-left entry is zero. Swapping rows gives , so both columns are pivot columns and is a pivot position of the original matrix too. A position describes a location, even when the original number there was zero.
Count the available pivots
Each nonzero echelon row contributes one pivot, and successive pivots occupy different columns. An matrix therefore has at most pivots and at most pivots. A matrix has at most three, leaving at least two columns without pivots. The dimensions limit the count; reduction determines which columns actually contain them.
Key Takeaways
- Echelon form has zero rows at the bottom and leading entries stepping right.
- RREF also has leading 1s with zeros above and below each one.
- Echelon forms can differ, but the reduced echelon form is unique.
- Find pivot positions from a reduced or echelon form, not from the original nonzero entries.
- There is at most one pivot per row and per column.
2.2 The forward and backward phases
The row reduction algorithm repeatedly chooses a pivot and clears entries around it. The forward phase produces an echelon form. The backward phase produces the unique reduced echelon form.
Move through the remaining rows
Start with the leftmost nonzero column. Move a nonzero entry to its top position by interchanging rows if needed, then use that pivot row to clear the entries below it. Continue on the rows below the pivot, ignoring the rows already finished. In this smaller region, skip any column containing only zeros. A skipped column cannot supply the next pivot.
Consider
Swap to put a 1 at the top of column 1. Use , obtaining as row 3. Scale row 2 by to obtain . Then gives
Column 3 has no nonzero entry left below the second pivot, so the next pivot is in column 4. The forward phase is complete.
Clear above the pivots
Begin with the rightmost pivot. Scale so its final entries are . Then clear column 4 above it:
- gives .
- gives .
Finally, clears column 2:
Every pivot is 1 and is alone in its column. Column 3 can retain its 2 and −1 because it has no pivot.
Choose useful pivots and protect earlier zeros
Any nonzero candidate works. A 1 or −1 often keeps hand calculations short. Never divide by a zero entry; swap with a lower row or move to the next column. During the forward phase, use the current pivot row to clear below it. Using an earlier row can bring back a nonzero entry in an already cleared column.
Clearing backward from right to left saves arithmetic because later pivot columns in the row being used are already clear. Clearing above pivots from left to right also works, but can change entries farther right that still need clearing.
For a pivot that is not 1, choose the multiplier by dividing the entry to be cleared by the pivot. If the pivot is in row and row has entry below it, use . The new entry is . For pivot 2 and entry 5 below it, subtract times the pivot row. Apply the same fraction to every entry of that row, including its constant; making the pivot 1 first is another valid route.
Know when to stop and check
The forward phase is Gaussian elimination; continuing to RREF is Gauss–Jordan elimination. You may stop at echelon form and solve by back substitution. Keep fractions exact: rounding to 0.33 can turn an exact zero into an apparent pivot. Check the final expressions in the original equations. Substitution tests the values you found; reviewing the row operations also checks that no restrictions were lost or added.
Key Takeaways
- The forward phase clears below pivots and produces echelon form.
- In the remaining rows, skip a column containing only zeros.
- The backward phase clears above pivots and makes each pivot 1.
- Work backward from the rightmost pivot to save arithmetic.
- Keep exact fractions and apply each operation to the current whole row.
- Echelon form supports back substitution; RREF supports direct reading.
2.3 Basic variables and free parameters
A reduced augmented matrix describes all solutions once you separate the variable columns into pivot columns and non-pivot columns. The distinction tells you which quantities you may choose and which values those choices force.
Read the variable columns
A basic variable corresponds to a pivot column of the coefficient part. A free variable corresponds to any other coefficient column. The constant column never represents an extra variable.
For example,
has basic variables and free variable . The rows state , , and . Isolate the basic variable in each row:
Let with . The general solution is
Choosing gives ; choosing gives .
Free does not mean zero
A free variable can take any real value. Setting it to zero finds one solution, not the general solution. A basic variable may change with the parameters, like , or stay fixed, like . Being basic means its value is determined after the free values are chosen.
A zero row says and imposes no additional equation. It makes no variable equal to zero. The number of free variables comes from non-pivot variable columns, not from counting zero rows. A matrix with two rows and four variable columns can have two free variables even with no zero rows.
More than one free variable
For
columns 1 and 3 are pivot columns. Set and . The first row gives ; the second gives . Thus
The sign changes when a term moves to the other side: the term contributes . Include every variable in the final tuple, including the free ones.
An echelon form also works
From an unreduced echelon form, start at the bottom nonzero row and solve for its basic variable. Substitute that expression into the rows above, continuing upward until every basic variable is expressed using only constants and free variables. Stopping with one basic variable still written in terms of another leaves this work unfinished. RREF performs those substitutions through row operations instead.
For instance, suppose the echelon equations are and . Set . The bottom row gives . Substitute the whole expression into the first row:
The complete description is . Writing only leaves a basic variable in terms of another basic variable; the substitution removes that dependency.
With the variable order fixed, the leftmost available columns supply the pivots. Another parameter may still describe the same set. In the first example, can be rearranged as .
Key Takeaways
- Basic variables come from pivot columns of the coefficient part.
- Free variables range over all real values in a consistent system.
- Write each basic variable using only constants and free variables.
- A zero row imposes no equation on any variable.
- Include every variable when writing the general solution.
2.4 Existence and uniqueness from pivots
Two questions organize the analysis of a system: does any solution exist, and, if one does, is it unique? Check them in that order. A free variable cannot rescue a contradictory equation.
First test existence
A system is inconsistent exactly when an echelon form of its augmented matrix has a row
That row says . Equivalently, the rightmost column is a pivot column. A row ending in zero instead says and adds no restriction.
For , , and , subtract twice row 1 from row 2, subtract row 1 from row 3, then subtract the new row 2 from row 3. This produces
The last row is a contradiction, so there are no solutions. The last column records constants; its pivot is not an instruction to assign a value to a variable.
Then test uniqueness
If no contradiction occurs, inspect the coefficient columns. A pivot in every variable column leaves no free variables and gives exactly one solution. At least one free variable gives infinitely many solutions, since each real parameter choice gives a solution.
Change the third constant of the preceding system from 2 to 1. The same elimination now gives a final zero row. The consistent system has free. Back substitution gives and , so its infinitely many solutions are .
You can classify both systems directly from echelon form. Reducing further may shorten the expressions, but is unnecessary for deciding the number of solutions.
Handle a parameter before dividing
For which real values of is
consistent? Applying gives . If , this becomes , so there is no solution. If , the second coefficient is nonzero. Both variable columns have pivots and the solution is unique. Dividing by before separating the zero case would lose the exceptional case.
What matrix size tells you
An coefficient matrix has at most pivots. If , at least variable columns have no pivot. Every consistent system of this size has infinitely many solutions, but conflicting constants can still make it inconsistent. Extra equations also do not settle the answer: they may add new restrictions, repeat old ones, or contradict them.
For a square coefficient matrix, a pivot in every column is also a pivot in every row. This gives exactly one solution for every right-hand side. With fewer pivots, a square system has no solution or infinitely many, depending on its constants.
Key Takeaways
- Test consistency first by looking for a contradictory row.
- A pivot in the constant column means no solution.
- A consistent system has one solution with no free variables and infinitely many with at least one.
- Separate parameter values that make a potential pivot zero before dividing.
- More variables than equations guarantee free variables, but existence still needs checking.
- A square coefficient matrix with a pivot in every column gives one solution for every right-hand side.
3Vectors, combinations, and span
A system has a second picture: its columns are vectors, and the unknowns are weights used to combine them. This viewpoint explains what elimination is trying to find. You will practice vector arithmetic, translate equations into column combinations, and use consistency to decide which target vectors can be reached. Span collects all those reachable targets, turning a separate calculation for one vector into a geometric description of a whole set.
3.1 Vector arithmetic in real coordinate space
A vector in is an ordered list of real numbers. Its entries can describe coordinates, measurements, or several quantities tracked together. We write vectors as columns and use bold letters to distinguish them from scalar numbers.
Read entries in order
For example,
The inline notation represents the same column vector here. Two vectors are equal when they have the same size and matching entries in every position. Order is part of the information: and are different vectors.
The zero vector has zero in every entry. Its size comes from the surrounding equation. A scalar is a real number, such as or ; a scalar times a vector is again a vector.
Add and scale entry by entry
Vectors of the same size add by adding corresponding entries. For and ,
Scalar multiplication affects every entry: . To subtract twice a vector, first scale it and then subtract:
The third entry is . Keeping parentheses around negative entries makes the sign visible. Adding a two-entry vector to a three-entry vector is undefined because there is no matching third entry in the shorter vector.
Picture the arithmetic
In the plane, a vector can be drawn as an arrow from the origin to the point . Place arrows for and at the origin. Their sum points to , the opposite corner of the parallelogram they form. This is the parallelogram rule. It also matches placing the second arrow at the head of the first.
For nonzero , the arrow for has length times the original length. A positive scalar keeps its direction; a negative scalar reverses it. Multiplication by zero produces the zero vector. Thus points in the opposite direction and is twice as long. All scalar multiples lie on the same line through the origin.
Rearrange vector expressions
The usual addition and distribution rules hold entry by entry. In particular,
Also , , , and . These rules let you collect vector terms: . All vectors in such sums must have the same number of entries.
Key Takeaways
- A vector in ℝⁿ has n ordered real entries.
- Add equal-sized vectors and scale them entry by entry.
- A negative scalar reverses a nonzero vector’s direction.
- Vector addition and scalar multiplication obey the familiar addition and distribution rules.
3.2 Linear combinations and the column picture
A linear combination scales several vectors and adds the results. The scalars are its weights. Solving for weights connects vector arithmetic directly to a linear system.
From weights to a target
For vectors of the same size,
is a linear combination. The weights may be any real numbers, including negative numbers, zero, and fractions. For and , the combination is .
When the target is known and the weights are unknown, write a vector equation:
Matching each entry gives one scalar equation. Put the given vectors in columns of an augmented matrix and put the target in the last column. Vectors written as rows would produce a different system.
Find weights by elimination
Can be made from and ? The augmented matrix is
Apply and . The lower rows become and . Then gives a zero row. Back substitution yields and . Indeed,
If the target were , the same operations would leave . No weights could satisfy all three entries.
Two pictures of the same equations
The system , has row picture given by two lines meeting at . Its column picture is
The numbers 2 and 3 are the coordinates of the shared point in the row picture and the weights in the column picture. The columns themselves are different vectors from the solution tuple.
Combinations in a mixing problem
A serving of food A supplies 10 g of protein and 20 g of carbohydrate; a serving of B supplies 5 g and 30 g. To reach 40 g of protein and 120 g of carbohydrate, solve
Divide the first scalar equation by 5 and the second by 10 to obtain and . Subtract to get , so and . These weights are nonnegative serving quantities, so they fit the context.
Weights need not be unique. With columns , , and , the target equals both and . A free variable in the consistent weight system accounts for infinitely many representations.
Key Takeaways
- A linear combination is a sum of scalar multiples of equal-sized vectors.
- Weights may be negative, zero, or fractional.
- Place given vectors in columns and the target in the constant column.
- The vector equation has weights exactly when its associated system is consistent.
- The column picture asks which weights produce the target.
- Free variables in a consistent weight system give infinitely many representations.
3.3 Span as the set of reachable vectors
The span of given vectors is the set of every vector you can make by taking their linear combinations. It describes all reachable targets at once, while a membership test asks about one particular target.
Let every weight vary
For vectors in ,
Every span contains the zero vector: choose every weight zero. It contains each listed vector, all its scalar multiples, and all sums of those multiples. If any listed vector is nonzero, infinitely many distinct multiples already belong to the span. The span of only zero vectors is just .
Read the geometry
A nonzero vector and all its multiples form a line through the origin. Adding a second vector on that line does not enlarge it. In , two vectors neither of which is a multiple of the other span a plane through the origin. The zero-vector case gives a point, not a line.
For example, let and . An arbitrary combination is
Its third entry equals the sum of its first two, so every reachable vector satisfies . Conversely, any point satisfying that equation is obtained by taking and . The span is exactly that plane.
Test membership
The vector lies in the plane because . Its weights are and . The vector fails the relation. The same decision can be made by reducing
Subtract row 1 from row 3 to get , then subtract row 2 to get . The contradictory row proves that no pair of weights reaches this target. Membership in a span is therefore a consistency question.
The origin matters, but it is not the whole test
Every span passes through the origin. The plane does not, so it cannot be a span. Passing through the origin is one necessary feature; to identify a proposed span, still show that its vectors are exactly all combinations of the generators, as in the plane example above.
How many vectors can reach the whole space?
Two vectors in cannot span all of : their span is at most a plane. Their column matrix can have at most two pivots, leaving a row without one. More generally, fewer than vectors cannot span . Having at least vectors is not sufficient by itself: repeated vectors or multiples may still generate just a line. To test a full-space claim, check the actual pivots, not only the number of listed vectors.
Key Takeaways
- Span contains all real linear combinations of its generators.
- Every span contains the zero vector.
- One nonzero vector spans a line; two nonparallel vectors in ℝ³ span a plane.
- Test span membership by checking consistency of the column-based system.
- Fewer than n vectors cannot span ℝⁿ; having n or more still requires a pivot test.
4Matrix equations and solvability
The matrix equation Ax = b packages the scalar and vector pictures into one expression. Its product is a weighted sum of columns, which you can calculate efficiently one row at a time. Once that connection is clear, pivots answer two different questions: whether one target is reachable and whether every possible target is reachable. Keeping rows, columns, inputs, and outputs straight prevents many errors with rectangular systems.
4.1 Matrix–vector products
A matrix times a vector is defined by a linear combination of the matrix’s columns. This definition explains both how large the input must be and how large the output will be.
One input weight per column
Let be an matrix with columns . For ,
There are columns, so the input needs entries. Each column has entries, so the output belongs to . Thus a matrix takes a vector in and returns one in . Matching the input length to the row count would give the wrong size.
Compute by columns
For
the column definition gives
The negative second input scales the whole second column, not just one of its entries.
Compute by rows
The row–vector rule calculates one output entry at a time: multiply corresponding entries of a matrix row and the input vector, then add. Here the first output is . The second is . The row calculation and column calculation give the same result because each row simply collects that entry of the column sum.
Use the row rule for quick arithmetic and the column definition to interpret the product. This is not multiplication of matching positions: the matrix and vector have different shapes, and each output entry is a sum.
Write a combination as a product
A combination becomes
The column order and weight order must agree. The matrix goes on the left of the column vector; reversing them gives a different expression and is generally undefined.
Distribute and scale
For appropriately sized vectors and a real scalar ,
Both follow by distributing the input weights across the same columns. In particular, . These identities later let you separate a solution into a fixed part and a homogeneous part.
The identity matrix has 1s on its main diagonal and zeros elsewhere. Its columns select the coordinates individually, so . For example, .
Key Takeaways
- For an m × n matrix, the input has n entries and the output has m.
- Ax is the sum of the columns weighted by the entries of x.
- The row rule multiplies corresponding entries and adds for each output.
- Matrix–vector multiplication distributes over addition and respects scalar multiplication.
- The identity matrix leaves each input vector unchanged.
4.2 One target versus every target
The equation asks for input weights that produce a target vector. The same problem can be read as scalar equations, a column combination, or an augmented matrix.
Translate between the three forms
If has columns , then
Matching entries gives the scalar system represented by . In the three-variable system with coefficient rows , , and and right side , the solution gives the column combination
Solving for is exactly testing whether lies in the span of the original columns.
The spanning theorem
For an matrix, these statements are equivalent:
- has a solution for every .
- Every target in is a linear combination of the columns.
- The columns span .
- has a pivot in every row.
A pivot in every coefficient row prevents a contradictory row for any target. A missing coefficient pivot row leaves a compatibility condition that some targets will fail. This theorem concerns the coefficient matrix, not pivots supplied by the appended constant column.
Find the condition on a general target
Take
Apply , , and . The augmented echelon form has rows
The target is reachable exactly when . Thus is reachable but is not. The reachable targets form a plane, so the columns do not span all of .
Keep existence separate from uniqueness
A pivot in every row guarantees existence for every target. A pivot in every column leaves no free variables, guaranteeing uniqueness whenever a solution exists.
The matrix has pivots in both rows. Every target in is reachable, but column 3 is free, so each target has infinitely many inputs. Conversely, a matrix can have pivots in both columns. Reachable targets then have unique inputs, yet some targets are unreachable because three rows cannot all have pivots.
For a concrete tall example, take . The target has the unique input . The target has no input because the final output entry is always zero. Both variable columns have pivots, but the third row has none. The example separates a unique input for a reachable target from the stronger demand of reaching every target.
If a pivot appears in the appended constant column, it records inconsistency. Counting that pivot as evidence that the coefficient columns span the target space reverses the meaning of the test.
Key Takeaways
- A scalar system, its vector equation, and Ax = b have the same solution set.
- A particular target is reachable exactly when it is in the column span.
- Pivots in every row of A guarantee existence for every target.
- Pivots in every column of A guarantee uniqueness for a consistent system.
- A constant-column pivot shows inconsistency, not full spanning.
- Apply row operations to a symbolic right side to find compatibility conditions.
5Parametric vector descriptions of solution sets
Free variables let you describe an entire solution set with a small number of vectors. A homogeneous system supplies directions through the origin. A consistent system with a nonzero right side adds a fixed solution that shifts those directions. This chapter develops the construction from the reduced equations and explains why every solution has this form, how different descriptions can represent the same set, and how the homogeneous system settles uniqueness.
5.1 Homogeneous systems and solution directions
A homogeneous system has zero on every right side, so it is written . The zero vector always solves it. This trivial solution establishes consistency before you do any elimination.
When do other solutions exist?
A nontrivial solution is any solution vector with at least one nonzero entry. Homogeneous systems have nontrivial solutions exactly when they have a free variable. Row operations keep the appended zero column zero, so a contradiction cannot occur. With no free variables, all basic variables are zero. With a free variable, assigning it a nonzero value gives a nonzero solution.
If there are more variables than equations, there are too few rows to supply pivots for all variable columns. A homogeneous system of that size always has nontrivial solutions.
One parameter gives one direction
For
apply to obtain . Then gives . Set . The solution vector is
This is parametric vector form. Every multiple of solves both equations: and verify the direction itself. The solution set is its span, a line through the origin.
Two parameters give two direction terms
The equation gives . Set and , then separate the parameter coefficients:
The solution set is the plane spanned by those two vectors. Include the entries for the free variables themselves. Here the first direction has a 1 in position 2 and a 0 in position 3; the second has a 0 in position 2 and a 1 in position 3. Leaving out these entries would produce vectors of the wrong size.
Construct the vectors systematically
Reduce the augmented matrix, express each basic variable using the free ones, and write all entries of in their original order. Group the terms by parameter. One direction vector comes from each free variable. Every direction has as many entries as there are variables, even if some entries are zero.
A homogeneous model for balancing atoms
Write . Conservation of carbon, hydrogen, and oxygen gives
Taking yields , , and . Thus . Choosing gives the smallest positive whole-number coefficients . The real homogeneous system also contains zero and negative multiples; positive whole coefficients select the chemical balance.
Key Takeaways
- A homogeneous system is always consistent because the zero vector solves it.
- A nontrivial solution has at least one nonzero entry.
- Nontrivial homogeneous solutions exist exactly when there is a free variable.
- More variables than equations guarantee nontrivial homogeneous solutions.
- Write all variable entries before grouping the vector by parameters.
- The solution set of a homogeneous system is a span through the origin.
5.2 Particular solutions and translated sets
A nonhomogeneous system has with . If it is consistent, its solution set is a shifted copy of the solutions of . The shift comes from any one solution of the nonhomogeneous equation.
Separate the fixed part from the parameters
For
use and . The reduced rows are and . With ,
The fixed vector is a particular solution, obtained here by setting the free variable to zero. The direction solves the homogeneous system. Geometrically, the solutions form a line through parallel to that direction.
Why this produces all solutions
Let and let . Distribution gives
So adding any homogeneous solution to produces another solution. Conversely, if , then
Every solution therefore differs from by a homogeneous solution. These two directions justify the word “all.” With two free variables, the description is , where the two direction terms describe the homogeneous solution set.
Different descriptions can give the same set
In the example, produces . That point can serve as the fixed solution instead: describes the same line, since its original parameter is . Replacing the direction by a nonzero multiple, such as , also gives the same line after a change of parameter.
For four variables, a reduced system , , similarly gives
All four entries belong in both vectors.
With two free variables, the grouping works in the same way. For and , choose and . Then
The fixed point satisfies the nonhomogeneous equations. Each direction satisfies their homogeneous versions. The solution set is a translated plane in , with both parameters ranging independently over all real values.
What the homogeneous part tells you
If the homogeneous system has only the zero solution, the translated set contains just . If it has a nonzero solution, scalar multiples supply infinitely many shifted solutions. This applies after consistency is established; an inconsistent nonhomogeneous system has no particular solution to shift from.
For nonzero , the zero vector is never in the solution set, so that set is not a span. Also, adding two solutions gives an output , whereas subtracting them gives zero. The difference is a homogeneous solution; the sum is not a solution of the same nonhomogeneous equation.
Key Takeaways
- For a consistent system, every solution is p + vₕ, where Ap = b and Avₕ = 0.
- A particular solution supplies the fixed shift.
- The parameter vectors describe the associated homogeneous solutions.
- Any solution can serve as the fixed point; equivalent parameters can describe the same set.
- With b ≠ 0, the solution set excludes the origin and is not a span.
- The difference of two solutions is homogeneous.
- The homogeneous part determines whether a consistent system has one solution or infinitely many.
Systems of Linear Equations examples
1From equations to an exact solution
11 steps
- 1IntroductionKeep the same unknowns throughout
A system asks several equations to hold for the same ordered values. Elimination makes that shared requirement easier to solve: replace equations by equivalent ones until a variable can be found from the bottom row.
You will follow one three-variable system from its equations to its checked solution. At each step, the row operations must preserve all the restrictions and the order of the variables.
- 2ExplanationRecognize a linear equation
In a linear equation, each variable has a fixed coefficient and occurs only to the first power after simplification. A coefficient such as is a number, so it is allowed.
For example, becomes . Terms such as or remaining after simplification make an equation nonlinear. A solution must satisfy every equation, not just one selected row.
- 3ChallengeCheck the whole system
Does solve and ? Calculate both left sides before deciding.
---reveal---
The first left side is . The second is , which differs from 4. The pair is not a solution of the system. The first equation alone has many solutions, and this pair must also meet the second condition.
- 4ExampleRecord the coefficients
We will solve
In variable order , the augmented matrix is
Each row records one complete equation. The final column stores constants, so it is carried through every row operation along with the coefficients.
- 5ExplanationUse reversible operations
There are three elementary operations: add a multiple of another row, interchange two rows, or multiply a row by a nonzero constant. Each applies to the entire row.
For example, is undone by adding twice row 1 back. Nonzero scaling is undone by multiplying by the reciprocal. This reversibility preserves the solution set. Multiplying by zero has no inverse and erases an equation.
- 6ExampleClear the first column
Keep row 1 and use its leading 1 to remove the entries below it.
For the constants, these calculations are and . The new lower equations no longer contain . Row 1 remains unchanged, preserving the information needed to recover that variable later.
- 7ExampleClear the next entry
The current second row is . Subtract twice that row from row 3:
The third coefficient is and the constant is . This leaves the equations , , and , ready for back substitution.
- 8ExampleSubstitute upward
Start with the last equation:
Then gives , and gives . Check the original equations: , , and . The ordered solution is . Back substitution uses the simplified system; the final check uses the original one.
- 9TipKeep each column’s job fixed
Before writing a matrix, move constants to the right and align the variables. A missing variable still needs its zero coefficient.
For example, becomes in three-variable order. Omitting the middle zero assigns the 4 to . Also record replacements sequentially: the next operation must use the rows as they currently stand, including any new constant entries.
- 10ChallengeSolve a new system by rows
Solve and . State a row replacement that starts the elimination.
---reveal---
Use . The new second row is , so . Back substitution gives . The pair satisfies both and , connecting the augmented calculation to the original equations.
- 11RecapPreserve the equations while simplifying
A solution keeps the same ordered values in every equation. The augmented matrix records those equations with fixed variable columns and a final constant column.
Reversible operations simplify that record. Once the equations are triangular, solve upward and check the result in the original system. Missing-variable zeros, whole-row operations, and the current row values keep the calculation faithful to the problem.
2Read every solution from row reduction
16 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionLook for restrictions and freedom
- 2ExplanationRecognize the staircase
- 3ExplanationMake pivot columns reduced
- 4ChallengeFind a form’s missing condition
- 5ExampleMove a pivot into place
- 6ExampleClear below the first pivot
- 7ExampleFinish the forward phase
- 8ExampleWork backward from the last pivot
- 9ChallengeComplete a backward step
- 10ExampleRead the free variable
- 11ChallengeWrite a two-parameter solution
- 12ExplanationCheck existence before uniqueness
- 13ExampleSeparate a parameter’s exceptional value
- 14ChallengeClassify a parameter family
- 15ChallengeUse the form without reducing further
- 16RecapRead the two pivot tests in order
3Build target vectors and describe their span
13 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionRead unknowns as weights
- 2ExplanationKeep entries aligned
- 3ExampleCombine scaling and subtraction
- 4ChallengeApply the arithmetic
- 5ExplanationWrite a vector equation
- 6ExampleFind the two weights
- 7ConnectionCheck what the weights build
- 8ChallengeChange only the target
- 9ExplanationLet the weights range freely
- 10ExampleDescribe a span by an equation
- 11ChallengeTest a target in the plane
- 12ChallengeRecognize nonunique weights
- 13RecapConnect combinations to consistency
4Calculate Ax and decide what it can reach
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionSeparate inputs from outputs
- 2ExplanationCheck the dimensions first
- 3ExampleCalculate using columns
- 4ExampleCalculate using rows
- 5ChallengeCalculate a fresh product
- 6Key InsightDistribute across input sums
- 7ConnectionRead one equation three ways
- 8ExplanationReach every target
- 9ChallengeFind a compatibility condition
- 10Key InsightUse rows for existence, columns for uniqueness
- 11ChallengeCombine existence and freedom
- 12RecapMatch each question to its matrix test
5Build the whole solution set from directions
13 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionSeparate a fixed point from possible motion
- 2ExplanationStart with the zero solution
- 3ExampleFind a homogeneous direction
- 4Key InsightRead the span and the geometry
- 5ChallengeKeep both free coordinates
- 6ExampleAdd nonzero constants
- 7ExampleGroup the fixed and free parts
- 8ExplanationWhy adding a homogeneous solution works
- 9ExplanationWhy no solutions are missing
- 10ChallengeChoose another fixed solution
- 11TipSubtract solutions to find homogeneous changes
- 12ChallengeUse directions to decide uniqueness
- 13RecapConstruct the vectors in variable order
Systems of Linear Equations practice questions
Set 1: Connect pivots, spans, and solution sets10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Read systems, calculate, and interpret10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Analyze rectangular systems and parameters10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Transfer the ideas to unfamiliar systems10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Augmented matrix
B
Back substitution
Basic variable
C
Coefficient
Coefficient matrix
Column picture
Column span
Compatible dimensions
Consistent system
Contradictory row
D
Direction vector
E
Echelon form
Elementary row operation
Existence
F
Free variable
G
Gauss–Jordan elimination
Gaussian elimination
General solution
Generator
H
Homogeneous part
Homogeneous system
I
Identity matrix
Inconsistent system
L
Leading entry
Linear combination
Linear equation
Linear system
M
Matrix
Matrix equation
Matrix–vector product
N
Nonhomogeneous system
Nontrivial solution
P
Parallelogram rule
Parameter
Parametric vector form
Particular solution
Pivot column
Pivot position
R
Real coordinate space
Reduced echelon form
Right-hand side
Row equivalence
Row interchange
Row replacement
Row scaling
Row–vector rule
S
Scalar
Scalar multiple
Scalar multiplication
Solution
Solution set
Span
Span membership
Spanning theorem
T
Translated solution set
Trivial solution
U
Uniqueness
V
Vector
Vector addition
Vector equation
W
Weight
Z
Zero vector
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.