Advanced Applications and Mathematical Connections

2. Linear Algebra Foundations

Learning outcomes
  • I can explain the role of vectors and matrices in linear algebra.
  • I can identify vector spaces conceptually.
  • I can recognise linear independence.
  • I can interpret basis vectors.
  • I can appreciate the foundations of higher mathematics.

Introduction

Linear algebra is one of the most important branches of modern mathematics. It provides the mathematical foundation for studying vectors, matrices, systems of equations, transformations, and relationships between quantities.

Many mathematical ideas that initially appear unrelated are connected through linear algebra.

For example:

  • A system of simultaneous equations can be represented by a matrix.

  • A geometric transformation can be described using matrix multiplication.

  • A collection of vectors can describe an entire space.

  • A small number of basis vectors can represent infinitely many other vectors.

  • Linear independence helps determine whether mathematical information is redundant.

  • Eigenvalues and eigenvectors reveal important properties of transformations and dynamic systems.

Linear algebra is essential in physics, engineering, computer science, economics, statistics, artificial intelligence, and advanced mathematics.

The central idea is that complicated mathematical structures can often be understood by studying combinations of vectors and the transformations that act on them.

 

What Is Linear Algebra?

Linear algebra is the branch of mathematics concerned with vectors, vector spaces, linear transformations, matrices, and systems of linear equations.

A relationship is linear when it preserves addition and scalar multiplication in the appropriate mathematical setting.

For example, the equation:

2x + 3y = 12

is a linear equation in two variables.

The system:

2x + 3y = 12

4x − y = 5

can be written as:

\[ \begin{bmatrix} 2&3\\ 4&-1 \end{bmatrix} \begin{bmatrix} x\\y \end{bmatrix} = \begin{bmatrix} 12\\5 \end{bmatrix} \]

Or more simply:

\[ \boxed{A\mathbf{x}=\mathbf{b}} \]

where:

  • A is a matrix of coefficients.

  • x is a vector of unknown quantities.

  • b is a vector of known values.

This equation is one of the fundamental structures of linear algebra.

It appears in scientific modelling, engineering, data analysis, optimisation, and computer simulations.

 

The Role of Vectors in Linear Algebra

A vector is an object that can be added to another vector and multiplied by a scalar.

In elementary mathematics, vectors are commonly represented as arrows with magnitude and direction.

For example:

\[ \mathbf v=\begin{bmatrix}3\\4\end{bmatrix} \]

This vector represents a displacement of:

  • 3 units in the positive x-direction.

  • 4 units in the positive y-direction.

Its magnitude is:

\[ |\mathbf v|=\sqrt{3^2+4^2} \]
\[ \boxed{|\mathbf v|=5} \]

However, linear algebra uses a broader understanding of vectors.

Vectors can also represent:

  • Lists of measurements.

  • Forces acting on objects.

  • Electrical currents.

  • Coefficients of polynomials.

  • Images represented by pixel values.

  • Data describing populations.

  • Signals and functions.

The important feature is not necessarily the arrow representation, but the mathematical rules governing vector addition and scalar multiplication.

Vector Addition

Given:

\[ \mathbf u=\begin{bmatrix}2\\3\end{bmatrix}, \qquad \mathbf v=\begin{bmatrix}4\\-1\end{bmatrix} \]

Add corresponding components:

\[ \mathbf u+\mathbf v= \begin{bmatrix} 2+4\\ 3+(-1) \end{bmatrix} \]
\[ \boxed{\mathbf u+\mathbf v=\begin{bmatrix}6\\2\end{bmatrix}} \]

Scalar Multiplication

Multiplying a vector by a scalar changes its magnitude and possibly its direction.

For:

\[ \mathbf v=\begin{bmatrix}3\\-2\end{bmatrix} \]

Multiplying by 4 gives:

\[ 4\mathbf v= \begin{bmatrix} 12\\-8 \end{bmatrix} \]

Multiplying by −1 gives:

\[ -\mathbf v= \begin{bmatrix} -3\\2 \end{bmatrix} \]

The negative scalar reverses the direction of the vector.

These two operations form the basis of vector spaces.

 

Linear Combinations of Vectors

A linear combination is an expression formed by multiplying vectors by scalars and adding the results.

For two vectors:

\[ \boxed{\mathbf w=a\mathbf u+b\mathbf v} \]

where a and b are scalars.

For several vectors:

\[ \boxed{\mathbf w=c_1\mathbf v_1+c_2\mathbf v_2+\cdots+c_n\mathbf v_n} \]

Linear combinations are fundamental because they allow us to construct new vectors from existing ones.

Worked Example 1: Finding a Linear Combination

Given:

\[ \mathbf u=\begin{bmatrix}1\\2\end{bmatrix}, \qquad \mathbf v=\begin{bmatrix}3\\1\end{bmatrix} \]

Find:

2u − 3v

First calculate:

\[ 2\mathbf u=\begin{bmatrix}2\\4\end{bmatrix} \]

Then:

\[ 3\mathbf v=\begin{bmatrix}9\\3\end{bmatrix} \]

Subtract:

\[ 2\mathbf u-3\mathbf v= \begin{bmatrix} 2-9\\ 4-3 \end{bmatrix} \]

Therefore:

