📐 Linear Transformation - Scaling

Last Updated: Jan 2026


Scaling is the most basic linear transformation, where a vector is stretched or shrunk. Scaling changes the magnitude (length) of a vector, not its direction.

🗣 Hinglish Tip: Scaling = vector ko bada ya chhota karna, direction same rehta hai


Scaling in 1D

Formula

For a scalar k and vector x:

T(x)=kxT(x) = kx

Example

Given:

x=5,k=3x = 5, k = 3
T(x)=3×5=15T(x) = 3 \times 5 = 15

Scaling in 2D (Vector Form)

Vector Representation

v⃗=[xy]\vec{v} = \begin{bmatrix} x \\ y \end{bmatrix}

Scaling Formula

T(v⃗)=[k00k][xy]=[kxky]T(\vec{v}) = \begin{bmatrix} k & 0 \\ 0 & k \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} kx \\ ky \end{bmatrix}

Example (Step-wise)

Given:

v⃗=[23],k=2\vec{v} = \begin{bmatrix} 2 \\ 3 \end{bmatrix}, \qquad k = 2
ComponentCalculationResult
x2 x 24
y3 x 26

Resultant vector:

v⃗′=[46]\vec{v}' = \begin{bmatrix} 4 \\ 6 \end{bmatrix}

Scaling with Different Factors (Non-uniform Scaling)

Sometimes x and y scale differently.

Formula

T(v⃗)=[kx00ky][xy]=[kxxkyy]T(\vec{v}) = \begin{bmatrix} k_x & 0 \\ 0 & k_y \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} k_xx \\ k_yy \end{bmatrix}

Example

Given:

v⃗=[24],kx=3,ky=1\vec{v} = \begin{bmatrix} 2 \\ 4 \end{bmatrix}, \qquad k_x = 3, \qquad k_y = 1
AxisCalculationResult
x-axis3 x 26
y-axis1 x 44

Result:

[64]\begin{bmatrix} 6 \\ 4 \end{bmatrix}

Scaling in 3D

Matrix Form

[kx000ky000kz][xyz]\begin{bmatrix} k_x & 0 & 0 \\ 0 & k_y & 0 \\ 0 & 0 & k_z \end{bmatrix} \begin{bmatrix} x \\ y \\ z \end{bmatrix}

Example

v⃗=[123],(kx, ky, kz)=(2, 1, 3)\vec{v} = \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix}, \qquad (k_x,\,k_y,\,k_z) = (2,\,1,\,3)

Result:

[229]\begin{bmatrix} 2\\ 2\\ 9 \end{bmatrix}

Liked This Tutorial

Scan QR Code To Leave A Review Or

Click Here To Leave A Review
Scan QR