On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Geometry Fundamentals · Grade 6-8

Geometric Optimization

Geometric optimization finds the shape or arrangement that makes one quantity (area, perimeter, material) as large or small as possible while another stays fixed.

For a rectangle with fixed perimeter P: Amax⁡=P216 (achieved by a square with side P4)

Quick Answer

Geometric optimization finds the shape or arrangement that makes one quantity (area, perimeter, material) as large or small as possible while another stays fixed. Use it for questions like the biggest garden from a set length of fence, or the box that holds the most for the least cardboard. Start by naming what is fixed and what you are trying to push up or down; then compare options or use a known winner, such as the square among rectangles and the circle among all shapes.

Why This Matters

Optimization turns "any shape will do" into "this shape is best, and here is by how much". With 40 m of fence, a 10 m by 10 m pen holds 100 m² while a 19 m by 1 m strip holds only 19 m², so the choice of shape is worth more than five times the space. The same reasoning explains round pipes, compact boxes and hexagonal honeycombs.

Intuitive Explanation

Take a loop of string 24 cm long and shape it into rectangles on a table. A 1 by 11 rectangle has area 11 cm². A 3 by 9 has 27. A 5 by 7 has 35. A 6 by 6 has 36. The perimeter never changes, yet the area more than triples from the skinniest rectangle to the square. As the two sides get closer together the area grows, and it is largest when they are equal.

Why does the square win? Write the sides as 6+d and 6−d, so they still add to 12. Their product is 36−d2, which is less than 36 for every d except 0. Each step away from equal sides costs area. Let the string bend freely and a circle does even better: 24 cm of string laid in a circle encloses about 45.8 cm², because no shape gets more area from the same length of boundary.

Optimization always gives two quantities different jobs. One is held fixed (the constraint) and the other is pushed as high or as low as possible (the goal). A problem that hands you an 8 m by 4 m garden and asks for its area leaves nothing to choose, so it is an ordinary area problem. Swapping the jobs gives a matching result: for a fixed area of 36 m², the rectangle needing the least fence is again the 6 by 6 square, with 24 m of fence.

Think of it like this. Getting the most area from a fixed fence is like holding a loop of rope around a group of people: pull it into a long thin line and almost nobody fits inside; spread it out evenly and it holds a crowd. The rounder the loop, the more room inside, and a circle holds the most.

Core idea. Geometric optimization finds the configuration that maximizes or minimizes a measurement while a constraint stays fixed.


When to Use

Use geometric optimization when a problem says maximum, minimum, most, least or best and also fixes something else: a length of fence, an amount of material, a volume to hold. Name the fixed quantity, write the goal using one unknown side, and test or reason toward the best value. If every measurement is already given, just compute the area or perimeter. If the question is how many objects fit in a space, that is packing.

Tip. Ask: Is one quantity held fixed while I search for the shape that makes another biggest or smallest?

How to Recognize It

Before optimizing, write down which amount the problem holds fixed, which one you are trying to push up or down, and what freedom is left to choose.

  1. Does the problem ask for the largest or smallest possible value?

    If yes, and some amount such as 40 m of fence is fixed, it is an optimization. If every side length is already given and only one shape is described, there is nothing to choose; just compute its area or perimeter.

  2. Is one side free, such as a wall or a riverbank that needs no fence?

    If yes, the best shape changes: with 40 m of fence against a wall, the best rectangle is 10 m by 20 m, with area 200 square meters, not a square, because the wall does part of the work.

  3. Can you write the amount you want to make biggest using one unknown length?

    If yes, make a table of values or sketch a graph and look for the peak. If two unknowns remain, use the fixed amount to replace one of them first, as in ℓ=30−w for a rectangle with perimeter 60.

  4. Is the question how many separate objects fit, rather than the shape of one region?

    If yes, it is packing, which arranges copies inside a container. Optimization in this sense is about choosing the shape or size of a single figure.

Geometric Optimization compared with Area, Perimeter, and Packing intuition

Area, perimeter and packing all show up inside optimization problems, which is why the rows blur. Ask whether you are measuring one shape you were given (area or perimeter), counting copies in a container (packing) or choosing a shape to make something as large or small as possible (optimization).

Geometric Optimization

