Linear Functions
A homogeneous linear function on has the form for some fixed vector . Every term involves exactly one variable to the first power (degree 1), and there is no constant offset. The function passes through the origin: .
An affine function adds a constant offset: . Affine functions are sometimes loosely called "linear," but technically they are only truly linear (in the linear algebra sense) when . The graph of an affine function on is a tilted plane.
In matrix notation, the vector is called the coefficient vector, and is just a dot product. As we will see in Chapter 12, will turn out to be the gradient of the linear function — the direction of steepest ascent.
Formal View
Homogeneous linear functions satisfy and . Affine functions satisfy neither unless .
Interactive Visualization
Matrix-Vector Multiplication
Why This Matters
Linear functions are the foundation of calculus: every smooth function looks linear when you zoom in close enough (this is the local linear approximation idea).
- Linear regression predictions: is an affine function of the weight vector .
- Signal processing: inner products compute projections and filter responses.
- Economics: linear utility functions measure total value at prices .
Quiz
Which of the following is a homogeneous linear function on ?
Every homogeneous linear function satisfies .
Common Mistakes
- Calling a linear function in the algebraic sense — it is affine, not homogeneous linear, because of the .
- Forgetting that the coefficient vector is fixed, not a variable — is linear in , not in .