\[ \boxed{2\mathbf u-3\mathbf v=\begin{bmatrix}-7\\1\end{bmatrix}} \]

Worked Example 2: Expressing a Vector as a Linear Combination

Given:

\[ \mathbf u=\begin{bmatrix}1\\1\end{bmatrix}, \qquad \mathbf v=\begin{bmatrix}1\\-1\end{bmatrix} \]

Express:

\[ \mathbf w=\begin{bmatrix}6\\2\end{bmatrix} \]

as a linear combination of u and v.

We want:

\[ a\mathbf u+b\mathbf v=\mathbf w \]

Therefore:

\[ a\begin{bmatrix}1\\1\end{bmatrix} +b\begin{bmatrix}1\\-1\end{bmatrix} = \begin{bmatrix}6\\2\end{bmatrix} \]

This produces:

a + b = 6

a − b = 2

Add the equations:

2a = 8

a = 4

Substitute:

4 + b = 6

b = 2

Therefore:

\[ \boxed{\mathbf w=4\mathbf u+2\mathbf v} \]

This demonstrates how one vector can be constructed from other vectors.

 

What Is a Vector Space?

A vector space is a collection of objects called vectors that can be added together and multiplied by scalars while satisfying specific mathematical rules.

For this lesson, we will focus on vector spaces over the real numbers.

A vector space must be closed under two operations:

  1. Vector addition.

  2. Scalar multiplication.

Closure under addition means that adding two vectors from the space produces another vector in the same space.

Closure under scalar multiplication means that multiplying a vector from the space by any real scalar produces another vector in the same space.

A vector space must also satisfy additional rules, including the existence of a zero vector, additive inverses, and the usual associative and distributive properties.

Example 1: Two-Dimensional Space

The set of all ordered pairs of real numbers is written:

\[ \boxed{\mathbb R^2} \]

A typical vector is:

\[ \begin{bmatrix}x\\y\end{bmatrix} \]

where x and y are real numbers.

Examples include:

(2, 3)

(−1, 5)

(0, 0)

(π, √2)

All such vectors belong to ℝ².

If two vectors in ℝ² are added, the result remains in ℝ².

If a vector in ℝ² is multiplied by a real number, the result remains in ℝ².

Therefore, ℝ² is a vector space.

Example 2: Three-Dimensional Space

The set:

\[ \boxed{\mathbb R^3} \]

contains all ordered triples of real numbers.

A typical vector is:

\[ \begin{bmatrix}x\\y\\z\end{bmatrix} \]

This space is used extensively in physics, engineering, and computer graphics.

Example 3: Polynomial Vector Spaces

Consider all polynomials of degree at most 2:

\[ p(x)=ax^2+bx+c \]

where a, b, and c are real numbers.

Two such polynomials can be added:

\[ (ax^2+bx+c)+(dx^2+ex+f) \]
\[ =(a+d)x^2+(b+e)x+(c+f) \]

The result is another polynomial of degree at most 2.

Multiplying by a scalar also produces a polynomial of degree at most 2.

Therefore, these polynomials form a vector space.

Notice that the objects are functions rather than arrows.

This is an important example of the abstract nature of linear algebra.

 

Vector Spaces and Subspaces

A subspace is a smaller vector space contained within a larger vector space.

For example, consider all vectors in ℝ² that lie on the line:

y = 2x

These vectors have the form:

\[ \mathbf v=\begin{bmatrix}t\\2t\end{bmatrix} \]

where t is any real number.

Equivalently:

\[ \mathbf v=t\begin{bmatrix}1\\2\end{bmatrix} \]

This collection forms a subspace of ℝ².

It includes the zero vector when t = 0.

Adding two vectors on the line produces another vector on the line.

Multiplying any vector on the line by a scalar keeps it on the line.

Why Not Every Line Is a Subspace

Consider:

y = 2x + 3

This line does not pass through the origin.

The zero vector (0, 0) does not lie on the line.

Therefore, the line is not a vector subspace of ℝ².

Important principle: Every vector subspace must contain the zero vector.

 

The Span of a Set of Vectors

The span of a collection of vectors is the set of all possible linear combinations of those vectors.

For vectors u and v:

\[ \boxed{\operatorname{span}\{\mathbf u,\mathbf v\}=\{a\mathbf u+b\mathbf v:a,b\in\mathbb R\}} \]

The span tells us what part of a vector space can be reached using the given vectors.

Example 1: One Vector in Two Dimensions

Suppose:

\[ \mathbf u=\begin{bmatrix}2\\1\end{bmatrix} \]

All scalar multiples of u lie on a line through the origin.

Therefore:

\[ \operatorname{span}\{\mathbf u\} \]

is a line.

Example 2: Two Independent Vectors in Two Dimensions

Suppose:

\[ \mathbf u=\begin{bmatrix}1\\0\end{bmatrix}, \qquad \mathbf v=\begin{bmatrix}0\\1\end{bmatrix} \]

Any vector:

\[ \mathbf w=\begin{bmatrix}x\\y\end{bmatrix} \]

can be written as:

\[ \mathbf w=x\mathbf u+y\mathbf v \]

Therefore:

\[ \boxed{\operatorname{span}\{\mathbf u,\mathbf v\}=\mathbb R^2} \]

These two vectors span the entire two-dimensional plane.

