Number Representations & States

"how numbers are stored and used in computers"

Linear Transformations

A linear transformation is a function between vector spaces that preserves vector addition and scalar multiplication. These transformations are fundamental to understanding how vectors and matrices interact in linear algebra.

Definition

A transformation between vector spaces is linear if for all vectors and scalars :

  1. Additivity:
  2. Homogeneity:

Matrix Representation

Every linear transformation can be represented by a unique matrix such that , where:

Common Linear Transformations

A rotation transformation takes a vector and rotates it by a fixed angle θ in the plane, preserving the vector's magnitude while changing its direction. This is one of the most common linear transformations used in computer graphics and physics simulations.

A scaling transformation multiplies each component of a vector by a fixed scalar value, effectively stretching or shrinking the vector along each axis. The scaling factors can be different for each dimension, allowing non-uniform scaling that changes the shape of geometric objects.

A projection transformation maps vectors onto a subspace, effectively reducing the dimension of the vector space. This is commonly used in dimensionality reduction and finding vector components along specific directions. The projection matrix shown below projects vectors onto the x-axis.

Properties

Kernel (Null Space)

The set of all vectors that map to zero:

Image (Range)

The set of all possible outputs:

Rank-Nullity Theorem

For a linear transformation T: V → W:

Applications

Linear transformations are used in:

  • Computer Graphics (3D transformations)
  • Signal Processing
  • Quantum Mechanics
  • Data Compression
  • Machine Learning (Feature Transformations)

Computational Aspects

  • Time Complexity: O(mn) for applying a transformation to a vector
  • Space Complexity: O(mn) for storing the transformation matrix
  • Composition of Transformations: O(mnp) for combining transformations