Solved Exercises on Composition of Linear Transformations

Master composition of linear transformations: sequential transformations, properties of compositions, and matrix representations through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Sequential Rotations
Exercise 1
Let T₁ be rotation by 30° counterclockwise and T₂ be rotation by 45° counterclockwise. Find the standard matrix for the composition T₂ ∘ T₁ (apply T₁ first, then T₂).
Definition:

Composition of transformations: (T₂ ∘ T₁)(v) = T₂(T₁(v))

Method:
  1. Find standard matrices A₁ and A₂ for T₁ and T₂
  2. Compute composition matrix A₂A₁
  3. Verify by applying to a test vector
T₁ matrix
A₁ = \(\begin{bmatrix} \cos 30° & -\sin 30° \\ \sin 30° & \cos 30° \end{bmatrix}\)
T₂ matrix
A₂ = \(\begin{bmatrix} \cos 45° & -\sin 45° \\ \sin 45° & \cos 45° \end{bmatrix}\)
Composition
A₂A₁ = \(\begin{bmatrix} \cos 75° & -\sin 75° \\ \sin 75° & \cos 75° \end{bmatrix}\)
Step 1: Find A₁ for 30° rotation

A₁ = \(\begin{bmatrix} \cos 30° & -\sin 30° \\ \sin 30° & \cos 30° \end{bmatrix} = \begin{bmatrix} \sqrt{3}/2 & -1/2 \\ 1/2 & \sqrt{3}/2 \end{bmatrix}\)

Step 2: Find A₂ for 45° rotation

A₂ = \(\begin{bmatrix} \cos 45° & -\sin 45° \\ \sin 45° & \cos 45° \end{bmatrix} = \begin{bmatrix} \sqrt{2}/2 & -\sqrt{2}/2 \\ \sqrt{2}/2 & \sqrt{2}/2 \end{bmatrix}\)

Step 3: Compute A₂A₁

A₂A₁ = \(\begin{bmatrix} \sqrt{2}/2 & -\sqrt{2}/2 \\ \sqrt{2}/2 & \sqrt{2}/2 \end{bmatrix} \begin{bmatrix} \sqrt{3}/2 & -1/2 \\ 1/2 & \sqrt{3}/2 \end{bmatrix}\)

Row 1, Col 1: \(\frac{\sqrt{2}}{2} \cdot \frac{\sqrt{3}}{2} + (-\frac{\sqrt{2}}{2}) \cdot \frac{1}{2} = \frac{\sqrt{6}-\sqrt{2}}{4}\)

Row 1, Col 2: \(\frac{\sqrt{2}}{2} \cdot (-\frac{1}{2}) + (-\frac{\sqrt{2}}{2}) \cdot \frac{\sqrt{3}}{2} = -\frac{\sqrt{2}+\sqrt{6}}{4}\)

Row 2, Col 1: \(\frac{\sqrt{2}}{2} \cdot \frac{\sqrt{3}}{2} + \frac{\sqrt{2}}{2} \cdot \frac{1}{2} = \frac{\sqrt{6}+\sqrt{2}}{4}\)

Row 2, Col 2: \(\frac{\sqrt{2}}{2} \cdot (-\frac{1}{2}) + \frac{\sqrt{2}}{2} \cdot \frac{\sqrt{3}}{2} = \frac{-\sqrt{2}+\sqrt{6}}{4}\)

Step 4: Verify result is 75° rotation

\(\cos 75° = \cos(45°+30°) = \cos 45°\cos 30° - \sin 45°\sin 30° = \frac{\sqrt{6}-\sqrt{2}}{4}\) ✓

\(\sin 75° = \sin(45°+30°) = \sin 45°\cos 30° + \cos 45°\sin 30° = \frac{\sqrt{6}+\sqrt{2}}{4}\) ✓

A₂A₁ = \(\begin{bmatrix} \frac{\sqrt{6}-\sqrt{2}}{4} & -\frac{\sqrt{6}+\sqrt{2}}{4} \\ \frac{\sqrt{6}+\sqrt{2}}{4} & \frac{\sqrt{6}-\sqrt{2}}{4} \end{bmatrix}\)
Final answer:

The composition represents a 75° counterclockwise rotation

Applied rules:

• Composition rule: T₂ ∘ T₁ corresponds to A₂A₁

• Rotation matrices: R(α)R(β) = R(α+β)

• Trigonometric identities: cos(α+β) and sin(α+β)

2 Rotation and Scaling
Exercise 2
Let T₁ be rotation by 90° counterclockwise and T₂ be scaling by factor 3. Find the standard matrix for T₂ ∘ T₁.
Definition:

Scaling transformation: Multiplies each coordinate by a scale factor

