Courses / Computer Science I
Algebra

Linear Transformations

Computer Science I 203 words Free to read

Preserving Structure

A linear transformation is a function TT that preserves vector operations: T(u+v)=T(u)+T(v)T(u + v) = T(u) + T(v) and T(cv)=cT(v)T(cv) = c T(v). Transforming a sum equals summing the transforms.

Every linear transformation between finite spaces is a matrix: T(v)=AvT(v) = Av. To find AA, evaluate TT on the basis vectors; their outputs form the columns.

TransformationBehaviorMatrix Example
RotationRotates vectorsPreserves lengths
ProjectionFlattens spaceDrops dimensions

Common pitfall: Assuming every function is linear. A translation T(v)=v+bT(v) = v + b (b0b \neq 0) is not linear because it moves the origin. Linearity strictly demands T(0)=0T(\mathbf{0}) = \mathbf{0}.

A linear map and a translation run through the same test, and only one

Composition and Anatomy

Because transformations are matrices, composing them means multiplying their matrices. Order matters: rotate-then-reflect \neq reflect-then-rotate.

Two structural quantities define a transformation:

A transformation is invertible if and only if its matrix has a nonzero determinant.

Linear transformations drive computing: 3D graphics pipelines chain matrix transformations, and neural network layers apply linear transformations followed by nonlinear activations.

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

9practice questions
2interactive scenes

Algebra