Meaning
Use this when one measurement is fixed and you are asked for the shape giving the most or least of another.
Key test
Is one quantity held fixed while I search for the shape that makes another biggest or smallest?
Formula
For a rectangle with fixed perimeter P: Amax⁡=P216 (achieved by a square with side P4)
Example
You have 24 m of fencing for a rectangular garden. What dimensions give the most area?

Area

Meaning
Computes the space inside one given shape — no comparison or best choice.
Key test
Use when the shape is fully specified and you just need its size.
Formula
A=lw
Example
Area of a 6-by-4 rectangle

Perimeter

Meaning
Measures the distance around one given shape, not an optimum.
Key test
Use when you only need the boundary length of a fixed shape.
Formula
P=2(l+w)
Example
Fence for a 6-by-4 yard

Packing intuition

Meaning
Optimizes how many objects fit in a region, not the shape of one region.
Key test
Use when fitting many copies into a container, not shaping a single boundary.
Example
Most circles in a tray

Formula & Notation

For a rectangle with fixed perimeter P: Amax⁡=P216 (achieved by a square with side P4)
Isoperimetric inequality: 4πA≤P2 for any closed curve with area A and perimeter P; equality iff the curve is a circle. Among rectangles with perimeter P: A≤P216, with equality for the square

How to read it: Amax⁡ for maximum area, Pmin⁡ for minimum perimeter; optimization finds extreme values subject to constraints

Worked Examples

Example 1 — Most area from 24 m of fence

Easy

You have 24 m of fencing for a rectangular garden. What dimensions give the most area?
Show the steps and the answer
  1. Name the roles: the perimeter is fixed at 24 m, and the area is to be as large as possible.

    Every optimization has one constraint and one goal, and mixing them up leads to the wrong answer.

  2. Use the constraint: length plus width is 24÷2=12 m, so the sides could be 1 and 11, 3 and 9, 5 and 7, or 6 and 6.

    The fence covers two lengths and two widths, so one length plus one width is half of it.

  3. Compare the areas: 1×11=11, 3×9=27, 5×7=35, 6×6=36 m².

    The area rises as the sides get closer together and peaks when they are equal.

  4. Confirm with the formula: Amax⁡=P216=24216=57616=36 m².

    The square with side P4=6 m gives the largest area for a fixed perimeter.

Answer: 6×6 m, area 36 m2

Takeaway: With a fixed perimeter, a rectangle's area is largest when it is a square; here the square beats the skinniest option by more than three times.

Example 2 — Just find the area

Standard

A rectangular garden is 8 m by 4 m. What is its area?
Show the steps and the answer
  1. Look for something left to choose: both dimensions, 8 m and 4 m, are already fixed.

    With no free measurement there is nothing to adjust, so nothing to optimize.

  2. Multiply length by width: 8×4=32 m².

    That is the area of a rectangle; no comparison is needed.

  3. For contrast, note that the same 24 m of fence bent into a 6 by 6 square would enclose 36 m².

    This shows what an optimization question would add: this garden is 4 m² short of the most its fence could hold.

Answer: 8×4=32 m2

Takeaway: Optimization needs something left free to choose. When every measurement is given, it is an ordinary area problem.

Example 3 — Find the mistake: a pen against a barn

Application

A farmer has 60 m of fence for a rectangular pen against a long barn wall, so only three sides need fence. She wants the most area. Jun writes: "The best rectangle is a square, so each side is 60÷4=15 m and the area is 225 m²." Find the mistake and correct it.
Show the steps and the answer
  1. Restate the constraint: the fence covers two widths w and one length L, so 2w+L=60.

    Jun used the rule for a fence on all four sides; with the barn as the fourth side, the constraint is different.

  2. Notice that Jun's 15 m square uses only 3×15=45 m of fence and leaves 15 m unused.

    A pen that leaves fence unused cannot be the biggest possible pen.

  3. Make a table with L=60−2w: w=10 gives 10×40=400; w=14 gives 14×32=448; w=15 gives 15×30=450; w=16 gives 16×28=448; w=20 gives 20×20=400 m².

    Trying values of the free side shows where the area peaks: the values on both sides of w=15 are smaller.

  4. Choose w=15 m and L=30 m, for an area of 450 m².

    The best pen is twice as long as it is wide, because the barn saves fence along one long side.