T₁ matrix
A₁ = \(\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}\)
T₂ matrix
A₂ = \(\begin{bmatrix} 3 & 0 \\ 0 & 3 \end{bmatrix}\)
Composition
A₂A₁ = \(\begin{bmatrix} 0 & -3 \\ 3 & 0 \end{bmatrix}\)
Step 1: Find A₁ for 90° rotation

A₁ = \(\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}\) (since cos 90° = 0, sin 90° = 1)

Step 2: Find A₂ for uniform scaling by 3

A₂ = \(\begin{bmatrix} 3 & 0 \\ 0 & 3 \end{bmatrix}\) (scaling factor 3 in both directions)

Step 3: Compute A₂A₁

A₂A₁ = \(\begin{bmatrix} 3 & 0 \\ 0 & 3 \end{bmatrix} \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}\)

Row 1, Col 1: (3×0) + (0×1) = 0

Row 1, Col 2: (3×(-1)) + (0×0) = -3

Row 2, Col 1: (0×0) + (3×1) = 3

Row 2, Col 2: (0×(-1)) + (3×0) = 0

Step 4: Interpret geometrically

The composition rotates by 90° and then scales by 3

This is equivalent to a rotation by 90° followed by uniform dilation

Step 5: Verify with example

For v = (1, 0):

T₁(v) = (0, 1), then T₂(T₁(v)) = (0, 3)

Using matrix: A₂A₁\(\begin{bmatrix} 1 \\ 0 \end{bmatrix}\) = \(\begin{bmatrix} 0 \\ 3 \end{bmatrix}\) ✓

A₂A₁ = \(\begin{bmatrix} 0 & -3 \\ 3 & 0 \end{bmatrix}\)
Final answer:

The composition matrix is \(\begin{bmatrix} 0 & -3 \\ 3 & 0 \end{bmatrix}\)

Applied rules:

• Composition rule: T₂ ∘ T₁ corresponds to A₂A₁

• Scaling matrix: Uniform scaling is scalar multiple of identity

• Order independence: Scalar matrix commutes with others

3 Reflection Composition
Exercise 3
Let T₁ be reflection across x-axis and T₂ be reflection across y-axis. Find the standard matrix for T₂ ∘ T₁ and interpret geometrically.
Definition:

Reflection transformation: Flips vectors across a line or plane

T₁ matrix
A₁ = \(\begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}\)
T₂ matrix
A₂ = \(\begin{bmatrix} -1 & 0 \\ 0 & 1 \end{bmatrix}\)
Composition
A₂A₁ = \(\begin{bmatrix} -1 & 0 \\ 0 & -1 \end{bmatrix}\)
Step 1: Find A₁ for reflection across x-axis

A₁ = \(\begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}\) (x-coordinate unchanged, y-coordinate negated)

Step 2: Find A₂ for reflection across y-axis

A₂ = \(\begin{bmatrix} -1 & 0 \\ 0 & 1 \end{bmatrix}\) (x-coordinate negated, y-coordinate unchanged)

Step 3: Compute A₂A₁

A₂A₁ = \(\begin{bmatrix} -1 & 0 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}\)

Row 1, Col 1: (-1×1) + (0×0) = -1

Row 1, Col 2: (-1×0) + (0×(-1)) = 0

Row 2, Col 1: (0×1) + (1×0) = 0

Row 2, Col 2: (0×0) + (1×(-1)) = -1

Step 4: Interpret geometrically

The composition reflects across x-axis, then y-axis

This is equivalent to rotation by 180° about the origin

Also called point reflection or central symmetry

Step 5: Verify with example

For v = (x, y):

T₁(v) = (x, -y), then T₂(T₁(v)) = (-x, -y)

This is indeed rotation by 180°: (x, y) → (-x, -y)

A₂A₁ = \(\begin{bmatrix} -1 & 0 \\ 0 & -1 \end{bmatrix}\)
Final answer:

The composition is equivalent to rotation by 180°: \(\begin{bmatrix} -1 & 0 \\ 0 & -1 \end{bmatrix}\)

Applied rules:

• Composition rule: T₂ ∘ T₁ corresponds to A₂A₁

• Reflection properties: Two reflections = rotation

• 180° rotation: Equivalent to negative identity matrix

Composition of Linear Transformations
(T₂ ∘ T₁)(v) = T₂(T₁(v))
Composition Definition
Property
(T₃ ∘ T₂) ∘ T₁ = T₃ ∘ (T₂ ∘ T₁)
Associativity
Property
T ∘ I = I ∘ T = T
Identity Element
Matrix
(A₂A₁)v = A₂(A₁v)
Matrix Composition
Non-commutativity: In general, T₂ ∘ T₁ ≠ T₁ ∘ T₂
Matrix multiplication: Composition corresponds to matrix multiplication
Order matters: Apply transformations right-to-left in matrix form
Solution: Exercises 4 to 5
4 Projection and Rotation
Exercise 4
Let T₁ be projection onto x-axis and T₂ be rotation by 90° counterclockwise. Find the standard matrix for T₂ ∘ T₁ and T₁ ∘ T₂. Show they are different.
Definition:

