Which Matrix Transformations Are Linear?
At a glance
- 1. Identify the rule
Check whether the transformation is multiplication by one fixed matrix, or another rule defined on matrices.
- 2. Check the vector spaces
Confirm that the input and output have compatible dimensions and use the same scalar field.
- 3. Test both properties
A linear map preserves addition and scalar multiplication; test these directly if the rule is not clearly matrix multiplication.
- 4. Reject counterexamples
A constant offset or nonlinear operation such as squaring an input coordinate usually makes a transformation nonlinear.
A matrix can define a linear transformation, but the word “matrix” alone does not guarantee that a rule is linear. The key question is whether the rule preserves vector addition and scalar multiplication. No list of specific options is included here, so the tests below let you classify each proposed transformation.
The definition of a linear transformation
A map between vector spaces over the same field is linear if, for every and scalar ,
These two conditions can also be combined into one: for all vectors and scalars .
If the rule is for a fixed matrix , it is always linear, provided the matrix dimensions make the multiplication valid. For example, if is an matrix, then maps vectors in to vectors in .
Indeed, matrix multiplication distributes over vector addition and respects scalar multiplication:
The entries of may be any fixed real numbers (or elements of another chosen field). The matrix need not be square, invertible, or have any special pattern.
How to classify a proposed rule
For each option, first identify its input and output. Then ask whether it is multiplication by a fixed matrix. If it is not immediately in that form, test both defining properties:
- Choose arbitrary input vectors and and compare with .
- Choose a scalar and compare with .
- If either equality fails for even one example, the transformation is not linear.
To disprove linearity, you do not need to find a general formula for all inputs. One valid counterexample is enough. To prove linearity, however, verify the properties for arbitrary inputs, or rewrite the rule as multiplication by a fixed matrix.
A useful quick check is that every linear transformation sends the zero vector to the zero vector: . If a rule sends zero somewhere else, it cannot be linear. Passing this check does not prove linearity; it only rules out some non-linear maps.
Worked examples
A fixed matrix gives a linear transformation. Let
This is exactly multiplication by . For and , for example, and . Their sum is , which also equals . The general matrix calculation above proves the property for every pair of inputs and every scalar, so is linear.
Adding a fixed vector makes an affine map, not a linear one. Consider with a fixed nonzero vector . Then , so is not linear. For example, sends to . If , the rule reduces to and is linear.
Squaring a coordinate is nonlinear. Let . With and ,
Since these differ, is not linear. It also fails scalar multiplication: , whereas .
Rules involving matrices
Sometimes the inputs themselves are matrices rather than vectors. The same definition applies: the matrices of a fixed size form a vector space, with matrix addition and scalar multiplication. For instance, is linear because and .
By contrast, is generally not linear, and is not linear for matrices when . For the determinant, scalar multiplication gives , which is not generally . For a direct additivity counterexample when , let have a in its first diagonal entry and zeros elsewhere, and let . Then , but and . For , the determinant is the identity map and is linear. Individual inputs or scalars may still make a test equality hold by coincidence, but linearity must hold for all inputs.
Common mistakes
- Assuming every formula containing a matrix is linear. A matrix may appear inside a nonlinear operation, such as or .
- Treating a variable matrix as fixed. The rule is linear when is fixed. A rule that multiplies two variable inputs, such as , is generally nonlinear.
- Checking only the zero vector. Having is necessary but not sufficient. For example, sends zero to zero but is nonlinear.
- Confusing linear with affine. The rule is affine. It is linear only when .
If you are given a particular list of matrix formulas, apply the addition and scalar-multiplication tests to each one; multiplication by a fixed matrix passes both tests automatically.
References
- Linear Algebra and Its Applications, David C. Lay, Steven R. Lay, and Judi J. McDonald
- Linear Algebra Done Right, Sheldon Axler
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.