0% found this document useful (0 votes)
51 views10 pages

A B A B A B: Transformation by 2 X 1 Matrix

The document discusses how matrices can be used to represent different types of geometric transformations, including translations, reflections, rotations, and enlargements. It provides examples of 2x2 transformation matrices for: 1) Translating a point by adding a translation vector 2) Reflecting points across the x-axis, y-axis, and lines y=x and y=-x 3) Rotating points 90°, -90°, 180°, and -180° about the origin 4) Enlarging points from a center point with a scale factor, including examples with the center at the origin and at a point (a,b).

Uploaded by

Jaishree Ram
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views10 pages

A B A B A B: Transformation by 2 X 1 Matrix

The document discusses how matrices can be used to represent different types of geometric transformations, including translations, reflections, rotations, and enlargements. It provides examples of 2x2 transformation matrices for: 1) Translating a point by adding a translation vector 2) Reflecting points across the x-axis, y-axis, and lines y=x and y=-x 3) Rotating points 90°, -90°, 180°, and -180° about the origin 4) Enlarging points from a center point with a scale factor, including examples with the center at the origin and at a point (a,b).

Uploaded by

Jaishree Ram
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Transformation using Matrix

Matrix is the powerful mathematical tool. It simplifies the mathematical problems in short cut and easy way. Most of the
elementary geometrical transformation can be performed by the use of matrices. We have already discussed different types
Transformation using Matrix
of transformations and the relation between the points and their corresponding image points. In this section, we show the
important role of matrices in transforming the points.
The matrix which is used to transform a point is known as a transformation matrix.

Transformation by 2 x 1 matrix

Let us consider a column vector ( ). It can be written as 2 x 1 matrix [ ].


a a
b b

The matrix [ ] describes a translation of a unit in the x-direction and b units in the y-direction
a
b

3
The matrix [ ] describes the translation of 3 units in the x-direction and 4 units in the y-direction.
4
3
The image P' of any point P after translation by [ ] can be found by vector addition.
4
−3
The image Q' of a point Q after translation by [ ] can be found as follows:
−4
2
Let T = ( ) be the translation vector and p(x, y) will be the object point. Then the image P' (x', y') can be obtained as
1
follows:

x′ 2 x+2
[ ] =[ ] +[ ] =[ ]
x
y ′ y 1 y+1
∴ Image of P(x, y) is P' (x + 2, y + 1)
Hence, if

( ) be the translation vector, then P(x, y) will be translated into P(x + a, y + b).
a
b
Transformation using 2 x 2 matrices

A point (x, y) can be written as the column matrix[ ]. If this column matrix is per-multiplied by any 2 x 2 matrix the result
x
y
will be another column matrix such as

0 −1 x 0.x − 1.y −y
[ ][ ] =[ ] =[ ]
1 0 y 1.x + 0.y x
0 −1
Here, the matrix[ ] maps the point (x, y) onto the point (-y, x). Thus any 2 x 2 matrix can be regarded as
1 0
representing a geometrical transformation. It performs the transformation by pre-multiplying the column matrix which
represent the object point.

Consider a 2 x 2 matrix[ ] and the point O (0, 0).


a b
c d
a b 0 a.0 + b.0 0
Now,[ ][ ] =[ ] =[ ].
c d 0 c.0 + d.0 0

So, image of the origin (0, 0) under the transformation by the matrix[ ] is the origin itself. It shows that the origin is
a b
c d
always invarient under a matrix transformation.

Again, consider a 2 x 2 matrix M =[ ] and a point P (x, y).


a b
c d
Then,

ax + by
[ ][ ] =[ ].
a b x
c d y cx + dy
Therefore, if

[ ] denotes the position of a point (x, y), then 2 x 2 matrix


x
y
[ ] transform this point onto (ax + by, cx + dy).
a b
c d
Reflection using 2 x 2 Matrices

(a) Reflection in X-axis

Let Rx denote the reflection in x-axis.

Then, Rx : P (x, y)→ P'(x, y)

If P'(x', y') represents the image of P(x, y) under Rx , then

x' = x = 1.x + 0.y

y' = -y = 0.x - 1.y


This system of linear equations may be written in matrix form as

x′ 1.x + 0.y 1 0
[ ] =[ ] =[ ][ ]
x
y′ 0.x − 1.y 0 −1 y
1 0
Hence, the matrix[ ] represent the reflection in X-axis.
0 −1
So, the image of the point (4, 5) under the reflection in X-axis is obtained as follows:

1 0 4 1.4 + 0.5 4
[ ][ ] =[ ] =[ ]
0 −1 5 0.4 − 1.5 −5
∴ Image of (4, 5) is (4, -5).

(b) Reflection in y-axis

Let Ry denote reflection in Y-axis.

Then, Ry : P (x, y)→ P'(-x, y).

If P'(x', y') is the image of P (x, y), then


x' = -x = -1.x + 0.y y' = y = 0.x + 1.y
This system of linear equations may be written in matrix form as

[ ] [ ] [ ][ ] [ ]
x′ −1.x + 0.y −1 0 x −1 0
[ ] =[ ] =[ ][ ]Hence, the matrix[ ] represents the reflection in Y-axis.
y′ 0.x + 1.y 0 1 y 0 1
(c) Reflection in the line y = x

Let R be the reflection in the line y = x.


Then, R: P (x, y)→ P'(y, x)
If P'(x', y') is the image of P(x, y), then
x' = y = 0.x + 1.y
y' = x = 1.x + 0.y
This system of linear equations may be written in matrix form as

x′ 0.x + 1.y 0 1 x
[ ′
] =[ ] =[ ][ ]
y 1.x + 0.y 1 0 y
0 1
Hence, the matrix[ ] represents the reflection in the line y = x.
1 0
(c) Reflection in the line y = x

Let R be the reflection in the line y = -x,


Then, R: P(x, y)→ P'(-y, -x).
If P'(x', y') is the image of P(x, y), then
x' = -y = 0.x - 1.y
y' = -x = -1.x + 0.y
In the matrix form, this system can be written as

x′ 0.x − 1.y 0 −1 x
[ ′
] =[ ] =[ ][ ].
y −1.x + 0.y −1 0 y
0 −1
Hence, the matrix[ ] represents the reflection in the line y = -x.
−1 0
Rotation using 2 x 2 Matrices

(a) Positive Quarter turn about the origin

Let Q+ be the rotation through 900 about the origin.

Then, Q+: P (x, y)→ P'(-y, x)

If P'(x', y') represents the image of P (x, y) after the rotation through 900, then
x' = -y = 0.x - 1.y
y' = x = 1.x + 0.y
This system of linear equations can be written in matrix form as

x′ 0.x − 1.y 0 −1 x
[ ′
] =[ ] =[ ][ ]
y 1.x + 0.y 1 0 y
0 −1
So, the matrix[ ] represent the rotation through 900 about the origin.
1 0
The images of a point after rotation through 900 about the origin and after rotation through -2700 about the origin are always
same.

[ ]
0 −1
So, the matrix[ ] also represent the rotation through -2700 about the origin.
1 0
(b) Negative Quarter turn about the origin

Let Q be the rotation through -900 about the origin.


Then Q: P (x, y)→ P'(y, -x).

If P'(x', y') represents the image of P(x, y) after the rotation through -900, then
x' = y = 0.x + 1.y
y' = -x = -1.x + 0.y
This system of linear equation can be written in the matrix form as

x′ 0.x + 1.y 0 1
[ ] =[ ] =[ ] [ ]
x
y′ −1.x + 0.y −1 0 y
0 1
So, the matrix [ ] represents the rotation through -900 about the origin. It also represents the rotation through 2700
−1 0
about the origin.

(c) Half turn about origin

Let H be the half turn i.e. rotation through 1800 about the origin.
Then, H: P(x, y) → P'(-x, -y).

If P'(x', y') represents the image of P(x, y) under the rotation through 1800, then
x' = -x = -1.x + 0.y
y' = -y = 0.x - 1.y
This system of linear equations can be written as

x′ −1.x + 0.y −1 0
[ ] =[ ] =[ ][ ]
x
y ′ 0.x − 1.y 0 −1 y
−1 0
So, the matrix [ ] represents rotation through 1800 about the origin. It also represents the rotation through -1800
0 −1
about the origin.

Enlargement using 2 x 2 Matrices

(a) Enlargement with centre (0, 0) and scale factor k.

Let E be the enlargement with centre at the origin and scale factor k.
Then, E: P(x, y) → P'(kx, ky)
If P'(x', y') represents the image of P(x, y) under E, then
x' = kx = k.x + 0.y
y' = ky = 0.x + k.y
This system of linear equations can be written in the matrix form as