Projection transformation: Maps each vector to its projection onto a subspace

T₁ matrix
A₁ = \(\begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix}\)
T₂ matrix
A₂ = \(\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}\)
Step 1: Find A₁ for projection onto x-axis

A₁ = \(\begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix}\) (projects (x,y) to (x,0))

Step 2: Find A₂ for 90° rotation

A₂ = \(\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}\) (rotates counterclockwise)

Step 3: Compute T₂ ∘ T₁ (A₂A₁)

A₂A₁ = \(\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} = \begin{bmatrix} 0 & 0 \\ 1 & 0 \end{bmatrix}\)

Step 4: Compute T₁ ∘ T₂ (A₁A₂)

A₁A₂ = \(\begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} = \begin{bmatrix} 0 & -1 \\ 0 & 0 \end{bmatrix}\)

Step 5: Verify non-commutativity

A₂A₁ = \(\begin{bmatrix} 0 & 0 \\ 1 & 0 \end{bmatrix} \neq \begin{bmatrix} 0 & -1 \\ 0 & 0 \end{bmatrix} = A₁A₂\)

So T₂ ∘ T₁ ≠ T₁ ∘ T₂

Step 6: Interpret geometrically

T₂ ∘ T₁: Project to x-axis, then rotate → projects to y-axis

T₁ ∘ T₂: Rotate, then project to x-axis → different result

T₂ ∘ T₁ = \(\begin{bmatrix} 0 & 0 \\ 1 & 0 \end{bmatrix}\), T₁ ∘ T₂ = \(\begin{bmatrix} 0 & -1 \\ 0 & 0 \end{bmatrix}\)
Final answer:

Composition is non-commutative: T₂ ∘ T₁ ≠ T₁ ∘ T₂

Applied rules:

• Non-commutativity: Order of transformations matters

• Composition rule: T₂ ∘ T₁ corresponds to A₂A₁

• Geometric interpretation: Different sequences yield different results

5 Inverse and Composition
Exercise 5
Let T be a linear transformation with matrix A = \(\begin{bmatrix} 2 & 1 \\ 1 & 1 \end{bmatrix}\). Find the matrix for T ∘ T⁻¹ and T⁻¹ ∘ T. Verify both equal the identity.
Definition:

Inverse transformation: T⁻¹ such that T ∘ T⁻¹ = T⁻¹ ∘ T = I

Original T
A = \(\begin{bmatrix} 2 & 1 \\ 1 & 1 \end{bmatrix}\)
Inverse T⁻¹
A⁻¹ = \(\begin{bmatrix} 1 & -1 \\ -1 & 2 \end{bmatrix}\)
Step 1: Find A⁻¹ using formula

For \(\begin{bmatrix} a & b \\ c & d \end{bmatrix}\), A⁻¹ = \(\frac{1}{ad-bc}\begin{bmatrix} d & -b \\ -c & a \end{bmatrix}\)

det(A) = (2×1) - (1×1) = 1

A⁻¹ = \(\frac{1}{1}\begin{bmatrix} 1 & -1 \\ -1 & 2 \end{bmatrix} = \begin{bmatrix} 1 & -1 \\ -1 & 2 \end{bmatrix}\)

Step 2: Compute T ∘ T⁻¹ (AA⁻¹)

AA⁻¹ = \(\begin{bmatrix} 2 & 1 \\ 1 & 1 \end{bmatrix} \begin{bmatrix} 1 & -1 \\ -1 & 2 \end{bmatrix}\)

= \(\begin{bmatrix} (2×1)+(1×(-1)) & (2×(-1))+(1×2) \\ (1×1)+(1×(-1)) & (1×(-1))+(1×2) \end{bmatrix}\)

= \(\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I\) ✓

Step 3: Compute T⁻¹ ∘ T (A⁻¹A)

A⁻¹A = \(\begin{bmatrix} 1 & -1 \\ -1 & 2 \end{bmatrix} \begin{bmatrix} 2 & 1 \\ 1 & 1 \end{bmatrix}\)

= \(\begin{bmatrix} (1×2)+((-1)×1) & (1×1)+((-1)×1) \\ ((-1)×2)+(2×1) & ((-1)×1)+(2×1) \end{bmatrix}\)

= \(\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I\) ✓

Step 4: Verify inverse properties

Both compositions yield the identity transformation

This confirms that A⁻¹ is indeed the inverse of A

Step 5: Check determinant condition

det(A) = 1 ≠ 0, so A is invertible

det(A⁻¹) = 1/1 = 1, confirming det(A⁻¹) = 1/det(A)

