Home › Linear Functions

Linear Functions

Algebra · An Advanced Course

In school a linear function is a formula, y = mx + b, whose graph is a straight line. In advanced mathematics the same idea is split into two precise notions and then generalised enormously. A map is linear when it respects addition and scalar multiplication; it is affine when it is a linear map followed by a translation. The school function y = mx + b is affine, and it is linear only when b = 0. This distinction, which looks like pedantry on the real line, becomes the organising principle of linear algebra, multivariable calculus, statistics and optimisation.

The reason linear maps occupy such a central place is that they are the only maps we understand completely. A linear map between finite-dimensional spaces is determined by a finite table of numbers, its matrix; its behaviour is controlled by a handful of invariants such as rank, determinant and eigenvalues; and the equations it produces can be solved by finite algorithms. Almost every other part of analysis proceeds by reducing a nonlinear problem to a linear one. The derivative of a function is, by definition, the linear map that best approximates it near a point. A least-squares fit is an orthogonal projection, which is linear. A linear programme asks for the best vertex of a polyhedron cut out by affine inequalities. Even modern neural networks are compositions of affine maps with one very simple piecewise-linear function.

This course assumes fluency with the material of the school lesson (slope, intercepts, composition, inverses, systems of two equations) and some familiarity with matrices. It proceeds at the level of a first graduate course: every definition is stated precisely, the central theorems are proved, and the history and research connections are indicated where they illuminate the mathematics. Proofs end with the symbol ∎.

In this course, you will:

Throughout, F denotes a field (usually ℝ), vectors in ℝⁿ are columns, Aᵀ is the transpose of A, eⱼ is the j-th standard basis vector, and ⟨x, y⟩ = xᵀy is the standard inner product.

Figures

Four red data points with a blue least-squares line and green vertical residual segments
Figure 1. A least-squares fit to the data (1, 6), (2, 5), (3, 7), (4, 10): the blue line y = 3.5 + 1.4x minimises the sum of the squared vertical residuals shown in green. Source
A green three-dimensional polytope with a red path running along its edges
Figure 2. The feasible region of a linear programme in three variables is a polytope; the red path shows how the simplex method can move along edges from vertex to vertex towards an optimum. Source

Contents

Lesson 1
Linear Versus Affine Maps
Lesson 2
Vector Spaces, Bases and Dimension
Lesson 3
Kernel, Image and the Rank–Nullity Theorem
Lesson 4
Matrices, Change of Basis and Similarity
Lesson 5
Dual Spaces and Linear Functionals
Lesson 6
Affine Geometry
Lesson 7
The Derivative as the Best Linear Approximation
Lesson 8
Least Squares and Orthogonal Projection
Lesson 9
The Gauss–Markov Theorem
Lesson 10
Linear Programming and the Simplex Method
Lesson 11
Duality, Farkas' Lemma and Complementary Slackness
Lesson 12
Lipschitz and Piecewise-Linear Functions
Problem Set
60 problems
Assessment
Randomly generated questions

Image sources

  1. Figure 1 · Linear least squares example2. By Krishnavedala. CC BY-SA 3.0. From Wikimedia Commons: https://commons.wikimedia.org/wiki/File:Linear_least_squares_example2.svg
  2. Figure 2 · Simplex-method-3-dimensions. By Sdo. CC BY-SA 3.0. From Wikimedia Commons: https://commons.wikimedia.org/wiki/File:Simplex-method-3-dimensions.png
V.3.1