Scaling & Stretching
Along Axes
Learn how scaling matrices stretch, compress, and reflect vectors along coordinate axes: the building blocks of every linear transformation.
What Is Scaling?
Scaling is a linear transformation that multiplies each coordinate of a vector by a constant factor. When we scale a point \((x, y)\), we produce a new point \((a \cdot x,\; b \cdot y)\) where \(a\) and \(b\) are the scale factors along the \(x\)-axis and \(y\)-axis respectively.
The Scaling Matrix
In 2D, scaling is represented by a diagonal matrix. When we multiply a vector \(\mathbf{v} = \begin{pmatrix} x \\ y \end{pmatrix}\) by the scaling matrix, we get:
The factor \(a\) controls horizontal stretching, and \(b\) controls vertical stretching. The zeros off the diagonal mean the axes act independently.
Visualizing Scaling on a Unit Square
What Scale Factors Mean
Core Rule: Diagonal Matrices
A scaling transformation in \(\mathbb{R}^n\) is always represented by a diagonal matrix whose diagonal entries are the scale factors:
The determinant of this matrix is \(\det(S) = s_1 \cdot s_2 \cdots s_n\), which measures how the transformation scales area (2D) or volume (3D).
Eigenvectors of Scaling
Uniform vs Non-Uniform Scaling
Scaling with Reflection
When a scale factor is negative, the transformation includes a reflection across the perpendicular axis. For example, \(a = -1\) reflects all points across the \(y\)-axis.
How to Apply Scaling
Example 1: Simple Stretch
Scale the point \(\mathbf{v} = \begin{pmatrix} 3 \\ 2 \end{pmatrix}\) by \(a = 2\) horizontally and \(b = 4\) vertically.
The \(x\)-component doubled from 3 to 6, and the \(y\)-component quadrupled from 2 to 8. The area scale factor is \(\det(S) = 2 \times 4 = 8\).
Example 2: Compression
A rectangle has corners at \((0,0)\), \((4,0)\), \((4,6)\), and \((0,6)\). Apply \(S = \begin{pmatrix} \frac{1}{2} & 0 \\ 0 & \frac{1}{3} \end{pmatrix}\).
Example 3: 3D Scaling
Scale the vector \(\mathbf{v} = \begin{pmatrix} 1 \\ -2 \\ 5 \end{pmatrix}\) with factors \(s_1 = 3\), \(s_2 = 1\), \(s_3 = -2\).
The \(x\)-component tripled, the \(y\)-component stayed the same (\(s_2 = 1\)), and the \(z\)-component was reflected and doubled (\(s_3 = -2\)). The volume scale factor: \(\det(S) = 3 \times 1 \times (-2) = -6\) (orientation reversed).
Key Properties
Common Mistakes
Comparison Summary
| Uniform Scaling | Non-Uniform Scaling | Reflection | |
|---|---|---|---|
| Matrix | \(kI\) | \(\text{diag}(a, b)\), \(a \neq b\) | \(\text{diag}(1, -1)\) (example) |
| Shape preserved? | Yes | No | Yes |
| Orientation | Same | Same (if both > 0) | Reversed |
| Determinant | \(k^n\) | \(a \cdot b\) | \(-1\) |
| Example | Zoom in/out | Stretch photo | Mirror image |
Question 1 of 5
What is the result of applying \(S = \begin{pmatrix} 3 & 0 \\ 0 & 2 \end{pmatrix}\) to the vector \(\begin{pmatrix} 4 \\ 5 \end{pmatrix}\)?
Question 2 of 5
A square with area \(9\) is scaled by \(S = \begin{pmatrix} 2 & 0 \\ 0 & 3 \end{pmatrix}\). What is the area of the resulting rectangle?
Question 3 of 5
Which matrix represents a reflection across the \(x\)-axis?
Question 4 of 5
If \(S = \begin{pmatrix} 5 & 0 \\ 0 & 5 \end{pmatrix}\), which statement is true?
Question 5 of 5
What is the inverse of the scaling matrix \(S = \begin{pmatrix} 4 & 0 \\ 0 & \frac{1}{2} \end{pmatrix}\)?