T ∘ T⁻¹ = T⁻¹ ∘ T = \(\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}\)
Final answer:

Both compositions equal the identity matrix as expected

Applied rules:

• Inverse definition: AA⁻¹ = A⁻¹A = I

• Invertibility: det(A) ≠ 0 is necessary condition

• Determinant property: det(A⁻¹) = 1/det(A)

Composition of Linear Transformations: Comprehensive Guide
(T₂ ∘ T₁)(v) = T₂(T₁(v))
Composition Rule
Key definitions:

Composition of transformations: Applying one transformation after another

Sequential application: (T₂ ∘ T₁)(v) means apply T₁ first, then T₂

Matrix representation: T₂ ∘ T₁ corresponds to matrix product A₂A₁

Complete methodology:
  1. Identify individual transformations: Find matrices A₁ and A₂
  2. Apply composition rule: T₂ ∘ T₁ corresponds to A₂A₁
  3. Compute matrix product: Standard matrix multiplication
  4. Verify result: Test with specific vectors
Tip 1: Remember: T₂ ∘ T₁ means "T₁ first, then T₂" but matrix is A₂A₁.
Tip 2: Composition is generally not commutative: T₂ ∘ T₁ ≠ T₁ ∘ T₂.
Tip 3: The identity transformation I satisfies T ∘ I = I ∘ T = T.
Tip 4: Composition preserves linearity: if T₁, T₂ are linear, then T₂ ∘ T₁ is linear.
Common errors: Confusing order of composition, forgetting non-commutativity, misapplying matrix multiplication.
Exam preparation: Practice different transformation combinations, understand geometric interpretations.
Properties to know by heart:

• Composition rule: T₂ ∘ T₁ ↔ A₂A₁

• Associativity: (T₃ ∘ T₂) ∘ T₁ = T₃ ∘ (T₂ ∘ T₁)

• Non-commutativity: T₂ ∘ T₁ ≠ T₁ ∘ T₂ in general

• Identity element: T ∘ I = I ∘ T = T

• Inverse property: T ∘ T⁻¹ = T⁻¹ ∘ T = I

• Preservation of linearity: Composition of linear transformations is linear

Composition Properties Visualization
Exercise 6: Property Analysis
Visual analysis of composition properties:
• Commutativity: rarely holds
• Associativity: always holds
• Identity preservation: always holds

Analysis: The visualization shows how different transformation compositions behave.

  • Most compositions are non-commutative
  • All compositions are associative
  • Identity is preserved in all cases

Questions & Answers

Question: Why is the order of composition different from the order of matrix multiplication? It seems counterintuitive.

Answer: This is indeed a common source of confusion! Here's why:

Function notation: When we write (T₂ ∘ T₁)(v), we mean "apply T₁ to v, then apply T₂ to the result".

Matrix-vector multiplication: When we compute A₂A₁v, we can think of it as A₂(A₁v) - first A₁ acts on v, then A₂ acts on the result.

Therefore: T₂ ∘ T₁ corresponds to A₂A₁ because both represent "do the transformation corresponding to A₁ first, then do the transformation corresponding to A₂".

Think of it as reading from right to left: A₂A₁ means "first A₁, then A₂", just like (T₂ ∘ T₁) means "first T₁, then T₂".

This is consistent with how we read function composition in mathematics: (f ∘ g)(x) = f(g(x)).

Question: When is composition of transformations commutative? Are there special cases?

Answer: Composition is generally non-commutative, but there are special cases where it is commutative:

  • Scalar matrices: Any matrix commutes with a scalar multiple of the identity matrix
  • Simultaneously diagonalizable matrices: If A and B can both be diagonalized by the same matrix P
  • Rotation matrices in 2D: All 2D rotation matrices commute with each other
  • Identity transformation: I commutes with any transformation

For example, two 2D rotations R(α) and R(β) always commute:

R(α)R(β) = R(α+β) = R(β+α) = R(β)R(α)

However, most interesting combinations (like rotation + scaling, or different reflections) are non-commutative, which reflects the geometric reality that the order of transformations matters.

Question: What are the practical applications of composition of linear transformations?

Answer: Composition of linear transformations has numerous practical applications:

  • Computer Graphics: Complex scene transformations combine rotation, scaling, and translation
  • Robotics: Robot arm movements involve sequential joint rotations and translations
  • Signal Processing: Filters are often composed of multiple stages
  • Quantum Mechanics: Quantum gates are composed to perform quantum computations
  • Machine Learning: Neural networks are compositions of linear transformations and nonlinear activations

In computer graphics, for instance, to rotate an object about an arbitrary point, you would compose: translate to origin, rotate, then translate back. This is represented as a single matrix that is the product of the three transformation matrices.

The ability to represent complex transformations as compositions of simpler ones is fundamental to efficient computation in these fields.