Unfinished learning resource · Units 1–8 available

Unit 3. Linear maps, information loss and coordinates

Unfinished learning resource · TMP-SCI-132. Units 1–8 are available; whole-course validation remains unfinished. This is not a completed semester, registered course, degree credit or accreditation. The teaching has received bounded assistant review, not subject-specialist or learner validation. Workload estimates and rubrics remain unpiloted. All application data are fictional. No account, installation, purchase or private upload is needed.

Study route

You have studied solution families, span, independence and basis. Here the central object is a map: a rule assigning exactly one output to each allowed input. Matrices describe linear maps after coordinates are chosen. A map can lose information, miss outputs or do both; a new choice of coordinates does not repair either problem.

Preparation: solve a small real system with free variables; prove a span or subspace claim; distinguish a basis from a redundant spanning list; read a matrix by rows and columns. No determinants, eigenvalues, calculus or general inverse formula are assumed. Session B gives a finite-dimensional proof of rank–nullity using Unit 2's basis-extension reasoning.

A provisional 18-hour allocation is six hours of teaching/guided work, four of practice/corrections, two of homework, three of the project and delayed task, and three of cumulative assessment/correction. This is an unpiloted design budget, not a completion promise. Spread the four sessions across two weeks. Attempt tasks before consulting the explained answers, which includes feedback and point allocations. Work on the cumulative assessment before opening its key, then distinguish the original attempt from a corrected one. No score certifies competence. Written, typed or recorded explanations with a transcript are acceptable. Every diagram has an equivalent text description; no colour or drawing is required.

Outcomes

Readiness

R1. Solve x+2y−z=4, y+z=1, giving every real solution.

R2. Show that (1,1),(1,−1) is a basis of R², then express (4,2) in it.

R3. Describe a basis and dimension for {(x,y,z): x+y+z=0}.

R4. A matrix has three columns and two pivot positions. What are its rank and number of free variables? Which original columns provide an image/column-space basis after elimination?

If R1/R4 are insecure, revisit Unit 1's free-variable and pivot work. If R2/R3 are insecure, revisit Unit 2's basis proofs. Counting entries is not enough to prove independence.

Session A. From a rule to its matrix

A1. Linearity is a universal claim

A map T:V→W specifies its domain V, codomain W and a rule defined on every member of V. Here V,W are real vector spaces with stated operations. T is linear if, for all u,v in V and all real α,β,

T(αu+βv)=αT(u)+βT(v).

Equivalently, prove additivity T(u+v)=T(u)+T(v) and homogeneity T(αu)=αT(u). The combined test follows by applying both; conversely take α=β=1 for addition and β=0 for scaling. A linear map sends zero to zero: T(0)=T(0+0)=T(0)+T(0), so subtract T(0).

Passing the zero test is necessary, not sufficient. F(x,y)=(x,y²) sends zero to zero, but F(0,2)=(0,4) differs from 2F(0,1)=(0,2). A single valid failure refutes the universal claim. Checking three successful examples cannot prove it. The shifted rule H(x,y)=(x+y+1,y) fails immediately at zero. H is an affine rule, not a linear map on R² with ordinary operations.

For T(x,y,z)=(x+2y−z,y+z), let u=(u₁,u₂,u₃), v=(v₁,v₂,v₃). Substituting αu+βv gives

(αu₁+βv₁+2αu₂+2βv₂−αu₃−βv₃,
 αu₂+βv₂+αu₃+βv₃)=αT(u)+βT(v).

Thus this rule is linear R³→R². A formula can be linear even when the outputs are not three-dimensional and the map cannot be undone uniquely.

A2. Columns record what happens to a basis

Let e₁,…,eₙ be the standard coordinate basis of Rⁿ. Every x is x₁e₁+⋯+xₙeₙ. Linearity forces

T(x)=x₁T(e₁)+⋯+xₙT(eₙ).

