Skip to content
Por qué así

Home › Problems › Mathematics

MathematicsMadrid 2026Question 2Free lesson

Cheapest triangular garden

Optimisation: why those variables, where the constraint comes from and how we know it is a minimum

10 chapters · 8 min · Synthetic voices · Press ▶ to startReport a mistakeOpen full screen ↗

Problem statement

(2 marks) A garden in the shape of a right-angled triangle, with legs of 42 m and 56 m, is to be tiled. Inside the garden, a rectangular roofed area is to be marked out so that two of its sides are parallel to the legs of the triangle, one vertex coincides with the right-angle vertex of the triangle and the opposite vertex lies on its hypotenuse.

Tiling the roofed part costs €30/m² and the unroofed part €50/m², because those tiles have a special water-resistant treatment. Find the dimensions of the roofed part that make the cost of tiling the garden a minimum.

Source: Madrid university entrance exam (PAU, Spain) · 2025-2026 · Ordinary session · Mathematics · Question 2. Official exam set by the public universities of the Community of Madrid, to whom it belongs; translated from Spanish and reproduced with its source in order to explain it for teaching purposes.

What this lesson answers

  1. What are we optimising, and what does the cost depend on?
  2. Where does the relation between x and y come from?
  3. How do we write the cost with a single variable?
  4. Why differentiate and set it equal to zero?
  5. How do we know it is a minimum, and what happens at the ends?
  6. Another way, without derivatives
  7. The answer, and how to check it
  8. Common mistakes you must not make
  9. Exam tips
  10. If you want full marks

More lessons

General ScienceMadrid 2026Question 2A

X-linked inheritance

A healthy father and a carrier mother: the Punnett square and why it comes out this way

12 chapters · 9 minWatch the lesson →
General ScienceMadrid 2026Question 3A

A geostationary satellite

The four forces, the gravity that makes it orbit and the angular velocity: why it is solved this way

11 chapters · 9 minWatch the lesson →
General ScienceMadrid 2026Question 3B

A box pushed against friction

Free-body diagram, friction, net force and braking: why it is solved this way

12 chapters · 9 minWatch the lesson →

Was it useful?

Tell me which problem you would like to see explained like this, or if you have found a mistake, and I will let you know when there are new lessons.