Make learning comfortable
Linear Algebra / LEVEL 1 · DIFFICULTY 4/5
Linear Algebra
Read the prerequisite, study a worked example and justify each step in these selected university topics.
Choose a node to explore its lesson.
STAGE ULA 1.1 · 8 PRACTICE PROBLEMS · 4 NEW-CONTEXT APPLICATIONS
Matrices, Elimination & Inverses
Useful preparation: Two Equations, Two Unknowns
Open this topic in the university library →
For a long equation, swipe sideways inside its formula box to see every term.
Meaning & notation
A matrix records a linear rule as well as a collection of equations. Each column tells where one coordinate direction goes; multiplying by an input vector combines those columns. Elimination changes the way the equations are written while preserving exactly which inputs produce the requested output. This makes pivots evidence about solvability, rather than merely convenient arithmetic.
- Matrix and linear system
- An m by n matrix A has m rows and n columns. In Ax=b, the unknown vector x has n entries and the output b has m entries.
- Pivot
- A pivot is a leading nonzero entry used to eliminate entries in its column. In reduced row echelon form, each pivot is 1 and is the only nonzero entry in its column.
- Inverse
- For a square matrix A, an inverse is a matrix B satisfying . It reverses the transformation for every possible input.
Conditions before calculation
- Row swaps, multiplication of a row by a nonzero scalar, and adding a multiple of one row to another are reversible; apply them to the entire augmented row.
- A square n by n matrix is invertible exactly when it has n pivots, equivalently a nonzero determinant. A rectangular matrix has no two-sided inverse.
- A zero coefficient row with a nonzero right side makes a system inconsistent. A free variable creates infinitely many solutions only when the system is consistent.
Why the method works
1. Preserve the equations
Reversibility explains why row operations preserve the solution set. Scaling by zero is excluded because it can erase a restriction.
2. Read the result
First check for a contradictory row. Then identify pivot variables and free variables; back substitution expresses pivots in terms of any free choices.
3. Verify the input
Substitute the candidate into the original equations. A correct solution must match every component of b, including equations that became redundant during elimination.
Worked examples
EXAMPLE 1
Solve and .
Write coefficients and constants in matching row order.
Subtract three times row one from row two; the x coefficient cancels.
Thus and the first equation gives . Substitution checks both equations.
Conclusion: The unique solution is (1,2); two pivots leave no free variable.
EXAMPLE 2
Classify and , then change the last constant to 7.
Eliminate the second x coefficient; with constant 6, the entire second row becomes zero.
Choose freely and recover x from the first row.
With constant 7, the same operation produces a contradiction.
Conclusion: The first system has infinitely many solutions; the altered system has none. The shared coefficient matrix is singular.
Pitfalls & counterexamples
Tempting claim: A zero determinant means the system has no solution.
Correction: It means the coefficient matrix is not invertible; the right side determines whether solutions are absent or nonunique.
Test the claim: The zero matrix with zero right side accepts every input vector.
Check your understanding
Can swapping two equations change the solution set?
Write a reason before opening the explanation. This reflection is not graded or saved.
Compare your reasoning
No.
Both restrictions are still imposed, and swapping them back reverses the operation.
Connect this idea
Elimination reveals rank and nullity. In computation, solving by pivoted elimination is generally preferable to explicitly forming an inverse; small pivots also signal the need to consider numerical accuracy.
Reference reading
Use these texts to study the underlying definitions and theorems in greater depth. The explanations and examples above are written for Numerive.
Preview the eight practice prompts
Solve the system , . Find y.
Find the determinant [[2,1],[2,3]]. Find its determinant.
For , what is the top-left entry of A inverse?
Multiply and . What is the top-left entry of AB?
Two measured totals satisfy , . Find y.
A transformation has matrix [[3,1],[2,3]]. Find its determinant.
A coordinate transform uses , what is the top-left entry of A inverse?
A two-stage transformation uses and . What is the top-left entry of AB?
STAGE ULA 1.2 · 8 PRACTICE PROBLEMS · 4 NEW-CONTEXT APPLICATIONS
Span, Basis, Rank & Nullity
Useful preparation: Matrices, Elimination & Inverses
Open this topic in the university library →
For a long equation, swipe sideways inside its formula box to see every term.
Meaning & notation
A span describes all outputs that a collection of directions can build. A basis removes redundant directions while retaining every possible output. Rank counts directions that survive a linear transformation, whereas nullity counts independent input directions that become invisible. These are dimensions of spaces, not simply counts of nonzero rows in the original display.
- Subspace and span
- A subspace contains zero and is closed under addition and scalar multiplication. The span of vectors is the set of all their linear combinations.
- Basis and dimension
- A basis is a linearly independent spanning list. Independence means that a zero linear combination forces every coefficient to be zero. Dimension is the number of vectors in a basis.
- Rank and nullity
- For A with n columns, rank is the dimension of its column space; nullity is the dimension of its nullspace, the set of x satisfying Ax=0.
Conditions before calculation
- Use one fixed scalar field, here the real numbers. For a nonempty subset of a vector space, closure under all linear combinations proves it is a subspace.
- Rank plus nullity equals the number of input coordinates n, not necessarily the number of output coordinates m.
- Row operations preserve the nullspace and dependencies among columns. To obtain a basis for the original column space, select pivot columns from the original matrix.
Why the method works
1. Separate generation from uniqueness
Spanning asks whether every target can be generated. Independence asks whether its coordinates in the proposed basis are unique; a nonzero dependency allows different coordinate lists for the same vector.
2. Count inputs systematically
In echelon form, each pivot determines one variable and each free variable contributes one nullspace direction.
3. Describe every solution
If one particular solution exists, adding a nullspace vector changes the input without changing the output. Conversely, subtracting any two solutions gives a nullspace vector.
Worked examples
EXAMPLE 1
Find rank and nullity for A with rows (1,2,0) and (0,0,1).
Columns one and three are independent; column two is twice column one. Thus the image has dimension two.
Solve the homogeneous equations and choose the free variable .
Write all solutions as multiples of one nonzero vector.
Conclusion: Rank is 2, nullity is 1, and their sum is the three input coordinates.
EXAMPLE 2
Find a basis for the plane in real three-dimensional space.
Set and because the equation then determines x.
Separate the two independent choices.
If this combination is zero, its second and third coordinates force . Both vectors also satisfy the plane equation.
Conclusion: The displayed vectors form a basis; the plane has dimension two.
Pitfalls & counterexamples
Tempting claim: Any plane in three-dimensional space is a vector subspace.
Correction: A subspace must include the origin and remain closed under linear combinations.
Test the claim: The plane omits the zero vector and is not a subspace.
Check your understanding
Can four vectors be linearly independent in real three-dimensional space?
Write a reason before opening the explanation. This reflection is not graded or saved.
Compare your reasoning
No.
A three-row matrix has at most three pivots, so four columns leave a free variable in the homogeneous system.
Connect this idea
Basis coordinates make abstract vector spaces computable. The same ideas apply to polynomials, functions, and solution spaces of homogeneous linear differential equations.
Reference reading
Use these texts to study the underlying definitions and theorems in greater depth. The explanations and examples above are written for Numerive.
Preview the eight practice prompts
A matrix has 5 columns and rank 2. Find its nullity.
In are (1,2) and (2,4). Find the dimension of their span.
A map is proposed to be linear. Is it linear? Enter 1 for yes, 0 for no.
For a linear map and . Find the first coordinate of T(2,3).
A linear model matrix has 6 columns and rank 3. Find its nullity.
Two proposed basis vectors in are (1,3) and (2,6). Find the dimension of their span.
A coordinate map is proposed to be linear. Is it linear? Enter 1 for yes, 0 for no.
A linear transformation satisfies and . Find the first coordinate of T(2,3).
STAGE ULA 1.3 · 8 PRACTICE PROBLEMS · 4 NEW-CONTEXT APPLICATIONS
Eigenvalues & Orthogonal Projection
Useful preparation: Span, Basis, Rank & Nullity
Open this topic in the university library →
For a long equation, swipe sideways inside its formula box to see every term.
Meaning & notation
Most vectors change direction under a matrix. Eigenvectors identify exceptional directions on which the whole transformation acts like multiplication by one number. Projection is a complementary idea: retain the component inside a chosen subspace and discard the perpendicular component. A projection therefore acts with eigenvalue one on its target and zero on the perpendicular directions.
- Eigenpair
- For a square matrix A, a nonzero vector v and scalar lambda form an eigenpair when Av=lambda v. The scalar may be zero even though v cannot be zero.
- Diagonalization
- A diagonalization factors A as P times D times the inverse of P, using a basis of eigenvectors in the columns of P and matching eigenvalues in the diagonal matrix D.
- Orthogonal projection
- The orthogonal projection of b onto a subspace is the vector p in that subspace for which is perpendicular to every vector in the subspace.
Conditions before calculation
- Eigenvalues require a square matrix. Real matrices can have nonreal eigenvalues, so specify whether calculations are over the real or complex numbers.
- An n by n matrix is diagonalizable exactly when it has n independent eigenvectors. Distinct eigenvalues guarantee independence; repeated eigenvalues alone do not settle the question.
- For least squares, the normal equations always hold at a minimizer. The inverse of A transpose A exists only when A has full column rank; real symmetric matrices admit an orthonormal eigenbasis.
Why the method works
1. Find preserved directions
A nonzero solution of the homogeneous eigenvector equation exists exactly when its coefficient matrix is singular.
2. Check multiplicities
For each eigenvalue, solve its nullspace problem. Count independent eigenvectors, not just roots of the characteristic polynomial, before using a diagonalization.
3. Minimize perpendicular error
Moving within the column space cannot shorten a perpendicular residual. Algebraically, its dot product with each column vanishes, giving the normal equations.
Worked examples
EXAMPLE 1
Diagonalize the matrix with rows (3,1) and (0,2).
The triangular determinant gives two distinct roots.
Solving each nullspace gives directions (1,0) and (-1,1). Direct multiplication verifies eigenvalues 3 and 2.
Use those independent vectors as columns; their determinant is 1.
Conclusion: The two eigenvectors form a basis, so powers of A reduce to powers of 3 and 2.
EXAMPLE 2
Project onto the line spanned by .
Every candidate on the line has form ca. Require its residual to be perpendicular to a.
Solve the scalar equation using the squared length of a.
The projection is (2,2), with residual (1,-1). Their direction test succeeds.
Conclusion: The closest point is (2,2); the least-squares error has squared length 2.
Pitfalls & counterexamples
Tempting claim: Every square matrix is diagonalizable.
Correction: Enough independent eigenvectors are required.
Test the claim: The matrix with rows (1,1) and (0,1) has only the eigenvalue 1 and a one-dimensional eigenspace.
Check your understanding
Can zero be an eigenvalue of an invertible matrix?
Write a reason before opening the explanation. This reflection is not graded or saved.
Compare your reasoning
No.
A zero eigenvalue would give a nonzero v with Av=0, contradicting invertibility.
Explore an interactive illustration
Project b onto the line spanned by . This illustrates a one-column least-squares problem.
Moving point: (3, 3)
. Projection=(3,3); residual=(0,0). Its dot product with (1,1) is 0, confirming perpendicularity.
Connect this idea
Eigenvalues govern modes in linear differential equations. Orthogonal projection produces least-squares regression and separates explained components from residuals.
Reference reading
Use these texts to study the underlying definitions and theorems in greater depth. The explanations and examples above are written for Numerive.
Preview the eight practice prompts
For , find the eigenvalue for .
A triangular matrix [[2,1],[0,4]]. What is the sum of its eigenvalues?
Project onto . If the projection is ca, find c.
A constant fit to data 1, 3, 8 by least squares. Find the fitted constant.
A stretching map has , find the eigenvalue for .
A linear map has matrix [[3,1],[0,5]]. What is the sum of its eigenvalues?
A least-squares model projects onto . If the projection is ca, find c.
A sensor calibration fits a single constant to data 2, 4, 9 by least squares. Find the fitted constant.