Example 3: Two Vectors on the Same Line

Suppose:

\[ \mathbf u=\begin{bmatrix}1\\2\end{bmatrix}, \qquad \mathbf v=\begin{bmatrix}2\\4\end{bmatrix} \]

Since:

\[ \mathbf v=2\mathbf u \]

the vectors point along the same line.

Their span is only a line, not the entire plane.

Adding the second vector does not create any new direction.

 

Linear Independence

Vectors are linearly independent when none of them can be written as a linear combination of the others.

In two dimensions, two nonzero vectors are linearly independent when they do not lie along the same line through the origin.

For example:

\[ \mathbf u=\begin{bmatrix}1\\0\end{bmatrix}, \qquad \mathbf v=\begin{bmatrix}0\\1\end{bmatrix} \]

are independent.

Neither vector can be obtained by multiplying the other by a scalar.

However:

\[ \mathbf u=\begin{bmatrix}2\\3\end{bmatrix}, \qquad \mathbf v=\begin{bmatrix}4\\6\end{bmatrix} \]

are dependent because:

\[ \mathbf v=2\mathbf u \]

Formal Definition

Vectors v₁, v₂, ..., vₙ are linearly independent if the equation:

\[ c_1\mathbf v_1+c_2\mathbf v_2+\cdots+c_n\mathbf v_n=\mathbf0 \]

has only the solution:

\[ \boxed{c_1=c_2=\cdots=c_n=0} \]

This is called the trivial solution.

If another solution exists in which at least one coefficient is nonzero, the vectors are linearly dependent.

Visualising Linear Independence

Move the vectors to investigate what happens when they point in different directions or become parallel.

When two vectors in ℝ² are independent, the parallelogram formed by them has nonzero area. When they are dependent, the parallelogram collapses into a line and its area becomes zero.

Worked Example 3: Testing Independence Using a Determinant

Given:

\[ \mathbf u=\begin{bmatrix}2\\1\end{bmatrix}, \qquad \mathbf v=\begin{bmatrix}3\\4\end{bmatrix} \]

Construct a matrix using the vectors as columns:

\[ A=\begin{bmatrix}2&3\\1&4\end{bmatrix} \]

Calculate its determinant:

\[ \det(A)=2(4)-3(1) \]
\[ =8-3 \]
\[ \boxed{\det(A)=5} \]

Since the determinant is not zero, the vectors are linearly independent.

Worked Example 4: Identifying Dependent Vectors

Given:

\[ \mathbf u=\begin{bmatrix}2\\-3\end{bmatrix}, \qquad \mathbf v=\begin{bmatrix}6\\-9\end{bmatrix} \]

Notice:

\[ \mathbf v=3\mathbf u \]

Therefore, the vectors are linearly dependent.

We can also check using the determinant:

\[ A=\begin{bmatrix}2&6\\-3&-9\end{bmatrix} \]
\[ \det(A)=2(-9)-6(-3) \]
\[ =-18+18 \]
\[ \boxed{\det(A)=0} \]

The zero determinant confirms that the vectors are dependent.

Important: The determinant test applies directly when the vectors form a square matrix, such as two vectors in ℝ² or three vectors in ℝ³. More general collections can be tested using row reduction or the defining equation for linear independence.

 

Linear Independence in Three Dimensions

In ℝ³, three vectors are linearly independent when none can be expressed as a linear combination of the other two.

For example, the vectors:

\[ \mathbf i=\begin{bmatrix}1\\0\\0\end{bmatrix} \]
\[ \mathbf j=\begin{bmatrix}0\\1\\0\end{bmatrix} \]
\[ \mathbf k=\begin{bmatrix}0\\0\\1\end{bmatrix} \]

are linearly independent.

They point along three distinct coordinate directions.

Together, they span all of ℝ³.

Any vector:

\[ \mathbf v=\begin{bmatrix}a\\b\\c\end{bmatrix} \]

can be expressed as:

\[ \boxed{\mathbf v=a\mathbf i+b\mathbf j+c\mathbf k} \]

However, three vectors that all lie in the same plane through the origin cannot span ℝ³.

They do not provide three independent directions.

 

Basis Vectors

A basis is a set of vectors that satisfies two conditions:

  1. The vectors are linearly independent.

  2. The vectors span the entire vector space.

A basis provides a set of fundamental directions from which every vector in the space can be constructed.

The Standard Basis of ℝ²

The standard basis vectors are:

\[ \mathbf e_1=\begin{bmatrix}1\\0\end{bmatrix} \]
\[ \mathbf e_2=\begin{bmatrix}0\\1\end{bmatrix} \]

Any vector:

\[ \mathbf v=\begin{bmatrix}x\\y\end{bmatrix} \]

can be written as:

\[ \boxed{\mathbf v=x\mathbf e_1+y\mathbf e_2} \]

For example:

\[ \begin{bmatrix}5\\3\end{bmatrix} = 5\begin{bmatrix}1\\0\end{bmatrix} + 3\begin{bmatrix}0\\1\end{bmatrix} \]

The Standard Basis of ℝ³

The standard basis is:

\[ \mathbf e_1=\begin{bmatrix}1\\0\\0\end{bmatrix}, \quad \mathbf e_2=\begin{bmatrix}0\\1\\0\end{bmatrix}, \quad \mathbf e_3=\begin{bmatrix}0\\0\\1\end{bmatrix} \]