Therefore a linear map Rⁿ→Rᵐ is determined by its n basis-vector images. Put those outputs into the columns of an m-by-n matrix A. The expression Ax means that exact column combination. For the preceding T,

A=[1 2 −1; 0 1 1].

Semicolons separate rows. Its columns are (1,0), (2,1), (−1,1); its two rows produce the two output coordinates. Conversely, any real m-by-n matrix defines a linear rule x↦Ax, because distributing each row's finite sum proves additivity and homogeneity.

One does not construct A by placing T(eᵢ) in rows. Nor may one freely prescribe images of a dependent list. If v₃=v₁+2v₂, linearity requires T(v₃)=T(v₁)+2T(v₂). Arbitrary images of a basis do define exactly one linear map; values on a dependent list can be inconsistent or leave some directions unspecified.

A3. A projection that genuinely loses information

Let P:R²→R² be P(x,y)=(x,0), with matrix [1 0;0 0]. It is linear. Applying it again changes nothing, so P(P(v))=P(v). This property is called idempotence. The vector (3,5) and the distinct vector (3,−2) have the same output (3,0); no output-only rule can recover both original inputs. A rule being linear does not make it invertible.

Diagram A, text equivalent. Every vertical line x=c in the plane is sent to its single intersection (c,0) with the horizontal axis. Points on the axis stay fixed. Arrows from different heights at the same horizontal coordinate therefore merge. This picture illustrates many-to-one behavior; the preceding formula is the proof.

G1. Prove L(x,y)=(3x−y,2y) is linear using arbitrary α,β. Refute N(x,y)=(x,xy), although N(0)=0.

G2. A linear J:R²→R³ satisfies J(e₁)=(1,2,0), J(e₂)=(−1,0,3). Write its matrix, compute J(2,−1), and decide whether J(1,1)=(0,2,4) can also hold.

Session B. What reaches the output, and what disappears?

B1. Kernel, image and the declared codomain

For linear T:V→W, define

ker T={v in V:T(v)=0}; im T={T(v):v in V}.

The kernel lives in the input space. The image lives in the output space and may be smaller than the codomain. Both are subspaces. For the kernel, zero belongs and T(αu+βv)=0 for kernel members u,v. For the image, write two members as T(u),T(v); their combination is T(αu+βv), hence remains in the image. These proofs use arbitrary members, not a list of successful tests.

Return to A=[1 2 −1;0 1 1]. Solving Ax=0 gives z=t, y=−t, x=3t. Thus ker T=span{(3,−1,1)}, a one-dimensional subspace of R³. The first two columns (1,0),(2,1) are independent and span R²: (a,b)=(a−2b)(1,0)+b(2,1). Thus im T=R² and rank T=2. The two dimensions refer to different spaces.

Injective means distinct inputs have distinct outputs; equivalently T(u)=T(v) implies u=v. A linear map is injective exactly when its kernel is {0}. If it is injective, T(v)=T(0) forces v=0. Conversely equality of outputs gives T(u−v)=0; a zero kernel forces u−v=0.

Surjective onto W means every member of the stated codomain W is an output, so im T=W. Our T:R³→R² is surjective but not injective. P:R²→R² is neither: its kernel is the vertical axis and its image misses every output with nonzero second coordinate. The same projection formula, declared as P:R²→{(x,0):x in R}, is surjective onto that smaller codomain, still not injective. Codomain is part of the map specification, not an inconvenient label to change after testing.

B2. Fibers are shifted kernels

The fiber over b is the set {x:T(x)=b}. If no solution exists, it is empty. If p is one solution, then the whole fiber is

p+ker T={p+k:k in ker T}.

For the forward inclusion, T(p+k)=b+0=b. For the reverse inclusion, T(x−p)=b−b=0, so x=p+(x−p). These two directions show equality of sets. The fiber over zero is the kernel itself; a fiber over nonzero b cannot be a subspace because it excludes zero.

