Linear function
In mathematics, the term linear function refers to a function that satisfies the following two properties:
The linear functions are often confused with affine function. Affine functions can be written as . Although affine functions make lines when graphed, they do not satisfy the properties of linearity.
Vector spaces
In advanced mathematics, a linear function means a function that is a linear map, that is, a map between two vector spaces that preserves vector addition and scalar multiplication.
For example, if and are represented as coordinate vectors, then the linear functions are those functions that can be expressed as
where M is a matrix. A function
is a linear map if and only if = 0. For other values of this falls in the more general class of affine maps.
Linear functions form the basis of linear algebra.