Any vector in ℝ³ can be expressed as a linear combination of these three basis vectors.

 

A Vector Space Can Have Different Bases

The standard basis is not the only possible basis.

For example, consider:

\[ \mathbf u=\begin{bmatrix}1\\1\end{bmatrix}, \qquad \mathbf v=\begin{bmatrix}1\\-1\end{bmatrix} \]

These vectors are linearly independent because:

\[ \det\begin{bmatrix}1&1\\1&-1\end{bmatrix}=-2 \]

Since the determinant is nonzero, they form a basis for ℝ².

Worked Example 5: Coordinates in a Different Basis

Express:

\[ \mathbf w=\begin{bmatrix}8\\2\end{bmatrix} \]

using the basis:

\[ B=\left\{ \begin{bmatrix}1\\1\end{bmatrix}, \begin{bmatrix}1\\-1\end{bmatrix} \right\} \]

We want:

\[ a\begin{bmatrix}1\\1\end{bmatrix} +b\begin{bmatrix}1\\-1\end{bmatrix} = \begin{bmatrix}8\\2\end{bmatrix} \]

This gives:

a + b = 8

a − b = 2

Add:

2a = 10

a = 5

Then:

b = 3

Therefore:

\[ \boxed{\mathbf w=5\mathbf u+3\mathbf v} \]

The coordinates of w in the basis B are:

\[ \boxed{[\mathbf w]_B=\begin{bmatrix}5\\3\end{bmatrix}} \]

The vector itself has not changed.

Only the coordinate system used to describe it has changed.

This distinction is important in advanced mathematics, physics, and engineering.

 

Dimension of a Vector Space

The dimension of a finite-dimensional vector space is the number of vectors in any basis for that space.

Examples:

Vector space

Dimension

Example basis

ℝ¹

1

(1)

ℝ²

2

(1, 0), (0, 1)

ℝ³

3

(1, 0, 0), (0, 1, 0), (0, 0, 1)

Polynomials of degree at most 2

3

1, x, x²

2 × 2 real matrices

4

Four matrices each with one entry equal to 1 and all others 0

Why Dimension Matters

Dimension tells us how many independent quantities are needed to describe an object in the space.

For example:

  • A point on a line requires one coordinate.

  • A point in a plane requires two coordinates.

  • A point in ordinary three-dimensional space requires three coordinates.

  • A quadratic polynomial requires three coefficients.

The concept extends to much larger spaces.

A digital image containing 1,000 grayscale pixels can be represented as a vector in ℝ¹⁰⁰⁰.

This is one reason linear algebra is so important in data science and artificial intelligence.

 

The Role of Matrices in Linear Algebra

Matrices are closely connected to vectors and vector spaces.

A matrix can represent a linear transformation.

A linear transformation is a function T satisfying:

\[ \boxed{T(\mathbf u+\mathbf v)=T(\mathbf u)+T(\mathbf v)} \]

and:

\[ \boxed{T(c\mathbf v)=cT(\mathbf v)} \]

These properties mean that the transformation preserves vector addition and scalar multiplication.

Example: A Linear Transformation

Consider:

\[ T(x,y)=(2x,3y) \]

This transformation doubles the x-coordinate and triples the y-coordinate.

Its matrix is:

\[ A=\begin{bmatrix}2&0\\0&3\end{bmatrix} \]

For:

\[ \mathbf v=\begin{bmatrix}4\\2\end{bmatrix} \]

we calculate:

\[ A\mathbf v= \begin{bmatrix}2&0\\0&3\end{bmatrix} \begin{bmatrix}4\\2\end{bmatrix} \]
\[ =\begin{bmatrix}8\\6\end{bmatrix} \]

Therefore:

\[ \boxed{T(4,2)=(8,6)} \]

The matrix describes how the transformation acts on vectors.

 

Matrix Columns and Basis Vectors

An especially important result is that the columns of a transformation matrix describe what happens to the standard basis vectors.

Consider:

\[ A=\begin{bmatrix}2&1\\3&4\end{bmatrix} \]

Apply A to the first standard basis vector:

\[ A\begin{bmatrix}1\\0\end{bmatrix} = \begin{bmatrix}2\\3\end{bmatrix} \]

Apply A to the second standard basis vector:

\[ A\begin{bmatrix}0\\1\end{bmatrix} = \begin{bmatrix}1\\4\end{bmatrix} \]

The first column of A is the image of the first basis vector.

The second column of A is the image of the second basis vector.

Therefore:

\[ \boxed{ A= \begin{bmatrix} |&|\\ T(\mathbf e_1)&T(\mathbf e_2)\\ |&| \end{bmatrix} } \]

This is a fundamental connection between matrices and linear transformations.

Once we know what a linear transformation does to every vector in a basis, we know what it does to every vector in the space.

 

Rank and the Number of Independent Directions

The rank of a matrix is the number of linearly independent columns, which is also equal to the number of linearly independent rows.

Rank describes how many independent directions are preserved by a linear transformation.

Worked Example 6: Determining Matrix Rank

Consider:

\[ A=\begin{bmatrix} 1&2\\ 2&4 \end{bmatrix} \]

The second column is twice the first.