For b=(4,1), p=(2,1,0), so every input is (2,1,0)+t(3,−1,1). Requiring nonnegative coordinates gives t≥0, t≤1 and t≥−2/3, hence 0≤t≤1. The constrained set is a line segment, not a vector space. Its existence does not invalidate linearity of T on all of R³; it changes which inputs are allowed by this particular application. A restriction to nonnegative inputs is not a linear map between vector spaces with inherited operations.

B3. Rank–nullity, with the missing logic included

For finite-dimensional V, nullity T is dim ker T and rank T is dim im T. The theorem is

dim V = nullity T + rank T.

Here is a proof, not just a pivot count. First make the basis-extension step explicit. Starting with an independent list in a finite-dimensional space, if it does not yet span the desired space, adjoin a vector of that space outside its current span. Unit 2's extension argument preserves independence. Its length bound prevents more than dim V independent vectors in V, so repeated extension must terminate with a spanning independent list. Starting from the empty list inside ker T gives a kernel basis; starting from that basis and allowing vectors of all V extends it to a basis of V. Thus choose a kernel basis k₁,…,kᵣ and extend it to k₁,…,kᵣ,v₁,…,vₛ of V. The images T(v₁),…,T(vₛ) span im T: expanding any input in this domain basis makes all k terms vanish. They are also independent. If ΣcᵢT(vᵢ)=0, then w=Σcᵢvᵢ lies in the kernel, so w=Σdⱼkⱼ. Therefore Σcᵢvᵢ−Σdⱼkⱼ=0. Independence of the full domain basis forces every cᵢ and dⱼ to be zero. Thus the image list is a basis of length s, while dim V=r+s. Empty lists cover zero kernel, zero image and the zero-dimensional domain in the same proof.

For an m-by-n coordinate matrix, rank is the number of pivots; nullity is n minus that number. It is n, the number of input coordinates, in the sum, not m. Unit 2's original-pivot-column theorem justifies an image basis using the original matrix columns; row reduction need not preserve the actual output vectors.

Consequences: a map from a larger finite-dimensional domain to a smaller codomain cannot be injective, since rank≤dim W. A map from a smaller domain cannot be surjective onto a larger codomain. When both dimensions equal n, injectivity and surjectivity are equivalent: either condition forces rank n and nullity zero. These are finite-dimensional statements. A rectangular full-column-rank map can be injective without being onto, and full-row-rank can give onto without injective.

G3. For U:R²→R³, U(x,y)=(x,y,x+y), prove its image is S={(a,b,c):c=a+b}; find kernel, rank and nullity. Distinguish U:R²→R³ from the rule declared R²→S.

G4. For V:R³→R², V(x,y,z)=(x+y,2x+2y), find kernel and image bases. Describe the fibers over (3,6) and (3,7), and verify rank–nullity.

Session C. Composing maps and explaining the order

If F:V→W and G:W→Z, the composition G∘F means first F, then G. It is linear: substitution into G(F(αu+βv)) and then use of both linearity properties gives αG(F(u))+βG(F(v)). Domains must match or be explicitly compatible; symbols alone do not guarantee a valid composition.

In standard coordinates, let F have an m-by-n matrix B and G a p-by-m matrix C. Then G(F(x))=C(Bx)=(CB)x. Define the jth column of CB to be C times the jth column of B. This follows by evaluating the composition on eⱼ. Its entry in row i, column j is ΣₖCᵢₖBₖⱼ. The result has p rows and n columns. The summation pairs the output coordinate index of the first map with the input coordinate index of the second.

For a worked example, let

F(x,y)=(x,x+y,2y), B=[1 0;1 1;0 2];
G(a,b,c)=(a−b,b+c), C=[1 −1 0;0 1 1].

Then G(F(x,y))=(−y,x+3y), so CB=[0 −1;1 3]. The reverse F∘G is also defined, but it acts R³→R³ with matrix

BC=[1 −1 0;1 0 1;0 2 2].

