General Aptitude

Transformation of shapes

Part 1 of 2 · 16 min

Translation, rotation and scaling

The concept

Start with something familiar

Think of a chair in your room. You can slide it without turning it. You can turn it to face the window. Or you can look at a photo of it zoomed in, so it looks twice as big.
Only its position, its direction or its size changed. These three moves are called translation, rotation and scaling.
Throughout this part, xx is the column (to the right is positive) and yy is the row (upwards is positive).

Idea 1: a translation slides every point by the same amount

When you slide the chair 3 steps right and 1 step back, every part of the chair moves 3 right and 1 back. Nothing turns. So the rule for a translation by (a,b)(a, b) is simply: add aa to every xx and bb to every yy.(x, y)  →  (x+a, y+b)(x,\ y) \;\to\; (x + a,\ y + b)Here is a triangle with corners A(1,2)A(1, 2), B(4,2)B(4, 2) and C(1,6)C(1, 6), slid by (3,−1)(3, -1):
PointBeforeMoveAfter
A(1,2)(1, 2)+3, −1+3,\ -1(4,1)(4, 1)
B(4,2)(4, 2)+3, −1+3,\ -1(7,1)(7, 1)
C(1,6)(1, 6)+3, −1+3,\ -1(4,5)(4, 5)
Example
Slide the point (5,−2)(5, -2) by (−4,6)(-4, 6).
Add the moves: (5−4, −2+6)=(1,4)(5 - 4,\ -2 + 6) = (1, 4).
Key idea
A translation changes only the position. Size, shape and the direction the shape faces all stay the same.

Idea 2: a quarter turn swaps the coordinates and flips one sign

Now turn the shape about the origin (0,0)(0, 0). Start with the simplest point you know, (1,0)(1, 0), which sits one step east. A quarter turn anticlockwise moves it to one step north, (0,1)(0, 1). Another quarter turn takes it west, (−1,0)(-1, 0).
That tells you the pattern: in a quarter turn the two coordinates swap places, and one of them changes sign.
TurnRule(3,1)(3, 1) goes to
90° anticlockwise(x,y)→(−y,x)(x, y) \to (-y, x)(−1,3)(-1, 3)
180°(x,y)→(−x,−y)(x, y) \to (-x, -y)(−3,−1)(-3, -1)
90° clockwise(x,y)→(y,−x)(x, y) \to (y, -x)(1,−3)(1, -3)
Play with it

Pick a move. The dashed outline stays where the shape started.

Example
Turn P(2,5)P(2, 5) by 90° clockwise about the origin.
Use (x,y)→(y,−x)(x, y) \to (y, -x): PP goes to (5,−2)(5, -2). Check the distance from the origin: 22+52=29\sqrt{2^2 + 5^2} = \sqrt{29} before and 52+22=29\sqrt{5^2 + 2^2} = \sqrt{29} after. A turn never changes that distance.
To turn about some other centre (p,q)(p, q), shift the centre to the origin first, turn, then shift back.
Example
Turn (4,1)(4, 1) by 180° about the centre (2,3)(2, 3).
Relative to the centre the point is (4−2, 1−3)=(2,−2)(4 - 2,\ 1 - 3) = (2, -2). A half turn gives (−2,2)(-2, 2). Shift back: (−2+2, 2+3)=(0,5)(-2 + 2,\ 2 + 3) = (0, 5).

Idea 3: turning never makes a mirror image

Put a rubber stamp of the letter F flat on the table and turn it as much as you like. You will see an F lying on its side or upside down, but you will never see a backward F. To get that, you would have to lift the stamp and flip it over.
Here is the F drawn on a grid of unit squares. Each ■ is a filled square.
Rowcol 1col 2col 3
top■■■
2■··
3■■·
4■··
bottom■··
After a half turn (180°), every square goes to the opposite side, both top to bottom and left to right:
Rowcol 1col 2col 3
top··■
2··■
3·■■
4··■
bottom■■■
Notice that the top bar is now along the bottom and the stem is on the right. A backward F (the mirror image) would keep the top bar at the top, with the stem on the right. So a quick test for "is this a rotation?" is to check whether the arrangement of features, read around the shape, keeps its order.
The four letters b, d, p, q are perfect practice:
LetterTurned 180°Rotation of b?
bqyes
dpno, d is b flipped
pdno
qbyes
Example
Which of d, p, q can you get by only turning the letter b?
Turning b by 180° puts the stem at the bottom right and the bowl at the top left: that is q. The letters d and p need a flip, so only q works.

Idea 4: scaling by k multiplies lengths by k and area by k squared