Therefore, the columns are linearly dependent.

The matrix has rank 1.

\[ \boxed{\operatorname{rank}(A)=1} \]

Now consider:

\[ B=\begin{bmatrix} 1&2\\ 3&4 \end{bmatrix} \]

Its determinant is:

\[ \det(B)=1(4)-2(3) \]
\[ =-2 \]

Since the determinant is nonzero, the columns are independent.

Therefore:

\[ \boxed{\operatorname{rank}(B)=2} \]

Geometric Interpretation

A rank-2 transformation in ℝ² preserves two independent directions and maps the plane onto the plane.

A rank-1 transformation in ℝ² maps every vector onto a line through the origin.

A rank-0 transformation maps every vector to the zero vector.

Rank is important when solving systems of equations and analysing datasets.

 

Linear Algebra and Systems of Equations

Consider:

\[ A\mathbf x=\mathbf b \]

The columns of A can be interpreted as vectors.

For example:

\[ \begin{bmatrix} 2&1\\ 1&3 \end{bmatrix} \begin{bmatrix} x\\y \end{bmatrix} = \begin{bmatrix} 5\\7 \end{bmatrix} \]

This means:

\[ x\begin{bmatrix}2\\1\end{bmatrix} +y\begin{bmatrix}1\\3\end{bmatrix} = \begin{bmatrix}5\\7\end{bmatrix} \]

The question becomes:

Can the target vector be expressed as a linear combination of the columns of A?

If the columns form a basis for ℝ², every target vector in ℝ² can be represented uniquely.

If the columns are dependent, some target vectors may not be reachable, and others may have infinitely many representations.

Worked Example 7: Solving a System Using Column Vectors

Solve:

2x + y = 5

x + 3y = 7

From the first equation:

y = 5 − 2x

Substitute into the second:

x + 3(5 − 2x) = 7

x + 15 − 6x = 7

−5x = −8

\[ x=\frac85 \]

Then:

\[ y=5-2\left(\frac85\right) \]
\[ y=\frac95 \]

Therefore:

\[ \boxed{x=\frac85,\quad y=\frac95} \]

This means:

\[ \frac85\begin{bmatrix}2\\1\end{bmatrix} + \frac95\begin{bmatrix}1\\3\end{bmatrix} = \begin{bmatrix}5\\7\end{bmatrix} \]

The target vector is expressed as a linear combination of two independent column vectors.

 

Connections to Higher Mathematics

Linear algebra provides the foundation for many advanced mathematical ideas.

Eigenvalues and Eigenvectors

An eigenvector is a nonzero vector whose direction is preserved by a linear transformation, apart from possible reversal.

\[ \boxed{A\mathbf v=\lambda\mathbf v} \]

where λ is an eigenvalue.

Eigenvalues help describe the behaviour of transformations, vibrations, population models, and dynamic systems.

Differential Equations

Systems of differential equations can be written in matrix form.

For example:

\[ \boxed{\frac{d\mathbf x}{dt}=A\mathbf x} \]

Such equations describe how several quantities change together over time.

They are important in physics, engineering, biology, and economics.

Multivariable Calculus

Matrices describe derivatives of functions with multiple inputs and outputs.

The Jacobian matrix organises partial derivatives.

For:

\[ \mathbf F(x,y)= \begin{bmatrix} f(x,y)\\ g(x,y) \end{bmatrix} \]

the Jacobian is:

\[ J= \begin{bmatrix} \frac{\partial f}{\partial x}&\frac{\partial f}{\partial y}\\ \frac{\partial g}{\partial x}&\frac{\partial g}{\partial y} \end{bmatrix} \]

This connects linear algebra with calculus.

Optimisation

Many optimisation problems involve finding the best possible solution under constraints.

Linear algebra is used to represent the constraints and calculate efficient solutions.

Examples include:

  • Minimising production costs.

  • Optimising transport networks.

  • Designing efficient structures.

  • Fitting mathematical models to data.

Data Science and Machine Learning

Large datasets can be represented using matrices.

Rows may represent observations, while columns represent variables.

Linear algebra supports:

  • Linear regression.

  • Principal component analysis.

  • Neural networks.

  • Image recognition.

  • Recommendation systems.

  • Data compression.

 

Real-World Applications

Robotics and Engineering

Robots use vectors and matrices to represent positions, orientations, and movement. Basis changes allow engineers to convert coordinates between different reference frames.

 

Computer Graphics

Matrices transform three-dimensional objects through rotations, reflections, scaling, and projections. Graphics software relies on efficient matrix calculations.

 

Artificial Intelligence

Machine learning systems process large collections of numerical data. Matrix multiplication is a fundamental operation in neural networks and other models.

 

Structural Engineering

Engineers use matrix methods to calculate forces, displacements, and stresses in buildings and bridges. Rank and independence help determine whether engineering equations provide enough information.

 

Statistics and Scientific Research

Matrices organise measurements and support regression, covariance analysis, and dimensionality reduction. Independent variables provide distinct information about a system.

 

Common Mistakes

Mistake 1: Thinking vectors must always represent arrows

Vectors can also be lists of numbers, functions, polynomials, and other mathematical objects.

Mistake 2: Confusing a vector with a scalar

A scalar is a number, while a vector is an element of a vector space.

