Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Introduction to Matrix Transformations | Section
Python Math Module Essentials: Trigonometry, Logarithms, and Constants - 1769704232288

Introduction to Matrix Transformations

Svep för att visa menyn

Matrix Equations

A matrix equation can be written as:

Ax=bA \vec{x} = \vec{b}

Where:

  • AA is the coefficient matrix;
  • x\vec{x} is the vector of variables;
  • b\vec{b} is the vector of constants.

Matrix Representation of Linear Systems

Consider the linear system:

2x+y=5xy=12x + y = 5 \\ x - y = 1

This can be rewritten as:

[2111][xy]=[51]\begin{bmatrix} 2 & 1 \\ 1 & -1 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 5 \\ 1 \end{bmatrix}

Matrix Multiplication Breakdown

The multiplication of a matrix with a vector represents a linear combination:

[abcd][xy]=[ax+bycx+dy]=x[ac]+y[bd]\begin{bmatrix} a & b \\ c & d \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} ax + by \\ cx + dy \end{bmatrix} = x \begin{bmatrix} a \\ c \end{bmatrix} + y\begin{bmatrix} b \\ d \end{bmatrix}

Example System in Matrix Form

The system:

3x+2y=74xy=53x + 2y = 7 \\ 4x - y = 5

Can be expressed as:

[3241][xy]=[75]\begin{bmatrix} 3 & 2 \\ 4 & -1 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 7 \\ 5 \end{bmatrix}

Matrices as Transformations

A matrix transforms vectors in space.

For example:

A=[abcd],  v1=[11],  v2=[112]A = \begin{bmatrix} a & b \\ c & d \end{bmatrix},\ \ \vec{v_1} = \begin{bmatrix}1 \\ 1\end{bmatrix},\ \ \vec{v_2} = \begin{bmatrix}1 \\ \frac{1}{2}\end{bmatrix}

This matrix defines how the axes transform under multiplication.

Scaling with Matrices

To apply scaling to a vector use:

S=[sx00sy]S = \begin{bmatrix} s_x & 0 \\ 0 & s_y \end{bmatrix}

Where:

  • sxs_x - the scale factor in the x-direction;
  • sys_y - the scale factor in the y-direction.

Example: scaling point (2, 3) by 2:

S=[2002],v=[23]S = \begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix}, \quad \vec{v} = \begin{bmatrix} 2 \\ 3 \end{bmatrix}

Then:

Sv=[46]S \vec{v} = \begin{bmatrix} 4 \\ 6 \end{bmatrix}

Rotation with Matrices

To rotate a vector by angle θ\theta around the origin:

R=[cosθsinθsinθcosθ]R = \begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \end{bmatrix}

Example: rotate (2, 3) by 90°:

R=[cos90ºsin90ºsin90ºcos90º]=[0110],v=[23]R = \begin{bmatrix} \cos90º & -\sin90º \\ \sin90º & \cos90º \end{bmatrix} = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}, \quad \vec{v} = \begin{bmatrix} 2 \\ 3 \end{bmatrix}

Then:

Rv=[32]R \vec{v} = \begin{bmatrix} -3 \\ 2 \end{bmatrix}

Reflection over the x-axis

Reflection matrix:

M=[1001],M = \begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix},

Using v=(2,3)\vec{v} = (2, 3):

Mv=[23]M \vec{v} = \begin{bmatrix} 2 \\ -3 \end{bmatrix}

Shearing Transformation (x-direction shear)

Shearing shifts one axis based on the other.

To shear in the x-direction:

M=[1k01]M = \begin{bmatrix} 1 & k \\ 0 & 1 \end{bmatrix}

If k=1.5k = 1.5 and v=(2,3)\vec{v} = (2, 3):

Mv=[6.53]M \vec{v} = \begin{bmatrix} 6.5 \\ 3 \end{bmatrix}

Identity Transformation

The identity matrix performs no transformation:

I=[1001]I = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}

For any vector v\vec{v}:

Iv=vI \vec{v} = \vec{v}
question mark

What is the matrix form of this system of equations?

2x+y=5xy=12x + y = 5 \\ x - y = 1

Vänligen välj det korrekta svaret

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 32

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

Avsnitt 1. Kapitel 32
some-alt