What is a linear transformation?
Last updated: 2026-11-26
A linear transformation is a function T between vector spaces that respects two operations: T(u + v) = T(u) + T(v), and T(cu) = c T(u), for all vectors u and v and scalars c. You can add or scale before applying T or after, and the result is the same. This page uses vectors with real entries.
Start learning No account needed
1. How to test a map
Start with the zero vector. A linear transformation sends 0 to 0, so a map that does not is ruled out. If it passes, check both rules with general vectors, written in letters. One numerical example that breaks a rule is enough to show a map is not linear. Examples that satisfy the rules do not prove it is.
2. A worked example: one map that is linear and two that are not
Predict which of T, shift and Q are linear. The numbers come from scripts/what-is-a-linear-transformation-worked-example.py in the Professor Turing repository.
u = (1, 2), v = (3, -1), c = 4
T(x, y) = (x + y, 2y, x - y)
T(u + v) = (5, 2, 3)
T(u) + T(v) = (5, 2, 3)
T(cu) = (12, 16, -4)
c T(u) = (12, 16, -4)
shift(x, y) = (x + 1, y)
shift(0, 0) = (1, 0)
Q(x, y) = (xy, y)
Q(0, 0) = (0, 0)
with p = (1, 1): Q(p + p) = (4, 2), Q(p) + Q(p) = (2, 2)
matrix of T: rows (1, 1), (0, 2), (1, -1)
rows 3, columns 2, pivots 2
pivot in each column: True, pivot in each row: False
matrix of S: rows (1, 0, 1), (0, 1, 1)
rows 2, columns 3, pivots 2
pivot in each column: False, pivot in each row: True
S(0, 0, 0) = (0, 0)
S(1, 1, -1) = (0, 0)
For T, the numbers agree, and letters finish the job. With u = (a, b) and v = (d, e), the first entry of T(u + v) is (a + d) + (b + e), which regroups as (a + b) + (d + e), the sum of the first entries of T(u) and T(v). The other two entries and the scaling rule work the same way. The result (5, 2, 3) and the scaled result (12, 16, −4) are instances.
The shift moves the origin to (1, 0), so it is not linear.
3. A common misconception: T(0) = 0 means T is linear
Q(x, y) = (xy, y) sends zero to zero. Yet with p = (1, 1), Q(p + p) is (4, 2) while Q(p) + Q(p) is (2, 2). So passing the zero check leaves the question open.
A related trap comes from algebra class. The function f(x) = 2x + 3 has a straight line graph, but it is not a linear transformation, because f(0) = 3.
4. The matrix of a linear transformation
A linear transformation from n entries to m entries can be written as T(x) = Ax. Column j of A is T applied to the j-th standard coordinate vector, the one with 1 in position j and 0 elsewhere. So a few outputs fix the whole map. A counterclockwise quarter turn sends (1, 0) to (0, 1) and (0, 1) to (−1, 0), and those are its two columns. Its formula, (x, y) to (−y, x), has coordinates that are linear expressions with no constant term, which confirms that it is linear.
5. One-to-one and onto
T is one-to-one when each output comes from at most one input, and onto when each vector in the target space is reached by at least one input. For T(x) = Ax, row reduce A. A pivot in each column means one-to-one, and a pivot in each row means onto.
In the output, T goes from 2 entries to 3. It has a pivot in each column but not in each row, so it is one-to-one and not onto. For example, no input gives (1, 0, 0): the second entry forces y = 0, and then x would have to be both 1 and 0. S(x, y, z) = (x + z, y + z) goes from 3 entries to 2. It is onto and not one-to-one, since (1, 1, −1) and (0, 0, 0) both go to (0, 0). The same idea for functions of one variable is in what is a one-to-one function.
6. Test yourself
Case 1. Is T(x, y) = (x, 0) linear? Is it one-to-one or onto the plane?
Answer to case 1
It is linear. It is not one-to-one, because (0, 1) and (0, 0) share an output, and not onto, because outputs have second entry 0.
Case 2. A matrix has rows (1, 0, 0) and (0, 1, 0). Classify the map x to Ax.
Answer to case 2
It has 2 pivots, one in each row, so it is onto the plane. One of the 3 columns lacks a pivot, so it is not one-to-one.
Case 3. Can a linear map from 3 entries to 2 entries be one-to-one?
Answer to case 3
No. A 2 by 3 matrix has at most 2 pivots, so at least one column has none.
To practice from memory, see how to test yourself. For exam preparation, see how to study for a math exam. A linear transformation is fixed by where it sends the vectors of a basis; see span and basis.
What the sources found, and their limits
Dan Margalit and Joseph Rabinoff, Interactive Linear Algebra, section 3.3. It defines linear transformations between real coordinate spaces, shows T(0) = 0, gives linear and non-linear examples, states the test for coordinate formulas, and connects the maps with their matrices. Source: Linear transformations, read on 2026-11-25.
The same book, section 3.2. It defines one-to-one and onto transformations and gives the pivot conditions for matrix maps. It also shows that a map from more entries to fewer is not one-to-one, and that a square matrix map is one-to-one exactly when it is onto. Source: One-to-one and onto transformations, read on 2026-11-25.
Jim Hefferon, Linear Algebra, fourth edition, chapter three, definition 1.1 of section II.1. It defines a linear map between vector spaces as a function that preserves addition and scalar multiplication. Source: Linear Algebra (PDF), read on 2026-11-25.
Limits: two textbooks, with selected passages read. The maps in the script and the self-test cases are ours.
How Professor Turing helps
Professor Turing is a tutor for adults learning any subject, in college or on their own. It asks you questions instead of giving the final answer, does not grade a bare guess, and remembers what you got wrong. No account is needed to start. It's an AI tutor, free to try.
Bring a map and say whether you think it is linear. Its first reply asks about your attempt, such as what the map does to the zero vector, before it teaches anything. You must be 18 or older, and guest conversations are deleted 7 days after the last activity.
FAQ
Is a linear transformation one-to-one or onto? It can be both, either one or neither. For a matrix map, a pivot in each column means one-to-one and a pivot in each row means onto. A square matrix has both properties or neither.
How do you prove a map is linear? Show that T(u + v) = T(u) + T(v) and T(cu) = c T(u) with letters standing for the entries and the scalar, or show that the map can be written as T(x) = Ax for a matrix A.
Start with what you're working on
Tell the tutor which map you are working on and let it ask you the questions.
Start learning No account needed
See also: what is a vector space · all study guides