These two matrices are different sizes and represent different maps. Even square matrices need not commute. With H=[1 1;0 1] and K=[1 0;0 2], HK=[1 2;0 2] whereas KH=[1 1;0 2]. On input (0,1), the different outputs are (2,2) and (1,2). “Both are linear” is not a reason to exchange the order.

For three compatible maps, associativity follows because both bracketings apply the same three functions in the same order. The identity map leaves each input unchanged and has the identity matrix I (ones on its diagonal, zeros elsewhere). Inserting a compatible identity changes nothing. Zero matrices have compatible dimensions too; neither I nor 0 is a single size-free array.

Diagram B, text equivalent. Input x in R² passes through B into R³, then through C into R². Reading the path left to right gives the function order F then G; writing the product gives CB because the matrix nearest x acts first. The reverse path starts in R³, not R².

G5. Use the worked F,G to compute both compositions on their appropriate input e₁. Explain why this does not compare outputs from the same input space.

G6. Let R:R³→R² have matrix [1 0 1;0 1 0], and S:R²→R² have matrix [2 1;0 1]. Find S∘R. Is R∘S defined on all of R²? Justify by dimensions, not a trial multiplication.

Session D. Coordinates are descriptions, not the vectors themselves

D1. Ordered bases and coordinate maps

An ordered basis B=(b₁,…,bₙ) gives unique coefficients x=c₁b₁+⋯+cₙbₙ. Write [x]B=(c₁,…,cₙ), in that order. Swapping basis order swaps coordinate positions even though x itself has not changed. For B=((1,1),(1,−1)), [ (4,2) ]B=(3,1), whereas the standard coordinates of that vector are (4,2).

Let S_B be the matrix whose columns are the basis vectors written in standard coordinates. Then x=S_B[x]B. Because B is a basis, every x has one coefficient list; solving S_B c=x recovers it. We write S_B⁻¹ for this recovery map, not for an operation of taking reciprocals entry by entry. A systematic theory of square inverses belongs to Unit 4; here solving small systems supplies all needed coordinate changes.

For T:V→W and ordered bases B of V, C of W, the matrix [T]C←B is defined by

[T(x)]C = [T]C←B [x]B.

Its jth column is [T(bⱼ)]C. This works because the coordinate map and T are linear. Output coordinates must be in C, not automatically standard coordinates. The arrow reads “from B coordinates to C coordinates.” Input and output bases can be different, even when V=W.

D2. A complete mixed-basis example

Take T(x,y)=(2x+y,x−y), with standard matrix A=[2 1;1 −1]. Let B=((1,1),(1,−1)) and C=((1,0),(1,1)). A vector (u,v) has C coordinates (u−v,v), since a(1,0)+b(1,1)=(a+b,b).

T(b₁)=(3,0), whose C coordinates are (3,0). T(b₂)=(1,2), whose C coordinates are (−1,2). Therefore

M=[T]C←B=[3 −1;0 2].

For x=(4,2), [x]B=(3,1). Multiplying M gives (8,2), which is [T(x)]C, not the standard output. Convert back: 8(1,0)+2(1,1)=(10,2), agreeing with the original formula. Treating (8,2) as the standard output would be an error, although the arithmetic multiplication was correct.

The general standard-coordinate relation follows by following the actual steps:

[x]B → S_B[x]B=x → Ax=T(x) → S_C⁻¹Ax=[T(x)]C.

Thus [T]C←B=S_C⁻¹ A S_B. In particular a map V→V represented in the same basis B has S_B⁻¹ A S_B. Different input and output bases require two different conversion matrices. When composing coordinate matrices, the intermediate basis must agree: [G]D←C [F]C←B gives [G∘F]D←B. Otherwise insert the required coordinate conversion.

D3. What coordinate changes preserve

Coordinate maps are linear bijections. Consequently [x]B lies in the kernel of [T]C←B exactly when x lies in ker T. They describe corresponding vectors but are generally different lists of numbers. The same reasoning carries image bases between coordinate descriptions. Hence rank, nullity, injectivity and surjectivity (for fixed spaces) do not change when bases change. Individual matrix entries, a kernel generator's coordinates and the column vectors do change. Do not transfer an unconverted coordinate list between bases.

