Engineering/Mathematics/Linear Transformations
Matrices and Linear Transformations
On column vector spaces, matrices and linear transformations are two notations for one object. A matrix defines the transformation , and conversely every linear transformation is realised by exactly one matrix, whose columns are the images of the standard unit vectors.
- Core level
- Stream: transformations
- Reading time 14 min
- Ref KVS-ENG-MATH-0091
- Taxonomy
- Engineering / Mathematics
- Prerequisite
- Linear transformations, matrix-vector product
- Forward direction
- Any matrix gives a linear
- Reverse direction
- Any linear equals for a unique
- Construction
- Cost
- evaluations characterise the whole transformation
Overview
The matrix-vector product was introduced as a piece of notation for compressing a system of equations. Reading it as a function instead changes what it is for. The expression takes a vector of components and returns a vector of components, and the two properties of matrix multiplication that distribute over vector addition and commute with scalar multiplication are exactly the two axioms of linearity. So every matrix is a linear transformation in disguise.
The converse is the substantial result, and it is proved by construction rather than by an existence argument. Suppose is known only to be linear, with no formula given. Evaluate it at each standard unit vector and collect the resulting vectors as the columns of a matrix . Then for every input, because writing as a combination of the and pushing through that combination reproduces the matrix-vector product exactly.
The engineering statement of this theorem is that a linear system is completely characterised by its unit responses. Excite one input at a time, record the whole output vector, and stack those records side by side: that array predicts the response to every possible input. Influence coefficient matrices in structural analysis, sensitivity matrices in process control, Jacobians in robotics and scattering matrices in RF engineering are all this construction under different names.
Because the representing matrix is unique, no information is lost in either direction. Structural questions about the transformation — whether it is injective, what its range is, how it behaves on a subspace — become questions about null spaces, column spaces and rank of the matrix, and the whole apparatus of row reduction becomes available. The correspondence is extended to arbitrary finite-dimensional vector spaces later, by first choosing bases and converting vectors to coordinate columns.
Definition
Matrix Representation of a Transformation on Column Vectors
MLTCVFor a linear transformation , the matrix representation of is the matrix whose -th column is , the image of the -th standard unit vector. It is the unique matrix satisfying for all .
The matrix depends on the standard basis being used for both spaces. Representations with respect to other bases exist and are related to this one by change-of-basis matrices.
Standard Unit Vectors
SUVThe vectors of , where has a in position and zeros elsewhere. They are the columns of the identity matrix , and they form a basis of , so every vector has the unique expansion .
In engineering terms, is the input that excites channel with unit magnitude and leaves every other channel at zero.
Influence Coefficient
ICThe entry of a matrix representation, read as the contribution to output per unit of input . Column collects all influence coefficients for a single input; row collects all contributions to a single output. This reading is the working interpretation of a matrix representation in structural, thermal and process engineering.
Concepts
Every matrix builds a linear transformation
Fix an matrix and define . Additivity follows from the distributive property of matrix multiplication over vector addition, , and homogeneity from . Both are established facts about the product, so no separate verification is needed. The consequence is a factory: any array of numbers, with no conditions attached, immediately yields a linear transformation from to .
The output is a linear combination of the columns
Expanding the matrix-vector product gives , where is column . The transformation therefore uses the components of the input as weights on a fixed set of output vectors. This is the single most useful way to picture the map: the columns are the available output directions, the input chooses how much of each, and the reachable set is exactly the span of the columns — the column space.
Every transformation on column vectors comes from a matrix
For the converse, define for and set . Given any , write it as , then apply and push it through the combination using additivity and homogeneity: . This is the first argument in which the full strength of both axioms is used on a transformation supplied only as a hypothesis, and the proof is an algorithm: evaluations produce the matrix.
Uniqueness of the representing matrix
If for every , then taking gives for each , so . The representation is therefore unique, which is what licenses the phrase the matrix of a transformation. It also gives the cheapest equality test for two linear maps: compare their action on basis vectors rather than attempting to compare them on all of .
The size dictionary
An matrix corresponds to a transformation : the column count is the dimension of the domain and the row count is the dimension of the codomain. The reversal trips people up constantly. The mnemonic is that must be defined, so has as many components as has columns, while the output inherits the row count. Composition then reads naturally: requires the middle dimensions to agree, which is precisely the condition for the matrix product to exist.
Structural questions transfer both ways
Because the correspondence is exact, every property of a transformation has a matrix counterpart and vice versa. The set of inputs mapped to zero is the null space of ; the set of achievable outputs is the column space of ; injectivity is equivalent to a trivial null space, hence to having full column rank; surjectivity is equivalent to the column space filling , hence to full row rank. Row reduction, an algorithm defined for arrays of numbers, therefore answers questions about functions.
Extending the correspondence to abstract spaces
The theorem as stated needs domain and codomain to be spaces of column vectors, because the proof uses the standard unit vectors. For a transformation between arbitrary finite-dimensional vector spaces — polynomials to matrices, say — the repair is to fix a basis for each space and replace every vector by its coordinate column. The transformation then becomes a map between column vector spaces and acquires a matrix in the same way, though the matrix now depends on the two chosen bases as well as on .
Procedure: build the matrix of a linear transformation
Equations
Matrix defines a transformation
EQ-MLT-01For any matrix this function is linear, with no conditions on the entries of .
Output as a linear combination of columns
EQ-MLT-02The components of the input are the weights and the columns of are the output directions. The reachable set is the span of the columns.
Construction of the matrix from unit responses
EQ-MLT-03The columns of the representing matrix are the images of the standard unit vectors. Experimentally, column is the recorded response to a unit excitation of input .
Proof chain for the representation theorem
EQ-MLT-04Expand the input in the standard basis, push through the combination using both axioms, substitute the definition of the columns, and recognise the matrix-vector product.
Uniqueness of the representation
EQ-MLT-05Testing on the standard unit vectors is enough, since is column of . Two linear transformations are equal precisely when they agree on a basis.
Size dictionary
EQ-MLT-06The column count of the matrix is the dimension of the domain; the row count is the dimension of the codomain. The order is reversed relative to the arrow notation.
Structural correspondence
EQ-MLT-07The kernel of the transformation is the null space of its matrix and the range is the column space. Rank and nullity therefore answer surjectivity and injectivity questions about .
Variable Definitions
| Symbol | Name | Meaning | Domain / type |
|---|---|---|---|
| Linear transformation | The function under study, from to | linear map | |
| Representing matrix | The unique matrix with | m x n complex matrix | |
| Column of the matrix | The image of the -th standard unit vector | vector in C^m | |
| Standard unit vector | Column of ; a unit excitation of input channel | vector in C^n | |
| Domain dimension | Number of inputs; the column count of | positive integer | |
| Codomain dimension | Number of outputs; the row count of | positive integer | |
| Component of the input | The -th entry of , used as a weight on column | complex scalar | |
| Influence coefficient | Contribution to output per unit of input | complex scalar | |
| Column space | Span of the columns of ; the set of achievable outputs | subspace of C^m |
Worked Numerical Example
Problem statement
A three-zone heater controls a plate instrumented with four thermocouples. Steady-state temperature rise at each thermocouple is linear in the three zone powers. Determine the influence coefficient matrix from unit-power tests, verify it against an independent operating point, and read off what the matrix says about reachability.
State the transformation
Let hold the three zone powers and the four temperature rises. The physical model, established from the governing equations, gives each output as a weighted sum of the inputs with no constant term — the transformation is linear.
Run the first unit test
Drive zone one at unit power with zones two and three at zero. The recorded vector of four temperature rises is the first column of the influence matrix. Note that thermocouple two falls, which the sign of the second entry records faithfully.
Run the remaining unit tests
Repeat for zones two and three. Three experiments, each exciting a single input, produce three output vectors. Nothing more is required: linearity guarantees that these determine every other response.
Assemble the influence matrix
Stack the three recorded vectors as columns, in input order. The result is : four rows because there are four outputs, three columns because there are three inputs.
Verify against an independent operating point
Take a setting with no zero components, . Evaluate the transformation from its defining formula: , , , . Now compute the matrix-vector product and compare.
Read the structure by row reduction
Reducing gives three pivot columns, so the rank is . Full column rank means the null space is trivial, hence distinct power settings always produce distinct temperature patterns: the transformation is injective and the settings are recoverable from measurements.
Interpret the reachable set
The column space is a three-dimensional subspace of , so the achievable temperature patterns form a proper subspace: with three actuators and four sensors, most four-component target profiles cannot be realised exactly. Deciding whether a specific target is achievable is a consistency question for , answered by row reduction of the augmented matrix.
Three unit-power experiments completely characterise a system with an unbounded number of possible operating points. The influence matrix is with rank : the plate is fully observable in the sense that no two distinct power settings produce the same temperature pattern, but it is under-actuated, since only a three-dimensional set of four-component profiles can be achieved. Any target outside that subspace requires either a fourth heater zone or a least-squares compromise.
Applications & Industry Use
Flexibility and stiffness influence coefficients
Applying a unit load at one degree of freedom and recording deflections at all degrees of freedom produces one column of the flexibility matrix. Assembling all columns yields the matrix representation of the load-to-deflection transformation, and inverting it gives the stiffness matrix used in the direct stiffness method.
Steady-state gain matrices for multivariable plants
Step-testing each manipulated variable while holding the others constant produces one column of the plant gain matrix. That matrix drives controller pairing decisions, relative gain array analysis and the assessment of whether the number of independent control handles is sufficient for the number of controlled outputs.
The Jacobian as a local matrix representation
The map from joint velocities to end-effector velocity is linear at each configuration, and its matrix is the Jacobian. Its columns are the end-effector velocities produced by unit motion of each joint, so rank deficiency of the Jacobian identifies a singular configuration in which some task-space direction becomes momentarily unreachable.
Transformation matrices from images of the axes
A rotation, scaling or shear is specified by where it sends the coordinate axes, and those images are exactly the columns of its matrix. This is why building a change-of-frame matrix in a graphics or CAD system amounts to writing down the three basis directions of the new frame as columns.
Scattering parameter matrices
An -parameter matrix records the wave leaving each port per unit wave incident at one port, with all other ports matched — a column-by-column construction from unit excitations. The resulting matrix represents the linear network exactly and composes with other networks by matrix operations.
Calibration matrices for multi-analyte instruments
A spectrometer measuring several wavelengths for a mixture of several analytes has a response linear in the concentrations. Running a pure standard of each analyte gives one column of the calibration matrix; inverting or least-squares solving with that matrix converts a measured spectrum back into concentrations.
Design Considerations
Unit tests are the cheapest complete characterisation
For a genuinely linear system, single-channel experiments determine the response to every input, so a test programme that exercises arbitrary realistic combinations wastes budget and leaves gaps. Design the test matrix to span the input space; the standard unit vectors are the simplest spanning choice and each isolates one influence path.
Unit excitation may be experimentally impractical
Some systems cannot be driven one input at a time — a pump cannot deliver negative flow, a joint may not move independently. When that happens, excite any set of independent input vectors, collect the responses as the columns of , and recover the standard representation as , where has the chosen excitation vectors as its columns. The construction is unchanged; only the basis differs.
Watch the row-column orientation
An matrix represents a map from to , so the dimensions appear in the opposite order to the arrow notation. Storing unit responses as rows instead of columns produces the transpose, which silently computes a different transformation. Verify orientation on a generic vector before the matrix enters any downstream calculation.
Rank determines what the system can and cannot do
Full column rank means inputs are recoverable from outputs; full row rank means every output is achievable. With the map cannot be surjective, so exact tracking of an arbitrary target is impossible and a least-squares formulation is required. With the map cannot be injective, so a null space of input combinations produces no output at all — useful for secondary objectives, dangerous if unmodelled.
Rebuild the representation when the operating point moves
A matrix derived by linearising a non-linear plant is valid only near the point at which it was measured. Influence coefficients for a structure change once yielding begins; a robot Jacobian changes at every configuration. Record the operating point alongside the matrix and re-identify it whenever the point moves outside the validated envelope.
Measurement noise makes an identified matrix approximate
Columns obtained experimentally carry error, so an identified matrix should be reported with uncertainty and its rank determined with a tolerance rather than by exact-zero tests. Repeating each unit test and averaging, or fitting all excitations simultaneously by least squares, gives a better-conditioned estimate than a single test per channel.
Standards & Codes
Notation, interchange and numerical standards that govern how this material is written down, stored and computed in production systems.
| Reference | Title | Relevance to this topic |
|---|---|---|
ISO 80000-2 | Quantities and units — Part 2: Mathematics | Fixes the bracket notation for matrices, the italic convention for the map name , and the indexing order in which names the entry in row and column . |
BLAS Level 2 | Basic Linear Algebra Subprograms, matrix-vector operations | Standardises xGEMV, the matrix-vector product that evaluates a linear transformation; the leading-dimension and transpose flags in its interface are exactly the orientation questions discussed here. |
IEEE 370-2020 | Electrical characterization of printed circuit board and related interconnects at frequencies up to 50 GHz | Governs the measurement and validation of scattering parameter matrices, an industrial instance of building a matrix representation column by column from single-port excitations. |
ISO 10303 (STEP), Part 42 | Geometric and topological representation | Encodes geometric transformations for CAD exchange by their action on the coordinate axes, which is the matrix-from-unit-vectors construction expressed as a data model. |
ISO/IEC 40314 | Mathematical Markup Language (MathML) Version 3.0 | Provides the semantic encoding of the matrix and column notation on this page so that structure, not just appearance, is available to assistive technology. |
Material Selection
For a mathematical topic, "material" is the numeric representation: the scalar field, storage format and precision the computation is built from.
| Representation | Select when | Trade-off |
|---|---|---|
| Dense row-major or column-major storage | Small to moderate influence matrices from instrumentation, robotics or control identification. | Simple and cache-friendly for matrix-vector products, but the storage order must be declared consistently or the transpose is computed silently; memory grows as . |
| Sparse compressed storage (CSR or CSC) | Large finite element or network influence matrices where each output depends on only a few inputs. | Reduces storage and product cost to the number of non-zeros, but CSC favours column access, which is the natural direction for the unit-response construction, while CSR favours row access. |
| Matrix-free operator | The action of is available as a simulation or a physical experiment but the matrix is too large to store. | Needs only memory and suits Krylov solvers, but explicit structural questions such as rank and null space require iterative estimation rather than row reduction. |
| IEEE 754 binary64 entries | Identified matrices from measurement, where entries carry physical units and limited significant figures. | Ample precision relative to measurement noise, but rank must be judged with a tolerance derived from the noise level, not from machine epsilon. |
| Exact rational entries | Analytically derived transformations, symbolic verification and textbook-scale structural analysis. | Gives an exact rank and an exact null space basis, but is unavailable for identified matrices and impractical beyond modest sizes. |
| Fixed-point entries | Embedded implementation of an identified gain matrix in a controller without floating-point hardware. | Deterministic timing and low cost, but requires per-column scaling analysis to avoid overflow, and the quantised matrix represents a slightly different transformation than the identified one. |
Manufacturing Notes
Implementation notes — how the result is actually produced by hand, by algorithm and by library, including cost and numerical behaviour.
Cost of building and applying the representation
Constructing the matrix costs evaluations of the transformation, which may be physical experiments or simulation runs. Once built, applying it costs floating-point operations per input vector via a single matrix-vector product, independent of how expensive the original evaluation was. For a system evaluated many times, identifying the matrix once is almost always the cheaper route.
Building the matrix by hand from a formula
Set all inputs but one to zero and read the surviving terms; that gives a column directly, with no algebraic rearrangement. The alternative is to group the defining formula by input variable and factor the coefficient vectors out — the same answer reached by collecting rather than by substitution. Cross-check the two methods on one column when the formula is complicated.
Verification strategy
Testing on standard unit vectors only reproduces the construction and cannot detect an error. Verify on a vector with all components non-zero and mutually distinct, so that a transposed matrix, a swapped column pair or a sign error all produce a visible discrepancy. In floating point, compare against times the unit round-off.
Library conventions and pitfalls
NumPy's A @ x and MATLAB's A*x both implement the matrix-vector product with the column convention used here. NumPy broadcasting will silently accept a one-dimensional array of the wrong length in some reduction contexts, and MATLAB will interpret a row vector argument as requiring the transposed product; both errors surface as a wrong answer rather than an exception. Assert the shape of against before use.
Identification by least squares rather than one test per channel
Given a set of excitation vectors collected as the columns of and their measured responses as the columns of , the best-fit representation solves , giving with the pseudoinverse. Redundant excitations average out measurement noise and the condition number of quantifies how well the chosen test set spans the input space.
Failure Modes & Common Mistakes
| Failure mode / mistake | Impact | Root cause | Prevention & detection |
|---|---|---|---|
| Transposing the representation | high | Recording unit responses as rows instead of columns, producing and a transformation with the domain and codomain exchanged. | Check the shape against and verify on a generic vector, not on a standard unit vector, before using the matrix. |
| Building a matrix for a non-linear map | high | Applying the unit-response construction to a function that has not been verified linear, most often one with a constant offset. | Establish linearity first, including the zero test. For an affine map, identify the linear part from response differences and carry the offset separately. |
| Verifying only on the standard unit vectors | medium | The construction guarantees agreement on the by definition, so such a check is circular and detects nothing. | Verify on an input whose components are all non-zero and mutually different. |
| Confusing the domain and codomain dimensions | medium | Reading an matrix as a map from to because the arrow notation lists domain first. | Anchor on the requirement that be defined: the input length matches the column count, the output length matches the row count. |
| Column order not matching input order | medium | Unit tests performed or filed in a different order from the input variable numbering. | Label each recorded response vector with its input index at the time of the experiment and assemble strictly in index order. |
| Reusing an identified matrix outside its operating envelope | high | A linearised or measured representation is applied at a configuration or load level well away from where it was obtained. | Store the operating point and validity range as metadata with the matrix and re-identify whenever the point moves outside it. |
| Declaring rank by exact-zero tests on measured data | medium | A column of an identified matrix that should be dependent is only nearly dependent because of noise. | Determine rank from singular values against a tolerance derived from the measurement uncertainty, not from row reduction with exact comparisons. |
| Assuming a representation exists for abstract spaces without choosing bases | low | Applying the theorem to a map between polynomial or matrix spaces, where standard unit vectors are not defined. | Fix a basis for the domain and codomain, convert to coordinate vectors, and note that the resulting matrix depends on both bases. |
FAQs
Why are the columns of the matrix the images of the standard unit vectors?
Because selects column of exactly. So if is to hold for all inputs, it must hold at , which forces column to equal . The construction is not a convenient choice; it is the only possibility.
Is the matrix of a linear transformation unique?
With respect to the standard bases on both spaces, yes. If two matrices give the same output for every input then they agree on each standard unit vector, hence column by column. Change either basis and the matrix changes, which is why representations with respect to arbitrary bases carry explicit basis labels.
Does every linear transformation have a matrix?
Every linear transformation between finite-dimensional spaces does, once bases have been chosen for the domain and the codomain. When both spaces are column vector spaces the standard bases are implied and no choice is needed. Transformations on infinite-dimensional spaces, such as differentiation on all smooth functions, have no finite matrix.
How many experiments do I need to characterise a linear system?
Exactly as many as the dimension of the input space, provided the excitations are linearly independent. With independent excitations collected as the columns of and the responses as the columns of , the standard representation is ; if the excitations are the standard unit vectors then and directly.
What does rank deficiency of the representing matrix mean physically?
Deficient column rank means a non-trivial null space: some non-zero input combination produces no output at all, so inputs cannot be recovered from measurements. Deficient row rank means the achievable outputs form a proper subspace, so some target responses are unattainable. A robot Jacobian at a singular configuration exhibits both readings simultaneously.
Why does an matrix map to rather than the other way round?
Because the product requires the input to have as many components as has columns, and it produces one output component per row. The dimension order therefore reverses relative to the arrow . This is a constant source of shape errors and is worth checking explicitly in code.
How does this correspondence extend to spaces of polynomials or matrices?
Choose a basis for the domain and one for the codomain, replace every vector by its coordinate column with respect to those bases, and the transformation becomes a map between column vector spaces with a matrix built exactly as above. The resulting matrix depends on both bases, and changing a basis conjugates or multiplies it by a change-of-basis matrix.
References
- Beezer, R. A. A First Course in Linear Algebra, Version 0.70. University of Puget Sound, 2006. Section LT, subsection MLT. Licensed under the GNU Free Documentation License v1.2.
- Strang, G. Introduction to Linear Algebra, 5th edition. Wellesley-Cambridge Press, 2016. Chapter 8 on linear transformations and their matrices.
- Axler, S. Linear Algebra Done Right, 3rd edition. Springer, 2015. Chapter 3, the matrix of a linear map.
- Dongarra, J. J. et al. An Extended Set of FORTRAN Basic Linear Algebra Subprograms. ACM Transactions on Mathematical Software 14(1), 1988.
- ISO 80000-2:2019, Quantities and units — Part 2: Mathematics. International Organization for Standardization.
AI Suggested Questions
- If I can only excite my system with three specific non-standard input vectors, how do I recover the standard matrix representation from the measured responses?
- Show how the matrix of a rotation in the plane is obtained purely from the images of the two coordinate axes.
- Why does a robot Jacobian lose rank at a singular configuration, and what does the null space of the Jacobian mean for joint motion?
- Compare identifying an influence matrix by one unit test per channel against a least-squares fit over redundant excitations, in the presence of measurement noise.
- Take a linear transformation from to and build its matrix with respect to explicitly chosen bases for both spaces.
- Explain what changes in the matrix representation when I reorder the input channels, and why it is a permutation similarity.
Related Calculators
Evaluate a symbolic transformation on the standard unit vectors and assemble the representing matrix automatically.
Matrix-Vector Product CalculatorCompute and display it simultaneously as a linear combination of the columns of .
Matrix Rank & Nullity CalculatorReport rank, nullity and pivot columns to decide injectivity and surjectivity of the represented transformation.