Mistake 3: Assuming any collection of vectors forms a vector space

A vector space must satisfy specific rules, including closure under addition and scalar multiplication.

Mistake 4: Forgetting the zero vector

Every vector space and subspace must contain the zero vector.

Mistake 5: Assuming every line in ℝ² is a subspace

Only lines passing through the origin are one-dimensional subspaces of ℝ².

Mistake 6: Confusing span with linear independence

Span describes the vectors that can be constructed. Independence describes whether the original vectors contain redundant information.

Mistake 7: Assuming two different vectors are always independent

Two different vectors may still be scalar multiples of one another.

Mistake 8: Confusing a basis with any collection of vectors

A basis must both span the space and be linearly independent.

Mistake 9: Assuming every basis must use standard coordinate vectors

Many different bases can describe the same vector space.

Mistake 10: Confusing dimension with the number of vectors in an arbitrary collection

Dimension is the number of vectors in a basis, not the number of vectors someone happens to list.

Mistake 11: Assuming matrix multiplication is commutative

In general:

AB ≠ BA

Mistake 12: Thinking a matrix is only a rectangular arrangement of numbers

A matrix can represent a linear transformation between vector spaces.

Mistake 13: Assuming every system of equations has exactly one solution

A system may have one solution, no solution, or infinitely many solutions.

Mistake 14: Confusing rank with the total number of rows or columns

Rank counts independent rows or columns.

 

Key Terms

  • Linear Algebra: Branch of mathematics studying vectors, vector spaces, matrices, and linear transformations.

  • Vector: Element of a vector space that can be added and multiplied by scalars.

  • Scalar: Number used to multiply a vector.

  • Vector Addition: Operation combining two vectors.

  • Scalar Multiplication: Operation multiplying a vector by a scalar.

  • Linear Combination: Sum of scalar multiples of vectors.

  • Vector Space: Collection of vectors satisfying the vector-space axioms.

  • Subspace: Subset of a vector space that is itself a vector space under the same operations.

  • Closure: Property that an operation produces a result within the same set.

  • Zero Vector: Vector that acts as the additive identity.

  • Span: Set of all linear combinations of a collection of vectors.

  • Linear Independence: Property that no vector in a collection can be expressed as a linear combination of the others.

  • Linear Dependence: Property that a nontrivial linear combination of vectors equals the zero vector.

  • Trivial Solution: Solution in which all coefficients are zero.

  • Basis: Linearly independent set of vectors that spans a vector space.

  • Standard Basis: Common coordinate basis using unit vectors along the coordinate axes.

  • Coordinates Relative to a Basis: Scalars used to express a vector as a linear combination of basis vectors.

  • Dimension: Number of vectors in a basis of a finite-dimensional vector space.

  • Linear Transformation: Mapping that preserves vector addition and scalar multiplication.

  • Transformation Matrix: Matrix representing a linear transformation relative to chosen bases.

  • Rank: Number of linearly independent columns or rows of a matrix.

  • Determinant: Scalar associated with a square matrix that can indicate invertibility and signed volume scaling.

  • Invertible Matrix: Square matrix with an inverse.

  • Column Space: Span of the columns of a matrix.

  • Null Space: Set of vectors mapped to zero by a matrix.

  • Eigenvector: Nonzero vector whose image under a transformation is a scalar multiple of itself.

  • Eigenvalue: Scalar associated with an eigenvector under a linear transformation.

  • Jacobian Matrix: Matrix containing first-order partial derivatives.

  • Abstract Mathematics: Study of mathematical structures through general properties and relationships.

 

Key Takeaways

  • Linear algebra studies vectors, matrices, vector spaces, and linear transformations.

  • Vectors can represent geometric directions, data, functions, and many other mathematical objects.

  • Linear combinations allow new vectors to be constructed from existing vectors.

  • A vector space must satisfy specific rules for addition and scalar multiplication.

  • A subspace is a smaller vector space contained within a larger one.

  • The span of a set of vectors contains every linear combination of those vectors.

  • Linearly independent vectors provide distinct mathematical directions.

  • Linearly dependent vectors contain redundant information.

  • A basis must be both linearly independent and span the entire space.

  • A vector can have different coordinates when expressed in different bases.

  • The dimension of a finite-dimensional vector space equals the number of vectors in any basis.

  • Matrices can represent linear transformations.

  • The columns of a transformation matrix describe the images of the standard basis vectors.

  • Matrix rank describes the number of independent directions represented by a matrix.

  • Linear algebra provides the foundation for advanced calculus, differential equations, optimisation, engineering, and artificial intelligence.

 

Check Your Understanding

Questions

Question 1: Vector Addition

Given:

\[ \mathbf u=\begin{bmatrix}3\\2\end{bmatrix}, \qquad \mathbf v=\begin{bmatrix}-1\\4\end{bmatrix} \]

Calculate u + v.

Question 2: Scalar Multiplication

Given:

\[ \mathbf v=\begin{bmatrix}2\\-5\end{bmatrix} \]

Calculate −3v.

Question 3: Linear Combinations

Given:

\[ \mathbf u=\begin{bmatrix}1\\3\end{bmatrix}, \qquad \mathbf v=\begin{bmatrix}2\\-1\end{bmatrix} \]

Calculate 4u − 2v.