G7. In the mixed-basis example, compute [ (1,0) ]B and [T(1,0)]C in two ways. Recover the standard output.

G8. For P(x,y)=(x,0) with input/output basis B=((1,1),(1,−1)), find [P]B←B, a coordinate kernel generator and a coordinate image generator. Convert those generators back to standard vectors.

Independent practice

I1. Test each R²→R² rule: (a) (x−2y,0); (b) (|x|,y); (c) (x+y,1). Give a general proof for a linear rule and an exact failure for each other rule.

I2. A linear T:R²→R² sends (1,1) to (2,1) and (1,−1) to (0,3). Determine T(x,y) and its standard matrix. Explain uniqueness.

I3. For A=[1 −1 2;2 −2 4], find a kernel basis, image basis, rank, nullity and every solution of Ax=(3,6).

I4. A linear T:R⁴→R³ has nullity 1. Is it injective? Is it onto? Then answer when its nullity is 2. Explain without inventing matrix entries.

I5. Prove ker T={0} implies that T carries any independent input list to an independent output list. Give a counterexample when the kernel is nonzero.

I6. For A=[1 2;0 1] and B=[0 1;1 0], compute AB and BA. Find a vector where the outputs differ. Explain which composite applies A first.

I7. Let T(x,y)=(x+y,y), with input basis B=((1,0),(1,1)) and output basis C=((1,1),(0,1)). Find [T]C←B. Check x=(3,2) through both coordinate and standard routes.

I8. Does “T has rank 2” determine whether T is injective or surjective? Give two explicit maps of rank 2 with different answers, and name their domains and codomains.

Homework and explanation

H1. Prove for compatible linear F,G that ker F is contained in ker(G∘F), and im(G∘F) is contained in im G. Give one explicit example in which both containments are strict.

H2. Suppose two linear maps V→W agree on a basis of V. Prove they agree everywhere. Explain why agreement on two vectors need not suffice in R³.

H3. A peer says: “Row reduction preserves the kernel, so it also preserves the image as a set of output vectors.” Refute this with a 2-by-1 matrix and an invertible row operation. State what is preserved instead.

H4. A computer returns a zero residual for a proposed matrix model on five input/output records. Explain why this does not by itself prove the real process is linear, or identify its rule on every input. State what a basis assumption would allow in an exact declared linear model.

Formative quiz: 30 points

These changed numbers test the methods taught above. This is rehearsal, not a validated unseen-transfer measure.

Q1 (6). For T:R³→R², T(x,y,z)=(2x+z,y−z), state the matrix and prove linearity. Refute linearity of U(x,y,z)=(2x+z,y−z+2).

Q2 (10). Find kernel and image bases of T from Q1; give rank and nullity; solve T(x)=(5,1); classify injectivity and surjectivity with reasons.

Q3 (6). Let J:R²→R² be J(a,b)=(a+b,a−b). Compute the matrix of J∘T. Explain why the reverse composition T∘J is not defined with these domains.

Q4 (8). Let P:R²→R² be P(x,y)=(x,0), with B=((1,0),(1,1)) on both sides. Compute [P]B←B and its kernel and image bases in B coordinates. Translate both generators to standard coordinates and identify the unchanged rank/nullity.

Formative project: a finite-difference message, 40 points

This project deliberately rehearses linear-map methods in a polynomial representation, with a supplied rule rather than assumed calculus. Let P₂ be all real polynomials a+bt+ct² (degree at most two, including zero) with ordinary addition/scaling; let P₁ be all a+bt. Equality means equality of coefficients. Their standard ordered bases are E=(1,t,t²) and F=(1,t), respectively. A polynomial is a vector here, and t is its variable, not a new input coordinate.