Answer: 15 m by 30 m, with the 30 m side along the barn: area 450 m²

Takeaway: Write the constraint for the problem in front of you before using a known winner; the square rule holds only when fence runs along all four sides.

Where You'll See It

  • Designing a can with the least metal

    For a fixed volume, a cylinder uses the least metal when its height equals its diameter. A 400 cm³ can of that shape has radius about 4 cm and height about 8 cm, since π(4)2(8)≈402 cm³. A tall, thin can holding the same amount needs noticeably more metal.

  • Bees building hexagonal honeycomb

    Honeycomb cells must fit together with no gaps. Among shapes that do, the regular hexagon encloses a given area with the shortest wall, so it uses the least wax. For the same cell area, a hexagon needs about 7% less wall than a square.

Common Mistakes

  1. The slip: Confusing what is fixed with what is optimized

    Instead: name the constraint first, then choose what to maximize.

  2. The slip: Assuming every rectangle with the same perimeter has the same area

    Instead: among fixed-perimeter rectangles the square is always the area champion.

  3. The slip: Reporting the constraint as the answer

    Instead: the answer is the optimal dimensions or extreme value, not the fixed quantity.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Three rectangles each have a perimeter of 40 m: 5 m by 15 m, 8 m by 12 m, and 10 m by 10 m. Which has the largest area?

    Hint: Find each area, then look at how close the sides are to each other.

  2. You have 36 m of fencing for a rectangular pen. What dimensions give the largest area, and what is that area?

    Hint: For a fixed perimeter, the best rectangle has all sides equal.

  3. A rectangular patio must have an area of 64 m2. Which shape uses the least edging? Compare it with a 4 m by 16 m patio.

    Hint: Now the area is fixed and the perimeter is what you make small.

  4. A farmer fences three sides of a rectangle along a barn wall, using 20 m of fence. Try widths of 4 m, 5 m, and 6 m for the two sides that meet the wall. Which is best?

    Hint: The side parallel to the wall gets whatever fence is left: 20−2×width.

  5. Problem A: find the area of a 6 m by 9 m patio. Problem B: using 30 m of edging, make the largest rectangular patio. Which is an optimization problem?

    Hint: In which problem do you get to choose the dimensions?

  6. You have 28 m of fence for a rectangular garden. Lea says, "The largest area is 28 m2." Correct her.

    Hint: Is 28 the thing that is fixed or the thing you are making large?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why are soap bubbles round?

A soap film pulls itself as tight as it can, so it takes the least surface area for the air trapped inside. Of all shapes that hold a given volume, the sphere has the smallest surface, so a floating bubble becomes a sphere. It is the 3D partner of the flat fact that, among shapes with the same perimeter, the circle encloses the most area.

Why aren't drink cans shaped like the most efficient cylinder?

The cylinder that holds a given volume with the least metal has its height equal to its diameter. A soda can is nearly twice as tall as it is wide. Part of the reason is that the lid and base are made of thicker metal than the sides, which makes a taller, narrower can cheaper; part is that it has to fit a hand and a vending machine. Real designs minimize total cost, not just area.

Do bees really build hexagons to save wax?

In a sense, yes. In 1999 the mathematician Thomas Hales proved the honeycomb conjecture: of all ways to divide a flat surface into cells of equal area, regular hexagons use the least total wall length. Squares and triangles also fill a surface with no gaps but need more wall for the same area. Biologists think the wax is also pulled into that shape as it is worked.

Is the best shape always the most symmetric one?

Often, but not when the conditions are lopsided. The open-topped box with a square base that holds 32 cubic centimeters using the least cardboard is 4 by 4 by 2, half as tall as it is wide, not a cube, because there is no lid to pay for. If the box needs a lid, the best shape is a cube. Missing or cheaper sides pull the best shape away from symmetry.

Learning Path

← Before

AreaPerimeter
Geometric Optimization

You are here

Next →

Nothing after this yet
You need Area and Perimeter first, since every problem here trades one against the other. Geometric optimization adds the habit of fixing one quantity and searching for the shape that pushes the other to an extreme, with the square and the circle as the usual winners. With it you can solve fencing and box-design problems using tables of values, and later find exact best values with quadratic functions and calculus.

See Also