Question 4: Vector Spaces

Explain why ℝ² is a vector space.

Question 5: Subspaces

Determine whether the line:

y = −3x

forms a subspace of ℝ².

Explain your reasoning.

Question 6: Non-Subspaces

Explain why the line:

y = 2x + 5

is not a subspace of ℝ².

Question 7: Span

Describe geometrically the span of:

\[ \mathbf u=\begin{bmatrix}3\\1\end{bmatrix} \]

Question 8: Linear Independence

Determine whether:

\[ \mathbf u=\begin{bmatrix}2\\1\end{bmatrix}, \qquad \mathbf v=\begin{bmatrix}4\\2\end{bmatrix} \]

are linearly independent.

Question 9: Determinant Test

Determine whether:

\[ \mathbf u=\begin{bmatrix}1\\3\end{bmatrix}, \qquad \mathbf v=\begin{bmatrix}2\\5\end{bmatrix} \]

are linearly independent.

Question 10: Standard Basis

Express:

\[ \mathbf w=\begin{bmatrix}7\\-4\end{bmatrix} \]

as a linear combination of the standard basis vectors of ℝ².

Question 11: Alternative Basis

Given:

\[ \mathbf u=\begin{bmatrix}1\\1\end{bmatrix}, \qquad \mathbf v=\begin{bmatrix}1\\-1\end{bmatrix} \]

Express:

\[ \mathbf w=\begin{bmatrix}10\\4\end{bmatrix} \]

as a linear combination of u and v.

Question 12: Dimension

State the dimension of each space:

a) ℝ²

b) ℝ³

c) Polynomials of degree at most 3

d) All real 2 × 2 matrices

Question 13: Matrix Transformations

Given:

\[ A=\begin{bmatrix}3&0\\0&2\end{bmatrix} \]

calculate:

\[ A\begin{bmatrix}2\\4\end{bmatrix} \]

Interpret the transformation geometrically.

Question 14: Matrix Rank

Determine the rank of:

\[ A=\begin{bmatrix} 2&4\\ 1&2 \end{bmatrix} \]

Explain your reasoning.

Question 15: Integrated Linear Algebra Challenge

Consider the vectors:

\[ \mathbf u=\begin{bmatrix}2\\1\end{bmatrix}, \qquad \mathbf v=\begin{bmatrix}1\\3\end{bmatrix} \]

a) Construct a matrix using u and v as columns.

b) Calculate its determinant.

c) Determine whether the vectors are linearly independent.

d) Explain whether the vectors form a basis for ℝ².

e) Express:

\[ \mathbf w=\begin{bmatrix}8\\11\end{bmatrix} \]

as a linear combination of u and v.

f) Explain the geometric meaning of the result.

 

Fully Worked Answers

Answer 1: Vector Addition

\[ \mathbf u+\mathbf v= \begin{bmatrix} 3+(-1)\\ 2+4 \end{bmatrix} \]
\[ \boxed{\mathbf u+\mathbf v=\begin{bmatrix}2\\6\end{bmatrix}} \]

Answer 2: Scalar Multiplication

\[ -3\mathbf v=-3\begin{bmatrix}2\\-5\end{bmatrix} \]
\[ \boxed{-3\mathbf v=\begin{bmatrix}-6\\15\end{bmatrix}} \]

Answer 3: Linear Combinations

\[ 4\mathbf u=4\begin{bmatrix}1\\3\end{bmatrix} =\begin{bmatrix}4\\12\end{bmatrix} \]
\[ 2\mathbf v=2\begin{bmatrix}2\\-1\end{bmatrix} =\begin{bmatrix}4\\-2\end{bmatrix} \]

Subtract:

\[ 4\mathbf u-2\mathbf v= \begin{bmatrix} 4-4\\ 12-(-2) \end{bmatrix} \]
\[ \boxed{4\mathbf u-2\mathbf v=\begin{bmatrix}0\\14\end{bmatrix}} \]

Answer 4: Vector Spaces

ℝ² contains all ordered pairs of real numbers.

Adding two vectors in ℝ² produces another ordered pair of real numbers.

Multiplying a vector by any real scalar also produces another vector in ℝ².

The zero vector is included, and the usual vector-space rules are satisfied.

Therefore, ℝ² is a vector space.

Answer 5: Subspaces

The line is:

y = −3x

Every vector on the line has the form:

\[ \begin{bmatrix}t\\-3t\end{bmatrix} =t\begin{bmatrix}1\\-3\end{bmatrix} \]

The line passes through the origin.

It is closed under vector addition and scalar multiplication.

Therefore:

\[ \boxed{\text{The line forms a subspace of }\mathbb R^2} \]

Answer 6: Non-Subspaces

The line:

y = 2x + 5

does not pass through the origin.

When x = 0:

y = 5

Therefore, the zero vector (0, 0) does not lie on the line.

Since every subspace must contain the zero vector, this line is not a subspace of ℝ².

Answer 7: Span

The vector is:

\[ \mathbf u=\begin{bmatrix}3\\1\end{bmatrix} \]

Its span consists of all scalar multiples:

\[ t\begin{bmatrix}3\\1\end{bmatrix} \]

This produces every point on the line through the origin in the direction (3, 1).

The line has equation:

\[ \boxed{y=\frac13x} \]