A fictional transmitter sends the difference polynomial Δp(t)=p(t+1)−p(t). It does not send p itself. No claim about a physical transmitter is intended.

P1 (10). Expand Δp in a,b,c, prove Δ:P₂→P₁ is linear, and form [Δ]F←E. Find kernel/image bases, rank/nullity and explain exactly what information disappears.

P2 (10). The received polynomial is q(t)=3+4t. Recover every p with Δp=q. Then a separate record gives p(0)=2. Determine whether it selects a unique p and verify both records.

P3 (10). Use input basis B=(1,t,t(t−1)) and output basis C=(1,t+1). Justify both are bases, form [Δ]C←B by its columns, and use it on the unique polynomial from P2. Convert both coordinate vectors to check the answer. Explain why rank/nullity did not change.

P4 (10). A second stage sends the two samples EVAL(q)=(q(0),q(1)). Form its matrix from F coordinates to standard R², compose with [Δ]F←E, and compare the information in those two samples with the whole q. If the receiver gets samples (3,7), what remains unknown about p? If it instead also demands Δp=3+4t+t², explain whether any p in P₂ works and what cannot be concluded from failure.

Units 1–3 cumulative assessment: selecting useful information, 50 points

Work before viewing the key. This is an unpiloted assessment opportunity with new data and representation; it is not evidence of measured transfer. It revisits full solution families, subspaces, bases and maps, and asks you to choose between additional measurements. The score is separate from the local quiz/project and is not automatically a course grade.

A fictional four-position signal is x=(x₁,x₂,x₃,x₄) in R⁴. A logger keeps only consecutive differences

D(x)=(x₂−x₁, x₃−x₂, x₄−x₃) in R³.

C1 (10). Prove D is linear, construct its standard matrix, and refute linearity of the calibrated rule D(x)+(1,1,1). Explain why successful samples alone would not prove linearity of an unknown logger.

C2 (14). Find kernel/image bases, rank/nullity and every x with D(x)=(2,−1,4). Prove completeness. If all four entries must be nonnegative, give the exact parameter interval/set and say whether it is a vector subspace.

C3 (14). You may add one exact scalar record: either (a) x₄−x₁, or (b) x₁+x₂+x₃+x₄. Choose a record that, with D, determines every real input uniquely. Prove why your choice succeeds and why the alternative fails. For the given differences and sum 12, reconstruct x and verify all records. Do not infer a real cause from an inconsistent record.

C4 (12). Let B=((1,1,1,1),(0,1,1,1),(0,0,1,1),(0,0,0,1)) and C=((1,0,0),(1,1,0),(0,0,1)). Justify both bases; find [D]C←B by basis images; compute the B coordinates of the input from C3 and verify its output in C coordinates. Explain why the first B coordinate is invisible to D.

Delayed follow-through

D1. After a pause, use the cumulative logger with new differences (−2,3,−4). Before consulting the old key, decide which record to keep if offered x₄−x₁=−3 or sum=12. Find the full original fiber, its nonnegative portion and the input selected by sum=12. Explain whether the endpoint record adds information. This is delayed near transfer with a new data set, not an unseen method or validated assessment. D2. Find one place in your own work where you confused a vector with coordinates, a codomain with an image, or a unique output with a unique input. Write the original claim, a counterexample and a corrected statement with conditions. If no such error occurred, critique “a matrix with two rows has rank two” instead.

Feedback and next step

For each error, label the first unsupported step: wrong spaces/dimensions, unproved linearity, missing free parameter, row-reduced output basis, reversed composition, or mixed coordinate systems. Correct it and solve a changed instance. Retain both versions. A correct final number with an unsupported proof is not a complete solution.

Unit 4 is available in this reader: invertibility and determinants. You can already recognize finite-dimensional bijections and solve coordinate recovery systems; that is not yet a complete theory of inverses or determinants. Specialist review, actual learner attempts/timing, rubric consistency, rendered navigation and accessibility/device checks are needed before stronger course or release claims.