x′ k. x + 0.y k 0 x
[ ′
] =[ ] =[ ][ ]
y 0.x + k. y 0 k y
k 0
So, the matrix[ ] represents the enlargement with the centre at the origin and the scale factor k.
0 k
(b) Enlargement with centre (a,b) and scale factor k.
Let P (a, b) be the centre of the enlargement. Then, the position vector of P is

O P =( )
a
b
Let A(x, y) be any other point on the plane. Then, the position vector of A is
→ ′
O A =( )
x
y
→ → → x −a
Now, P A = O A - O P =[ ] -[ ] =[ ]
x a
y b y −b
Let A' (x', y') be the image of A (x, y) under the enlargement with scale factor k. Then, position vector of A' is
→ ′ x′
O A =( ′ )
y
→ → x′ x′ −a
P A′ - O P ′ =( ′ ) -( ) =( ′ )
a
y b y −b
Since the scale factor is k, then
→ →
P A′ = k.P A
x′ −a x −a kx −ka
( ) = k( ) =( )
y′ −b y −b ky −kb
∴ x' - a = kx - ka and y' - b = ky - kb
or, x' = kx - ka + a = k(x-a) + a

y' = ky - kb + b = k(y-b) + b
This system of linear equations can be represented in matrix form as

x′ k(x − a) + a k 0 x−a
[ ] =[ ] =[ ][ ] +[ ]
a
y ′ k(y − b) + b 0 k y−b b
Hence, if the centre of enlargement is (a, b) and the scale factor is k, then the image (x', y') of the point (x, y) can be
obtained as follows:

x′ k 0 x−a kx − ka + a
[ ] =[ ][ ] +[ ] =[ ]
a
y ′ 0 k y−b b ky − kb + b
Hence, the image of the point (x, y) is (kx - ka + a, ky - kb + b).

Translations using 2 x 2 matrices

Let T =( ) be the translation vector or the translation matrix. Then the image P' (x', y') of the point P (x, y) under the 2 x 1
a
b
x′ x+a
matrix [ ] can be follows:[ ] =[ ] +[ ] =[ ]
a x a
b y ′ y b y+b
1 0
It also can be done using the 2 x 2 unit matrix[ ] as follows:
0 1
x′ 1 0 x x+a
[ ] =[ ][ ] +[ ] =[ ] +[ ] =[ ]
a x a
y′ 0 1 y b y b y+b
Geometric Transformations using Matrices
Consider the vertices of a square O(0, 0), A(1, 0), B(1, 1) and C(0, 1). These coordinates can be displayed in the matrix
form as:

⎡O A B C⎤
⎢0 1 1 0⎥
⎣0 0 1 1⎦
The square matrix OABC with vertices O(0, 0), A(1, 0), B(1, 1) and C(0, 1) is called a unit square.
Again, consider other points O(0, 0), A(2, 0), B(2, 1) and C(0, 1). These coordinates can be displayed in the matrix form as

⎡O A B C⎤
⎢0 2 2 0⎥
⎣0 0 1 1⎦
The quafrilateral OABC with the vertices O(0, 0), A(2, 0), B(2, 1) and C(0, 1) is a rectangle.

In order to transform any object or figure by using a 2 x 2 matrix, the matrix formed by the coordinates of the vertices of the
object is pre-multiplied by the transformation matrix.

For example, the coordinates of the vertices A(2, 2), B(2, 6), C(5, 2) and D(5, 6) of rectangle ABCD are written as

⎡A B C D⎤
⎢2 2 5 5⎥
⎣2 6 2 6⎦
2 0
It is transformed by a matrix M =[ ] as follows:
0 1

⎡ ⎤⎡ ⎤⎡ ⎤
′ ′ ′ ′ ′ ′ ′ ′
2 0 ⎡
A B C D ⎤ ⎡ A′ B′ C′ D′ ⎤ ⎡A
′ B′ C′ D′ ⎤
[ ]⎢ 2 2 5 5 ⎥=⎢ 2.2 + 0.2 2.2 + 0.6 2.5 + 0.2 2.5 + 0.6 ⎥=⎢ 4 4 10 10 ⎥
0 1 ⎣
2 6 2 6 ⎦ ⎣ 0.2 + 1.2 0.2 + 1.6 0.5 + 1.2 0.5 + 1.6 ⎦ ⎣ 2 6 2 6 ⎦

Hence, the coordinates of the vertices of the image are A'(4, 2), B'(4,6), C'(10, 2) and D'(10,6). Object figure ABCD and
Image figure A'B'C'D' are shown in the graph.

You might also like