Therefore, the span is a one-dimensional line through the origin.

Answer 8: Linear Independence

Given:

\[ \mathbf u=\begin{bmatrix}2\\1\end{bmatrix} \]
\[ \mathbf v=\begin{bmatrix}4\\2\end{bmatrix} \]

Notice:

\[ \mathbf v=2\mathbf u \]

Therefore, the vectors are linearly dependent.

\[ \boxed{\text{The vectors are not linearly independent.}} \]

Answer 9: Determinant Test

Construct:

\[ A=\begin{bmatrix}1&2\\3&5\end{bmatrix} \]

Calculate:

\[ \det(A)=1(5)-2(3) \]
\[ =5-6 \]
\[ \boxed{\det(A)=-1} \]

Since the determinant is nonzero, the vectors are linearly independent.

Answer 10: Standard Basis

The standard basis vectors are:

\[ \mathbf e_1=\begin{bmatrix}1\\0\end{bmatrix}, \qquad \mathbf e_2=\begin{bmatrix}0\\1\end{bmatrix} \]

Therefore:

\[ \boxed{\mathbf w=7\mathbf e_1-4\mathbf e_2} \]

Answer 11: Alternative Basis

We want:

\[ a\begin{bmatrix}1\\1\end{bmatrix} +b\begin{bmatrix}1\\-1\end{bmatrix} = \begin{bmatrix}10\\4\end{bmatrix} \]

This gives:

a + b = 10

a − b = 4

Add:

2a = 14

a = 7

Then:

b = 3

Therefore:

\[ \boxed{\mathbf w=7\mathbf u+3\mathbf v} \]

Answer 12: Dimension

a) ℝ² has dimension 2.

b) ℝ³ has dimension 3.

c) Polynomials of degree at most 3 have basis:

1, x, x², x³

Therefore, the dimension is 4.

d) A real 2 × 2 matrix has four independently selectable entries.

Therefore, the space of all real 2 × 2 matrices has dimension 4.

Answer 13: Matrix Transformations

\[ A=\begin{bmatrix}3&0\\0&2\end{bmatrix} \]

Calculate:

\[ A\begin{bmatrix}2\\4\end{bmatrix} = \begin{bmatrix} 3(2)+0(4)\\ 0(2)+2(4) \end{bmatrix} \]
\[ \boxed{\begin{bmatrix}6\\8\end{bmatrix}} \]

Geometrically, the transformation stretches the x-coordinate by a factor of 3 and the y-coordinate by a factor of 2.

Answer 14: Matrix Rank

Given:

\[ A=\begin{bmatrix} 2&4\\ 1&2 \end{bmatrix} \]

The second column is twice the first.

Therefore, the columns are linearly dependent.

Since the matrix contains a nonzero column, it has one independent column.

\[ \boxed{\operatorname{rank}(A)=1} \]

Answer 15: Integrated Linear Algebra Challenge

Part a: Construct the matrix

Using u and v as columns:

\[ \boxed{ A=\begin{bmatrix} 2&1\\ 1&3 \end{bmatrix} } \]

Part b: Calculate the determinant

\[ \det(A)=2(3)-1(1) \]
\[ =6-1 \]
\[ \boxed{\det(A)=5} \]

Part c: Linear independence

Since the determinant is nonzero, the vectors are linearly independent.

Part d: Basis

Two linearly independent vectors in ℝ² span the entire plane.

Therefore, u and v form a basis for ℝ².

Part e: Express w as a linear combination

We want:

\[ a\begin{bmatrix}2\\1\end{bmatrix} +b\begin{bmatrix}1\\3\end{bmatrix} = \begin{bmatrix}8\\11\end{bmatrix} \]

This gives:

2a + b = 8

a + 3b = 11

From the first equation:

b = 8 − 2a

Substitute:

a + 3(8 − 2a) = 11

a + 24 − 6a = 11

−5a = −13

\[ a=\frac{13}{5} \]

Then:

\[ b=8-2\left(\frac{13}{5}\right) \]
\[ b=\frac{40}{5}-\frac{26}{5} \]
\[ b=\frac{14}{5} \]

Therefore:

\[ \boxed{\mathbf w=\frac{13}{5}\mathbf u+\frac{14}{5}\mathbf v} \]

Part f: Geometric interpretation

The vectors u and v provide two independent directions in the plane.

By scaling and adding them, we can reach the target vector w.

Because the vectors form a basis, every vector in ℝ² can be expressed uniquely as a linear combination of u and v.

This demonstrates the relationship between linear independence, span, and basis.

 

Final Reflection

Linear algebra provides a framework for understanding vectors, matrices, and the mathematical spaces in which they operate.

The ideas of linear combinations, span, independence, and basis explain how mathematical objects can be constructed from smaller sets of fundamental elements.

Vector spaces extend these concepts beyond ordinary geometric arrows to functions, polynomials, datasets, and other abstract mathematical structures.

Matrices describe linear transformations, while rank reveals the number of independent directions represented by a transformation.

These foundations connect directly to advanced topics such as eigenvalues, differential equations, multivariable calculus, optimisation, computer graphics, and machine learning.

The central idea is that linear algebra allows us to understand complex mathematical systems by identifying their independent components, describing how those components combine, and studying the transformations that act on them.