Zooming a photo by 2 makes every length twice as long. About the origin, scaling by kk multiplies both coordinates by kk:(x, y)→(kx, ky)length×karea×k2\begin{aligned} &(x,\ y) \to (kx,\ ky) \\ &\text{length} \times k \\ &\text{area} \times k^2 \end{aligned}Why k2k^2 for area? Area is length times width, and both get multiplied by kk. A square of side 3 scaled by 2:
SidePerimeterArea
Before3129
k=2k = 262436
Factor×2\times 2×2\times 2×4\times 4
Example
A triangle of area 12 cm² is scaled by k=2.5k = 2.5. What is its new area?
Area multiplies by k2=6.25k^2 = 6.25, so the new area is 12×6.25=7512 \times 6.25 = 75 cm².

Idea 5: turns about the same centre simply add up

Two turns about the same point act like one turn by the total angle. Clockwise counts as positive, anticlockwise as negative, and every full 360°360° brings you back to the start. Directions work the same way as compass bearings: N is 0°0°, E is 90°90°, S is 180°180°, W is 270°270°.net turn=(c−a) mod 360°\text{net turn} = (c - a) \bmod 360°Here cc is the sum of the clockwise turns and aa is the sum of the anticlockwise turns.
Example
An arrow points east. It is turned 90° clockwise five times. Where does it point?
Net turn =5×90°=450°= 5 \times 90° = 450°, and 450°−360°=90°450° - 360° = 90°. One quarter turn clockwise from east is south.

How to spot which idea you need

The question says...Use
"shifted / moved / slid by"Idea 1: add (a,b)(a, b)
"rotated by 90° / 180°"Idea 2: swap and flip a sign
"which figure is a rotation of..."Idea 3: rotation keeps handedness
"enlarged / reduced / scaled"Idea 4: lengths ×k\times k, area ×k2\times k^2
several turns, or an arrow's final directionIdea 5: add the angles

Worked example 1warm-up

A triangle has corners A(1,1)A(1, 1), B(4,1)B(4, 1) and C(1,3)C(1, 3). It is translated by (2,3)(2, 3) and then rotated by 90° anticlockwise about the origin. Where do the corners end up?
Solution
Step 1. Slide every cornerIdea 1
Adding (2,3)(2, 3) gives A(3,4)A(3, 4), B(6,4)B(6, 4), C(3,6)C(3, 6).
Step 2. Turn every cornerIdea 2
Use (x,y)→(−y,x)(x, y) \to (-y, x): AA goes to (−4,3)(-4, 3), BB to (−4,6)(-4, 6), CC to (−6,3)(-6, 3).
Step 3. Check the side lengths
Originally AB=3AB = 3 and AC=2AC = 2. Now ABAB runs from (−4,3)(-4, 3) to (−4,6)(-4, 6), length 3, and ACAC runs from (−4,3)(-4, 3) to (−6,3)(-6, 3), length 2. Slides and turns never change lengths.

Worked example 2GATE level

The letter F is drawn on unit squares with its stem at x=0x = 0 from y=0y = 0 to y=4y = 4, its top bar along y=4y = 4 from x=0x = 0 to x=2x = 2, and its short middle arm at (1,2)(1, 2). The figure is rotated 90° clockwise about the origin. Describe the result, and say whether it could be confused with a mirror image.
Solution
Step 1. List the squaresIdea 2 works point by point, so list the points
Stem: (0,0),(0,1),(0,2),(0,3),(0,4)(0,0), (0,1), (0,2), (0,3), (0,4). Top bar: (1,4),(2,4)(1,4), (2,4). Arm: (1,2)(1,2).
Step 2. Apply (x,y)→(y,−x)(x, y) \to (y, -x)Idea 2
The stem goes to (0,0),(1,0),(2,0),(3,0),(4,0)(0,0), (1,0), (2,0), (3,0), (4,0), a horizontal bar along y=0y = 0. The top bar goes to (4,−1),(4,−2)(4,-1), (4,-2). The arm goes to (2,−1)(2,-1).
Step 3. Draw it as rows
Reading each row from x=0x = 0 on the left to x=4x = 4 on the right:
  • Row y=0y = 0: ■ ■ ■ ■ ■
  • Row y=−1y = -1: · · ■ · ■
  • Row y=−2y = -2: · · · · ■
So the F lies on its back: a long bar at the top, a 2-square leg hanging from the right end and a 1-square leg hanging from the middle.
Solution
Step 4. Rule out the mirror imageIdea 3: a turn keeps the order of the features
In the original F, the longer branch (the top bar) is at the far end of the stem from the corner at (0,0)(0, 0), and the turn kept that: the long leg hangs from x=4x = 4, the end far from (0,0)(0, 0). A backward F, turned so that its long bar is on top, would have its 2-square leg at the left end instead.

All the equations at a glance

IdeaEquation
Translation(x,y)→(x+a,y+b)(x, y) \to (x + a, y + b)
90° anticlockwise(x,y)→(−y,x)(x, y) \to (-y, x)
180°(x,y)→(−x,−y)(x, y) \to (-x, -y)
90° clockwise(x,y)→(y,−x)(x, y) \to (y, -x)
Scaling by kklengths ×k\times k, area ×k2\times k^2
Several turnsadd the angles, mod 360°360°