Sub topic 2
Rectangles and Squares: Perimeter, Area and Diagonal
This chapter assumes you know the Pythagorean theorem, can solve linear equations by substitution, and are comfortable with the unit conversions from the previous chapter. Rectangles and squares are the base for almost every later shape. Triangles are half-rectangles, circles are compared to enclosing squares, and cuboids are rectangles extended into three dimensions.
The working model
A rectangle has length l and breadth b. All four angles are right angles, and opposite sides are equal. A square is the special case where l = b = a.
| Quantity | Rectangle | Square |
|---|---|---|
| Perimeter | 2(l + b) | 4a |
| Area | l × b | a² |
| Diagonal | √(l² + b²) | a√2 |
| Area from diagonal | not determined by d alone | d²/2 |
The diagonal comes straight from the Pythagorean theorem. It splits the rectangle into two right triangles with legs l and b. Both diagonals of a rectangle are equal and bisect each other.
The perimeter is the length of the boundary, measured in length units. The area is the amount of surface covered, measured in square units. Mixing the two up is the most common slip under time pressure.
Worked example 1: from perimeter and diagonal to area
A rectangle has perimeter 34 cm and diagonal 13 cm. Find its area.
Use the identity (l + b)² = l² + b² + 2lb.
- The perimeter gives l + b = 17.
- The diagonal gives l² + b² = 13² = 169.
- Then 2lb = 17² − 169 = 289 − 169 = 120, so lb = 60.
The area is 60 cm². The sides are 12 and 5. You never needed to solve for them. This identity trick appears often in CAT. Remember that the sum of the sides, the sum of the squares of the sides and the product of the sides are linked by one equation.
import math
def rectangle_from_perimeter_and_diagonal(p, d):
s = p / 2 # l + b
product = (s * s - d * d) / 2 # l * b
disc = s * s - 4 * product # discriminant for l and b
if product <= 0 or disc < 0:
raise ValueError("no such rectangle")
root = math.sqrt(disc)
return (s + root) / 2, (s - root) / 2, product
print(rectangle_from_perimeter_and_diagonal(34, 13)) # (12.0, 5.0, 60.0)Worked example 2: percentage changes in sides
If the length of a rectangle increases by x% and its breadth changes by y%, the new area is
(1 + x/100)(1 + y/100) × original area.
The net percentage change is x + y + xy/100, where a decrease is entered as a negative number.
Suppose the length rises by 20% and the breadth falls by 20%. The net change is 20 − 20 + (20)(−20)/100 = −4%. The area falls by 4%, not 0%. The same logic works for a square whose side grows by 10%. The area changes by 10 + 10 + 1 = 21%.
Now find the change in perimeter in the same example. The perimeter is 2(l + b), so it depends on the original shape. If l = 30 and b = 10, the new sides are 36 and 8, and the perimeter goes from 80 to 88. That is a 10% increase. For a square the same two changes would leave the perimeter unchanged. Area changes can be computed from percentages alone. Perimeter changes cannot, unless you know the ratio of l to b.
Key relationships to memorise
For a fixed perimeter, the square has the largest area among all rectangles. For a fixed area, the square has the smallest perimeter. This follows from AM–GM, which says (l + b)/2 ≥ √(lb), with equality only when l = b.
A useful consequence: if l + b = 20, then the maximum area is 10 × 10 = 100. Any other split, such as 12 and 8, gives less (96).
For a square, the diagonal is a√2, so d ≈ 1.414a. The area can be found as d²/2 without computing the side. A square with diagonal 10 has area 50. The side of a square with area A has diagonal √(2A).
Paths, walking and diagonals
A common CAT setting compares walking along two sides with cutting across the diagonal. The distance saved is (l + b) − d.
A person walks diagonally across a 40 m by 30 m field. The diagonal is 50 m. Walking along the edges is 70 m. The saving is 20 m, which is 20/70 ≈ 28.6% of the longer route.
Notice that 30-40-50 is a multiple of the 3-4-5 triple. Learn the common triples: 3-4-5, 5-12-13, 8-15-17, 7-24-25 and 20-21-29. Recognising them saves a square-root calculation.
Tiling and fitting problems
To tile a floor of area A with tiles of area t, the number of tiles is A/t, provided the tiles fit exactly. Check that the dimensions divide evenly, not only the areas.
A room 8 m by 6 m is tiled with square tiles of side 0.5 m. Convert units first. The area is 48 m², and a tile is 0.25 m², so 192 tiles are needed. Check by sides: 16 tiles along the length and 12 along the breadth gives 16 × 12 = 192.
When the tile has to be the largest possible square with no cutting, its side is the HCF of the dimensions. For 8 m (800 cm) by 6 m (600 cm) the HCF is 200 cm, so the largest tile is 2 m by 2 m and 12 tiles are needed.
import math
room_l, room_b = 800, 600 # centimetres
side = math.gcd(room_l, room_b)
count = (room_l // side) * (room_b // side)
print(side, count) # 200 12Common errors
- Using the wrong unit factor. Area converts with the square of the length factor. 1 m² is 10,000 cm², not 100 cm².
- Treating a rectangle's diagonal as fixed by its area. Many rectangles share one area but have different diagonals.
- Adding percentage changes directly. A 20% rise and 20% fall in the sides leaves the area down 4%, not unchanged.
- Confusing the perimeter of a frame with its area. A border of width w around a rectangle changes each dimension by 2w, not w.
- Forgetting that a rectangle with equal diagonals need not be a square. Equal diagonals hold for every rectangle. Perpendicular diagonals are what mark the square (or a rhombus).
Edge cases to check
- A "square" given by its diagonal uses d²/2. If the diagonal is irrational, such as 6, the area is 18 and the side is 3√2, so the area stays rational.
- If doubling every side of a rectangle, the perimeter doubles and the area becomes four times as large.
- If the area of a square increases by 44%, each side increases by 20%, since √1.44 = 1.2.
Exercise
A rectangular field has length 24 m and diagonal 25 m. A fence is built around the field, and a path is walked from one corner to the opposite corner along the diagonal. Find (a) the area of the field and (b) how many metres are saved by walking the diagonal instead of along two sides.
Show answer
The breadth is √(25² − 24²) = √(625 − 576) = √49 = 7 m. (a) The area is 24 × 7 = 168 m². (b) Walking along two sides is 24 + 7 = 31 m. The diagonal is 25 m. The saving is 31 − 25 = 6 m.
Exercise
The side of a square is increased by 25%, and then the length of a rectangle with the same original area is decreased by 20% while its breadth stays fixed. How does the new square area compare with the new rectangle area?
Show answer
Let the original area of both be A. The square's area becomes (1.25)² A = 1.5625A. The rectangle's area becomes 0.8A. The ratio is 1.5625 : 0.8, or about 1.953, so the square is larger by a factor of about 1.95, which is roughly 95% more.
Exercise
A rectangle has a perimeter of 56 m, and its length is three times its breadth. What is the length of its diagonal? Give the answer to two decimal places.
Show answer
l + b = 28 and l = 3b, so b = 7 and l = 21. The diagonal is √(21² + 7²) = √(441 + 49) = √490 = 7√10 ≈ 22.14 m.